I've researched dumping the firmware of routers and you need specialized tools to dump it, there are open source tools but they are not reliable or not tested.
Last time I checked anyway when I was researching it, maybe I just don't have the technical skills
Against a advanced attacker such as Equation group who were infecting the hard drives firmware to drop implants I don't think you can say a re-flash will cure all.
That was 10 years ago now it would be scary their capabilities...
The good news you won't experience these exotic exploits/implants if your not high value or work in a hostile government/intelligence/military.
The good or bad news is that commercial malware/spyware vendors are getting caught, that's the most potent attack vector mobile infection because of E2EE apps.