Hatschi Master Cheater
Reputation: 2
Joined: 28 Jan 2010 Posts: 327
|
Posted: Tue Aug 21, 2012 2:00 am Post subject: Save all addresses which are currently read by a function |
|
|
Hi,
I've a function reading several addresses. Now i want to save all addresses which are currently READ by the function.
I tried something like:
| Code: | mov dword ptr[00510408],(int)0
mov dword ptr[0051040C],(int)0
mov dword ptr[00510410],(int)0
mov dword ptr[00510414],(int)0
one:
cmp [00510408],ecx
jg two
mov [00510408],ecx
jmp originalcode
two:
cmp [0051040c],ecx
jg three
mov [0051040c],ecx
jmp originalcode |
However, the problem is that if ECX is saved to 00510408, the code injection will exit and the value will be reset on next load. So no matter of how many addresses are read, only 00510408 will be written.
But if i don't reset the value, i've several addresses which aren't used by the function anymore. So what i want is: Load all currently read addresses into some pointers, if the value isn't hooked anymore it should be reset. I guess i made a serious logic mistake over here. |
|