You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
#ifndef __OBFUSCATOR_H
|
|
|
|
#define __OBFUSCATOR_H
|
|
|
|
|
|
|
|
|
|
|
|
#include "Windas.h"
|
|
|
|
#include "XedWrap.h"
|
|
|
|
#include "NativeCode.h"
|
|
|
|
#include "Jit.h"
|
|
|
|
#include "OpaqueBranching.h"
|
|
|
|
|
|
|
|
#define OBF_ATTRIBUTE_JIT (1<<0)
|
|
|
|
#define OBF_ATTRIBUTE_OPAQUE_BRANCHES (1<<1)
|
|
|
|
|
|
|
|
typedef struct _OBFUSCATOR
|
|
|
|
{
|
|
|
|
ULONG MinInstCount;
|
|
|
|
ULONG Flags;
|
|
|
|
PNATIVE_CODE_BLOCK GlobalBlock;
|
|
|
|
}OBFUSCATOR, *POBFUSCATOR;
|
|
|
|
|
|
|
|
//Recursive obfuscation routine using opaque branches and jit
|
|
|
|
VOID ObfObfuscate(POBFUSCATOR Obf, PNATIVE_CODE_BLOCK Block);
|
|
|
|
|
|
|
|
#endif
|