This is the .NET Core app for dumping the firmware.
To use, provide payload path, serial port path, stack address you want to start overwriting at, and where you want your dumped file to be saved to. For example:
dotnet StLinkHack.dll ..\payload\payload.bin COM6 0x20001c9c firmware.bin
Be sure to plug in your ST-Link and UART adapter before running.