From 9828d3d85967b7e422418a410aa716a7fbb77e65 Mon Sep 17 00:00:00 2001 From: yyc12345 Date: Wed, 22 Mar 2023 14:13:53 +0800 Subject: [PATCH] Refactor project layout. - Name & Infomation * Rename Custom to VirtoolsScriptDeobfuscation for a clear meaning. * Re-create resources file (rc file). And fill author property and etc. - Compile & Link * Cleanup useless, outdated, and mystery Win32 spcified compile & link options. * Use WIN32_LEAN_AND_MEAN and NOMINMAX macro to replace the undef of min and max. * Add some preprocessor macro to disable the shitty VC++ warning of standard lib functions. * Remove the ugly reference of OutputDebugStringA. Use the more formal one. - Project Configurations * Remove all useless configurations for vcxproj file. Only keep 2 configurations, Debug and Release. * Create a sln file for convenient editing. * Remove useless res folder. * Use props file to make project more portable. Users now can specify their own SDK path via props file and do not need change vcxproj file anymore. --- .gitignore | 3 + BBDecoder.cpp | 4 +- Custom.rc | 485 ------------------ Custom.vcxproj | 352 ------------- Decorator.cpp | 10 +- FreeBlock.cpp | 4 +- StdAfx.cpp | 2 +- Custom.cpp => VirtoolsScriptDeobfuscation.cpp | 6 +- Custom.def => VirtoolsScriptDeobfuscation.def | 0 VirtoolsScriptDeobfuscation.props.template | 26 + VirtoolsScriptDeobfuscation.rc | 100 ++++ VirtoolsScriptDeobfuscation.sln | 25 + VirtoolsScriptDeobfuscation.vcxproj | 153 ++++++ ...irtoolsScriptDeobfuscation.vcxproj.filters | 23 +- precomp.h | 7 +- res/Custom.rc2 | 13 - res/Dialog Button/Cancel1.BMP | Bin 2550 -> 0 bytes res/Dialog Button/Cancel3.BMP | Bin 2550 -> 0 bytes res/Dialog Button/Ok1.bmp | Bin 2550 -> 0 bytes res/Dialog Button/Ok3.bmp | Bin 2550 -> 0 bytes resource.h | 31 +- 21 files changed, 348 insertions(+), 896 deletions(-) delete mode 100644 Custom.rc delete mode 100644 Custom.vcxproj rename Custom.cpp => VirtoolsScriptDeobfuscation.cpp (92%) rename Custom.def => VirtoolsScriptDeobfuscation.def (100%) create mode 100644 VirtoolsScriptDeobfuscation.props.template create mode 100644 VirtoolsScriptDeobfuscation.rc create mode 100644 VirtoolsScriptDeobfuscation.sln create mode 100644 VirtoolsScriptDeobfuscation.vcxproj rename Custom.vcxproj.filters => VirtoolsScriptDeobfuscation.vcxproj.filters (78%) delete mode 100644 res/Custom.rc2 delete mode 100644 res/Dialog Button/Cancel1.BMP delete mode 100644 res/Dialog Button/Cancel3.BMP delete mode 100644 res/Dialog Button/Ok1.bmp delete mode 100644 res/Dialog Button/Ok3.bmp diff --git a/.gitignore b/.gitignore index b578a18..40377b3 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,6 @@ +# IGNORE USER SDK PROPS FILE +VirtoolsScriptDeobfuscation.props + ## Ignore Visual Studio temporary files, build results, and ## files generated by popular Visual Studio add-ons. ## diff --git a/BBDecoder.cpp b/BBDecoder.cpp index 1169d6e..9118787 100644 --- a/BBDecoder.cpp +++ b/BBDecoder.cpp @@ -21,11 +21,11 @@ CKObjectDeclaration *FillBBDecoderDecl() od->SetType(CKDLL_BEHAVIORPROTOTYPE); od->SetGuid(CKGUID(0x37543829, 0xf0c3b39)); od->SetAuthorGuid(VIRTOOLS_GUID); - od->SetAuthorName("Custom"); + od->SetAuthorName("BearKidsTeam"); od->SetVersion(0x00010000); od->SetCreationFunction(CreateBBDecoderProto); od->SetCompatibleClassId(CKCID_BEOBJECT); - od->SetCategory("Custom/Misc"); + od->SetCategory("Custom/VirtoolsScriptDeobfuscation"); return od; } diff --git a/Custom.rc b/Custom.rc deleted file mode 100644 index a7f183e..0000000 --- a/Custom.rc +++ /dev/null @@ -1,485 +0,0 @@ -//Microsoft Developer Studio generated resource script. -// -#define APSTUDIO_READONLY_SYMBOLS -///////////////////////////////////////////////////////////////////////////// -// -// Generated from the TEXTINCLUDE 2 resource. -// - -///////////////////////////////////////////////////////////////////////////// -#undef APSTUDIO_READONLY_SYMBOLS - -///////////////////////////////////////////////////////////////////////////// -// English (U.S.) resources - -#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU) -#ifdef _WIN32 -LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US -#pragma code_page(1252) -#endif //_WIN32 - -#ifdef APSTUDIO_INVOKED -///////////////////////////////////////////////////////////////////////////// -// -// TEXTINCLUDE -// - -1 TEXTINCLUDE DISCARDABLE -BEGIN - "#include ""afxres.h""\r\n" - "\0" -END - -2 TEXTINCLUDE DISCARDABLE -BEGIN - "#define _AFX_NO_SPLITTER_RESOURCES\r\n" - "#define _AFX_NO_OLE_RESOURCES\r\n" - "#define _AFX_NO_TRACKER_RESOURCES\r\n" - "#define _AFX_NO_PROPERTY_RESOURCES\r\n" - "\r\n" - "#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)\r\n" - "#ifdef _WIN32\r\n" - "LANGUAGE 9, 1\r\n" - "#pragma code_page(1252)\r\n" - "#endif\r\n" - "#include ""afxres.rc"" // Standard components\r\n" - "#endif\0" -END - -#endif // APSTUDIO_INVOKED - - -#ifndef _MAC -///////////////////////////////////////////////////////////////////////////// -// -// Version -// - -#if defined(APSTUDIO_INVOKED) || !defined(_DEBUG) -VS_VERSION_INFO VERSIONINFO - FILEVERSION 3,5,0,24 - PRODUCTVERSION 3,5,0,24 - FILEFLAGSMASK 0x3fL -#ifdef _DEBUG - FILEFLAGS 0x1L -#else - FILEFLAGS 0x0L -#endif - FILEOS 0x4L - FILETYPE 0x2L - FILESUBTYPE 0x0L -BEGIN - BLOCK "StringFileInfo" - BEGIN - BLOCK "040904b0" - BEGIN - VALUE "Comments", "Virtools Custom Behaviors\0" - VALUE "CompanyName", "Virtools SA\0" - VALUE "FileDescription", "Custom DLL\0" - VALUE "FileVersion", "3.5.0.24\0" - VALUE "InternalName", "Custom\0" - VALUE "LegalCopyright", "?1998-2005 Virtools SA\0" - VALUE "LegalTrademarks", "?1998-2005 Virtools\0" - VALUE "OriginalFilename", "Custom.dll\0" - VALUE "ProductName", "Virtools\0" - VALUE "ProductVersion", "3.5.0.24\0" - END - END - BLOCK "VarFileInfo" - BEGIN - VALUE "Translation", 0x409, 1200 - END -END -#endif - -#if defined(APSTUDIO_INVOKED) || defined(_DEBUG) -#if defined(APSTUDIO_INVOKED) -VS_VERSION_INFO$(_DEBUG) VERSIONINFO -#else -VS_VERSION_INFO VERSIONINFO -#endif - FILEVERSION 3,5,0,24 - PRODUCTVERSION 3,5,0,24 - FILEFLAGSMASK 0x3fL -#ifdef _DEBUG - FILEFLAGS 0x1L -#else - FILEFLAGS 0x0L -#endif - FILEOS 0x4L - FILETYPE 0x2L - FILESUBTYPE 0x0L -BEGIN - BLOCK "StringFileInfo" - BEGIN - BLOCK "040904b0" - BEGIN - VALUE "Comments", "Virtools Custom Behaviors Debug\0" - VALUE "CompanyName", "Virtools SA\0" - VALUE "FileDescription", "Custom DLL\0" - VALUE "FileVersion", "3.5.0.24\0" - VALUE "InternalName", "Custom\0" - VALUE "LegalCopyright", "?1998-2005 Virtools SA\0" - VALUE "LegalTrademarks", "?1998-2005 Virtools\0" - VALUE "OriginalFilename", "Custom.dll\0" - VALUE "ProductName", "Virtools\0" - VALUE "ProductVersion", "3.5.0.24\0" - END - END - BLOCK "VarFileInfo" - BEGIN - VALUE "Translation", 0x409, 1200 - END -END -#endif - -#endif // !_MAC - -#endif // English (U.S.) resources -///////////////////////////////////////////////////////////////////////////// - - - -#ifndef APSTUDIO_INVOKED -///////////////////////////////////////////////////////////////////////////// -// -// Generated from the TEXTINCLUDE 3 resource. -// -#define _AFX_NO_SPLITTER_RESOURCES -#define _AFX_NO_OLE_RESOURCES -#define _AFX_NO_TRACKER_RESOURCES -#define _AFX_NO_PROPERTY_RESOURCES - -#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU) -#ifdef _WIN32 -LANGUAGE 9, 1 -#pragma code_page(1252) -#endif -// #include "afxres.rc" // Standard components -#endif -///////////////////////////////////////////////////////////////////////////// -#endif // not APSTUDIO_INVOKED - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Custom.vcxproj b/Custom.vcxproj deleted file mode 100644 index 469f125..0000000 --- a/Custom.vcxproj +++ /dev/null @@ -1,352 +0,0 @@ - - - - - DebugStatic - Win32 - - - Debug - Win32 - - - ReleaseDebug - Win32 - - - ReleaseStatic - Win32 - - - Release - Win32 - - - - {A57A1C07-7465-4E11-A8A1-84DA8B0C2D79} - - - . - - MFCProj - 8.1 - - - - StaticLibrary - v141 - Dynamic - - - StaticLibrary - v141 - false - - - DynamicLibrary - v141 - Dynamic - - - DynamicLibrary - v141 - Dynamic - - - DynamicLibrary - v141 - false - - - - - - - - - - - - - - - - - - - - - - <_ProjectFileVersion>15.0.26228.4 - - - ..\..\..\Temp\$(Platform)\$(ProjectName)\$(Configuration)\ - ..\..\..\Temp\$(Platform)\$(ProjectName)\$(Configuration)\ - true - true - - - ..\..\..\Temp\$(Platform)\$(ProjectName)\$(Configuration)\ - ..\..\..\Temp\$(Platform)\$(ProjectName)\$(Configuration)\ - true - false - - - ..\..\..\Temp\$(Platform)\$(ProjectName)\$(Configuration)\ - ..\..\..\Temp\$(Platform)\$(ProjectName)\$(Configuration)\ - true - false - - - ..\..\..\Temp\$(Platform)\$(ProjectName)\$(Configuration)\ - ..\..\..\Temp\$(Platform)\$(ProjectName)\$(Configuration)\ - - - ..\..\..\Temp\$(Platform)\$(ProjectName)\$(Configuration)\ - ..\..\..\Temp\$(Platform)\$(ProjectName)\$(Configuration)\ - - - - Disabled - ..\..\..\Includes;%(AdditionalIncludeDirectories) - WIN32;_DEBUG;_WINDOWS;%(PreprocessorDefinitions) - EnableFastChecks - MultiThreadedDebugDLL - Use - precomp.h - $(IntDir)$(ProjectName).pch - - $(IntDir) - $(OutDir)$(ProjectName).pdb - Level3 - true - EditAndContinue - Default - - - ck2.lib;vxmath.lib;%(AdditionalDependencies) - ..\..\..\..\BuildingBlocks\$(ProjectName).dll - true - ..\..\..\Lib\$(Platform)\Release;%(AdditionalLibraryDirectories) - .\Custom.def - true - ..\..\..\..\BuildingBlocks\$(ProjectName).pdb - 0x25480000 - $(OutDir)$(ProjectName).lib - MachineX86 - - - _DEBUG;%(PreprocessorDefinitions) - true - true - Win32 - \TempDebug\Custom/Custom.tlb - - - - _DEBUG;%(PreprocessorDefinitions) - 0x0409 - - - - - Disabled - AnySuitable - ..\..\..\Includes;%(AdditionalIncludeDirectories) - WIN32;NDEBUG;_WINDOWS;%(PreprocessorDefinitions) - MultiThreadedDLL - Use - precomp.h - $(IntDir)$(ProjectName).pch - - $(IntDir) - $(OutDir)$(ProjectName).pdb - Level3 - true - ProgramDatabase - Default - - - ck2.lib;vxmath.lib;%(AdditionalDependencies) - ..\..\..\..\BuildingBlocks\$(ProjectName).dll - true - ..\..\..\Lib\$(Platform)\Release;%(AdditionalLibraryDirectories) - MSVCP.LIB;MSVCPRT.LIB;%(IgnoreSpecificDefaultLibraries) - .\Custom.def - true - ..\..\..\..\BuildingBlocks\$(ProjectName).pdb - 0x25480000 - $(OutDir)$(ProjectName).lib - MachineX86 - - - NDEBUG;%(PreprocessorDefinitions) - true - true - Win32 - \TempDebug\Custom___Win32_ReleaseDebug/Custom.tlb - - - - NDEBUG;%(PreprocessorDefinitions) - 0x0409 - - - - - MaxSpeed - OnlyExplicitInline - ..\..\..\Includes;%(AdditionalIncludeDirectories) - WIN32;NDEBUG;_WINDOWS;%(PreprocessorDefinitions) - true - MultiThreadedDLL - true - Use - precomp.h - $(IntDir)$(ProjectName).pch - - $(IntDir) - $(OutDir)$(ProjectName).pdb - Level3 - true - ProgramDatabase - Default - - - ck2.lib;vxmath.lib;%(AdditionalDependencies) - ..\..\..\..\BuildingBlocks\$(ProjectName).dll - true - ..\..\..\Lib\$(Platform)\Release;%(AdditionalLibraryDirectories) - MSVCP.LIB;MSVCPRT.LIB;%(IgnoreSpecificDefaultLibraries) - .\Custom.def - true - ..\..\..\..\BuildingBlocks\$(ProjectName).pdb - 0x25480000 - $(OutDir)$(ProjectName).lib - MachineX86 - - - NDEBUG;%(PreprocessorDefinitions) - true - true - Win32 - \TempDebug\logics\Release/Custom.tlb - - - - NDEBUG;%(PreprocessorDefinitions) - 0x0409 - - - - - Disabled - ..\..\..\Includes;%(AdditionalIncludeDirectories) - WIN32;_DEBUG;_WINDOWS;VX_LIB;CK_LIB;%(PreprocessorDefinitions) - EnableFastChecks - MultiThreadedDLL - Use - precomp.h - $(IntDir)$(ProjectName).pch - - $(IntDir) - $(OutDir)$(ProjectName).pdb - Level3 - true - EditAndContinue - Default - - - ..\..\..\Lib\$(Platform)\Release\$(ProjectName)Static.lib - - - _DEBUG;%(PreprocessorDefinitions) - true - true - Win32 - \TempDebug\Custom/Custom.tlb - - - - _DEBUG;%(PreprocessorDefinitions) - 0x0409 - - - - - MaxSpeed - OnlyExplicitInline - ..\..\..\Includes;%(AdditionalIncludeDirectories) - WIN32;NDEBUG;_WINDOWS;VX_LIB;CK_LIB;%(PreprocessorDefinitions) - true - MultiThreadedDLL - true - Use - precomp.h - $(IntDir)$(ProjectName).pch - - $(IntDir) - $(OutDir)$(ProjectName).pdb - Level3 - true - - Default - - - ..\..\..\Lib\$(Platform)\Release\$(ProjectName)Static.lib - - - NDEBUG;%(PreprocessorDefinitions) - true - true - Win32 - \TempDebug\logics\Release/Custom.tlb - - - - NDEBUG;%(PreprocessorDefinitions) - 0x0409 - - - - - - Disabled - EnableFastChecks - Disabled - EnableFastChecks - Disabled - MaxSpeed - MaxSpeed - - - - - - - Disabled - EnableFastChecks - Create - Disabled - EnableFastChecks - Create - Disabled - Create - MaxSpeed - Create - MaxSpeed - Create - - - - - - - - - - - - - - \ No newline at end of file diff --git a/Decorator.cpp b/Decorator.cpp index f61ec6f..cd9f8bd 100644 --- a/Decorator.cpp +++ b/Decorator.cpp @@ -1,13 +1,15 @@ #include "precomp.h" #include "interfaceData.h" -#include "assert.h" +#include #include #include #include #include -extern "C" { - extern void __stdcall OutputDebugStringA(_In_opt_ const char* lpOutputString); -}; +#include + +//extern "C" { +// extern void __stdcall OutputDebugStringA(_In_opt_ const char* lpOutputString); +//}; void printfdbg(const char* fmt, ...)//print a format string to VS debug output { char s[1024]; diff --git a/FreeBlock.cpp b/FreeBlock.cpp index 98c32c3..5446d86 100644 --- a/FreeBlock.cpp +++ b/FreeBlock.cpp @@ -20,11 +20,11 @@ CKObjectDeclaration *FillBehaviorFreeBlockDecl() od->SetType(CKDLL_BEHAVIORPROTOTYPE); od->SetGuid(CKGUID(0x51f76780, 0x6c896f5b)); od->SetAuthorGuid(VIRTOOLS_GUID); - od->SetAuthorName("Custom"); + od->SetAuthorName("BearKidsTeam"); od->SetVersion(0x00010000); od->SetCreationFunction(CreateFreeBlockProto); od->SetCompatibleClassId(CKCID_BEOBJECT); - od->SetCategory("Custom/Misc"); + od->SetCategory("Custom/VirtoolsScriptDeobfuscation"); return od; } diff --git a/StdAfx.cpp b/StdAfx.cpp index e6a160f..e679268 100644 --- a/StdAfx.cpp +++ b/StdAfx.cpp @@ -1,5 +1,5 @@ // stdafx.cpp : source file that includes just the standard includes -// FirstBehavior.pch will be the pre-compiled header +// VirtoolsScriptDeobfuscation.pch will be the pre-compiled header // stdafx.obj will contain the pre-compiled type information #include "precomp.h" diff --git a/Custom.cpp b/VirtoolsScriptDeobfuscation.cpp similarity index 92% rename from Custom.cpp rename to VirtoolsScriptDeobfuscation.cpp index 7bca715..4159898 100644 --- a/Custom.cpp +++ b/VirtoolsScriptDeobfuscation.cpp @@ -44,15 +44,15 @@ PLUGIN_EXPORT CKPluginInfo* CKGetPluginInfo(int Index) // InitVrt(); - g_PluginInfo.m_Author = "Custom"; - g_PluginInfo.m_Description = "Custom building blocks"; + 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 = "Custom"; + g_PluginInfo.m_Summary = "Virtools Script Deobfuscation"; return &g_PluginInfo; } diff --git a/Custom.def b/VirtoolsScriptDeobfuscation.def similarity index 100% rename from Custom.def rename to VirtoolsScriptDeobfuscation.def diff --git a/VirtoolsScriptDeobfuscation.props.template b/VirtoolsScriptDeobfuscation.props.template new file mode 100644 index 0000000..5b60f3b --- /dev/null +++ b/VirtoolsScriptDeobfuscation.props.template @@ -0,0 +1,26 @@ + + + + + ..\..\..\.. + ..\..\..\Temp + ..\..\..\Includes + ..\..\..\Lib\Win32\Release + + + + + + $(VIRTOOLS_PATH) + + + $(COMPILE_TEMP_PATH) + + + $(VIRTOOLS_INCLUDE_PATH) + + + $(VIRTOOLS_LIB_PATH) + + + \ No newline at end of file diff --git a/VirtoolsScriptDeobfuscation.rc b/VirtoolsScriptDeobfuscation.rc new file mode 100644 index 0000000..4ab17e1 --- /dev/null +++ b/VirtoolsScriptDeobfuscation.rc @@ -0,0 +1,100 @@ +// Microsoft Visual C++ generated resource script. +// +#include "resource.h" + +#define APSTUDIO_READONLY_SYMBOLS +///////////////////////////////////////////////////////////////////////////// +// +// Generated from the TEXTINCLUDE 2 resource. +// +#include "winres.h" + +///////////////////////////////////////////////////////////////////////////// +#undef APSTUDIO_READONLY_SYMBOLS + +///////////////////////////////////////////////////////////////////////////// +// ÖÐÎÄ(¼òÌ壬Öйú) resources + +#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_CHS) +LANGUAGE LANG_CHINESE, SUBLANG_CHINESE_SIMPLIFIED +#pragma code_page(936) + +#ifdef APSTUDIO_INVOKED +///////////////////////////////////////////////////////////////////////////// +// +// TEXTINCLUDE +// + +1 TEXTINCLUDE +BEGIN + "resource.h\0" +END + +2 TEXTINCLUDE +BEGIN + "#include ""winres.h""\r\n" + "\0" +END + +3 TEXTINCLUDE +BEGIN + "\r\n" + "\0" +END + +#endif // APSTUDIO_INVOKED + + +///////////////////////////////////////////////////////////////////////////// +// +// Version +// + +VS_VERSION_INFO VERSIONINFO + FILEVERSION 1,0,0,1 + PRODUCTVERSION 1,0,0,1 + FILEFLAGSMASK 0x3fL +#ifdef _DEBUG + FILEFLAGS 0x1L +#else + FILEFLAGS 0x0L +#endif + FILEOS 0x40004L + FILETYPE 0x2L + FILESUBTYPE 0x0L +BEGIN + BLOCK "StringFileInfo" + BEGIN + BLOCK "040904b0" + BEGIN + VALUE "CompanyName", "BearKidsTeam" + VALUE "FileDescription", "Virtools Script Deobfuscation" + VALUE "FileVersion", "1.0.0.1" + VALUE "InternalName", "VirtoolsScriptDeobfuscation.dll" + VALUE "LegalCopyright", "Copyright (c) BearKidsTeam 2018 - 2023" + VALUE "OriginalFilename", "VirtoolsScriptDeobfuscation.dll" + VALUE "ProductName", "Virtools Script Deobfuscation" + VALUE "ProductVersion", "1.0.0.1" + END + END + BLOCK "VarFileInfo" + BEGIN + VALUE "Translation", 0x409, 1200 + END +END + +#endif // ÖÐÎÄ(¼òÌ壬Öйú) resources +///////////////////////////////////////////////////////////////////////////// + + + +#ifndef APSTUDIO_INVOKED +///////////////////////////////////////////////////////////////////////////// +// +// Generated from the TEXTINCLUDE 3 resource. +// + + +///////////////////////////////////////////////////////////////////////////// +#endif // not APSTUDIO_INVOKED + diff --git a/VirtoolsScriptDeobfuscation.sln b/VirtoolsScriptDeobfuscation.sln new file mode 100644 index 0000000..ec4a046 --- /dev/null +++ b/VirtoolsScriptDeobfuscation.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.31702.278 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "VirtoolsScriptDeobfuscation", "VirtoolsScriptDeobfuscation.vcxproj", "{A57A1C07-7465-4E11-A8A1-84DA8B0C2D79}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|x86 = Debug|x86 + Release|x86 = Release|x86 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {A57A1C07-7465-4E11-A8A1-84DA8B0C2D79}.Debug|x86.ActiveCfg = Debug|Win32 + {A57A1C07-7465-4E11-A8A1-84DA8B0C2D79}.Debug|x86.Build.0 = Debug|Win32 + {A57A1C07-7465-4E11-A8A1-84DA8B0C2D79}.Release|x86.ActiveCfg = Release|Win32 + {A57A1C07-7465-4E11-A8A1-84DA8B0C2D79}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {2D426549-32E0-4AA7-A819-FC593EA7EFD6} + EndGlobalSection +EndGlobal diff --git a/VirtoolsScriptDeobfuscation.vcxproj b/VirtoolsScriptDeobfuscation.vcxproj new file mode 100644 index 0000000..200ae67 --- /dev/null +++ b/VirtoolsScriptDeobfuscation.vcxproj @@ -0,0 +1,153 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + + {A57A1C07-7465-4E11-A8A1-84DA8B0C2D79} + MFCProj + 10.0 + + + + DynamicLibrary + v142 + Dynamic + + + DynamicLibrary + v142 + false + + + + + + + + + + + + + + + <_ProjectFileVersion>15.0.26228.4 + + + $(COMPILE_TEMP_PATH)\$(Platform)\$(ProjectName)\$(Configuration)\ + $(COMPILE_TEMP_PATH)\$(Platform)\$(ProjectName)\$(Configuration)\ + true + true + + + $(COMPILE_TEMP_PATH)\$(Platform)\$(ProjectName)\$(Configuration)\ + $(COMPILE_TEMP_PATH)\$(Platform)\$(ProjectName)\$(Configuration)\ + true + false + + + + Disabled + $(VIRTOOLS_INCLUDE_PATH);%(AdditionalIncludeDirectories) + WIN32;_CRT_SECURE_NO_WARNINGS;_CRT_NONSTDC_NO_DEPRECATE;_DEBUG;_WINDOWS;%(PreprocessorDefinitions) + EnableFastChecks + MultiThreadedDebugDLL + + $(IntDir) + $(OutDir)$(ProjectName).pdb + Level3 + true + EditAndContinue + Default + Use + precomp.h + $(IntDir)$(ProjectName).pch + + + ck2.lib;vxmath.lib;%(AdditionalDependencies) + $(VIRTOOLS_PATH)\BuildingBlocks\$(ProjectName).dll + true + $(VIRTOOLS_LIB_PATH);%(AdditionalLibraryDirectories) + .\VirtoolsScriptDeobfuscation.def + true + $(VIRTOOLS_PATH)\BuildingBlocks\$(ProjectName).pdb + 0x25480000 + $(OutDir)$(ProjectName).lib + MachineX86 + + + + + MaxSpeed + OnlyExplicitInline + $(VIRTOOLS_INCLUDE_PATH);%(AdditionalIncludeDirectories) + WIN32;_CRT_SECURE_NO_WARNINGS;_CRT_NONSTDC_NO_DEPRECATE;NDEBUG;_WINDOWS;%(PreprocessorDefinitions) + true + MultiThreadedDLL + true + + $(IntDir) + $(OutDir)$(ProjectName).pdb + Level3 + true + ProgramDatabase + Default + Use + precomp.h + $(IntDir)$(ProjectName).pch + + + ck2.lib;vxmath.lib;%(AdditionalDependencies) + $(VIRTOOLS_PATH)\BuildingBlocks\$(ProjectName).dll + true + $(VIRTOOLS_LIB_PATH);%(AdditionalLibraryDirectories) + .\VirtoolsScriptDeobfuscation.def + true + $(VIRTOOLS_PATH)\BuildingBlocks\$(ProjectName).pdb + 0x25480000 + $(OutDir)$(ProjectName).lib + MachineX86 + + + + + + Disabled + EnableFastChecks + MaxSpeed + + + + + + + Disabled + EnableFastChecks + Create + MaxSpeed + Create + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Custom.vcxproj.filters b/VirtoolsScriptDeobfuscation.vcxproj.filters similarity index 78% rename from Custom.vcxproj.filters rename to VirtoolsScriptDeobfuscation.vcxproj.filters index c30f7ca..d066410 100644 --- a/Custom.vcxproj.filters +++ b/VirtoolsScriptDeobfuscation.vcxproj.filters @@ -15,9 +15,6 @@ Source Files - - Source Files - Source Files @@ -33,10 +30,9 @@ Source Files - - - - + + Source Files + @@ -45,5 +41,18 @@ Header Files + + Header Files + + + + + Resource Files + + + + + Resource Files + \ No newline at end of file diff --git a/precomp.h b/precomp.h index 33f4cf8..28c3d2e 100644 --- a/precomp.h +++ b/precomp.h @@ -1,7 +1,10 @@ +#define WIN32_LEAN_AND_MEAN +#define NOMINMAX + #include "VxDefines.h" #include "CKAll.h" #define base_path "C:\\Users\\jjy\\Desktop\\test" extern void printfdbg(const char* fmt,...); -#undef min -#undef max +//#undef min +//#undef max diff --git a/res/Custom.rc2 b/res/Custom.rc2 deleted file mode 100644 index f9b9e4e..0000000 --- a/res/Custom.rc2 +++ /dev/null @@ -1,13 +0,0 @@ -// -// FIRSTBEHAVIOR.RC2 - resources Microsoft Visual C++ does not edit directly -// - -#ifdef APSTUDIO_INVOKED - #error this file is not editable by Microsoft Visual C++ -#endif //APSTUDIO_INVOKED - - -///////////////////////////////////////////////////////////////////////////// -// Add manually edited resources here... - -///////////////////////////////////////////////////////////////////////////// diff --git a/res/Dialog Button/Cancel1.BMP b/res/Dialog Button/Cancel1.BMP deleted file mode 100644 index 699b4d0433bf1ecde1e233b22729923cd23ed96d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2550 zcmeHHI}XAy40W4UzzMhlCtyX&&eAJ%?AWoF<5aB0&vDaF5(!Z;fbvww?u(yZ6h*f8 z=ZOT@is-`CjpNKw&{6nDEh$*6wbV2XwQWmX*HPd1GzE+!9*-L!AF&84h}FcO_-WFlQm?oBLCnru zk&{Lj9Y-BO_EukZ=89>aXNfV6G0tFo1Aq1ngg)E!;X!)&sl!xTI`C=mUq3(moAgS| zA>v3S%hQ#W=kJI*KJMO!eQKulO7MxVAnj5`zujC}`33#~1`P!s diff --git a/res/Dialog Button/Ok1.bmp b/res/Dialog Button/Ok1.bmp deleted file mode 100644 index c5226fdc00972978b45e1415290738b8a135a039..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2550 zcmZ?r{l>`v24*Y_3>rX|JrIinF(U&9So{Dhn8F~OoSYbff`S;5lam>;v$GkBi;Eem ztE(CQ|NlRVN5fz=4GiNnz)BflW?`lPu&^>PGcl44n3!=CXc#3Nb^*pw{n!JBNKu-G zA3Hlc$Qd9K!oqYEKKp@sz}m>vkE|EW#U&fvpmKS&eI4PY9{S~wGr{h&yrDE{D<;9=mkACEqm)IjT}wESWQmY)EIh4(1{ diff --git a/res/Dialog Button/Ok3.bmp b/res/Dialog Button/Ok3.bmp deleted file mode 100644 index 0b275bc6eea1549231fe795e47fad9d42afaf59c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2550 zcmZ?r{l>`v24*Y_3>rX|JrIinF(U&9So{Dhn8F}hT3Q(X|NlRVN5fz=4UDifz(^Tj zrc65{1EuiAuP<8!WaHPJz#BQ>POZKW@FmU1dV@C zb&4U2q#wI9NC6)Aqv*#l9V$Saew@LF&wh|5m>a+}HaFn09~5a6#UD2N(8ciDkFFRC Ie>ms|09yD3q5uE@ diff --git a/resource.h b/resource.h index ccbe837..6ca0686 100644 --- a/resource.h +++ b/resource.h @@ -1,33 +1,14 @@ //{{NO_DEPENDENCIES}} -// Microsoft Developer Studio generated include file. -// Used by Logics.rc -// -#define VS_VERSION_INFO1 2 -#define IDI_COUNTER 129 -#define IDI_ROTATER 130 -#define IDI_SCALER 131 -#define IDI_TRANSLATER 132 -#define IDI_GRAPH 133 -#define IDD_CREATEPARAMOP 355 -#define IDB_CANCEL_P 617 -#define IDB_CANCEL_N 618 -#define IDB_OK_N 619 -#define IDB_OK_P 620 -#define IDC_OPTYPE 1016 -#define IDC_I1TYPE 1017 -#define IDC_I1PICK 1018 -#define IDC_I2TYPE 1019 -#define IDC_I2PICK 1020 -#define IDC_OTYPE 1021 -#define IDC_OPICK 1022 +// Microsoft Visual C++ generated include file. +// Used by VirtoolsScriptDeobfuscation.rc -// Next default values for new objects +// жÔÏóµÄÏÂÒ»×éĬÈÏÖµ // #ifdef APSTUDIO_INVOKED #ifndef APSTUDIO_READONLY_SYMBOLS -#define _APS_NEXT_RESOURCE_VALUE 131 -#define _APS_NEXT_COMMAND_VALUE 32771 -#define _APS_NEXT_CONTROL_VALUE 1000 +#define _APS_NEXT_RESOURCE_VALUE 101 +#define _APS_NEXT_COMMAND_VALUE 40001 +#define _APS_NEXT_CONTROL_VALUE 1001 #define _APS_NEXT_SYMED_VALUE 101 #endif #endif