Code: Select all
[ENABLE]
aobscanmodule(get_ManagerBattle,GameAssembly.dll,F3 0F 11 87 * 02 00 00 72)
aobscanmodule(get_SaveData,GameAssembly.dll,FF 81 F8 00 00 00 80)
aobscanmodule(get_MapManager,GameAssembly.dll,F3 0F 10 B3 E8 01 00 00 33)
aobscanmodule(get_Player,GameAssembly.dll,48 8B 8B 88 00 00 00 48 85 C9 74 0C 33)
aobscanmodule(get_STChange,GameAssembly.dll,41 0F 11 46 5C 8B 40 10 41 89 46 6C 48 8B 47)
aobscanmodule(get_HPChange,GameAssembly.dll,0F 11 43 34 8B 40 10 89 43 44 48 8B 5E 10)
aobscanmodule(get_AIBotProcessDecision,GameAssembly.dll,CC CC CC 40 55 57 48 8D 6C 24 B1 48 81 EC 98)
aobscanmodule(get_ComputeExperienceReceived,GameAssembly.dll,5F E9 * * * 00 CC CC CC CC CC CC CC CC CC CC CC 40 55 53 56 57)
aobscanmodule(get_AIBotMyCurrentUnit,GameAssembly.dll,E8 * * * * CC E8 * * * * CC CC CC CC CC CC CC 40 53 48 83 EC 20 80 3D * * * * 00 48 8B D9 7512 8B 0D * * * * E8 * * * * C6 05 * * * * 01 48 8B 43 10 48 85 C0 74 3B)
registersymbol(get_AIBotMyCurrentUnit)
alloc(newmem,$200,"GameAssembly.dll"+23F1B5)
label(code)
label(return)
label(STChange)
label(STChangeRet)
label(HPChange)
label(HPChangeRet)
label(MapManager)
label(MapManagerRet)
label(SaveData)
label(SaveDataRet)
label(Player)
label(PlayerRet)
label(AIBotProcessDecision)
label(AIBotProcessDecisionRet)
label(ComputeExperienceReceived)
label(ComputeExperienceReceivedRet)
label(EXPMult)
label(get_ManagerBattleSave)
alloc(ManagerBattle,8)
registersymbol(ManagerBattle)
alloc(_MapManager,8)
registersymbol(_MapManager)
alloc(_SaveData,8)
registersymbol(_Player)
alloc(_Player,8)
alloc(currentEnemy,8)
registersymbol(currentEnemy)
registersymbol(_SaveData)
alloc(SaveDataInfo,100)
registersymbol(SaveDataInfo)
alloc(InfiniteHP,1)
alloc(InfiniteST,1)
alloc(OneHitKill,1)
registersymbol(InfiniteHP)
registersymbol(InfiniteST)
registersymbol(OneHitKill)
registersymbol(expmult)
registersymbol(get_ManagerBattleSave)
newmem:
get_ManagerBattleSave:
readMem(get_ManagerBattle,8)
code:
mov [ManagerBattle],rdi
reassemble(get_ManagerBattle)
jmp return
STChange:
cmp byte ptr [InfiniteST],01
jne @f
cmp [currentEnemy],r14
je @f
movups xmm0,[r14+70]
@@:
movups [r14+5C],xmm0
jmp STChangeRet
HPChange:
cmp byte ptr [InfiniteHP],01
jne @f
cmp [currentEnemy],rbx
je @f
movups xmm0,[rbx+48]
jmp HPChangeExit
@@:
cmp byte ptr [OneHitKill],01
jne HPChangeExit
xorps xmm0,xmm0
HPChangeExit:
movups [rbx+34],xmm0
mov eax,[rax+10]
jmp HPChangeRet
MapManager:
mov [_MapManager],rbx
movss xmm6,[rbx+000001E8]
jmp MapManagerRet
SaveData:
mov [_SaveData],rcx
inc [rcx+000000F8]
cmp [SaveDataInfo],0
je SaveDataRet
push rax
push rsi
push rdi
mov rdi,SaveDataInfo
cmp [SaveDataInfo],2
je @f
mov rax,[rcx+A8]
mov esi,[rax+14]
xor esi,[rax+10]
mov [rdi+4],esi
mov esi,[rax+28]
xor esi,[rax+24]
mov [rdi+8],esi
mov esi,[rax+3C]
xor esi,[rax+38]
mov [rdi+C],esi
mov [SaveDataInfo],0
pop rsi
pop rax
pop rdi
jmp SaveDataRet
@@:
mov rax,[rcx+A8]
mov esi,[rdi+4]
xor esi,[rax+14]
mov [rax+10],esi
mov esi,[rdi+8]
xor esi,[rax+28]
mov [rax+24],esi
mov esi,[rdi+C]
xor esi,[rax+3C]
mov [rax+38],esi
mov [SaveDataInfo],0
pop rsi
pop rax
pop rdi
jmp SaveDataRet
Player:
cmp [rbx+18],0
jne @f
mov [_Player],rbx
@@:
mov rcx,[rbx+00000088]
jmp PlayerRet
AIBotProcessDecision:
push rax
push rbx
push rcx
push rdx
push rsi
push rdi
push r8
push r9
call get_AIBotMyCurrentUnit+12
mov [currentEnemy],rax
pop r9
pop r8
pop rdi
pop rsi
pop rdx
pop rcx
pop rbx
pop rax
push rbp
push rdi
lea rbp,[rsp-4F]
jmp AIBotProcessDecisionRet
ComputeExperienceReceived:
imul rdx,[EXPMult]
push rbp
push rbx
push rsi
push rdi
jmp ComputeExperienceReceivedRet
EXPMult:
dd 1
get_ManagerBattle:
jmp code
nop 3
return:
registersymbol(get_ManagerBattle)
get_STChange:
jmp STChange
STChangeRet:
registersymbol(get_STChange)
get_HPChange:
jmp HPChange
nop 2
HPChangeRet:
registersymbol(get_HPChange)
get_MapManager:
jmp MapManager
nop 3
MapManagerRet:
registersymbol(get_MapManager)
get_SaveData:
jmp SaveData
nop
SaveDataRet:
registersymbol(get_SaveData)
get_Player:
jmp Player
nop 2
PlayerRet:
registersymbol(get_Player)
get_AIBotProcessDecision+03:
jmp AIBotProcessDecision
nop 3
AIBotProcessDecisionRet:
registersymbol(get_AIBotProcessDecision)
get_ComputeExperienceReceived+11:
jmp ComputeExperienceReceived
ComputeExperienceReceivedRet:
registersymbol(get_ComputeExperienceReceived)
[DISABLE]
get_ManagerBattle:
readMem(get_ManagerBattleSave,8)
get_STChange:
db 41 0F 11 46 5C
get_HPChange:
db 0F 11 43 34 8B 40 10
get_MapManager:
db F3 0F 10 B3 E8 01 00 00
get_SaveData:
db FF 81 F8 00 00 00
get_Player:
db 48 8B 8B 88 00 00 00
get_AIBotProcessDecision+03:
db 40 55 57 48 8D 6C 24 B1
get_ComputeExperienceReceived+11:
db 40 55 53 56 57
unregistersymbol(get_ComputeExperienceReceived)
unregistersymbol(get_AIBotProcessDecision)
unregistersymbol(get_Player)
unregistersymbol(get_SaveData)
unregistersymbol(get_MapManager)
unregistersymbol(get_HPChange)
unregistersymbol(get_STChange)
unregistersymbol(get_ManagerBattle)
unregistersymbol(get_ManagerBattleSave)
dealloc(newmem)