-
Notifications
You must be signed in to change notification settings - Fork 2
/
VirtoolsScriptDeobfuscation.cpp
83 lines (57 loc) · 2.2 KB
/
VirtoolsScriptDeobfuscation.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
//
// Custom.cpp : Defines the initialization routines for the DLL.
//
#include "precomp.h"
#ifdef CK_LIB
#define RegisterBehaviorDeclarations Register_Custom_BehaviorDeclarations
#define InitInstance _Custom_InitInstance
#define ExitInstance _Custom_ExitInstance
#define CKGetPluginInfoCount CKGet_Custom_PluginInfoCount
#define CKGetPluginInfo CKGet_Custom_PluginInfo
#define g_PluginInfo g_Custom_PluginInfo
#else
#define RegisterBehaviorDeclarations RegisterBehaviorDeclarations
#define InitInstance InitInstance
#define ExitInstance ExitInstance
#define CKGetPluginInfoCount CKGetPluginInfoCount
#define CKGetPluginInfo CKGetPluginInfo
#define g_PluginInfo g_PluginInfo
#endif
CKERROR InitInstance(CKContext* context);
CKERROR ExitInstance(CKContext* context);
PLUGIN_EXPORT void RegisterBehaviorDeclarations(XObjectDeclarationArray *reg);
#define CUSTOM_BEHAVIOR CKGUID(0x70fb4259,0x4fce2169)
CKPluginInfo g_PluginInfo;
PLUGIN_EXPORT int CKGetPluginInfoCount() { return 1; }
PLUGIN_EXPORT CKPluginInfo* CKGetPluginInfo(int Index)
{
// InitVrt();
g_PluginInfo.m_Author = "BearKidsTeam";
g_PluginInfo.m_Description = "Virtools Script Deobfuscation";
g_PluginInfo.m_Extension = "";
g_PluginInfo.m_Type = CKPLUGIN_BEHAVIOR_DLL;
g_PluginInfo.m_Version = 0x000001;
g_PluginInfo.m_InitInstanceFct = InitInstance;
g_PluginInfo.m_ExitInstanceFct = ExitInstance;
g_PluginInfo.m_GUID = CUSTOM_BEHAVIOR;
g_PluginInfo.m_Summary = "Virtools Script Deobfuscation";
return &g_PluginInfo;
}
#define CKPGUID_INTERSECTIONPRECISIONTYPE CKDEFINEGUID(0x6cf55733,0x5af72dae)
#define CKPGUID_RECTBOXMODE CKDEFINEGUID(0x5a6a3bd9,0x7e2797d)
#define CKPGUID_PROXIMITY CKDEFINEGUID(0x7fff5699,0x7571336d)
/**********************************************************************************/
/**********************************************************************************/
CKERROR InitInstance(CKContext* context)
{
return CK_OK;
}
CKERROR ExitInstance(CKContext* context)
{
return CK_OK;
}
void RegisterBehaviorDeclarations(XObjectDeclarationArray *reg)
{
RegisterBehavior(reg, FillBehaviorFreeBlockDecl);
RegisterBehavior(reg, FillBBDecoderDecl);
}