hasherezade/exe_to_dll: Converts a EXE into DLL
Posted by jpluimers on 2026/10/28
Will probably be useful for me somewhere in the future: [Wayback /Archive] hasherezade/exe_to_dll: Converts a EXE into DLL.
It is based on [Wayback/Archive] Calling Arbitrary Functions In EXEs: Performing Calls to EXE Functions Like DLL Exports | mavlevin
When reversing or fuzzing an executable, being able to run an arbitrary function with controlled data is extremely helpful. Through iteratively playing with the function’s parameters and examining the output, we can better understand the function’s logic.
Note that this best works with console EXE files as UI based ones far more often assume their main module is the process itself (for instance to load resources).
TODO: check what happens when applying this to Delphi and .NET based .EXE files.
Via [Wayback/Archive] hasherezade on Twitter: “If you ever need to convert an EXE into a DLL: // #exe_to_dll “
--jeroen






Leave a Comment