help me :D

06/30/2012 14:38 Hatish#1
Hi how i can change register with ollydbg?
for example i want to change a register at this addres 0012412(is not real)
for example eax register... how i can? and how i can save the file with register at location change?
06/30/2012 14:51 2n0w#2
Just doubleclick the register in the registers window to edit it.
To save this, you must use a mov instruction, I think.
06/30/2012 14:59 tnd0#3
You cannot safe the register at a location. You can only modify the code where you want a register to have a certain value by replacing opcodes with <mov eax, yourvalue> (or any other suitable way like pop).
06/30/2012 20:03 MrSm!th#4
Or you place a breakpoint and do it manually via OllyDbg
07/01/2012 12:12 Hatish#5
Quote:
Originally Posted by MrSm!th View Post
Or you place a breakpoint and do it manually via OllyDbg
and how? i place breakpoint and how i can do it manually?
07/01/2012 12:52 tnd0#6
I think what he wants is to 'save' the registerchange he made in OllyDbg to the executable. And that does not work unless you modify the opcodes or leave OllyDbg running every time you launch your application.
07/01/2012 20:31 MrSm!th#7
Well, since he still asks how to do it manually, he might just want to edit it temporarily.

@Topic:

You can edit the value of a register by doubleclicking on the register you want to edit in the top right corner of ODbg.
If you want to make that change "permanent" so that it is always done automatically without you having to start Olly, then you have to patch at the address and place a "mov register_to_edit, value", as the others already mentioned.