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 


What does this scripts?(AA Code question)

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
sjl002
Master Cheater
Reputation: 0

Joined: 31 Aug 2013
Posts: 305

PostPosted: Sat Sep 19, 2015 5:42 am    Post subject: What does this scripts?(AA Code question) Reply with quote

In some Auto Assembly I see the scripts that making the questions in my mind, What does this scripts?
The first my question:
What does this script?
Code:
//Author: +METHOS

[ENABLE]
aobscan(AOB8,0F BF 41 5C C3)
alloc(newmem,2048)
label(returnhere)
label(originalcode)
label(friendly)
label(enemy)
registersymbol(AOB8)

newmem:
cmp [ecx+08],00020004
jne originalcode
push edi
mov edi,[ecx+20]
mov edi,[edi+A4]
mov edi,[edi+08]
mov edi,[edi+00]
cmp edi,69766943
pop edi
je friendly
push edi
mov edi,[ecx+20]
mov edi,[edi+A4]
mov edi,[edi+08]
mov edi,[edi+00]
cmp edi,61737341
pop edi
je friendly
push edi
mov edi,[ecx+20]
mov edi,[edi+A4]
mov edi,[edi+08]
mov edi,[edi+10]
cmp edi,61737341
pop edi
je enemy
push edi
mov edi,[ecx+20]
mov edi,[edi+A4]
mov edi,[edi+08]
mov edi,[edi+20]
cmp edi,61737341
pop edi
je enemy
push edi
mov edi,[ecx+20]
mov edi,[edi+A4]
mov edi,[edi+08]
mov edi,[edi+30]
cmp edi,61737341
pop edi
je enemy
jmp originalcode

enemy:
cmp word ptr [ecx+5C],0001
je originalcode
mov word ptr [ecx+5C],0001
jmp originalcode

friendly:
ret

originalcode:
movsx eax,word ptr [ecx+5C]
ret

AOB8:
jmp newmem
returnhere:

[DISABLE]
dealloc(newmem)
AOB8:
db 0F BF 41 5C C3

unregistersymbol(AOB8)

//"AC4BFSP.exe"+BB4A50:
//movsx eax,word ptr [ecx+5C]
//ret


Last edited by sjl002 on Sat Sep 19, 2015 7:14 am; edited 1 time in total
Back to top
View user's profile Send private message
Rydian
Grandmaster Cheater Supreme
Reputation: 31

Joined: 17 Sep 2012
Posts: 1358

PostPosted: Sat Sep 19, 2015 5:54 am    Post subject: Reply with quote



Go back to your thread.

Read and follow the instructions.

And actually post the info.

So we can freakin' help you solve your damn problem in the first place.

I swear to god you are driving me crazy.

_________________
Back to top
View user's profile Send private message
Cake-san
Grandmaster Cheater
Reputation: 8

Joined: 18 Dec 2014
Posts: 541
Location: Semenanjung

PostPosted: Sat Sep 19, 2015 7:39 am    Post subject: Reply with quote

maybe it's a script to immobalize or kill all enemy ? Smile
it's all depend on what's the value inside that [ecx+5C]
this script differentiate between enemys and allies by doing some huge comparing and execute the function.

_________________
...
Back to top
View user's profile Send private message
sjl002
Master Cheater
Reputation: 0

Joined: 31 Aug 2013
Posts: 305

PostPosted: Sat Sep 19, 2015 7:57 am    Post subject: Reply with quote

cake-san.
this script for Human player(ID)
-------------------------------
Code:
_MonHumanPlayer:
 cmp byte ptr [ebx+000000da],1
 jne _ExitMHP

 mov [pPlayer],ebx

 movzx ecx,byte ptr [ebx]
 mov [iID],ecx

 cmp dword ptr [iEnableMMR],0
 je _ExitMHP                       // Jump if feature is disabled

 mov ecx,ctMRES
 cmp eax,6
 js _MonHP00

 mov ecx,ctMGLD

_MonHP00:
 cmp ecx,[ebx+eax*4+00000094]
 js _ExitMHP

 mov [ebx+eax*4+00000094],ecx

_ExitMHP:
 push [ebx+eax*4+00000094]         // Original code (get Res Amount)
 jmp _BackMHP                      // Back to main code


what does this script?
mov [pPlayer],ebx
movzx ecx,byte ptr [ebx]
mov [iID],ecx
Back to top
View user's profile Send private message
Cake-san
Grandmaster Cheater
Reputation: 8

Joined: 18 Dec 2014
Posts: 541
Location: Semenanjung

PostPosted: Sat Sep 19, 2015 8:17 am    Post subject: Reply with quote

hahaha Laughing my head hurts,
mov [pPlayer],ebx //simply move the address ebx into [pPlayer] to make pointer?

movzx ecx,byte ptr [ebx] // move byte size ebx into ecx of dword size,I think, i'm sorry if I'm wrong.

mov [iID],ecx // maybe ecx is a unique value that can differentiate some variable ? moving ecx into [iID]

_________________
...
Back to top
View user's profile Send private message
sjl002
Master Cheater
Reputation: 0

Joined: 31 Aug 2013
Posts: 305

PostPosted: Sun Sep 20, 2015 2:50 am    Post subject: Reply with quote

hack game castle crashers very very hard.
Steve Andrew how find this script : cmp [ebp-14],531 //Potions
how find potions ID.
how finding this script ?
Back to top
View user's profile Send private message
STN
I post too much
Reputation: 42

Joined: 09 Nov 2005
Posts: 2672

PostPosted: Sun Sep 20, 2015 3:02 am    Post subject: Reply with quote

It is not that hard, the identifiers are rather easy to find but due to constant updates they change which makes it a pain.

Anyway, if you would listen to Rydian and myself and anyone else who told you to read the tutorials, you wouldn't be asking this question.

Steve Andrews probably found the identifier by using data structure tool or debugging. How do you use that ? read the tutorials in Rydian's signature! especially the second one.

_________________
Cheat Requests/Tables- Fearless Cheat Engine
https://fearlessrevolution.com
Back to top
View user's profile Send private message
sjl002
Master Cheater
Reputation: 0

Joined: 31 Aug 2013
Posts: 305

PostPosted: Sun Sep 20, 2015 6:46 am    Post subject: Reply with quote

So,I should reading Carefully Rydian tutorials,Right say.
cmp [ebp-14],531.value 531 is pointer.
I'm find this value but not find script in Find out what accesses (and writes to) this Address.
I use Data structure.
Ok i read Rydian tutorials.
Back to top
View user's profile Send private message
Rydian
Grandmaster Cheater Supreme
Reputation: 31

Joined: 17 Sep 2012
Posts: 1358

PostPosted: Sun Sep 20, 2015 8:04 am    Post subject: Reply with quote

The instructions I keep referring you back to are basic ones that will give info that's important for making scripts in the first place.

http://forum.cheatengine.org/viewtopic.php?t=584051&start=15

Read what I said, do it and give screenshots, answer the questions, etc.

_________________
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