Help[VB.NET] Cheat Engine Scripts? [NOP, JMP, ALLOC, DEALLOC, MOV] and more ?

Posts 1–3 of 3 · Page 1 of 1
[VB.NET] Cheat Engine Scripts? [NOP, JMP, ALLOC, DEALLOC, MOV] and more ?
Hi,
So I'm trying to make my own trainer in VB.NET for learning purposes.

For easy cheat engine scripts like :
Code:
[ENABLE]
01563851:
db 0F 85

01563A19:
db 0F 85

[DISABLE]
01563851:
db 0F 84

01563A19:
 db 0F 84
I use this Module currently : pastebin.com/sj4Gvn1m

I enable that hack by doing :
Code:
 If CheckBox2.Checked = True Then
            Dim Addy As IntPtr = &H1563851
            Dim Addy2 As IntPtr = &H1563A19
            Dim buffer2 As Byte() = New Byte() {&HF, &H85}
            Dim buffer As Byte() = New Byte() {&HF, &H85}
            WINAPI.WriteProcessMemory(Addy, buffer, buffer.Length)
            WINAPI.WriteProcessMemory(Addy2, buffer2, buffer2.Length)
End If
However, for the more complicated Cheat Engine scripts like this one :
Code:
[Enable]
Alloc(SPControl,128)
Label(Return)

SPControl:

mov [esp+8],#0//x Cords
mov [esp+C],#0 //Y cords

Return:
//6A FF 68 ? ? ? ? 64 A1 ? ? ? ? 50 81 ? ? ? ? ? 53 55 56 57 A1 ? ? ? ? 33 ? 50 8D ? 24 ? ? ? ? 64 ? ? ? ? ? 8B ? 8B ? 24 ? ? ? ? 8B ? 24 ? ? ? ? 8B
jmp 0163ABB0




01C59498: //4byte Scan address in Return [5th Result]
dd SPControl

[Disable]
01C59498: //Same as above
dd 0163ABB0//Address in Return




DeAlloc(SPControl)
What do I do with the jmp, mov, ESP, and stuff like that?
Anyone ever did something like this before? mind giving me a hand please?
Thank you!
learn assembly
You're running before you learn to walk. If you're using VB.NET, stick to VB. If you want to cross-mix those languages, as the above said, you'll need to learn assembly.

Tip:

Cheat Engine natively handles codes like alloc/decalloc so you don't need to. Assembly doesn't actually have opcodes to do that. ( You need to call VirtualAlloc() to alloc and VirtualFree() to dealloc ).
Posts 1–3 of 3 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?