[5] Game Hacking: Understanding push and pop in scripting

Cheat Engine Tips: This video shows how to push and pop register and flags to preserve data so that you can restore them back after you have used the registers and cmp instructions in your injected code. Full course here: Assault Cube (the game used in the video): ---- cheat table used in the video ---- [ENABLE] aobscanmodule(INJECT,,29 7B 04 8B C7) // should be unique alloc(newmem,$1000) label(code) label(return) label(player) newmem: //-- [[rbx 28C] 1C] push rax mov rax,[rbx 28C] movzx rax,[rax 1C] pushf cmp rax,0 je player jmp code code: popf pop rax sub [ebx 04],edi mov eax,edi jmp return player: popf pop rax INJECT: jmp newmem return: registersymbol(INJECT) [DISABLE] INJECT: db 29 7B 04 8B C7 unregistersymbol(INJECT) dealloc(newmem)
Back to Top