██████╗ ██╗ ██╗███████╗████████╗██╗ ██╗ ██████╗ ███████╗ ██████╗ █████╗ ██████╗██╗ ██╗███████╗██████╗
██╔══██╗██║ ██║██╔════╝╚══██╔══╝╚██╗ ██╔╝ ██╔══██╗██╔════╝ ██╔══██╗██╔══██╗██╔════╝██║ ██╔╝██╔════╝██╔══██╗
██████╔╝██║ ██║███████╗ ██║ ╚████╔╝█████╗██████╔╝█████╗█████╗██████╔╝███████║██║ █████╔╝ █████╗ ██████╔╝
██╔══██╗██║ ██║╚════██║ ██║ ╚██╔╝ ╚════╝██╔═══╝ ██╔══╝╚════╝██╔═══╝ ██╔══██║██║ ██╔═██╗ ██╔══╝ ██╔══██╗
██║ ██║╚██████╔╝███████║ ██║ ██║ ██║ ███████╗ ██║ ██║ ██║╚██████╗██║ ██╗███████╗██║ ██║
╚═╝ ╚═╝ ╚═════╝ ╚══════╝ ╚═╝ ╚═╝ ╚═╝ ╚══════╝ ╚═╝ ╚═╝ ╚═╝ ╚═════╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝
Windows Executable Packer in Rust (x86 / x64)
Anti-Debug and Anti-Analysis to VEH abuse with ROP gadget
<img src="https://img.shields.io/badge/language-Rust-orange.svg?style=for-the-badge&logo=rust" alt="Rust">
<img src="https://img.shields.io/badge/platform-Windows-0078d7.svg?style=for-the-badge&logo=windows" alt="Windows">
<img src="https://img.shields.io/badge/arch-x64-green.svg?style=for-the-badge&logo=processor" alt="x64">
A robust Windows Process Executable Packer and Launcher implementation written in Rust for Windows x64 systems. The packer packs the EXE with Progressive Masked RC4 or AIP-XOR-RC4 with customizable 30-byte key. The PE packed into the launcher utilizes VEH to abuse pagegaurd access exception in sleep function, confuses execution flow and thwarts analysis with RIP manipulation with ROP gadget in ntdll, the launcher then decrypts the packed stub and creates a suspended explorer process(can be customized), unmaps the process memory and writes the headers and sections, handles reloaction if necessary and executes the new entrypoint. This packer and launcher works on x86 and x64 system processes, defaulting to Explorer as the target process for the launcher.

Warning
This is a x64 executable, you can't compile this project in x86, this loader is made to inject into x86 and x64 processes. You can easily make a x86 process hollowing program based on this repository.
To build the project, you need to have Rust installed on your system. You can install Rust from here. Once you have Rust installed, you can build the project using the following command :
cd Launcher
cargo build --release
cd Packit
cargo build --release
This will create a Launcher.exe and Packit.exe executables in the respective target/release directory.
Use it in the command line :
Packit.exe <EXE_to_Pack> <Launcher.exe>
Launcher_packed.exe will be the packed executable
This can be integrated with reading the file directly in the code.
The Launcher is packed with a simple 32bit HelloWorld MessageBox program.

https://github.com/Azr43lKn1ght/Rust-ProcHollow
https://github.com/WKL-Sec/LayeredSyscall
https://github.com/BlackSnufkin/Rusty-Playground/tree/main/VEH-ProxyDll
https://chuongdong.com/malware%20development/2020/08/24/Packer/
This project is licensed under the MIT License - see the LICENSE file for details.
$ claude mcp add Rusty-PE-Packer \
-- python -m otcore.mcp_server <graph>