C/C++ has the set of predefined structures and constants corresponding to an exe-header and so on. Do exist some analogical standard namespaces, classes in C# special for analyzing of portable executable files? Or is it only a prerogative of unmanaged unsafe more native languages?
There exists an managed library called PeNet which is available as open source and as a NuGet package, too. You can access and change nearly all structures in the PE header with this library. PeNet GitHub
Disclaimer: I'm the main author of the library
There's not much built-in to the language (if anything), but there's lots of examples out there, such as
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With