KalasDev Master Cheater Reputation: 1
Joined: 29 May 2016 Posts: 311
|
Posted: Mon Oct 17, 2016 11:52 am Post subject: Could it work? |
|
|
Code: | { Game : mafia3.exe
Version:
Date : 2016-10-17
Author : Kalas
This script does blah blah blah
}
[ENABLE]
aobscanmodule(aobElectornic,mafia3.exe,11 49 18 C3 90 55) // should be unique
alloc(newmem,$1000,"mafia3.exe"+1141812)
label(code)
label(return)
newmem:
code:
mov ecx,#99
adc [rcx+18],ecx
ret
nop
jmp return
aobElectornic:
jmp newmem
return:
registersymbol(aobElectornic)
[DISABLE]
aobElectornic:
db 11 49 18 C3 90
unregistersymbol(aobElectornic)
dealloc(newmem)
{
// ORIGINAL CODE - INJECTION POINT: "mafia3.exe"+1141812
"mafia3.exe"+11417F4: 48 83 C4 28 - add rsp,28
"mafia3.exe"+11417F8: 48 FF 60 10 - jmp qword ptr [rax+10]
"mafia3.exe"+11417FC: 48 83 C4 28 - add rsp,28
"mafia3.exe"+1141800: C3 - ret
"mafia3.exe"+1141801: 90 - nop
"mafia3.exe"+1141802: FF 15 63 FA 68 03 - call qword ptr [mafia3.exe+47D126B]
"mafia3.exe"+1141808: E9 C2 73 74 45 - jmp 7FF7CE428BCF
"mafia3.exe"+114180D: 10 26 - adc [rsi],ah
"mafia3.exe"+114180F: BF F3 - db BF F3 // SHORTENED TO HIT INJECTION FROM: mov edi,49110FF3
"mafia3.exe"+1141811: 0F 11 49 - db 0F 11 49 // SHORTENED TO HIT INJECTION FROM: movups [rcx+18],xmm1
// ---------- INJECTING HERE ----------
"mafia3.exe"+1141814: 18 C3 - sbb bl,al
"mafia3.exe"+1141816: 90 - nop
// ---------- DONE INJECTING ----------
"mafia3.exe"+1141817: 55 - push rbp
"mafia3.exe"+1141818: 0F 89 4B 88 7C 72 - jns 7FF7FB4AA069
"mafia3.exe"+114181E: BA CB 48 83 EC - mov edx,EC8348CB
"mafia3.exe"+1141823: 28 48 83 - sub [rax-7D],cl
"mafia3.exe"+1141826: B9 90 00 00 00 - mov ecx,00000090
"mafia3.exe"+114182B: 00 74 24 48 - add [rsp+48],dh
"mafia3.exe"+114182F: 8B 89 90 00 00 00 - mov ecx,[rcx+00000090]
"mafia3.exe"+1141835: F3 0F 11 4C 24 30 - movss [rsp+30],xmm1
"mafia3.exe"+114183B: 48 85 C9 - test rcx,rcx
"mafia3.exe"+114183E: 75 07 - jne mafia3.exe+1141847
} |
So basically:
adc [rcx+18],ecx
I wanted to store 99 in ecx so iI added: mov ecx,#99.
Can I do this with adc? will it crash the game?
|
|