Page 1 of 1

Stealthedit and alloc crashing my game

Posted: Sat Jan 12, 2019 8:58 pm
by LumInvader
Have this code below, works fine without stealthedit however when I try to allocate the game explodes

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) works but crashes game when I disable the cheat.

alloc(newmem,$1000,player) crashes my game which is what I am trying to fix

Anyone tell me what I am doing wrong here ?

Re: Stealthedit and alloc crashing my game

Posted: Sun Jan 13, 2019 1:34 am
by LumInvader
Maybe @sunbeam can take a look? for now I just used readmem which seems to work ¯\_(ツ)_/¯