Skip to content
View in the app

A better way to browse. Learn more.

DECODEHUB - Software and reverse engineering community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
Decodehub.org rank system
New badge system

KozVM v1.0 — VMProtect Anti-Anti-VM Plugin for x64dbg (No Kernel Driver Required)

Featured Replies

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
·
This is the hidden content, please

The demo

One 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

Supported versions

VMProtect

Profile ID

x64

Handling

3.3.1

331

Tested

CPUID checks

3.4.0

340

Tested

CPUID checks

3.5.0

350

Tested

CPUID checks

3.6.0

360

Tested

Version-specific CPUID flow

3.8.0

380

Tested

Version-specific CPUID flow

3.9.4

394

Tested

CPUID, firmware scanner and Sandboxie module query

3.10.1

3101

Tested

CPUID, firmware scanner and Sandboxie module query

All 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.



Installation

Download

This is the hidden content, please
. 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.txt

Do 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.

KozVM plugin menu

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 profile

Select the version directly from Plugins > KozVM x64. There is no need to open Settings every time.

KozVM profile selection

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 settings

The settings window exposes the individual options. Hover over the question mark beside a checkbox for a short explanation.

KozVM settings

Enable KozVM
Enables or disables the plugin.

Auto-enable on start
Automatically enables the selected profile when a new debugging session starts.

CPUID compatibility
Handles the supported CPUID-based anti-VM checks.

Firmware scanner
Handles 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 speed

The 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 settings

Each supported version has its own profile:

331 / 340 / 350 / 360 / 380 / 394 / 3101

The 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.

Updating

Close 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 does

KozVM 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
, which handles anti-debug checks.

The source is available under GPLv2. The release source package also includes the corresponding Unicorn sources and license texts.

About KozVM

Anti-VM analyses

The implementation follows these analyses:

Links and contact

This is the hidden content, please
·
This is the hidden content, please
·
This is the hidden content, please

For bug reports, include the VMProtect version, protection options, selected profile and relevant KozVM logs.

This is the hidden content, please


IVAN KOZLOVSKY

Discord: kariexscontxct
[email protected] -

This is the hidden content, please

  • Replies 6
  • Views 225
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • I appreciate you for these valuable efforts, my brother.

  • As a beginner I would like to examine the source code to learn a few things myself thank you very much

  • that was exactly what i needed thanks for sharing ❤️

As a beginner I would like to examine the source code to learn a few things myself thank you very much

  • 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 much

no worries.

5 hours ago, cambaz said:

I appreciate you for these valuable efforts, my brother.

no worries ❤️

that was exactly what i needed thanks for sharing ❤️

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.