Kudaes
CustomEntryPoint
Rust

Select any exported function in a dll as the new dll's entry point.

Last updated Jun 20, 2026
83
Stars
17
Forks
0
Issues
0
Stars/day
Attention Score
16
Language breakdown
Rust 100.0%
โ–ธ Files click to expand
README

Description

This tool will patch the entry point of the input dll and replace it with the RVA of another exported function in that same dll. This allows to select any exported function in the dll as the new entry point.

The main reason to develop this utility is because, at the time this repository is being created, Rust does not allow to compile to a dll with a custom entry point (unless you forgo using the standard library). Anyway, the tool can be used to patch the entry point of a dll written in other languages as well.

Compilation

Since we are using LITCRYPT plugin to obfuscate string literals, it is required to set up the environment variable LITCRYPTENCRYPT_KEY before compiling the code:

C:\Users\User\Desktop\CustomEntryPoint> set LITCRYPTENCRYPTKEY="yoursupersecretkey"

After that, simply compile the code and execute it:

C:\Users\User\Desktop\CustomEntryPoint> cargo build --release C:\Users\User\Desktop\CustomEntryPoint\target\release> entry_point.exe -h

Usage

C:\Users\User\Desktop> entry_point.exe -i c:\path\to\input\file.dll -f ExportedFunctionName -o c:\output\path\file2.dll

๐Ÿ”— More in this category

ยฉ 2026 GitRepoTrend ยท Kudaes/CustomEntryPoint ยท Updated daily from GitHub