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 


Cheat Engine 6.3 auto assembler fails

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
Corruptor
Advanced Cheater
Reputation: 3

Joined: 10 Aug 2011
Posts: 82

PostPosted: Tue Jul 09, 2013 8:21 am    Post subject: Cheat Engine 6.3 auto assembler fails Reply with quote

I have this happy little script that ive been using for quite a while now:
Code:
[ENABLE]
alloc(newmem,2048) //2kb should be enough
label(str_windowed)
label(returnhere)


newmem:
//no need to push registers at this point (call incoming)
//str at esp+5
lea eax, [esp+5]
push str_windowed
push 104
push eax
call msvcr80.strcat_s
add esp, C
//original code
lea edx,[esp+04]
lea ecx,[esp+00000108]
jmp returnhere

str_windowed:
db ' -windowed'
db 00

"worldedit.exe"+BE835:
jmp newmem
nop
nop
nop
nop
nop
nop
returnhere:
 
[DISABLE]
dealloc(newmem)
"worldedit.exe"+BE835:
lea edx,[esp+04]
lea ecx,[esp+00000108]
//Alt: db 8D 54 24 04 8D 8C 24 08 01 00 00


Its working pefectly fine in cheat engine 6.2. However, 6.3 wont let me execute it. when i try to resave it, it tells me that the line
Code:
call msvcr80.strcat_s

can not be compiled. I had the same bug with CETack, but this time i have no c++ wrapper to work around this issue. tbh, as >50% of my cheat tables dont work anymore now, 6.3 is rather useless for me now.

Any ideas / suggestions / confirmations / fixes?
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

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

PostPosted: Tue Jul 09, 2013 8:24 am    Post subject: Reply with quote

Check the symbollist and search for strcat_s and check the symbolname it has now
_________________
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
Corruptor
Advanced Cheater
Reputation: 3

Joined: 10 Aug 2011
Posts: 82

PostPosted: Tue Jul 09, 2013 9:44 am    Post subject: Reply with quote

I scrolled a bit through the dll as its shown in the memory view. Turns out that every single function i found (including malloc and free) has a leading under score in its name. It actually works if i write msvcr80._strcat_s.
However, that seems to only apply to some librarys. Msvcr80 and ntdll have leading underscores everywhere, while user32 and kernel32 don't. I don't see the difference between those dlls either to actually guess by the name of it if it has leading underscores or not. Very confusing ._.'
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

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

PostPosted: Tue Jul 09, 2013 9:53 am    Post subject: Reply with quote

hmm weird, that means the 32-bit msvcr80.dll is inside the system32 folder of windows instead of the wow64 system folder
I'll see if I can add a better detector for next version

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