Code: Select all
[enable]
aobscanmodule(player,cheatenginewontgetsued.exe,00 11 22 33 44)
stealthedit(stealthedit1,player,10)
alloc(newmem,$1000)
label(code)
label(return)
label(backup)
label(playerptr)
registersymbol(playerptr)
label(stealthlocation1)
registersymbol(stealthlocation1)
newmem:
mov [backup],rax
mov rax,[rsi+20]
mov [playerptr],rax
mov rax,[backup]
code:
mov rcx,[rsi+20]
jmp return
backup:
dd 0
playerptr:
dd 0
stealthedit1:
stealthlocation1:
jmp code
nop
return:
[disable]
stealthlocation1:
dd 00 11 22 33 44
unregistersymbol(stealthlocation1)
unregistersymbol(playerptr)
dealloc(newmem)
alloc(newmem,$1000,player) crashes my game which is what I am trying to fix
Anyone tell me what I am doing wrong here ?