thanks for help guys, i tryed, but its impossible to Use conditional breakpoint, becouse there is no register match only that one address i want
i found another place for inject but i have problem with code:
Code: Select all
[ENABLE]
aobscanmodule(character,GameAssembly.dll,85 C0 0F 85 1E 01 00 00 C7) // should be unique
alloc(newmem,$1000,character)
label(code)
label(return)
label(characterread)
registersymbol(characterread)
newmem:
code:
//test eax,eax
//jne GameAssembly.dll+3ED8C9
readmem(character,8)
jmp return
characterread:
readmem(character,8)
character:
jmp newmem
nop 3
return:
registersymbol(character)
[DISABLE]
character:
readmem(characterread,8)
//db 85 C0 0F 85 1E 01 00 00
unregistersymbol(*)
dealloc(*)
i want to replace commented lines and store original code with readmem() its 8 bytes but as you see on image, the "jne" gives me a different jump inside inject as original one
original:
Code: Select all
85 C0 -> test eax,eax
0F 85 1E 01 00 00 -> jne GameAssembly.dll+3ED8C9
injected:
Code: Select all
85 C0 -> test eax,eax
0F 85 1E 01 00 00 -> jne 7FFE77D20126
does someone know how to fix it? i want read original code becouse if it changed i want restore the right one and not give there static "db 85 C0 0F 85 1E 01 00 00"