1226357697 / EagleVM

WIP Native code virtualizer for x64 binaries

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

EagleProtect

Playground for generating virtual machine protected x64 assembly.

EagleVM

Main protection application that virtualizes code.

EagleVMSandbox

Project for future testing on full binaries.

EagleVMStub

This is a DLL which is used in a project that needs to be protected. The EagleVM protector application searches for the usages of the stub imports to hollow the marked code sections and create virtualized code.

How it Works

Imports

Todo

Code Sections

Todo

PE VM Section

Todo

Wishlist / Flaws

  • Improve the system for which encryption/decryption routines are created for entering the virtual machine. Currently it is the same rol, add, ror routine. In the future this should be random and custom for each VMENTER. Ideally, when a protected function needs to enter the virtual machine, it will push a virtual address which contains a unique encryption routine in the VM section. So that during VMENTER routine, the other constant which was pushed to the stack can be decrypted uniquely.
  • Everything in the VM section of the PE is in a linear order. This makes reverse engineering the application fairly easy. This will be difficult but some kind of algorithm needs to be developed to create a PE section for the virtual machine first and then at the end fill the addresses which depend on one another.
  • Full project refactor? Project might become extremely messy after the item above gets added. Maybe some thinking needs to be done
  • Obfuscation (duh) since a VM is not going to carry all the weight of making the generated VMs difficult to reverse engineer.
  • For chunks of virtualized instructions, a VM enter could decrypt them using some kind of algorithm at runtime. Would hinder reverse engineering statically

Resources

  • r0da - Inspiring this project with VMP3 Virtulization analysis.
  • Iizerd - Help with general understanding of code virtualization.
  • _xeroxz - Detailed anaylsis of VMP2.
  • hasherezade - Creating PE-Bear for help with understanding, creating, and parsing PE headers.

About

WIP Native code virtualizer for x64 binaries


Languages

Language:C++ 96.7%Language:CMake 2.7%Language:C 0.6%