1. We have moved from vBulletin to XenForo and you are viewing the site in the middle of the move. Though the functional aspect of everything is working fine, we are still working on other changes including the new design on Xenforo.
    Dismiss Notice

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

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

  1. Dreadnought

    Dreadnought New Member

    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

    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