[Link]
Code: Select all
{
Game : Sango7.exe
Version:
Date : 2024-06-02
Author : MSI
This script modifies the value at the specified memory address and locks it at 999.
}
[ENABLE]
aobscanmodule(INJECT,Sango7.exe,89 46 48 5E C3) // should be unique
alloc(newmem,$1000)
label(code)
label(return)
label(done)
registersymbol(done)
newmem:
code:
cmp byte ptr [done], 1
je return
mov [esi+48], 4E7 // lock the value at 999 (3E7 in hex)
mov byte ptr [done], 1
pop esi
ret
INJECT:
jmp newmem
return:
db 5E C3
newmem+10:
done:
db 0
registersymbol(INJECT)
[DISABLE]
INJECT:
db 89 46 48 5E C3
unregistersymbol(INJECT)
dealloc(newmem)