Substitutes for x86 assembly 'call' instruction?

后端 未结 3 995
既然无缘
既然无缘 2020-12-08 11:00

What are some alternatives to the x86 call instruction? Maybe something like a push of the return address then a jump?

Also is their a command for obtaining the curr

3条回答
  •  [愿得一人]
    2020-12-08 11:54

    You can just push a dword value and jmp to the procedure. The push would be the return address :

    push return_address (push eax if address in eax)
    jmp call_address
    

    Remember to also push arguments if they exist for that particular call.

    What do you mean by current position in memory ? I suppose that you mean the current instruction pointer. You cannot get that directly, but you can use a seh handler(structured exception handler) to get that value upon causing a handled exception.

提交回复
热议问题