Skip to content

Feature request: Export disassembly to text #2502

@comex

Description

@comex

Is your feature request related to a problem? Please describe.
I want to do some simple custom pattern matching on a program's assembly instructions.

Describe the solution you'd like
I would like to be able to export a disassembly of the entire program, including addresses, labels, etc., to a text file so I can then use standard text tools to analyze or share it.

Describe alternatives you've considered

  • Select All + Copy. However, Select All was greyed out. I tried selecting the entire program by clicking at the beginning then shift-clicking at the end, then pressing copy; however, this only copied about a screen or two's worth of diassembly, not the entire program.
  • I could do the pattern matching using BN's Python API.
  • I could implement export-to-text using BN's Python API.
  • I could use a different disassembler on the same file.
    In practice I will probably do the last one since I'm lazy.

Additional context
Bells and whistles that would be nice to have along with this:

  • Option to export any of the IL views in addition to disassembly
  • Option to export with syntax highlighting in some suitable format (HTML or RTF)

IDA has two ways to export a disassembly to text. The one I mainly used, 'Create LST File', exports the same text seen in the interface. There is also 'Create ASM File' which I've never had a use for, but apparently excludes the address column so that it's closer to something that could be passed back to an assembler. Beyond that, there is 'Create C File' to export a decompilation.

Metadata

Metadata

Assignees

Labels

Effort: LowIssues require < 1 week of workImpact: MediumIssue is impactful with a bad, or no, workaround

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions