asm
asm.analAnalyze code and refs while disassembling (see anal.strings) Default is falseasm.archSet the arch to be used by asm Default is x86asm.armimmDisplay # for immediates in ARM Default is 0asm.asciidotEnable a char filter for string comments that passes through chars in the range 0x20-0x7e and turns the rest into dots (except some control chars) Default is falseasm.assemblerSet the plugin name to use when assemblingasm.bbinfoShow basic block information Default is falseasm.bblineShow empty line after every basic block Default is falseasm.bb.middleRealign disassembly if a basic block starts in the middle of an instruction Default is trueasm.bitsWord size in bits at assembler Default is 64asm.bytesDisplay the bytes of each instruction Default is trueasm.bytespaceSeparate hexadecimal bytes with a whitespace Default is falseasm.callsShow callee function related info as comments in disasm Default is trueasm.capitalizeUse camelcase at disassembly Default is falseasm.cmt.colColumn to align comments Default is 71asm.cmt.flgrefsShow comment flags associated to branch reference Default is trueasm.cmt.foldFold comments, toggle with Vz Default is falseasm.cmt.offShow offset comment in disasm (true, false, nodup) Default is nodupasm.cmt.patchShow patch comments in disasm Default is falseasm.cmt.refsShow flag and comments from refs in disasm Default is falseasm.cmt.rightShow comments at right of disassembly if they fit in screen Default is true-
print call hints when
asm.cmt.right=0
-
asm.commentsShow comments in disassembly view Default is trueasm.cpuSet the kind of asm.arch cpu Default is x86-
Example:
asm.cpu=cortexwhen architecture is ARM.
-
asm.cyclesShow CPU-cycles taken by instruction at disassembly Default is falseasm.cyclespaceIndent instructions depending on CPU-cycles Default is falseasm.decodeUse code analysis as a disassembler Default is falseasm.decoffShow segmented address in prompt (x86-16) Default is falseasm.demangleShow demangled symbols in disasm Default is trueasm.describeShow opcode description Default is falseasm.dwarfShow dwarf comment at disassembly Default is false-
asm.dwarfalong withdir.sourcecan be used for source code debugging
-
asm.dwarf.abspathShow absolute path in asm.dwarf Default is falseasm.dwarf.fileShow filename of asm.dwarf in pd Default is trueasm.emuRun ESIL emulation analysis on disasm Default is false (cpu emulation)-
asm.emuThis can be used for instruction emulation where the register values are printed after each instruction executes (not debugger) -
🚀 Set
e asm.emu =1to emulate cpu instructions asciinema -
asm.emu.preRun ESIL emulation starting at the closest flag in pd Default is false-
asm.emu.prethis will do the emulation of the instructions before the current offset to get better disasm hints
-
asm.emu.skipSkip metadata of given types in asm.emu Default is dsasm.emu.stackCreate a temporary fake stack when emulating in disasm (asm.emu) Default is falseasm.emu.strShow only strings if any in the asm.emu output Default is false-
asm.emu.strHandy when analyzing objective c binaries asm.emu.strflagAlso show flag (if any) for asm.emu string Default is trueasm.emu.strinvColor-invert asm.emu strings Default is trueasm.emu.stroffAlways show offset when printing asm.emu stringsasm.emu.writeAllow asm.emu to modify memory (WARNING) Default is falseasm.esilShow ESIL instead of mnemonic Default is falseasm.familyShow family name in disasm Default is falseasm.fcncallsShow functions calls Default is trueasm.fcnlinesShow function boundary lines Default is trueasm.featuresSpecify supported features by the target CPUasm.filterReplace numeric values by flags (e.g. 0x4003e0 -> sym.imp.printf) Default is trueasm.flagsShow flags Default is trueasm.flags.inbytesDisplay flags inside the bytes spaceasm.flags.middleRealign disassembly if there is a flag in the middle of an instructionasm.flags.offsetShow offset in flagsasm.flags.realShow flags unfiltered realnames instead of names-asm.flgoffShow offset in flags Default is falseasm.functionsShow functions in disassembly Default is trueasm.highlightHighlight current line-
Use
asm.highlightto highlight current seek. Example:e asm.highlight = $$ore asm.highlight = rip. Change color of highlight usingec line_highlight
-
asm.hintsShow hints for magic numbers in disasm Default is falseasm.immstrShow immediates values as strings Default is falseasm.imm.strtreat shortened strings as false positivesasm.immtrimRemove all offsets and constants from disassembly Default is falseasm.indentIndent disassembly based on reflines depth Default is falseasm.indentspaceHow many spaces to indent the code Default is 2asm.invhexShow invalid instructions as hexadecimal numbers Default is falseasm.jmphintsShow jump hints [numbers] in disasm Default is trueasm.jmpsubAlways substitute jump, call and branch targets in disassembly Default is false-
asm.jmpsubSubstitutes targets of jmp, call and branch ops in disassembly based on jump target in RAnalOp structure
-
asm.lbytesAlign disasm bytes to left Default is trueasm.leahintsShow LEA hints [numbers] in disasm Default is falseasm.linesShow ASCII-art lines at disassembly Default is trueasm.lines.bbShow flow lines at jumps Default is trueasm.lines.callEnable call lines Default is falseasm.lines.fcnShow function boundary lines Default is trueasm.lines.outShow out of block lines Default is trueasm.lines.retShow separator lines after ret Default is falseasm.lines.rightShow lines before opcode instead of offset Default is falseasm.lines.widePut a space between lines Default is falseasm.lines.widthNumber of columns for program flow arrows Default is 7asm.lines.jmp-asm.marksShow marks before the disassembly Default is trueasm.maxrefsMaximum number of xrefs to be displayed as list (use columns above) Default is 5asm.metaDisplay the code/data/format conversions in disasm Default is trueasm.midcursorCursor in visual disasm mode breaks the instruction Default is falseasm.middleAllow disassembling jumps in the middle of an instruction Default is falseasm.midflagsRealign disassembly if there is a flag in the middle of an instruction Default is 2asm.minicolsOnly show the instruction in the column disasm Default is falseasm.minvalsubMinimum value to substitute in instructions (asm.varsub) Default is 256asm.minvalsubis used to reduce low immediate values
asm.nbytesNumber of bytes for each opcode at disassembly Default is 6asm.nodupDo not show dupped instructions (collapse disasm) Default is falseasm.noisyShow comments considered noisy but possibly useful Default is trueasm.offsetShow offsets at disassembly Default is trueasm.osSelect operating system (kernel) Default is linuxasm.parserSet the asm parser to use Default is x86.pseudoasm.payloadsShow payload bytes in disasm Default is falseasm.pcalignOnly recognize as valid instructions aligned to this value Default is 0asm.pseudoEnable pseudo syntax Default is falseasm.reloffShow relative offsets instead of absolute address in disasm Default is falseasm.reloff.flagsShow relative offsets to flags (not only functions) Default is falseasm.relsubSubstitute pc relative expressions in disasm Default is trueasm.sectionShow section name before offset Default is falseasm.section.colColumns width to show asm.section Default is 20asm.section.subShow offsets in disasm prefixed with section/map name Default is falseasm.section.permShow section permissions in the disasm Default is falseasm.section.nameShow section name in the disasm Default is trueasm.seggrnSegment granularity in bits (x86-16) Default is 4asm.segoffShow segmented address in prompt (x86-16) Default is falseasm.shortcutShortcut position (-1, 0, 1) Default is 1asm.sizeShow size of opcodes in disassembly (pd) Default is falseasm.slowPerform slow analysis operations in disasm Default is trueasm.stackptrShow stack pointer at disassembly Default is falseasm.strencAssumed string encoding for disasm Default is guessasm.stripRemoves garbage instructions from disassemblyasm.symbolShow symbol+delta instead of absolute offset Default is falseasm.symbol.colColumns width to show asm.section Default is 40asm.syntaxSelect assembly syntax Default is intelasm.tabsUse tabs in disassembly Default is 0asm.tabsofftabulate spaces after the offset Default is 0asm.tabsonceOnly tabulate the opcode, not the arguments Default is falseasm.tailsubReplace addresses with prefix .. syntax Default is false- 🚀
asm.traceShow execution traces for each opcode Default is false asciinema asm.tracespaceIndent disassembly with trace.count information Default is falseasm.ucaseUse uppercase syntax at disassembly Default is falseasm.usercommentsShow user comments even if asm.comments is false Default is falseasm.varsShow local function variables in disassembly Default is trueasm.varsubSubstitute variables in disassembly Default is trueasm.varsub_onlySubstitute the entire variable expression with the local variable name (e.g. [local10h] instead of [ebp+local10h]) Default is trueasm.varsumShow variables summary instead of full list in disasm Default is falseasm.varxsShow accesses of local variables Default is falseasm.xrefsShow xrefs in disassembly Default is trueasm.xrefs.foldMaximum number of xrefs to be displayed as list (use columns above) Default is 5asm.xrefs.maxMaximum number of xrefs to be displayed without folding Default is 20
asm.anal asm.arch asm.armimm asm.asciidot asm.assembler asm.bbline asm.bits asm.bytes asm.bytespace asm.calls asm.capitalize asm.cmtcol asm.cmtflgrefs asm.cmtfold asm.cmtoff asm.cmtpatch asm.cmtrefs asm.cmtright asm.comments asm.cpu asm.cycles asm.cyclespace asm.decode asm.decoff asm.demangle asm.describe asm.dwarf asm.dwarf.abspath asm.dwarf.file asm.emu asm.emuskip asm.emustack asm.emustr asm.emuwrite asm.esil asm.family asm.fcncalls asm.fcnlines asm.features asm.filter asm.flags asm.flagsinbytes asm.flgoff asm.functions asm.hints asm.immstr asm.immtrim asm.indent asm.indentspace asm.invhex asm.jmphints asm.lbytes asm.leahints asm.lines asm.lines.call asm.lines.ret asm.linesout asm.linesright asm.lineswide asm.lineswidth asm.marks asm.maxrefs asm.midcursor asm.middle asm.midflags asm.minicols asm.minvalsub asm.nbytes asm.nodup asm.noisy asm.offset asm.os asm.parser asm.payloads asm.pcalign asm.pseudo asm.reloff asm.reloff.flags asm.relsub asm.section asm.section.col asm.section.sub asm.segoff asm.shortcut asm.size asm.slow asm.stackptr asm.strenc asm.symbol asm.symbol.col asm.syntax asm.tabs asm.tabsoff asm.tabsonce asm.trace asm.tracespace asm.ucase asm.vars asm.varsub asm.varsub_only asm.varsum asm.varxs asm.xrefs asm.strip asm.jmpsub asm.bbinfo asm.tailsub