Question

I'm trying to translate a compiled .NET exe (freeware) that doesn't seem to decompile properly with standard .NET decompilers. All I want to do is translate some strings in the file and have it keep running the same way, so if you know a way to do that without needing to decompile the program, I'm fine with telling me what program can do that. I've tried IDA Pro (It doesn't recompile it) and Telrik's Just Decompile with no luck. I've also tried using HxD to manually change it, but apparently the strings I'm trying to change are not readable in a hex editor.

Was it helpful?

Solution

Thanks for your help guys. The way that I figured out how to do this is listed below for those who wish to know how I did it.

  1. Open the VS 2010 command prompt as admin.

  2. Open ildasm.exe from the command prompt.

  3. In ildasm.exe, open the exe and do File->Dump (The defaults are OK.)

  4. Copy the dump to a shorter directory and replace the stuff that needs to be replaced, through Notepad++.

  5. After everything has been modified, run the following command in the VS command prompt from the work directory.

    ilasm.exe /EXE /RESOURCE=[RES FILENAME].res .\[SAVED IL FILENAME].il
    
  6. Copy it into place and everything should work well.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top