code 1
Code: Select all
[ENABLE]
aobscanmodule(res,OwarOGL_SGUI.exe,8B 43 04 E8 5C 8D E2 FF) // should be unique
alloc(newmem,$1000)
label(code)
label(return)
label(cratesAmount)
label(oilAmount)
label(syberitAmount)
newmem:
push ecx
mov ecx,[cratesAmount]
mov [ebx+04],ecx //crates
mov ecx,[oilAmount]
mov [ebx+08],ecx //oil
mov ecx,[syberitAmount]
mov [ebx+0C],ecx //syberit
pop ecx
code:
mov eax,[ebx+04]
call OwarOGL_SGUI.exe+18154
jmp return
syberitAmount:
dd 12C
oilAmount:
dd 12C
cratesAmount:
dd 12C
res:
jmp newmem
nop 3
return:
registersymbol(res)
registersymbol(cratesAmount)
registersymbol(oilAmount)
registersymbol(syberitAmount)
[DISABLE]
res:
db 8B 43 04 E8 5C 8D E2 FF
unregistersymbol(res)
unregistersymbol(cratesAmount)
unregistersymbol(oilAmount)
unregistersymbol(syberitAmount)
dealloc(newmem)
code 2
Code: Select all
[ENABLE]
aobscanmodule(capExp,OwarOGL_SGUI.exe,29 8C 90 48 02 00 00) // should be unique
alloc(newmem,$1000)
label(code)
label(return)
label(expMult)
newmem:
imul ecx,edi,[expMult]
code:
//sub [eax+edx*4+00000248],ecx
jmp return
expMult:
dd 1
capExp:
jmp newmem
nop 2
return:
registersymbol(capExp)
registersymbol(expMult)
[DISABLE]
capExp:
db 29 8C 90 48 02 00 00
unregistersymbol(capExp)
unregistersymbol(expMult)
dealloc(newmem)