Reading EIP

A simple text to read EIP

What we can do is we can create a function which returns the value of EIP in EAX or any register which we can directly access.

GetEIP proc
mov eax, dword ptr:ss[esp]
ret
GetEIP endp

:or

Call _getEip
_getEIP: pop eax

Last updated