movw xmm0,[rax+20]
movsd xmm0,[rax+2C]
movsd xmm0,[rax+38]
right now I have an AoB scanning value to point to the PC's dress HPs starting with the head meaning for the combat values to start to update the player has to get smacked in the head but for my needs I want the pointers to generate regardless where the PC gets hit
so right now my AoBscan code looks like this
Code: Select all
{ Game : AkibaHD.exe
Version:
Date : 2021-08-21
Author : Algester
This script does blah blah blah
}
[ENABLE]
aobscanmodule(Combat,GameAssembly.dll,F2 0F 10 40 20 F2 0F 11 44 24 60 83) // should be unique
alloc(newmem2,$1000,Combat)
label(code2)
label(return2)
label(CombatAoB)
registersymbol(CombatAoB)
newmem2:
code2:
mov [CombatAoB],rax
movsd xmm0,[rax+20]
jmp return2
CombatAoB:
dq 0
Combat:
jmp newmem2
return2:
registersymbol(Combat)
[DISABLE]
Combat:
db F2 0F 10 40 20
unregistersymbol(Combat)
dealloc(newmem2)
{
// ORIGINAL CODE - INJECTION POINT: GameAssembly.dll+17AD17F
GameAssembly.dll+17AD153: F7 79 34 - idiv [rcx+34]
GameAssembly.dll+17AD156: EB 7F - jmp GameAssembly.dll+17AD1D7
GameAssembly.dll+17AD158: 48 8B 4B 18 - mov rcx,[rbx+18]
GameAssembly.dll+17AD15C: 48 85 C9 - test rcx,rcx
GameAssembly.dll+17AD15F: 0F 84 16 03 00 00 - je GameAssembly.dll+17AD47B
GameAssembly.dll+17AD165: 48 8B 81 C0 00 00 00 - mov rax,[rcx+000000C0]
GameAssembly.dll+17AD16C: 48 85 C0 - test rax,rax
GameAssembly.dll+17AD16F: 0F 84 00 03 00 00 - je GameAssembly.dll+17AD475
GameAssembly.dll+17AD175: 83 78 18 00 - cmp dword ptr [rax+18],00
GameAssembly.dll+17AD179: 0F 86 C2 02 00 00 - jbe GameAssembly.dll+17AD441
// ---------- INJECTING HERE ----------
GameAssembly.dll+17AD17F: F2 0F 10 40 20 - movsd xmm0,[rax+20]
// ---------- DONE INJECTING ----------
GameAssembly.dll+17AD184: F2 0F 11 44 24 60 - movsd [rsp+60],xmm0
GameAssembly.dll+17AD18A: 83 78 28 00 - cmp dword ptr [rax+28],00
GameAssembly.dll+17AD18E: 0F 84 5A 01 00 00 - je GameAssembly.dll+17AD2EE
GameAssembly.dll+17AD194: 48 85 C9 - test rcx,rcx
GameAssembly.dll+17AD197: 0F 84 D2 02 00 00 - je GameAssembly.dll+17AD46F
GameAssembly.dll+17AD19D: 33 D2 - xor edx,edx
GameAssembly.dll+17AD19F: E8 5C 0E 2C 00 - call AKBP.GameSystem.Character.CharacterParameter.GetLifeUp
GameAssembly.dll+17AD1A4: 48 8B 4B 18 - mov rcx,[rbx+18]
GameAssembly.dll+17AD1A8: 48 85 C9 - test rcx,rcx
GameAssembly.dll+17AD1AB: 0F 84 B8 02 00 00 - je GameAssembly.dll+17AD469
}
Code: Select all
{ Game : AkibaHD.exe
Version:
Date : 2021-08-21
Author : Algester
This script does blah blah blah
}
[ENABLE]
aobscanmodule(INJECT,GameAssembly.dll,F2 0F 10 40 2C F2 0F 11 44 24 28 48 85) // should be unique
alloc(newmem,$1000,INJECT)
label(code)
label(return)
newmem:
code:
movsd xmm0,[rax+2C]
jmp return
INJECT:
jmp newmem
return:
registersymbol(INJECT)
[DISABLE]
INJECT:
db F2 0F 10 40 2C
unregistersymbol(INJECT)
dealloc(newmem)
{
// ORIGINAL CODE - INJECTION POINT: GameAssembly.dll+17718FE
GameAssembly.dll+17718D2: 0F 86 17 01 00 00 - jbe GameAssembly.dll+17719EF
GameAssembly.dll+17718D8: 8B 44 24 2C - mov eax,[rsp+2C]
GameAssembly.dll+17718DC: 89 43 20 - mov [rbx+20],eax
GameAssembly.dll+17718DF: F6 C1 02 - test cl,02
GameAssembly.dll+17718E2: 75 3F - jne GameAssembly.dll+1771923
GameAssembly.dll+17718E4: 48 8B 87 C0 00 00 00 - mov rax,[rdi+000000C0]
GameAssembly.dll+17718EB: 48 85 C0 - test rax,rax
GameAssembly.dll+17718EE: 0F 84 51 01 00 00 - je GameAssembly.dll+1771A45
GameAssembly.dll+17718F4: 83 78 18 01 - cmp dword ptr [rax+18],01
GameAssembly.dll+17718F8: 0F 86 02 01 00 00 - jbe GameAssembly.dll+1771A00
// ---------- INJECTING HERE ----------
GameAssembly.dll+17718FE: F2 0F 10 40 2C - movsd xmm0,[rax+2C]
// ---------- DONE INJECTING ----------
GameAssembly.dll+1771903: F2 0F 11 44 24 28 - movsd [rsp+28],xmm0
GameAssembly.dll+1771909: 48 85 DB - test rbx,rbx
GameAssembly.dll+177190C: 0F 84 2D 01 00 00 - je GameAssembly.dll+1771A3F
GameAssembly.dll+1771912: 83 7B 18 01 - cmp dword ptr [rbx+18],01
GameAssembly.dll+1771916: 0F 86 01 01 00 00 - jbe GameAssembly.dll+1771A1D
GameAssembly.dll+177191C: 8B 44 24 2C - mov eax,[rsp+2C]
GameAssembly.dll+1771920: 89 43 24 - mov [rbx+24],eax
GameAssembly.dll+1771923: F6 C1 08 - test cl,08
GameAssembly.dll+1771926: 75 3F - jne GameAssembly.dll+1771967
GameAssembly.dll+1771928: 48 8B 87 C0 00 00 00 - mov rax,[rdi+000000C0]
}