obfus.h is a single C header that adds compile-time polymorphic obfuscation to TinyCC builds on Windows x86 and x64 native code.
Overview
obfus.h targets native C applications and libraries built with TinyCC on Windows x86 and x64. You include one header in the translation units you want protected; obfuscation is applied during compilation rather than as a separate post-processing step.
Protection can reshape control flow for conditions, loops, and returns, obfuscate calls, build selected strings at runtime, add anti-debugging checks, and optionally virtualize sensitive arithmetic through VM markers. Instruction sequences, constants, and layouts can vary by build seed and protected site while preserving program behavior.
Common Windows API and CRT calls can receive automatic protection. Options tune extra control-flow mutation, hardware-breakpoint anti-debug checks, and fake packer signatures intended for crackme challenges. Strings can be hidden with dedicated compile-time macros; virtualization markers route math and branches through a small virtual instruction set.
The author positions the tool for lawful commercial software and crackme-style education, with guidance to isolate sensitive logic in TCC-compiled DLLs callable from other toolchains. Daily crackme binaries are offered to evaluate protection levels without setting up a compiler.
Key features
- Single-header TCC integration
- Polymorphic control-flow mutation
- Runtime string construction
- Call obfuscation
- Built-in anti-debugging
- Optional VM arithmetic markers
- Configurable build seed
- Commercial-use friendly licensing
Use cases
- Protecting licensing checks in native DLLs
- Obfuscating proprietary algorithms
- Crackme and reverse-engineering practice
- Layering with external packers
- Hiding sensitive string literals