X86 encode near call relative offset <p>Let's say I've the following set of instructions:</p> <pre><code>00E79E00 | E8 AE580000 CALL someprocess.00E7F6B3 00E79E05 | 85C0 TEST EAX, EAX (output taken from OllyDbg) </code></pre> <p>How do I encode the rel32 offset from the near call(0xE8) so I can get the absolute position I can jump to?</p> <p>I know that the offset is relative to the next instruction and is calculated by subtracting the target with it. My question is: how do I 'reverse' this so I get the function addres <code>00E7F6B3</code> from the relative offset <code>AE580000</code></p>