# load_binary

Area: Load. Safety: changes state.

Load a PE, ELF or Mach-O file (a fat Mach-O: its x86-64 slice), or any other file as raw bytes, as the current program; returns its summary. pdb=false skips the companion PDB; entry_file_offset overrides the entry; arch maps raw code or a dump.

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `arch` | string | no | Raw code or a dump: map its bytes as this arch. Values: `x86`; `x64`; `arm64` |
| `base` | string | no | With arch: the file's address (default 0). |
| `entry` | string | no | With arch: entry address (default first executable byte). |
| `entry_file_offset` | integer | no | File offset to use as the entry instead of the header's. |
| `path` | string | yes | Path to the binary on disk (PE, ELF, Mach-O, or any file as raw bytes). |
| `pdb` | boolean | no | Apply the companion PDB the debug record names (default true). |
| `regions` | string | no | With arch, not base: VA@OFF:LEN[:rwx],... (max 256). |

## Call

```json
{
  "name": "load_binary",
  "arguments": {
    "path": "<path>"
  }
}
```
