public static void Disassemble(Executable executable, Address entryPoint) { ExecutableDisassembler dasm = new ExecutableDisassembler(executable); dasm.Analyze(entryPoint); }
private void DoOpenExeFile(string fileName) { //MZFile mzFile = new MZFile(fileName); //mzFile.Relocate(0x1000); // TODO: currently we don't support loadin // at segment 0. We should fix this later. Executable executable = new Executable(fileName); ExecutableDisassembler dasm = new ExecutableDisassembler(executable); dasm.Analyze(); this.program = executable; //this.disassemblyList.Image = image; this.procedureList.Program=program; this.errorList.Program = program; this.segmentList.Program = program; // this.propertiesWindow.Image = image; }