This C++ program demonstrates a technique to manipulate the entropy of a compiled binary by placing large arrays of constant values into the .text
and .data
sections. It can be used for obfuscation or anti-analysis purposes.
- Custom Section Allocation: Places predictable data in the
.text
(code) and.data
(initialized data) sections. - Entropy Reduction: Dilutes entropy in the binary, making it harder for analysis tools to distinguish between code and data.
- Compile-Time Initialization: Uses
constexpr
to embed constant values directly into the binary.
- Compiler: A C++ compiler that supports
constexpr
and custom section allocation (e.g., MSVC). - Platform: Windows.
- Clone the repository:
git clone https://github.com/WowT-sys/BinaryEntropyManipulation.git cd BinaryEntropyManipulation
- Compile the program:
cl /EHsc /W4 entropy.cpp
- Run the executable:
entropy.exe
This program is for educational purposes only. Use responsibly and ensure compliance with applicable laws and regulations