Modifying Assembly in VB.net

Posts 1–8 of 8 · Page 1 of 1
Modifying Assembly in VB.net
i have some assembly codes that i found in cheat engine

mov eax,[ecx+5C]
test eax,eax

mov eax,[ecx+60]
test eax,eax

the original code is 5C. and i want to change it to 60.
this can be easily done in cheat engine, but i couldn't do it in VB. i searched google up and down and all i could find was memory classes that modify a specific value (eg ammo)

Note: i saw some assembly stuff but they are only for VB6. i'm using VB 2010.
Check out code injection in vb.net
It's pretty easy.
Quote Originally Posted by Sazor98 View Post
the original code is 5C. and i want to change it to 60.
this can be easily done in cheat engine, but i couldn't do it in VB.
VB or VB.NET? You must be coherent.
Quote Originally Posted by Raydenman View Post
VB or VB.NET? You must be coherent.
visual basic 2010 express, to be more clear.
Quote Originally Posted by Sazor98 View Post
visual basic 2010 express, to be more clear.
Visual Basic 2010 Express is the IDE.
Quote Originally Posted by Raydenman View Post
Visual Basic 2010 Express is the IDE.
well. its VB.net
Quote Originally Posted by Raydenman View Post
Visual Basic 2010 Express is the IDE.
Well sorry for my mistake. in the original thread i didn't notice that i wrote VB instead of VB.net. but because i wrote VB.net in the title it should have been clear that i'm talking about VB.net.
your question conduced me for some reason.
also keep in mind that i'm very new to the language.

- - - Updated - - -

Quote Originally Posted by RoPMadM View Post
Check out code injection in vb.net
It's pretty easy.
i googled that. the only thing i found was SQL injection and DLL injector. not really what i'm looking for.
If I google that the first 3 results will solve your problem. But nvm.
The ASM code is native, with vb.net you cant handle pointers and create native code, this is only possible in C++.
But vb.net is pretty extensive. For explanation whta you have to do now:

Your ASM codes are executed in memory at a location(address). And at this location will be stored some bytes.
You have to patch those bytes, with your own ones. You can easily do this with writeMemory()

For example:

Code:
Address: Asm-code

12345678: mov eax,[ecx+5C]

So the Bytes(Value) of your address is, only for example, 8B 139 117
Posts 1–8 of 8 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us