November 15Nov 15 After going through the VMProtect anti-VM checks version by version, I put the handling into an x64dbg plugin.This is KozVM v1.0. It covers the researched versions from VMProtect 3.3.1 to 3.10.1, with a separate profile for each tested version.No kernel driver is required. The plugin runs inside x64dbg in user mode. It handles supported checks in the debugged process without changing the VM configuration globally.Native x64 targets only for now. x32 development has not started. This is the hidden content, please Sign In or Sign Up · This is the hidden content, please Sign In or Sign Up The demoOne small test program here: BasicProbe.The video starts with protecting it using different VMProtect versions. Then I open the protected files inside VirtualBox under x64dbg, select the matching KozVM profile and run them. This is the hidden content, please Sign In or Sign Up Supported versionsVMProtectProfile IDx64Handling3.3.1331TestedCPUID checks3.4.0340TestedCPUID checks3.5.0350TestedCPUID checks3.6.0360TestedVersion-specific CPUID flow3.8.0380TestedVersion-specific CPUID flow3.9.4394TestedCPUID, firmware scanner and Sandboxie module query3.10.13101TestedCPUID, firmware scanner and Sandboxie module queryAll seven listed versions were tested with our protected x64 samples. This does not mean every intermediate VMProtect build or every protected program was tested.KozVM does not select the VMProtect version automatically. Select the profile for the version you are working with.InstallationDownload This is the hidden content, please Sign In or Sign Up . With x64dbg closed, copy the contents of the archive's plugins folder into the plugins directory next to x64dbg.exe:plugins/ KozVM.dp64 KozVM.dp64.ini KozVM/ unicorn.dll COPYING COPYING.LGPL2 README.txtDo not copy only KozVM.dp64. Keep the KozVM runtime directory beside it. This contains Unicorn, which is used for fast discovery.Unicorn requires the Microsoft Visual C++ x64 runtime. Python is not required to use the plugin.Start x64dbg. KozVM x64 should appear under Plugins.The default profile is 3.3.1, with auto-enable turned on. Change the profile before loading a target protected with another version.Selecting a profileSelect the version directly from Plugins > KozVM x64. There is no need to open Settings every time.Load the program after selecting the profile. At the system breakpoint, check the profile and setup messages in the log, then press F9. If x64dbg stops at the protected entry point or a TLS entry point, press F9 again.If setup fails, read the error before continuing. Selecting a profile after the program has already performed its checks cannot undo those checks.The settingsThe settings window exposes the individual options. Hover over the question mark beside a checkbox for a short explanation.Enable KozVMEnables or disables the plugin.Auto-enable on startAutomatically enables the selected profile when a new debugging session starts.CPUID compatibilityHandles the supported CPUID-based anti-VM checks.Firmware scannerHandles the firmware scanner in the 3.9.4 and 3.10.1 profiles.Sandboxie module (sbiedll.dll)Handles the Sandboxie module query in the 3.9.4 and 3.10.1 profiles. Sandboxie does not need to be installed.The firmware and Sandboxie options are available only for the applicable profiles. They are greyed out for the others.Use Save & apply to save your settings. Pause a running target before applying them.No kernel component is installed. The handling applies to the target process inside the debugger.Addresses and startup speedThe plugin discovers control points in the loaded program. It does not select targets by filename, hash or a sample-specific fixed address.Monitoring many pages during protected startup can produce a large number of debugger events and make startup slow.KozVM uses Unicorn for bounded emulation of an isolated memory snapshot to discover CPUID sites. It then follows those sites in the live target using hardware breakpoints.This discovery does not emulate a complete Windows environment. Unrecognized paths can fall back to slower guarded discovery, which is reported in the log.Available hardware-breakpoint slots and the protected code layout can affect setup. Different protection settings can also change startup time. Passing these examples is not a guarantee for every protected executable.Profiles and saved settingsEach supported version has its own profile:331 / 340 / 350 / 360 / 380 / 394 / 3101The selected profile, auto-enable setting and check options are saved in KozVM.dp64.ini, next to the plugin.The INI stores settings. It does not contain the complete implementation for a new VMProtect version. Adding a new check or version requires changing the C++ source and rebuilding.UpdatingClose x64dbg completely before replacing files. Copy over the updated plugin and runtime files.Keep your existing KozVM.dp64.ini. Replacing it with the default file discards your saved settings.What this tool doesKozVM handles the anti-VM checks covered by its profiles. Once those checks pass, you can continue examining the program in the debugger.It does not unpack the executable, remove code virtualization or bypass the program's password check. It is a separate project from This is the hidden content, please Sign In or Sign Up , which handles anti-debug checks.The source is available under GPLv2. The release source package also includes the corresponding Unicorn sources and license texts.Anti-VM analysesThe implementation follows these analyses: This is the hidden content, please Sign In or Sign Up This is the hidden content, please Sign In or Sign Up This is the hidden content, please Sign In or Sign Up Links and contact This is the hidden content, please Sign In or Sign Up · This is the hidden content, please Sign In or Sign Up · This is the hidden content, please Sign In or Sign Up For bug reports, include the VMProtect version, protection options, selected profile and relevant KozVM logs. This is the hidden content, please Sign In or Sign Up IVAN KOZLOVSKY Discord: kariexscontxct[email protected] - This is the hidden content, please Sign In or Sign Up https://ivankozlovsky.com - [email protected]
November 15Nov 15 As a beginner I would like to examine the source code to learn a few things myself thank you very much
November 15Nov 15 Author 43 minutes ago, gabriel said:As a beginner I would like to examine the source code to learn a few things myself thank you very muchno worries.5 hours ago, cambaz said:I appreciate you for these valuable efforts, my brother.no worries ❤️ https://ivankozlovsky.com - [email protected]
Thursday at 09:17 PM2 days Author 4 hours ago, ldcelm said:that was exactly what i needed thanks for sharing ❤️No worries ❤️ https://ivankozlovsky.com - [email protected]
Create an account or sign in to comment