Search online for firmware dumps

Included in installer package

Sniff firmware update from wireless/ethernet

USB Device Firmware Update (DFU)

Extract from external flash chip

Flasher tools

JTAG

Physical extraction

Other methods

MCU8

NB: Need to circumvent lock bits

Hardware Hacking: Extracting Firmware from Atmel Microcontrollers | Rapid7 Blog

Extracting Firmware from Microchip PIC Microcontrollers Explained | Rapid7 Blog