 |
Cheat Engine The Official Site of Cheat Engine
|
| View previous topic :: View next topic |
| Author |
Message |
Xblade Of Heaven Master Cheater
Reputation: 0
Joined: 16 Oct 2005 Posts: 395 Location: DEAD
|
Posted: Fri Dec 11, 2015 3:21 pm Post subject: How compare a Uniode String AA |
|
|
Hi all, i have a small question, is possible cmp a uncode string in a AA?
i use this unicode string: AShockPlayer
and for try a small comparation use ony AS unicode A.S. 4 bytes
| Code: | alloc(example,1024)
mov eax,dword ptr[ecx]
cmp dword ptr[eax+450],example
jne code
code:
my example code
example:
dd 'A',0,'S',0
dealloc(example) |
but no work, cmp no work, anyone have some idead why?
thanks!
_________________
Welcome to the Hell.
 |
|
| Back to top |
|
 |
Redouane Master Cheater
Reputation: 3
Joined: 05 Sep 2013 Posts: 363 Location: Algeria
|
Posted: Fri Dec 11, 2015 4:06 pm Post subject: Re: How compare a Uniode String AA |
|
|
| Code: | alloc(example,1024)
// The function will overwrite eax
push example
push [eax+450] // assuming that [eax+450] is a pointer to the string
call Kernel32.lstrcmpW // There is also the case insensitive version
cmp eax,0 // or test eax,eax
mov eax,dword ptr[ecx]
jz code // if it jumps,they are equal,eax = 0
jmp other_code // now,they aren't equal
code:
my example code
example:
dd 'A',0,'S',0
dealloc(example) |
|
|
| Back to top |
|
 |
++METHOS I post too much
Reputation: 92
Joined: 29 Oct 2010 Posts: 4197
|
Posted: Fri Dec 11, 2015 5:31 pm Post subject: |
|
|
| You can always compare hex equivalent.
|
|
| Back to top |
|
 |
Zanzer I post too much
Reputation: 126
Joined: 09 Jun 2013 Posts: 3278
|
Posted: Fri Dec 11, 2015 5:57 pm Post subject: |
|
|
Meh...
| Code: | cmp word ptr[eax+450],'e'
jne code
cmp word ptr[eax+452],'x'
jne code
cmp word ptr[eax+454],'a'
jne code
cmp word ptr[eax+456],'m'
jne code
cmp word ptr[eax+458],'p'
jne code
cmp word ptr[eax+45A],'l'
jne code
cmp word ptr[eax+45C],'e'
jne code |
|
|
| Back to top |
|
 |
Xblade Of Heaven Master Cheater
Reputation: 0
Joined: 16 Oct 2005 Posts: 395 Location: DEAD
|
Posted: Fri Dec 11, 2015 7:43 pm Post subject: |
|
|
thanks all for the help guys.
regards
_________________
Welcome to the Hell.
 |
|
| Back to top |
|
 |
|
|
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
|
|