Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Could it work?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
KalasDev
Master Cheater
Reputation: 1

Joined: 29 May 2016
Posts: 311

PostPosted: Mon Oct 17, 2016 11:52 am    Post subject: Could it work? Reply with quote

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?
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 198

Joined: 25 Jan 2006
Posts: 8517
Location: 127.0.0.1

PostPosted: Mon Oct 17, 2016 12:18 pm    Post subject: Reply with quote

If you want to have ECX equal 99 by force, then add your mov line after the original adc instruction to fully overwrite ECX.
_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
KalasDev
Master Cheater
Reputation: 1

Joined: 29 May 2016
Posts: 311

PostPosted: Mon Oct 17, 2016 12:23 pm    Post subject: Reply with quote

Ohh I see thank you!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites