disassemble_file_section
Disassemble a specific section (e.g., .text) from binary files (PE/ELF/Mach-O) to analyze machine code. Supports auto-detection of architecture and limiting instruction count.
Instructions
Disassemble a named section from a binary file (PE/ELF/Mach-O).
Args: file_path: Absolute path to the binary file. section_name: Section name to disassemble. Default: ".text". arch: CPU architecture. Auto-detected from file header if omitted. max_instructions: Maximum instructions to disassemble. Default: 200. Set 0 for unlimited.
Returns: Disassembly output for the section, including file metadata.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | ||
| section_name | No | .text | |
| arch | No | ||
| max_instructions | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |