SkillAgentSearch skills...

ObfusGuard

A C++ header file that obfuscates code to enhance security by preventing reverse engineering and static analysis through control flow manipulation, function wrapping, and more.

Install / Use

/learn @UxHarshit/ObfusGuard
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

ObfusGuard

ObfusGuard is a C++ header file designed to obfuscate code for enhanced security. It prevents static analysis and reverse engineering by manipulating control flow, wrapping functions, and introducing other techniques to obscure the program’s logic.

Features

  • Control Flow Obfuscation: Dynamically alters the execution path of the program, making it harder to follow.
  • Inlining Prevention: Key functions are marked to prevent inlining, preserving their structure and adding complexity.
  • Randomized Operations: Introduces random calculations to further obscure the program's behavior.
  • Proxy Function Wrapping: Functions are wrapped in proxies to add extra indirection and confuse reverse engineering tools.

Usage

  1. Include the header file in your C++ project:

    #include "OBFUSCATE.hpp"
    
  2. Enable control flow obfuscation by setting CONTROL_FLOW_BRANCHING to 1:

    #define CONTROL_FLOW_BRANCHING 1
    
  3. The obfuscation techniques will automatically be applied when using the provided functions and macros.

Snapshots

Here are some snapshots showing the difference between the source code, unprotected decompiled code, and protected decompiled code:

  • Source Code: Snapshot of the original source code before obfuscation. Source Code
  • Unprotected Decompiled Code: Snapshot of the code after decompiling an unprotected version. Unprotected Decompiled Code
  • Protected Decompiled Code: Snapshot of the code after decompiling an obfuscated version. Protected Decompiled Code Protected Code Graph: Graphical representation of the protected code. Protected Code Graph

License

This project is licensed under the MIT License - see the LICENSE file for details.

Future Goals

  • [x] Obfuscate else Blocks
  • [x] Obfuscate for Loops
  • [ ] Obfuscate while Loops
  • [ ] Implement Advanced Randomization
  • [ ] Add Additional Compiler Directives

View on GitHub
GitHub Stars14
CategoryDevelopment
Updated3mo ago
Forks3

Languages

C++

Security Score

87/100

Audited on Dec 15, 2025

No findings