obfusheader.h icon indicating copy to clipboard operation
obfusheader.h copied to clipboard

DEP violation

Open TaxMachine opened this issue 1 year ago • 0 comments

void playSound() {
#ifndef UNICODE
    CALL_EXPORT("Winmm.dll", "PlaySoundA", BOOL(*)(LPCSTR, HMODULE, DWORD), OBF("sound"), nullptr, OBF(SND_RESOURCE | SND_SYNC));
#else
    CALL_EXPORT("Winmm.dll", "PlaySoundW", BOOL(*)(LPCWSTR, HMODULE, DWORD), OBF("sound"), nullptr, OBF(SND_RESOURCE | SND_SYNC));
#endif
}

it dies at the first obviously and I get this exception from my debugger Exception: Exception 0xc0000005 encountered at address 0x000000: User-mode data execution prevention (DEP) violation at location 0x00000000 Compiler: MSVC in Debug mode Settings

#pragma region CONFIG
    // C++ only features
    #define CONST_ENCRYPTION            1
    #define CONST_ENCRYPT_MODE          THREADLOCAL // NORMAL & THREADLOCAL
    #define CFLOW_CONST_DECRYPTION      1
    // C & C++ features
    #define CFLOW_BRANCHING             1
    #define INDIRECT_BRANCHING          1
    #define FAKE_SIGNATURES             1
    #define INLINE_STD                  0
    #define KERNEL_MODE                 0
#pragma endregion CONFIG

TaxMachine avatar Jul 22 '24 05:07 TaxMachine