Doubt with Assembly - Change Address Value

0

I'm new to Assembly and C, and I need to change the value of an address in an .exe file

004864D2   . C785 5CFCFFFF F8020000    MOV DWORD PTR SS:[EBP-3A4],2F8

I tried the following way with C

__declspec(naked) void HookPatch::ChangeCliver_02()
{
    static const INT32 szContinue = 0x0048652C;
    __asm
    {
        MOV DWORD PTR SS : [EBP - 0x03A4], 0x1DF2
        JMP szContinue
    }
}

When I run the program with OllyDbg the line quoted is deleted.

    
asked by anonymous 21.04.2018 / 08:45

0 answers