[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)
3 views
428
122
5 days ago 00:21:34 3
Аварии на реальных событиях в #59
3 weeks ago 00:02:25 1
Street Fighter 6 - Official Mai Gameplay Trailer
3 weeks ago 00:02:42 1
X2 (5/5) Movie CLIP - This Is the Only Way (2003) HD
3 weeks ago 06:57:11 1
⚜️«Mecklenburg Vorpommern» Уборка зерновых. MOZA R5 ОАО 7регион #стрим 104
3 weeks ago 01:06:52 1
TMNT Mutants Unleashed | Серия 8 | Играем в Лягушку