Example being:
Old table:
Code: Select all
aobscan(unlimitedStamina,55 8B EC 56 50 8B F1 8B 8E EC) // should be unique
alloc(newmem,$1000)
label(code)
label(return)
newmem:
ret
code:
push ebp
mov ebp,esp
push esi
push eax
jmp return
unlimitedStamina:
jmp newmem
return:
registersymbol(unlimitedStamina)
[DISABLE]
unlimitedStamina:
db 55 8B EC 56 50
unregistersymbol(unlimitedStamina)
dealloc(newmem)
Code: Select all
What writes-
00F90000 - C7 46 28 0E010000 - mov [esi+28],0000010E (270 in HEX)
00F90007 - D9 5E 28 - fstp dword ptr [esi+28] (store floating point value)