| View previous topic :: View next topic |
| Author |
Message |
Blurry Advanced Cheater
Reputation: 0
Joined: 23 Jul 2007 Posts: 55
|
Posted: Sat Jul 28, 2007 8:53 pm Post subject: [MS] help on understanding ASM script |
|
|
Hi guys, hope you can help me on understanding script flow.This is MS game. tysm
// Hotkey Godmode
// GMS v38
// thanks to Pedra Simon
[enable]
alloc(HotKeysHook,100)
alloc(switch,1) // what happens if I allocate more memory to it?
label(quit)
label(on)
switch: // must i do the registersymbol for this??
db 00 // what does db means? and what does the line do?
HotKeysHook:
test edi,80000000 // test = cmp? what does this line do?
jns quit
cmp [ebp+c],69
jne quit
cmp [switch],01
jne on
mov byte ptr [6803ED],85 // byte ptr means?
mov [switch],00
jmp quit
on:
mov byte ptr [6803ED],84
mov [switch],01
quit:
push [esp+8]
push [esp+8]
jmp 4B8E95
4B8E8D:
jmp HotKeysHook
db 90 90 90 // again, function of this line?
[disable]
4B8E8D:
push [esp+8]
push [esp+8]
dealloc(HotKeysHook) // dealloc , is there a need for switch as well and unregistersymbol switch? |
|
| Back to top |
|
 |
oib111 I post too much
Reputation: 0
Joined: 02 Apr 2007 Posts: 2947 Location: you wanna know why?
|
Posted: Sat Jul 28, 2007 9:12 pm Post subject: |
|
|
1. Idk, but don't.
2.Lol, switch is already allocated. You don't need any registersymbols.
3.db = direct byte
4.I think test means compare...?
5.Idk either.
6.You shouldn't care if PedraSimons gave it to you.
My own personal opinion, if PedraSimons gives you a hotkey script that you asked for. You say thank you, +Rep him/her and don't ask question and use the god damn script. _________________
| 8D wrote: |
cigs dont make people high, which weed does, which causes them to do bad stuff. like killing |
|
|
| Back to top |
|
 |
lurc Grandmaster Cheater Supreme
Reputation: 2
Joined: 13 Nov 2006 Posts: 1900
|
Posted: Sat Jul 28, 2007 9:27 pm Post subject: |
|
|
db 00 == add [eax],al == Change EAX to nul (0) or Nothing
db 90 90 90 == nop nop nop == Replacing the code with coding that does nothing
editing direct bytes it more eficiant than using that syntax
There is no registrysymbol in the script since its allocated already and its not stated in the script
the more memory allocated, the more memory u can use. _________________
|
|
| Back to top |
|
 |
Blurry Advanced Cheater
Reputation: 0
Joined: 23 Jul 2007 Posts: 55
|
Posted: Sat Jul 28, 2007 9:39 pm Post subject: |
|
|
You guys are great. tysm  |
|
| Back to top |
|
 |
Jani Grandmaster Cheater
Reputation: 2
Joined: 29 Dec 2006 Posts: 804
|
Posted: Sun Jul 29, 2007 3:11 am Post subject: |
|
|
| Blurry wrote: | | what happens if I allocate more memory to it? |
You only waste your memory a bit, but anything special doesn't happen. But if you don't allocate enough memory, your client might crash.
| Blurry wrote: | | must i do the registersymbol for this?? |
No need, unless you want to easily navigate to this addy in some script/memory view. Eg. if you want to add this addy to your CT, you should registersymbol it, because it makes accessing it way easier.
| Blurry wrote: | | what does db means? and what does the line do? |
Define byte. It zeroes(is that a word? :P) memory at switch. Only one byte. Note that the opcode here isn't run the way like the rest of the code is. This is used as a variable.
| Blurry wrote: | | test = cmp? what does this line do? |
test != cmp. test operates like and, but it doesn't save the result in destination register.
| Blurry wrote: | | byte ptr means? |
byte ptr tells the assembler that you're working with bytes, not dwords.
| Blurry wrote: | | again, function of this line? |
Define byte. 0x90 == nop. So it's the same as
| Blurry wrote: | | dealloc , is there a need for switch as well and unregistersymbol switch? | Yea, you should deallocate the switch too. It's only one byte, so it doesn't matter much, but anyway you should do it. And there's no need to unregister the symbol unless you've registered it...
I hope I got 'em right. I just woke up after 5hrs of sleep, so I'm a bit tired :p Feel free to correct me ppl. |
|
| Back to top |
|
 |
Blurry Advanced Cheater
Reputation: 0
Joined: 23 Jul 2007 Posts: 55
|
Posted: Sun Jul 29, 2007 4:20 am Post subject: |
|
|
Hi jani, its good to know that you share on what you know.Tysm  |
|
| Back to top |
|
 |
Symbol I'm a spammer
Reputation: 0
Joined: 18 Apr 2007 Posts: 5094 Location: Israel.
|
Posted: Sun Jul 29, 2007 5:00 am Post subject: |
|
|
alloc(switch,1)?
if it uses just a simple db code like
db 0F 85
only the 0F can be changed in the memory cuz u used only 1 byte, and then u have no bytes to use for 85...
if im not wrong, these are 8 bytes (2 bytes each digits) so i dont think this will work... O_o
if u dont dealloc ull just get an error that swith was allocated but didnt deallocted it...
test - preforms an xor command but doesnt change the bytes, but compares the result... or AND command... O_o forgot
u havent registersymbol switch, so u dont need to unregister it... |
|
| Back to top |
|
 |
Blurry Advanced Cheater
Reputation: 0
Joined: 23 Jul 2007 Posts: 55
|
Posted: Sun Jul 29, 2007 10:22 am Post subject: |
|
|
| Symbol wrote: | alloc(switch,1)?
if it uses just a simple db code like
db 0F 85
only the 0F can be changed in the memory cuz u used only 1 byte, and then u have no bytes to use for 85...
if im not wrong, these are 8 bytes (2 bytes each digits) so i dont think this will work... O_o
|
Hi symbol , tysm for the help. I would like to know 2digits equal 1 byte? , this is what I read from tutorials.Can verify this ? If its 2digits equal 1byte, then I know why the switch is allocated only 1byte... because of the db 00 |
|
| Back to top |
|
 |
Jani Grandmaster Cheater
Reputation: 2
Joined: 29 Dec 2006 Posts: 804
|
Posted: Sun Jul 29, 2007 2:20 pm Post subject: |
|
|
| Blurry wrote: | | I would like to know 2digits equal 1 byte? | If I got it right, then yes. db 00 defines one byte. There's two digits in one byte, just like you said. |
|
| Back to top |
|
 |
sponge I'm a spammer
Reputation: 1
Joined: 07 Nov 2006 Posts: 6009
|
Posted: Sun Jul 29, 2007 2:56 pm Post subject: |
|
|
1 digit is a nibble.  _________________
|
|
| Back to top |
|
 |
|