https://github.com/smx-smx/asmtool
Firmware dumper and various utilities for ASMedia USB Controllers and related firmware
https://github.com/smx-smx/asmtool
asmedia firmware firmware-tools linux security usb usb-controller
Last synced: 18 days ago
JSON representation
Firmware dumper and various utilities for ASMedia USB Controllers and related firmware
- Host: GitHub
- URL: https://github.com/smx-smx/asmtool
- Owner: smx-smx
- Created: 2019-06-09T18:04:34.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2025-03-13T00:25:38.000Z (about 2 months ago)
- Last Synced: 2025-04-02T12:11:53.268Z (25 days ago)
- Topics: asmedia, firmware, firmware-tools, linux, security, usb, usb-controller
- Language: C#
- Homepage:
- Size: 68.4 KB
- Stars: 77
- Watchers: 5
- Forks: 11
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ASMTool
Firmware dumper and various utilities for PCI based ASMedia USB ControllersIt 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.
# Why?
I'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.The firmware updater can internally read the firmware, but it doesn't offer a way to save it.
# How to use
## Linux
```gcc -shared -o libAsmIoLinux.so -fPIC Linux/AsmIOLinux.c```
Place the resulting `.so` file next to the ASMTool executable (obtained by building this project)## Windows
You'll need `AsmIo.sys` (for 32bit Windows) or `AsmIo64.sys` (for 64bit Windows).You will also need `asmiodll.dll`. You can find these files if you google `ASM2142 firmware`.
Download the firmware updater and you'll find the files in there.Place all files next to the ASMTool executable (obtained by building this project)
# How to contribute?
You can either extend this program and add new functionality, oropen 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
# They are custom Intel 8051 cores!
It turns out ASMedia USB controllers are custom Intel 8051 cores, and the firmware file can be disassembled into i8051 assembly# Security implications
It looks like this interface could be used to flash malicious code onto ASMedia chips, as explained by
https://chefkochblog.wordpress.com/2018/03/19/asmedia-usb-3-x-controller-with-keylogger-and-malware-risks/The chip performs no signature checks on the code being flashed and, being a PCIe device, could abuse DMA to read and write arbitrary memory