Wednesday, May 19, 2010

Finally reconstructed a .net assembly

Yep, I was toying with ECMA335 recently and parse a .net assembly was easy. The re-construct of a .net assembly from the parts was hard, as you have to keep coming back to update the different RVAs. After that, I keep running to "Invalid IL format" problems, and turned out they are the alignments.

Last night I got it working, I was able to reconstruct my reconstruct program and use the reconstructed program again. That was with 3.5 framework. When I use the 4.0 framework, I got a strange "Divided by 0" exception, even though I can de-assembly using ildasm, so it is not a total success.

No comments: