Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [enable]
- alloc(ConstantlyWrite,1024)
- label(StopWritingValueAndExitThread)
- label(ScriptDisabled)
- label(pauseECM)
- label(start)
- registersymbol(ScriptDisabled)
- registersymbol(pauseECM)
- createthread(ConstantlyWrite)
- start:
- aobscan(aob1, 00 00 0C 00 00 00 00 78 43 00 00 C8 42 00 ?? ?? ?? 00 00 48)
- aob1+5:
- pauseECM: //only associate pauseECM with the proper address here
- ConstantlyWrite:
- push 0a
- call kernel32.Sleep
- cmp [ScriptDisabled],1
- je StopWritingValueAndExitThread //when script disabled, thread will exit
- mov eax,pauseECM //move address of pauseECM into register
- cmp eax,0
- je start
- mov edx,(float)400.0 //value to write into another register
- mov [eax],edx //write value
- jmp ConstantlyWrite //loop forever until script disabled
- StopWritingValueAndExitThread: //only reached when script is disabled
- ret
- ScriptDisabled:
- dd 0
- [disable]
- ScriptDisabled:
- dd 1
- unregistersymbol(ScriptDisabled)
- unregistersymbol(pauseECM)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement