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 


Error message with autoAssembleCheck

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
TheyCallMeTim13
Wiki Contributor
Reputation: 50

Joined: 24 Feb 2017
Posts: 976
Location: Pluto

PostPosted: Tue Jan 16, 2018 12:25 am    Post subject: Error message with autoAssembleCheck Reply with quote

Running the following code in the Lua Engine form I get the following out put.

Code:
local str = [===[aobScanModule(aobSupresserHook, mgsvtpp.exe, 49xxxxxx48xxxxxx48) // AOB trimmed
define(injSupresserHook, aobSupresserHook+1D)
registerSymbol(injSupresserHook)
alloc(memSupresserHook, 0x400, injSupresserHook)
label(ptrSupresserHook)
registerSymbol(ptrSupresserHook)
label(n_code)
label(o_code)
label(exit)
label(return)
// label(returnJmp)
memSupresserHook:
   ptrSupresserHook:
      dq 0
   n_code:
      mov [ptrSupresserHook],rbp
   o_code:
      test byte ptr [rbp+05],01
      // je returnJmp
      je injSupresserHook+10
   exit:
      jmp return

injSupresserHook:
   jmp n_code
   nop
   return:
// injSupresserHook+10:
//    returnJmp:
]===]

print(autoAssembleCheck(str))



Quote:
Error in line 20 (je 00000000+1D+10) :This instruction can't be compiled



But In running this code I get no error:
Code:
local str = [===[aobScanModule(aobSupresserHook, mgsvtpp.exe, 49xxxxxx48xxxxxx48) // AOB trimmed
define(injSupresserHook, aobSupresserHook+1D)
registerSymbol(injSupresserHook)
alloc(memSupresserHook, 0x400, injSupresserHook)
label(ptrSupresserHook)
registerSymbol(ptrSupresserHook)
label(n_code)
label(o_code)
label(exit)
label(return)
label(returnJmp)
memSupresserHook:
   ptrSupresserHook:
      dq 0
   n_code:
      mov [ptrSupresserHook],rbp
   o_code:
      test byte ptr [rbp+05],01
      je returnJmp
      //je injSupresserHook+10
   exit:
      jmp return

injSupresserHook:
   jmp n_code
   nop
   return:
injSupresserHook+10:
   returnJmp:
]===]

print(autoAssembleCheck(str))


And if I change "define(injSupresserHook, aobSupresserHook+1D)" to "define(injSupresserHook, aobSupresserHook)" then the first one checks ok as well, and both of these check ok with the Auto Assembler form even injecting.

So is this a bug or am I missing some thing?

_________________
Back to top
View user's profile Send private message Visit poster's website
Dark Byte
Site Admin
Reputation: 457

Joined: 09 May 2003
Posts: 25262
Location: The netherlands

PostPosted: Tue Jan 16, 2018 2:31 am    Post subject: Reply with quote

i'm not sure but i think define's don't work with aobscan or other defines
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
TheyCallMeTim13
Wiki Contributor
Reputation: 50

Joined: 24 Feb 2017
Posts: 976
Location: Pluto

PostPosted: Tue Jan 16, 2018 3:23 am    Post subject: Reply with quote

Well like I said, it all works fine in the Auto Assembler form. But I have not tried autoAsseble, and my work around to using autoAssembleCheck was using some thing like the code below, but now I have found a better spot to hook a base for the value's structure any why (just a quick address hook script).

Code:
local str = [===[aobScanModule(aobSupresserHook, mgsvtpp.exe, 49xxxxxx48xxxxxx48) // AOB trimmed
define(injSupresserHook, aobSupresserHook+1D)
registerSymbol(injSupresserHook)
define(injSupresserHookReturn, injSupresserHook+10)
alloc(memSupresserHook, 0x400, injSupresserHook)
label(ptrSupresserHook)
registerSymbol(ptrSupresserHook)
label(n_code)
label(o_code)
label(exit)
label(return)
label(returnJmp)
memSupresserHook:
   ptrSupresserHook:
      dq 0
   n_code:
      mov [ptrSupresserHook],rbp
   o_code:
      test byte ptr [rbp+05],01
      je returnJmp
      //je injSupresserHook+10
   exit:
      jmp return

injSupresserHook:
   jmp n_code
   nop
   return:
injSupresserHookReturn:
   returnJmp:
]===]

print(autoAssembleCheck(str))

_________________
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 -> 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