Jim Miller mentioned that tool during the PNL04: Looking Ahead to the Future of the CLR panel: PE File Reader/Writer. Just pay attention to the licensing condition.

If this sounds interesting, you can also look at http://www.postsharp.org/