slrrsrv wrote: ↑Thu Feb 29, 2024 6:12 pm
Quick question. What's the use of "Add 5 resources"
Feel free to take a look. Its a part of gir489's table which is the top of the very first page of this board and lucky for us he keeps it updated!
// Game Executable : helldivers2.exe
// Author : gir489
// Executable Version: 1.8.16570.0
// MD5 Signature : 4BBCD22B016AF1F87FE9F374EDBA78CF
// EXE Compile Date : February 16, 2024 11:03 AM
// Script Date : February 27, 2024 09:19 PM
[ENABLE]
aobscanmodule(aob_Add5Resources,game.dll,45 01 B4 8A EC 17 00 00)
registersymbol(aob_Add5Resources)
alloc(newmem_Add5Resources,1024)
label(return_Add5Resources)
newmem_Add5Resources:
add [r10+rcx*4+17EC],5
jmp return_Add5Resources
aob_Add5Resources:
jmp newmem_Add5Resources
nop 3
return_Add5Resources:
[DISABLE]
aob_Add5Resources:
db 45 01 B4 8A EC 17 00 00
unregistersymbol(aob_Add5Resources)
dealloc(newmem_Add5Resources)
{
// ORIGINAL CODE - INJECTION POINT: game.dll+52875C
game.dll+528720: 3B CF - cmp ecx,edi
game.dll+528722: 74 0E - je game.dll+528732
game.dll+528724: 3B CA - cmp ecx,edx
game.dll+528726: 74 0A - je game.dll+528732
game.dll+528728: 41 FF C0 - inc r8d
game.dll+52872B: 45 3B C1 - cmp r8d,r9d
game.dll+52872E: 72 E0 - jb game.dll+528710
game.dll+528730: 33 C0 - xor eax,eax
game.dll+528732: 48 8B 7C 24 40 - mov rdi,[rsp+40]
game.dll+528737: 48 8B 74 24 38 - mov rsi,[rsp+38]
game.dll+52873C: 48 8B 5C 24 30 - mov rbx,[rsp+30]
game.dll+528741: 39 10 - cmp [rax],edx
game.dll+528743: 75 05 - jne game.dll+52874A
game.dll+528745: 8B 40 04 - mov eax,[rax+04]
game.dll+528748: EB 05 - jmp game.dll+52874F
game.dll+52874A: B8 FF FF FF FF - mov eax,FFFFFFFF
game.dll+52874F: 8B D0 - mov edx,eax
game.dll+528751: 8D 4D FF - lea ecx,[rbp-01]
game.dll+528754: 48 8D 04 92 - lea rax,[rdx+rdx*4]
game.dll+528758: 48 8D 0C 41 - lea rcx,[rcx+rax*2]
// ---------- INJECTING HERE ----------
game.dll+52875C: 45 01 B4 8A EC 17 00 00 - add [r10+rcx*4+000017EC],r14d
// ---------- DONE INJECTING ----------
game.dll+528764: 48 8D 82 99 00 00 00 - lea rax,[rdx+00000099]
game.dll+52876B: 48 8D 04 80 - lea rax,[rax+rax*4]
game.dll+52876F: 4D 8D 04 C2 - lea r8,[r10+rax*8]
game.dll+528773: 49 8B 84 D2 28 08 00 00 - mov rax,[r10+rdx*8+00000828]
game.dll+52877B: BA 94 4C 74 92 - mov edx,92744C94
game.dll+528780: 8B 48 10 - mov ecx,[rax+10]
game.dll+528783: E8 38 EE 42 00 - call game.dll+9575C0
game.dll+528788: 48 8B 6C 24 48 - mov rbp,[rsp+48]
game.dll+52878D: 48 83 C4 20 - add rsp,20
game.dll+528791: 41 5E - pop r14
game.dll+528793: C3 - ret
game.dll+528794: CC - int 3
game.dll+528795: CC - int 3
game.dll+528796: CC - int 3
game.dll+528797: CC - int 3
game.dll+528798: CC - int 3
game.dll+528799: CC - int 3
game.dll+52879A: CC - int 3
game.dll+52879B: CC - int 3
game.dll+52879C: CC - int 3
}