Spawnova Newbie cheater
Reputation: 0
Joined: 12 Feb 2013 Posts: 22
|
Posted: Thu Jan 15, 2015 10:45 am Post subject: Auto Assembler help |
|
|
Hello, I've been learning asm recently, I'm familiar with the basics and I have made some scripts already, however I want to make one with a variable/symbol but it's not working for me, was wondering if someone could take a look over it and let me know what I've done wrong.
My goal is to compare the last value to the current value, if the current value is smaller don't update it. Example:
Code: | if (currentRep <= lastRep) {
;decrease rep is removed, it can only increase
} else {
increase Rep
}
|
Here's what I've got so far..
Code: |
[ENABLE]
alloc(newmem,2048,"Disrupt_b64.dll"+13645EB)
alloc(lastRep,1024) //too much? expected value (-1000 to 1000)
label(returnhere)
label(originalcode)
label(Continue)
label(exit)
registersymbol(lastRep) //register variable?
newmem:
cmp [r14],lastRep //if lastRep is >= continue to nothing
jge Continue //else execute code below
mov ebx,[r14]
mov [lastRep],ebx
Continue:
originalcode:
mov ebx,[r14]
or r13d,-01
exit:
jmp returnhere
"Disrupt_b64.dll"+13645EB:
jmp newmem
nop
nop
returnhere:
[DISABLE]
dealloc(newmem)
dealloc(lastRep)
unregistersymbol(lastRep)
"Disrupt_b64.dll"+13645EB:
mov ebx,[r14]
or r13d,-01
|
Please keep in mind, I am still learning so I probably have made noob mistakes. =P
|
|