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 


Can someone help me with AoB injections for a RPG Maker game

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Discussions
View previous topic :: View next topic  
Author Message
qmhu
How do I cheat?
Reputation: 0

Joined: 02 Jun 2019
Posts: 1

PostPosted: Sun Jun 02, 2019 1:58 pm    Post subject: Can someone help me with AoB injections for a RPG Maker game Reply with quote

I am trying to add a script pointer to a RPGVX game through CE 6.8 but I am not familiar Assemblers.

I can do something simple with templates but this one has multiple lines and I am not sure what should I do. This is currently what I have. The address returned to res is not correct, for sure.


Code:

[ENABLE]
aobscanmodule(attrRes,RGSS301.dll,8B 04 B8 5F 5E) // should be unique
alloc(newmem,$1000)

label(code)
label(return)
alloc(res,4)
registersymbol(res)

newmem:
  mov [res],eax

code:
  mov eax,[eax+edi*4]
  pop edi
  pop esi
  jmp return

INJECT:
  jmp newmem
return:
registersymbol(attrRes)

[DISABLE]

INJECT:
  db 8B 04 B8 5F 5E

unregistersymbol(attrRes)
dealloc(newmem)

{
// ORIGINAL CODE - INJECTION POINT: "RGSS301.dll"+89B72

"RGSS301.dll"+89B59: C1 E8 0F              -  shr eax,0F
"RGSS301.dll"+89B5C: 83 E0 03              -  and eax,03
"RGSS301.dll"+89B5F: EB 03                 -  jmp RGSS301.dll+89B64
"RGSS301.dll"+89B61: 8B 42 08              -  mov eax,[edx+08]
"RGSS301.dll"+89B64: 3B C7                 -  cmp eax,edi
"RGSS301.dll"+89B66: 7E 10                 -  jle RGSS301.dll+89B78
"RGSS301.dll"+89B68: 8D 42 08              -  lea eax,[edx+08]
"RGSS301.dll"+89B6B: 85 F6                 -  test esi,esi
"RGSS301.dll"+89B6D: 75 03                 -  jne RGSS301.dll+89B72
"RGSS301.dll"+89B6F: 8B 42 10              -  mov eax,[edx+10]
// ---------- INJECTING HERE ----------
"RGSS301.dll"+89B72: 8B 04 B8              -  mov eax,[eax+edi*4]
"RGSS301.dll"+89B75: 5F                    -  pop edi
"RGSS301.dll"+89B76: 5E                    -  pop esi
// ---------- DONE INJECTING  ----------
"RGSS301.dll"+89B77: C3                    -  ret
"RGSS301.dll"+89B78: 5F                    -  pop edi
"RGSS301.dll"+89B79: B8 04 00 00 00        -  mov eax,00000004
"RGSS301.dll"+89B7E: 5E                    -  pop esi
"RGSS301.dll"+89B7F: C3                    -  ret
"RGSS301.dll"+89B80: 53                    -  push ebx
"RGSS301.dll"+89B81: 57                    -  push edi
"RGSS301.dll"+89B82: 8B 7C 24 0C           -  mov edi,[esp+0C]
"RGSS301.dll"+89B86: 8B 07                 -  mov eax,[edi]
"RGSS301.dll"+89B88: 8B D0                 -  mov edx,eax
}


Thanks all of you who would be of help.
Back to top
View user's profile Send private message
OldCheatEngineUser
Whateven rank
Reputation: 20

Joined: 01 Feb 2016
Posts: 1587

PostPosted: Sun Jun 02, 2019 8:54 pm    Post subject: Reply with quote

Code:
newmem:
lea esi,[eax++edi*4]
mov [res],esi

_________________
About Me;
I Use CE Since Version 1.X, And Still Learning How To Use It Well!
Jul 26, 2020
STN wrote:
i am a sweetheart.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Discussions 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