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't AOB scan over a DLL.

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

Joined: 27 Jan 2025
Posts: 1

PostPosted: Mon Jan 27, 2025 5:08 am    Post subject: Can't AOB scan over a DLL. Reply with quote

I would like to perform a CE code injection on a line of assembly code from a game as indicated below.
Code:
VCRUNTIME140.memmove+108 - 44 88 40 04           - mov [rax+04],r8b
VCRUNTIME140.memmove+10C - C3                    - ret
VCRUNTIME140.memmove+10D - 48 8B 0A              - mov rcx,[rdx]

VCRUNTIME140.memmove+110 - 48 89 08              - mov [rax],rcx <<< This line.

VCRUNTIME140.memmove+113 - C3                    - ret
VCRUNTIME140.memmove+114 - 0FB6 0A               - movzx ecx,byte ptr [rdx]
VCRUNTIME140.memmove+117 - 88 08                 - mov [rax],cl
VCRUNTIME140.memmove+119 - C3                    - ret


To test if a plain AOB injection works, I have the following code below
Code:
[ENABLE]


aobscanmodule(INJECT,VCRUNTIME140.dll,ERROR: Could not find unique AOB, tried code "48 89 08 C3 0F B6 0A") // should be unique
alloc(newmem,$1000,INJECT)

label(code)
label(return)

newmem:

code:
  mov [rax],rcx
  ret
  movzx ecx,byte ptr [rdx]
  jmp return

INJECT:
  jmp newmem
  nop 2
return:
registersymbol(INJECT)

[DISABLE]

INJECT:
  db 48 89 08 C3 0F B6 0A 88 08 C3 8B 0A 89 08 C3

unregistersymbol(INJECT)
dealloc(newmem)

Unfortunately the code gives me the error
Code:

Error while scanning for AOB's : INJECT

Error: Not all results found

Meanwhile if I input this array of bytes into the cheat engine main window as shown below, we can see that there are many matches in the same file. I am not sure what is going on. Does anyone know why the AOB scan code can't find a set of bytes that the main cheat engine window can?



Screenshot 2025-01-27 190422.png
 Description:
 Filesize:  114.85 KB
 Viewed:  610 Time(s)

Screenshot 2025-01-27 190422.png


Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 149

Joined: 06 Jul 2014
Posts: 4619

PostPosted: Mon Jan 27, 2025 12:05 pm    Post subject: Reply with quote

Quote:
Code:
...ERROR: Could not find unique AOB, tried code "48 89 08 C3 0F B6 0A") // should be unique
This is self-evident

You really shouldn't be injecting at memmove anyway. It's such a generic routine that there's probably many other addresses the instruction also accesses. You'd have to filter those out (CE tutorial step 9).

_________________
I don't know where I'm going, but I'll figure it out when I get there.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking 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