Read and edit PE data with C#
hello everyone,
i now read quite some articels about some sorts of crypting.
now i want to make a crypter that injects a litle pice of code in a crypted.exe and only when the correct password is used the program will decode correctly and run.
i know how to do this by hand,
i need to edit the PE (protable execuatable) headers so it starts my little code first, but now i want to atomate this.
so my question is:
is it possible to read/edit the PE headers from a C# application?
if not can this be done by useing particalry API's???
i hope someone can awnser this :)