epsylon3/odbgscript — Issue #2: Unexpected behavior after directly setting EIP
Author: milesc
Created: 2011-11-29 20:20:08+00:00
State: open

Hi Epsylon3,

If you set EIP directly, as in the example below, OllyDbg never again updates the value displayed in the register as you step over other instructions.

Example:
mov eip, 4016e0
sto

EIP isn't updated to the next instruction, even though you have stepped.

The value eip has been set to is even stored in the .udd. When you reload the exe in ollydbg, the eip is immediately set to the value you moved into eip, unless you delete the corresponding .udd file before reloading the exe.

-------------

Also, what would be the best way to jump to a certain address, then run until another address is reached, and then finally execute more script commands?

I've tried things like:
mov eip, 4016e0
bp 4016f6 <--- this is the address of the instruction I'd like to stop on
run
bc 4016f6
do more stuff here <---- I want these script commands to only be run once the program is paused on the breakpoint.

Thanks for any help you can provide.
Craig