Results 1 to 8 of 8
  1. #1
    Sazor98's Avatar
    Join Date
    Jan 2013
    Gender
    male
    Location
    X:13 Y:3 Z:7
    Posts
    154
    Reputation
    23
    Thanks
    64

    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.

  2. #2
    RoPMadM's Avatar
    Join Date
    Jul 2013
    Gender
    male
    Location
    __asm
    Posts
    226
    Reputation
    12
    Thanks
    251
    My Mood
    Cynical
    Check out code injection in vb.net
    It's pretty easy.

  3. The Following User Says Thank You to RoPMadM For This Useful Post:

    D1N4MIC (02-06-2015)

  4. #3
    Raydenman's Avatar
    Join Date
    Nov 2013
    Gender
    male
    Location
    Italy
    Posts
    261
    Reputation
    10
    Thanks
    810
    My Mood
    Amused
    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.
    Last edited by Raydenman; 12-21-2014 at 12:34 PM.

  5. #4
    Sazor98's Avatar
    Join Date
    Jan 2013
    Gender
    male
    Location
    X:13 Y:3 Z:7
    Posts
    154
    Reputation
    23
    Thanks
    64
    Quote Originally Posted by Raydenman View Post
    VB or VB.NET? You must be coherent.
    visual basic 2010 express, to be more clear.

  6. #5
    Raydenman's Avatar
    Join Date
    Nov 2013
    Gender
    male
    Location
    Italy
    Posts
    261
    Reputation
    10
    Thanks
    810
    My Mood
    Amused
    Quote Originally Posted by Sazor98 View Post
    visual basic 2010 express, to be more clear.
    Visual Basic 2010 Express is the IDE.

  7. #6
    Sazor98's Avatar
    Join Date
    Jan 2013
    Gender
    male
    Location
    X:13 Y:3 Z:7
    Posts
    154
    Reputation
    23
    Thanks
    64
    Quote Originally Posted by Raydenman View Post
    Visual Basic 2010 Express is the IDE.
    well. its VB.net

  8. #7
    Sazor98's Avatar
    Join Date
    Jan 2013
    Gender
    male
    Location
    X:13 Y:3 Z:7
    Posts
    154
    Reputation
    23
    Thanks
    64
    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 Helios.v3 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.

  9. #8
    RoPMadM's Avatar
    Join Date
    Jul 2013
    Gender
    male
    Location
    __asm
    Posts
    226
    Reputation
    12
    Thanks
    251
    My Mood
    Cynical
    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

  10. The Following User Says Thank You to RoPMadM For This Useful Post:

    D1N4MIC (02-06-2015)

Similar Threads

  1. Replies: 6
    Last Post: 01-06-2014, 01:12 PM
  2. [Assembly Tutorial] Object-oriented assembly <FASM>
    By TrollerCoaster in forum Programming Tutorials
    Replies: 3
    Last Post: 01-02-2013, 09:53 AM
  3. In What Do you Code Assembly ?
    By apezwijn in forum Assembly
    Replies: 5
    Last Post: 08-11-2008, 10:47 AM
  4. Converting Assembly Into Bytes
    By radnomguywfq3 in forum Visual Basic Programming
    Replies: 0
    Last Post: 09-24-2007, 04:42 PM
  5. FSB modifier?
    By thechewu in forum General
    Replies: 0
    Last Post: 07-26-2007, 01:10 PM