SunBeam wrote: ↑Sun Feb 17, 2019 9:19 am
Tim's in da house! Awesome, let me know if you want those scripts merged in. Cheers!
Yeah, that's why I'm just posting them here. I'm making a table but wanted to share what I found that hasn't been covered already.
Question, is the encryption moving the addresses around?
I can't find anything but display values for the ammo. Even with just changed and unchanged, I get down to 3 addresses and their all display only. And I haven't had any luck tracing from the display values.
And here is one for instant action hold, strait from FC5.
EDIT: Well instant with a dely, set with "fltActionHoldHook".
Code: Select all
{
Process : FarCry5.exe - (x64)
Module : FC_m64.dll
Game Title : FarCry5
Game Version : 1.0.0.0
CE Version : 6.7
Script Version : 0.0.1
Date : 01/11/19
Author : ShyTwig16
Name : ActionHoldHook
Action Hold Hook
}
{$STRICT}
define(address, FC_m64.FCE_Editor_Plugins_Import+11F6C0)
define(bytes, F3 0F 11 44 9F 08)
////
//// ------------------------------ ENABLE ------------------------------
[ENABLE]
aobScanModule(aobActionHoldHook, FC_m64.dll, 0F2Fxx73xxF3xxxxxxxxF3xxxxxxxxxxEBxx41)
define(injActionHoldHook, aobActionHoldHook+A)
assert(injActionHoldHook, bytes)
registerSymbol(injActionHoldHook)
alloc(memActionHoldHook, 0x400, injActionHoldHook)
label(fltActionHoldHook)
registerSymbol(fltActionHoldHook)
label(ptrActionHoldHook)
registerSymbol(ptrActionHoldHook)
label(n_code)
label(o_code)
label(exit)
label(return)
memActionHoldHook:
fltActionHoldHook:
dd (float)0.075
align 10
ptrActionHoldHook:
dq 0
align 10 CC
n_code:
pushfq
cmp r10,400
jne o_code
comiss xmm0,[fltActionHoldHook]
jb o_code
push rax
lea rax,[rdi+rbx*4+08]
mov [ptrActionHoldHook],rax
pop rax
movss [rdi+rbx*4+08],xmm1
jmp exit
o_code:
movss [rdi+rbx*4+08],xmm0
exit:
popfq
jmp return
////
//// ---------- Injection Point ----------
injActionHoldHook:
jmp n_code
nop
return:
////
//// ------------------------------ DISABLE ------------------------------
[DISABLE]
////
//// ---------- Injection Point ----------
injActionHoldHook:
db bytes
unregisterSymbol(injActionHoldHook)
unregisterSymbol(fltActionHoldHook)
unregisterSymbol(ptrActionHoldHook)
dealloc(memActionHoldHook)
{
//// Injection Point: FC_m64.FCE_Editor_Plugins_Import+11F6C0 - 000007FEB8D41B90
//// AOB address: 000007FEB8D41B86 - FC_m64.FCE_Editor_Plugins_Import+11F6B6
//// Process: FarCry5.exe - 000000013F0C0000
//// Module: FC_m64.dll - 000007FEB7FB0000
//// Module Size: 000000000EE32000
FC_m64.FCE_Editor_Plugins_Import+11F666: E8 354253FF - call 7FEB8275D70
FC_m64.FCE_Editor_Plugins_Import+11F66B: 45 33 C9 - xor r9d,r9d
FC_m64.FCE_Editor_Plugins_Import+11F66E: 84 C0 - test al,al
FC_m64.FCE_Editor_Plugins_Import+11F670: 0F84 1D010000 - je 7FEB8D41C63
FC_m64.FCE_Editor_Plugins_Import+11F676: 41 8B F1 - mov esi,r9d
FC_m64.FCE_Editor_Plugins_Import+11F679: 45 39 4D 70 - cmp [r13+70],r9d
FC_m64.FCE_Editor_Plugins_Import+11F67D: 0F86 DEF9FFFF - jbe 7FEB8D41531
FC_m64.FCE_Editor_Plugins_Import+11F683: 0F1F 40 00 - nop [rax+00]
FC_m64.FCE_Editor_Plugins_Import+11F687: 66 0F1F 84 00 00000000 - nop [rax+rax+00000000]
FC_m64.FCE_Editor_Plugins_Import+11F690: F3 41 0F10 4D 10 - movss xmm1,[r13+10]
FC_m64.FCE_Editor_Plugins_Import+11F696: 41 0F2F C9 - comiss xmm1,xmm9
FC_m64.FCE_Editor_Plugins_Import+11F69A: 49 8B 7D 60 - mov rdi,[r13+60]
FC_m64.FCE_Editor_Plugins_Import+11F69E: 8B C6 - mov eax,esi
FC_m64.FCE_Editor_Plugins_Import+11F6A0: 48 8D 1C C0 - lea rbx,[rax+rax*8]
FC_m64.FCE_Editor_Plugins_Import+11F6A4: 77 0A - ja 7FEB8D41B80
FC_m64.FCE_Editor_Plugins_Import+11F6A6: F3 41 0F10 8C 24 40160000 - movss xmm1,[r12+00001640]
FC_m64.FCE_Editor_Plugins_Import+11F6B0: F3 0F10 44 9F 08 - movss xmm0,[rdi+rbx*4+08]
FC_m64.FCE_Editor_Plugins_Import+11F6B6: 0F2F C1 - comiss xmm0,xmm1 <<<--- AOB Starts Here
FC_m64.FCE_Editor_Plugins_Import+11F6B9: 73 0D - jae 7FEB8D41B98
FC_m64.FCE_Editor_Plugins_Import+11F6BB: F3 41 0F58 C4 - addss xmm0,xmm12
//// INJECTING START ----------------------------------------------------------
FC_m64.FCE_Editor_Plugins_Import+11F6C0: F3 0F11 44 9F 08 - movss [rdi+rbx*4+08],xmm0
//// INJECTING END ----------------------------------------------------------
FC_m64.FCE_Editor_Plugins_Import+11F6C6: EB 17 - jmp 7FEB8D41BAF
FC_m64.FCE_Editor_Plugins_Import+11F6C8: 41 83 7D 00 03 - cmp dword ptr [r13+00],03
FC_m64.FCE_Editor_Plugins_Import+11F6CD: 75 10 - jne 7FEB8D41BAF
FC_m64.FCE_Editor_Plugins_Import+11F6CF: 41 0F28 C4 - movaps xmm0,xmm12
FC_m64.FCE_Editor_Plugins_Import+11F6D3: F3 0F58 44 9F 0C - addss xmm0,[rdi+rbx*4+0C]
FC_m64.FCE_Editor_Plugins_Import+11F6D9: F3 0F11 44 9F 0C - movss [rdi+rbx*4+0C],xmm0
FC_m64.FCE_Editor_Plugins_Import+11F6DF: F3 41 0F10 45 10 - movss xmm0,[r13+10]
FC_m64.FCE_Editor_Plugins_Import+11F6E5: 41 0F2F C1 - comiss xmm0,xmm9
FC_m64.FCE_Editor_Plugins_Import+11F6E9: 77 0A - ja 7FEB8D41BC5
FC_m64.FCE_Editor_Plugins_Import+11F6EB: F3 41 0F10 84 24 40160000 - movss xmm0,[r12+00001640]
FC_m64.FCE_Editor_Plugins_Import+11F6F5: 0F2F 44 9F 08 - comiss xmm0,[rdi+rbx*4+08]
FC_m64.FCE_Editor_Plugins_Import+11F6FA: 41 8B 4D 00 - mov ecx,[r13+00]
FC_m64.FCE_Editor_Plugins_Import+11F6FE: 0F96 C0 - setbe al
FC_m64.FCE_Editor_Plugins_Import+11F701: 83 F9 02 - cmp ecx,02
FC_m64.FCE_Editor_Plugins_Import+11F704: 75 08 - jne 7FEB8D41BDE
FC_m64.FCE_Editor_Plugins_Import+11F706: 84 C0 - test al,al
FC_m64.FCE_Editor_Plugins_Import+11F708: 74 04 - je 7FEB8D41BDE
FC_m64.FCE_Editor_Plugins_Import+11F70A: B2 01 - mov dl,01
FC_m64.FCE_Editor_Plugins_Import+11F70C: EB 02 - jmp 7FEB8D41BE0
FC_m64.FCE_Editor_Plugins_Import+11F70E: 32 D2 - xor dl,dl
//// Template: I2CEA_AOBFullInjection
//// Generated with: I2 Cheat Engine Auto Assembler Script Template Generator
//// Code Happy, Code Freely, Be Awesome.
}