/CodeObfuscation

A simple code encrypt and code remove protection system

Primary LanguageC++MIT LicenseMIT

Code Obfuscation

Code Obfuscation or Code Encrypt is a project which emulate ENCRYPT and CLEAR macros behavior from older Oreans's protections software. I originally developed this in 2014 but I recently decided to release as free and open source software.

Pros

  • Encrypts all the code sections available inside the functions markers.
  • Destroy and Clear code if the clear flag is enabled.

Cons

  • Requires disabling ASLR and only works in executables only.

TODO

Fix and improve the BeginEncrypt and EndEncrypt functions detections.

Demo

First make sure to disable ASLR (Properties -> Linker -> Advanced -> Dynamic base -> NO) ASLR Image

Test

The original output:

Original Output

The original reverse engineered code:

Original Ghidra code

Test Encrypted

The encrypted output:

Encrypted Output

The encrypted reverse engineered code:

Encrypted Ghidra code

B#