{"id":17176129,"url":"https://github.com/upbit/lldb-capstone-arm","last_synced_at":"2025-08-05T15:13:41.150Z","repository":{"id":24039112,"uuid":"27424325","full_name":"upbit/lldb-capstone-arm","owner":"upbit","description":"Capstone disassemble scripts for lldb","archived":false,"fork":false,"pushed_at":"2019-08-14T06:15:55.000Z","size":609,"stargazers_count":73,"open_issues_count":0,"forks_count":16,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-06-12T12:50:39.773Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/upbit.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-12-02T09:11:13.000Z","updated_at":"2024-09-24T08:27:12.000Z","dependencies_parsed_at":"2022-08-22T08:40:07.421Z","dependency_job_id":null,"html_url":"https://github.com/upbit/lldb-capstone-arm","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/upbit/lldb-capstone-arm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/upbit%2Flldb-capstone-arm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/upbit%2Flldb-capstone-arm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/upbit%2Flldb-capstone-arm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/upbit%2Flldb-capstone-arm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/upbit","download_url":"https://codeload.github.com/upbit/lldb-capstone-arm/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/upbit%2Flldb-capstone-arm/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268920026,"owners_count":24329123,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-05T02:00:12.334Z","response_time":2576,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-14T23:59:11.905Z","updated_at":"2025-08-05T15:13:41.108Z","avatar_url":"https://github.com/upbit.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"lldb-capstone-arm\n=================\n\nA lldb script for disassemble ARM(Thumb)/ARM64 code by [Capstone Engine](https://github.com/aquynh/capstone)\n\n## Setup\n\nInstall [capstone](https://github.com/aquynh/capstone) and Python bindings:\n\n~~~sh\nbrew install capstone\nsudo pip install capstone\n~~~\n\nThen deploy scripts:\n\n1. Unzip and move `*.py` to **~/.lldb**\n2. Load script in lldb like: `command script import ~/.lldb/dis_capstone.py`\n\nor add `command script import ~/.lldb/dis_capstone.py` to **~/.lldbinit** (create if not exists)\n\n## Example\n\nThumb code disassemble compare:\n\n![Screenshot](https://raw.github.com/upbit/lldb-capstone-arm/master/screenshot.png)\n\n*discs* with -f and -h:\n\n~~~\n(lldb) discs -f\n  SBThread: tid = 0x357e9, frame #0: 0x31c366ba libobjc.A.dylib`objc_retain + 10\n      Address: libobjc.A.dylib[0x2f2286ba] (libobjc.A.dylib.__TEXT.__text + 116410)\n      Summary: libobjc.A.dylib`objc_retain + 10\n\n-\u003e 0x31c366ba:  09 7C            ldrb     r1, [r1, #0x10]\n   0x31c366bc:  11 F0 02 0F      tst.w    r1, #2\n   0x31c366c0:  18 BF            it       ne\n   0x31c366c2:  00 F0 8F B9      b.w      #0x31c369e4\n   0x31c366c6:  47 F6 0A 21      movw     r1, #0x7a0a\n   0x31c366ca:  C0 F2 CF 21      movt     r1, #0x2cf\n   0x31c366ce:  79 44            add      r1, pc\n   0x31c366d0:  09 68            ldr      r1, [r1]\n   0x31c366d2:  09 68            ldr      r1, [r1]\n   0x31c366d4:  F2 F7 44 BC      b.w      #0x31c28f60\n   0x31c366d8:  F0 B5            push     {r4, r5, r6, r7, lr}\n\n(lldb) discs -h\nUsage: discs (-f) (-s \u003caddr\u003e) (-l \u003clen\u003e) (-A \u003carm|arm64\u003e) (-M \u003carm|thumb\u003e)\n\nOptions:\n   -h, --help            show this help message and exit\n   -s START_ADDR, --start-addr=START_ADDR\n                         start address (default: pc)\n   -l LENGTH, --length=LENGTH\n                         decode bytes length (default: 32)\n   -A ARCH, --arch=ARCH  arch type: arm,arm64 (default: arm)\n   -M MODE, --mode=MODE  mode type: arm,thumb (auto select by cpsr[b:5])\n   -f, --full            show full outputs\n~~~\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fupbit%2Flldb-capstone-arm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fupbit%2Flldb-capstone-arm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fupbit%2Flldb-capstone-arm/lists"}