Program's code:
Code: Select all
A1 D43BFC01 mov eax,[Testgame.exe+BC3BD4] // [Testgame.exe+BC3BD4] changes with every update
My intended code:
Code: Select all
mov [Testgame.exe+BC3BD4],#50000
What I tried (heavily edited for readability, there's other code around it and all of it works properly as long as I use the hardcoded address):
Code: Select all
aobscanmodule(findAdr,$process,A1 ?? ?? ?? ?? 53 56 57 8B)
alloc(foundAdr,4)
foundAdr:
readmem(findAdr+1,4)
...
...
newmem:
db C7 05 // I got these bytes from memory view of actual working code
readmem(foundAdr,4)
db 50 C3 00 00