C++ asm help. Patching a program in runtime [newbie question]

Discussion in 'C++' started by Dreadnought, Apr 10, 2011.

  1. Dreadnought

    Dreadnought New Member

    Joined:
    Apr 10, 2011
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    Hey guys,

    So I'm attempting to patch a program using inline asm in C++ while the program is running.

    What i'm trying todo in C++ is this for eg:

    Turning
    00482F02 8D51 19 LEA EDX,DWORD PTR DS:[ECX+19] 00482F0B 83C1 19 ADD ECX,19

    Into
    00482F02 8D51 14 LEA EDX,DWORD PTR DS:[ECX+14] 00482F0B 83C1 14 ADD ECX,14But I just cant find anything to help which is why I came here, I'd like to use Microsoft Detours 2.1 todo this but im 99% it doesn't support this kinda job

    Thanks,
    Dread
     
  2. Dreadnought

    Dreadnought New Member

    Joined:
    Apr 10, 2011
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    Cant seem to figure out how to edit:
    Let me redo the eg.. this is from olydbg.

    I wonna change
    Code:
    00482F02              8D51 19              LEA EDX,DWORD PTR DS:[ECX+19]
    00482F0B              83C1 19              ADD ECX,19
    
    Into

    Code:
    00482F02              8D51 14              LEA EDX,DWORD PTR DS:[ECX+14]
    00482F0B              83C1 14              ADD ECX,14
    
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice