GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - AlSch092/SimpleCodeVirtualizer: A simple compile-time code virtualization class in C++

BranchesTags
Open more actions menu

Latest commit

 

History

25 Commits
25 Commits

Folders and files

NameName
Last commit message
Last commit date
.gitignore
.gitignore
 
 
ASMStubs.asm
ASMStubs.asm
 
 
README.md
README.md
 
 
VirtualMachine.hpp
VirtualMachine.hpp
 
 
VirtualizationExample.cpp
VirtualizationExample.cpp
 
 
VirtualizationExample.sln
VirtualizationExample.sln
 
 
VirtualizationExample.vcxproj
VirtualizationExample.vcxproj
 
 

Repository files navigation

SimpleCodeVirtualizer

A simple compile-time code virtualization class in C++. Still very early in development, soon we'll add in opcode randomization at runtime along with many more opcodes.

More information will be added here as the project is developed further. Anyone is welcome to contribute if you'd like to help implement opcodes.

Features

  • Modifiable number of general purpose registers, a stack, and instruction pointer
  • Several working opcodes such as arithmetic, calling other routines, relative bytecode jumps, etc.
  • Static obfuscation of VM opcodes which are deobfuscated JIT
  • Randomization of VM opcodes which changes with each program instance (will be added soon)

Limitations & Downsides

  • Since Visual Studio in x64 does not allow inline asm, certain opcodes become cumbersome to implement, such as VM_CALL and VM_JMP
  • Adding different calling conventions in x86 beyond __cdecl will need custom logic, along with certain function parameter aspects such as pass-by-reference, const, const reference, etc.
  • Bytecode is large in size, each opcode & LHS/RHS values are 4/8 bytes each depending on whether you compile in 32-bit or 64-bit

About

A simple compile-time code virtualization class in C++

Topics

code-obfuscationcode-virtualizercplusplusobfuscation

Resources

Readme
Activity

Stars

16 stars

Watchers

2 watching

Forks

3 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.