Skip to content

How to decompile an .NET EXE

Misha edited this page Mar 18, 2021 · 2 revisions

How to decompile an .NET EXE

You can use this to decompile the Entry Point (main function) of an C# Executable.

var fl = new DotNetFile(file);

var decompiler = new IlDecompiler(fl.EntryPoint);

Console.WriteLine("Decompiltion of Main function:");

Console.WriteLine("");

var ilFormater = new ILFormater(decompiler.Decompile());

var outputString = ilFormater.Format();

Console.WriteLine(outputString);

The file variable is a byte array that contains the Raw .NET Executable.

Clone this wiki locally