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 


Conditions in Assembler

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

Joined: 19 Sep 2006
Posts: 95

PostPosted: Tue Sep 26, 2006 4:25 pm    Post subject: Conditions in Assembler Reply with quote

Hello world...
I wanted to know, if it's possible to make in ASM a code like this :

Code:
If [edi+18] > 0
Then Kill(MapleStory.exe);


Anyone got ideas ? :S
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 474

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

PostPosted: Wed Sep 27, 2006 1:40 am    Post subject: Reply with quote

cmp [edi+18]
jna normal
push maplestoryprocessid
call TerminateProcess
normal:
...

_________________
Tools give you results. Knowledge gives you control.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
SlashBlow
Advanced Cheater
Reputation: 0

Joined: 19 Sep 2006
Posts: 95

PostPosted: Wed Sep 27, 2006 8:51 am    Post subject: Reply with quote

Code:
[ENABLE]
registersymbol(AutoDC)
alloc(AutoDC, 1024)

AutoDC:
mov edi, [760640]
cmp [edi+18], 00
jna normal
push maplestoryprocessid
call TerminateProcess
normal:
...

[DISABLE]
unregistersymbol(AutoDC)
dealloc(AutoDC)


"Error in line 7 (jna normal) :This instrcution can't be compiled."

Hum weird :S Any ideas ?

===

EDIT :

Code:
[ENABLE]
registersymbol(AutoDC)
registersymbol(Normal)
alloc(AutoDC, 1024)
alloc(Normal, 1024)

Normal:

AutoDC:
mov edi, [760640]
cmp [edi+18], 00
jna Normal
push maplestoryprocessid
call TerminateProcess

[DISABLE]
unregistersymbol(AutoDC)
unregistersymbol(Normal)
dealloc(AutoDC)
dealloc(Normal)


"Error in line 12 (push maplestoryprocessid) :This instrcution can't be compiled."

Eww, I don't see how to fix this now...
Back to top
View user's profile Send private message
xentar
Grandmaster Cheater
Reputation: 0

Joined: 08 Jul 2006
Posts: 708
Location: USA, Mass

PostPosted: Wed Sep 27, 2006 11:38 am    Post subject: Reply with quote

the maplestoryid is just a place holder for whatever the process id for MS. You can register this id and add it to the table and everytime after you succesfully attach, find out what this id is and fill the value. Or better yet, DB add a register global symbols for currentProcessId we can use for the current attached process.

Another way is causing MS to crash like

mov eax, [0]

I guess it is the same as what you try to do.
Back to top
View user's profile Send private message
SlashBlow
Advanced Cheater
Reputation: 0

Joined: 19 Sep 2006
Posts: 95

PostPosted: Wed Sep 27, 2006 3:43 pm    Post subject: Reply with quote

Thanks xentar for your help Smile
By the way, what's the global symbol for the currentProcessID that you are talking about ?

(+rep for you)
Back to top
View user's profile Send private message
xentar
Grandmaster Cheater
Reputation: 0

Joined: 08 Jul 2006
Posts: 708
Location: USA, Mass

PostPosted: Thu Sep 28, 2006 1:18 pm    Post subject: Reply with quote

I don't think there is one, that is why I am hinting DB to have it in CE. It is a good to have feature.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 474

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

PostPosted: Fri Sep 29, 2006 12:58 am    Post subject: Reply with quote

asm:
call GetCurrentProcessId

after that eax contains the processid

_________________
Tools give you results. Knowledge gives you control.

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