{"id":43335147,"url":"https://github.com/trumank/binfold","last_synced_at":"2026-02-02T00:25:53.309Z","repository":{"id":307042377,"uuid":"1026816495","full_name":"trumank/binfold","owner":"trumank","description":"Symbol porting","archived":false,"fork":false,"pushed_at":"2025-09-11T23:07:38.000Z","size":1179,"stargazers_count":40,"open_issues_count":3,"forks_count":3,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-09-12T01:45:51.872Z","etag":null,"topics":["bindiff","re","reverse-engineering","symbols"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/trumank.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-07-26T17:11:09.000Z","updated_at":"2025-09-11T23:07:42.000Z","dependencies_parsed_at":"2025-07-29T06:36:39.935Z","dependency_job_id":"f3bb711d-d33a-4420-b447-7ce05c2d4072","html_url":"https://github.com/trumank/binfold","commit_stats":null,"previous_names":["trumank/binfold"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/trumank/binfold","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trumank%2Fbinfold","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trumank%2Fbinfold/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trumank%2Fbinfold/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trumank%2Fbinfold/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/trumank","download_url":"https://codeload.github.com/trumank/binfold/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trumank%2Fbinfold/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28996644,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-01T23:10:54.274Z","status":"ssl_error","status_checked_at":"2026-02-01T23:10:47.298Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["bindiff","re","reverse-engineering","symbols"],"created_at":"2026-02-02T00:25:52.835Z","updated_at":"2026-02-02T00:25:53.304Z","avatar_url":"https://github.com/trumank.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# binfold\n\nA utility for quickly (4 seconds on 100MB exe) and accurately porting huge numbers (102520 out of 190396 matched (\u003e50% !!)) of symbols between similar binaries.\n\n\n\u003cdetails open\u003e\n\u003csummary\u003eBinary Ninja showing ported symbols\u003c/summary\u003e\n\u003cimg alt=\"An Unreal Engine game showing ported symbols\" src=\"https://github.com/user-attachments/assets/f8c18061-b4f8-41a1-8493-fc6c614fc4ae\" /\u003e\n\u003c/details\u003e\n\n## Building\n\n```bash\ncargo build --release\n```\n\n## Usage\n\n### 1a. Download a pre-generated database\n\n- [Unreal Engine](https://drive.google.com/file/d/18rWfF7MobqxTc8NQzZOoMzZxuxiTUHAv/view)\n\n### 1b. Generate your own\n\nCreate a database from executables with PDBs:\n\n```bash\n# Single executable\ncargo run --release gen-db -e /path/to/binary.exe -d db.fold\n\n# Multiple executables\ncargo run --release gen-db -e /path/to/binary1.exe -e /path/to/binary2.exe -d db.fold\n\n# Recursively scan directories for EXE files with PDBs\ncargo run --release gen-db -e /path/to/directory -d db.fold\n```\n\n### 2. Analyze an executable\n\nAnalyze functions in a binary and optionally match against a database:\n\n```bash\n# Generate a PDB file with matched function names\ncargo run --release analyze --exe /path/to/binary.exe --database db.fold --generate-pdb\n```\n\n## Matching algorithm\n\nThe core matching algorithm is based on [WARP](https://github.com/vector35/warp) which is essentially a hash of function body bytes. However, my implementation has deviated significantly where it comes to constraints. The current implementation populates and matches against the following types of constraints:\n- function call bodies (hash of function body)\n- function call names (hash of symbol name)\n- const string references\n\nConstraints can have an optional offset attached but they are not currently used.\n\n## Future\n\nSome more ideas worth exploring:\n- matching and naming global variables (tricky because there is nothing to hash like a function body)\n- add constraints based on variable names\n- add type information to symbols (like WARP does)\n- improve function basic block analysis (notably jump tables)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrumank%2Fbinfold","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftrumank%2Fbinfold","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrumank%2Fbinfold/lists"}