View previous topic :: View next topic |
Author |
Message |
shakib187 Expert Cheater
Reputation: 0
Joined: 24 May 2007 Posts: 215
|
Posted: Mon Jul 07, 2014 3:13 pm Post subject: [ASM] help |
|
|
Code: |
[ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
alloc(newmem,2048)
label(returnhere)
label(originalcode)
label(exit)
label(arb)
arb:
dd 0
newmem: //this is allocated memory, you have read,write,execute access
//place your code here
mov [arb],esi
jmp "VanHelsing_x86.exe"+11FEA3
cmp esi,esi
je originalcode
mov [esi+0000034C],0
jmp returnhere
originalcode:
fsub dword ptr [esi+0000034C]
exit:
jmp returnhere
"VanHelsing_x86.exe"+121D3A:
jmp newmem
nop
returnhere:
[DISABLE]
//code from here till the end of the code will be used to disable the cheat
dealloc(newmem)
"VanHelsing_x86.exe"+121D3A:
fsub dword ptr [esi+0000034C]
//Alt: db D8 A6 4C 03 00 00
|
Im trying to jmp and compare esi from 1 place to another, how come my script wont enable in cheat engine?
|
|
Back to top |
|
 |
STN I post too much
Reputation: 43
Joined: 09 Nov 2005 Posts: 2676
|
Posted: Mon Jul 07, 2014 3:29 pm Post subject: |
|
|
Are you attached to the game ?
Also
arb:
dd 0
should be after exit like this
newmem+200:
arb:
dd 0
I have no idea what you are trying to do but this is pointless
cmp esi,esi
je originalcode
you might as well just write a jmp. Actually you have just above it and the compare never gets a chance to be executed.
Not really sure where you got the code from but its a mess.
_________________
|
|
Back to top |
|
 |
NanoByte Expert Cheater
Reputation: 1
Joined: 13 Sep 2013 Posts: 222
|
Posted: Mon Jul 07, 2014 6:02 pm Post subject: |
|
|
Code: |
arb:
dd 0
newmem: //this is allocated memory, you have read,write,execute access
//place your code here
mov [arb],esi
jmp "VanHelsing_x86.exe"+11FEA3 // if just jump to some place it wil ignore alot of other code which could crash your game
cmp esi,esi // compare a value with itself ?(-_-)? == maybe cmp [arb],esi
je originalcode
mov [esi+0000034C],0
jmp returnhere |
tell me what you trying to do, i have the game i think "the great adventures of van hellsing?" ill look into it my self
|
|
Back to top |
|
 |
shakib187 Expert Cheater
Reputation: 0
Joined: 24 May 2007 Posts: 215
|
Posted: Tue Jul 08, 2014 8:52 am Post subject: |
|
|
I was trying to compare esi from one place with another, for the one hit ko cheat.
STN wrote: | Are you attached to the game ?
you might as well just write a jmp. Actually you have just above it and the compare never gets a chance to be executed.
Not really sure where you got the code from but its a mess. |
I wish I wasn't so retarded
|
|
Back to top |
|
 |
STN I post too much
Reputation: 43
Joined: 09 Nov 2005 Posts: 2676
|
Posted: Tue Jul 08, 2014 9:29 am Post subject: |
|
|
shakib187 wrote: | I was trying to compare esi from one place with another, for the one hit ko cheat.
STN wrote: | Are you attached to the game ?
you might as well just write a jmp. Actually you have just above it and the compare never gets a chance to be executed.
Not really sure where you got the code from but its a mess. |
I wish I wasn't so retarded |
That doesn't make you retarded, everyone learns at their own pace.
I do suggest you read up on assembly again (look for dabhand's assembly tuts in the CE help file) and contact the poster above you (NanoByte) if he's willing to help as he said he has the game.
You aren't too far off from the target so shouldn't be too hard for you to learn what you're doing wrong.
_________________
|
|
Back to top |
|
 |
|