: Import your .bin file into Ghidra. You’ll need to specify the Base Address (for an RP2040, this is typically 0x10000000 ).
(The base address -b may be known from the device datasheet or UF2 flags.)
Several web-based tools allow you to upload a UF2 and download the binary payload. Step 2: From Binary to Source Code
. Some developers have explored "proof of concept" protections to make it harder to clone or modify UF2 files, though the open nature of the format means there is no perfect way to prevent code extraction once the file is distributed. Raspberry Pi Forums on how to extract a using Python? UF2 Library and a RP2040 Python Disassembler - Hackaday.io
Further reading / next steps