34
"Enable Me!"
Auto Assembler Script
{ Game : riseofnations.exe
Version: 1.20
Date : 2017-08-24
Author : kl0wn
This script does blah blah blah
}
[ENABLE]
aobscanmodule(INJECT,riseofnations.exe,8B 80 B8 7A ?? ?? 8D 0C 98) // should be unique
alloc(newmem,$1000)
registersymbol(food)
alloc(food, 4)
registersymbol(timber)
alloc(timber, 4)
registersymbol(wealth)
alloc(wealth, 4)
registersymbol(knowledge)
alloc(knowledge, 4)
registersymbol(stone)
alloc(stone, 4)
registersymbol(oil)
alloc(oil, 4)
label(code)
label(return)
label(code)
label(return)
label(lfood)
label(ltimber)
label(lwealth)
label(lknow)
label(lstone)
label(loil)
newmem:
cmp eax, 00 // if not player
jne code
mov eax,[eax+riseofnations.exe+1327AB8]
lea ecx,[eax+ebx*4]
mov eax,[ecx]
xor eax,00008221
cmp ebx, 00
je lfood
cmp ebx, 01
je ltimber
cmp ebx, 02
je lwealth
cmp ebx, 03
je lknow
cmp ebx, 04
je lstone
cmp ebx, 05
je loil
jmp "riseofnations.exe"+97DF55
lfood:
mov eax,[food]
jmp "riseofnations.exe"+97DF55
ltimber:
mov eax,[timber]
jmp "riseofnations.exe"+97DF55
lwealth:
mov eax,[wealth]
jmp "riseofnations.exe"+97DF55
lknow:
mov eax,[knowledge]
jmp "riseofnations.exe"+97DF55
lstone:
mov eax,[stone]
jmp "riseofnations.exe"+97DF55
loil:
mov eax,[oil]
jmp "riseofnations.exe"+97DF55
code:
mov eax,[eax+riseofnations.exe+1327AB8]
jmp return
INJECT:
jmp newmem
nop
return:
registersymbol(INJECT)
[DISABLE]
INJECT:
db 8B 80 B8 7A 35 01
unregistersymbol(INJECT)
unregistersymbol(food)
unregistersymbol(timber)
unregistersymbol(wealth)
unregistersymbol(knowledge)
dealloc(newmem)
dealloc(food)
dealloc(timber)
dealloc(wealth)
dealloc(knowledge)
dealloc(stone)
dealloc(oil)
{
// ORIGINAL CODE - INJECTION POINT: "riseofnations.exe"+97DF45
"riseofnations.exe"+97DF20: 89 04 0E - mov [esi+ecx],eax
"riseofnations.exe"+97DF23: 8B 8F B8 6E 00 00 - mov ecx,[edi+00006EB8]
"riseofnations.exe"+97DF29: 8B 04 0E - mov eax,[esi+ecx]
"riseofnations.exe"+97DF2C: 35 21 34 00 00 - xor eax,00003421
"riseofnations.exe"+97DF31: 3B C2 - cmp eax,edx
"riseofnations.exe"+97DF33: 7D DB - jnl riseofnations.exe+97DF10
"riseofnations.exe"+97DF35: 8B 75 F0 - mov esi,[ebp-10]
"riseofnations.exe"+97DF38: 89 5D EC - mov [ebp-14],ebx
"riseofnations.exe"+97DF3B: 8B 5D E8 - mov ebx,[ebp-18]
"riseofnations.exe"+97DF3E: 69 47 08 EC 6E 00 00 - imul eax,[edi+08],00006EEC
// ---------- INJECTING HERE ----------
"riseofnations.exe"+97DF45: 8B 80 B8 7A 35 01 - mov eax,[eax+riseofnations.exe+1327AB8]
// ---------- DONE INJECTING ----------
"riseofnations.exe"+97DF4B: 8D 0C 98 - lea ecx,[eax+ebx*4]
"riseofnations.exe"+97DF4E: 8B 01 - mov eax,[ecx]
"riseofnations.exe"+97DF50: 35 21 82 00 00 - xor eax,00008221
"riseofnations.exe"+97DF55: 03 45 EC - add eax,[ebp-14]
"riseofnations.exe"+97DF58: A3 0C 82 1C 01 - mov [riseofnations.exe+119820C],eax
"riseofnations.exe"+97DF5D: 35 21 82 00 00 - xor eax,00008221
"riseofnations.exe"+97DF62: 89 01 - mov [ecx],eax
"riseofnations.exe"+97DF64: 8B 45 EC - mov eax,[ebp-14]
"riseofnations.exe"+97DF67: 01 84 9F 74 08 00 00 - add [edi+ebx*4+00000874],eax
"riseofnations.exe"+97DF6E: 69 47 08 EC 6E 00 00 - imul eax,[edi+08],00006EEC
}
16
"Food"
4 Bytes
food
Set Value
17
65
100000
0
21
"Timber"
4 Bytes
timber
Set Value
17
65
100000
0
22
"Wealth"
4 Bytes
wealth
Set Value
17
65
100000
0
31
"Stone"
4 Bytes
stone
Set Value
17
65
100000
0
30
"Knowledge"
4 Bytes
knowledge
Set Value
17
65
100000
0
32
"Oil"
4 Bytes
oil
Set Value
17
65
100000
0
Info about this table: