{"id":21820474,"url":"https://github.com/smx-smx/asmtool","last_synced_at":"2025-10-24T02:57:46.130Z","repository":{"id":45739658,"uuid":"191038984","full_name":"smx-smx/ASMTool","owner":"smx-smx","description":"Firmware dumper and various utilities for ASMedia USB Controllers and related firmware","archived":false,"fork":false,"pushed_at":"2025-03-13T00:25:38.000Z","size":70,"stargazers_count":77,"open_issues_count":3,"forks_count":11,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-02T12:11:53.268Z","etag":null,"topics":["asmedia","firmware","firmware-tools","linux","security","usb","usb-controller"],"latest_commit_sha":null,"homepage":"","language":"C#","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/smx-smx.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-06-09T18:04:34.000Z","updated_at":"2025-03-13T00:25:41.000Z","dependencies_parsed_at":"2024-07-27T13:05:08.712Z","dependency_job_id":null,"html_url":"https://github.com/smx-smx/ASMTool","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smx-smx%2FASMTool","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smx-smx%2FASMTool/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smx-smx%2FASMTool/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smx-smx%2FASMTool/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/smx-smx","download_url":"https://codeload.github.com/smx-smx/ASMTool/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248054193,"owners_count":21039952,"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","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":["asmedia","firmware","firmware-tools","linux","security","usb","usb-controller"],"created_at":"2024-11-27T16:34:36.526Z","updated_at":"2025-10-24T02:57:41.086Z","avatar_url":"https://github.com/smx-smx.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ASMTool\nFirmware dumper and various utilities for PCI based ASMedia USB Controllers\n\nIt looks like all ICs in the ASM1x4x, ASM2x4x and ASM3x4x family use the same interface and share the same registers, but i only tested this with the ASM2142 Controller that i have in my system.\n\n# Why?\nI'm having issues with my ASM2142 controller (lockup with USB 3.1 and large transfers), and i couldn't find a way to dump the current firmware.\n\nThe firmware updater can internally read the firmware, but it doesn't offer a way to save it.\n\n# How to use\n## Linux\n```gcc -shared -o libAsmIoLinux.so -fPIC Linux/AsmIOLinux.c```\nPlace the resulting `.so` file next to the ASMTool executable (obtained by building this project)\n\n## Windows\nYou'll need `AsmIo.sys` (for 32bit Windows) or `AsmIo64.sys` (for 64bit Windows).\n\nYou will also need `asmiodll.dll`. You can find these files if you google `ASM2142 firmware`.\nDownload the firmware updater and you'll find the files in there.\n\nPlace all files next to the ASMTool executable (obtained by building this project)\n\n# How to contribute?\nYou can either extend this program and add new functionality, or\n\nopen a new Issue and attach the firmware obtained by running this program, so that other users can update their firmwares or try older versions to see if they work better\n\n# They are custom Intel 8051 cores!\nIt turns out ASMedia USB controllers are custom Intel 8051 cores, and the firmware file can be disassembled into i8051 assembly\n\n# Security implications\nIt looks like this interface could be used to flash malicious code onto ASMedia chips, as explained by\nhttps://chefkochblog.wordpress.com/2018/03/19/asmedia-usb-3-x-controller-with-keylogger-and-malware-risks/\n\nThe chip performs no signature checks on the code being flashed and, being a PCIe device, could abuse DMA to read and write arbitrary memory\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmx-smx%2Fasmtool","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsmx-smx%2Fasmtool","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmx-smx%2Fasmtool/lists"}