🛡️ Secure your IP with 100% Air-Gapped Labs & Signed NDAs
WhatsApp: +86 18928482768 | sales@pcbdesignlab.com

Summary

Firmware reverse engineering vs software reverse engineering: hardware context, raw dumps, registers, tools and verification differences explained.

Firmware reverse engineering and software reverse engineering sound similar, but they are not the same job. Software usually runs on an operating system. It has files, processes, libraries, system calls, and a runtime environment you can inspect. Firmware runs close to the hardware. Sometimes there is no operating system at all. The code talks directly to registers, timers, ADCs, GPIO pins, boot ROMs, flash controllers, and watchdogs. That changes everything.

If you treat firmware like a desktop executable, you miss half the story. The binary alone is not enough. You also need the board, the chip datasheet, the memory map, the boot flow, and often a logic analyzer on the live signals. This guide explains the difference in practical terms, so you know which kind of reverse engineering your project actually needs.

The Short Version

QuestionSoftware reverse engineeringFirmware reverse engineering
Where it runsOn an OS: Windows, Linux, Android, macOSOn a microcontroller, SoC, or dedicated device
InputExecutable, app package, shared librariesRaw flash dump, MCU image, SPI flash, EEPROM
EnvironmentOS APIs, filesystem, network stackRegisters, peripherals, interrupts, bootloader
Main toolsIDA, Ghidra, debuggers, sandbox, API tracingGhidra, OpenOCD, J-Link, flashrom, logic analyzer
Main challengeUnderstanding application logic and API useUnderstanding hardware behavior and timing
VerificationRun app, compare outputs, patch executableFlash target, test hardware signals, compare device behavior

Software Has an Operating System Around It

A desktop or mobile program runs inside a rich environment. It calls system APIs. It opens files. It loads libraries. It allocates memory from an OS. It talks over sockets. A reverse engineer can observe those things.

That gives software reverse engineering several advantages:

  • You can run the program in a debugger.
  • You can hook API calls.
  • You can watch files and registry keys.
  • You can trace network traffic.
  • You can patch and restart quickly.

Even when the binary is packed or obfuscated, the OS gives you handles. The program must eventually call the OS to do useful work, and those calls leave evidence.

Firmware Talks to Hardware Directly

Firmware often has no OS layer to help you. A Cortex-M image may boot from address 0x08000000, set the stack pointer, jump to the reset handler, configure clocks, then start writing directly to registers such as 0x40021000 or 0x40011000. Those addresses mean nothing until you overlay the MCU’s reference manual.

That is why firmware analysis needs hardware context:

  • The MCU model and memory map
  • The board schematic or a reverse-engineered pin map
  • The peripheral register definitions
  • The boot mode and option bytes
  • The external flash layout, if present
  • Live bus captures for SPI, I2C, UART, CAN, or USB

Without those, the disassembly is just instructions. With them, the same disassembly becomes a map of what the board is doing.

The Binary Format Is Different

Software usually arrives as PE, ELF, Mach-O, APK, or another structured executable format. The format tells the tool where code sections, data sections, imports, exports, and relocation entries are.

Firmware often arrives as a raw binary dump. No headers. No symbols. No section names. Sometimes not even a known base address. You have to infer the layout:

  • Find the reset vector or boot header.
  • Identify interrupt vectors.
  • Separate code from data tables.
  • Locate calibration blocks and configuration regions.
  • Detect compressed or encrypted sections.
  • Find checksums and update metadata.

On embedded Linux firmware the SPI flash image may contain U-Boot, a kernel, a device tree, and a SquashFS or JFFS2 root filesystem. Tools like Binwalk help split that apart. On bare-metal MCU firmware, the analyst does more by hand.

Debugging Is Different Too

Software debugging usually means attaching to a process. Firmware debugging means attaching to silicon.

TaskSoftwareFirmware
Attach debuggerAttach to processAttach SWD/JTAG to target
Set breakpointSoftware breakpoint in codeHardware breakpoint or flash patch
Inspect stateRegisters, heap, stack, OS objectsCPU registers, peripheral registers, SRAM, flash
Trigger behaviorClick UI, send packet, call APIToggle pin, inject sensor signal, send CAN/UART frame
Repeat testRestart processPower-cycle board, reset MCU, reflash image

Read protection can block debugging completely. Timing can change when the probe is attached. A watchdog may reset the board while you single-step. This is normal firmware work, and it is why a lab setup matters.

Verification: Does It Behave the Same?

For software, verification may be as simple as running the patched program and checking the output. For firmware, verification happens on real hardware. The board must boot. The pins must switch at the right time. The ADC values must match. The motor must start smoothly. The CAN message must go out at the expected baud rate.

Good firmware reverse engineering compares behavior, not just code:

  • Same boot sequence
  • Same communication protocol
  • Same fault behavior
  • Same timing under load
  • Same calibration constants
  • Same checksum or version response where possible

Software reverse engineering asks, “What does this program do?” Firmware reverse engineering also asks, “What does this pin do, at what voltage, at what time, and why?”

Where Projects Get Mis-Scoped

A common mistake is sending a firmware dump to someone who only does software reverse engineering. They can disassemble the code, but without the board and the datasheet, they cannot tell what the magic addresses mean. Another mistake is assuming a firmware project ends when the binary is understood. It doesn’t. It ends when the recovered or rebuilt image runs on the hardware and passes the same tests as the original.

That is why firmware jobs usually need a full hardware package:

  • The board itself, ideally working
  • Photos of both sides
  • Main IC markings
  • Any schematics or partial documentation
  • Known-good behavior description
  • Input/output test setup
  • Original firmware image, if available

A Real Example: Same Disassembler, Different Job

A customer sent us a raw 512 KB binary from a small control board and asked for a “software reverse engineering” quote. Loaded into Ghidra, it looked like ordinary ARM code. But most of the important behavior was not visible until we had the board.

The binary wrote to timer registers to generate a 20 kHz PWM signal for a pump motor. It used ADC readings from two channels, but the scaling constants made no sense until we measured the resistor divider on the board. It sent a UART packet every 100 ms, but the packet was only meaningful once we captured the line with a logic analyzer and matched it to the external display module.

The disassembler was useful. It was not enough. The finished recovery combined code analysis, schematic tracing, ADC calibration measurement, and live bus capture. That is firmware reverse engineering.

Which Service Do You Need?

  • Choose software reverse engineering if you have a Windows/Linux/mobile app, an installer, a DLL, an APK, or a server binary.
  • Choose firmware reverse engineering if you have a board, MCU, SPI flash, EEPROM, bootloader, or embedded device behavior to recover.
  • Choose both if the product has a PC app plus a device firmware, and the protocol between them must be understood.

Related Reading

Frequently Asked Questions

Can Ghidra or IDA analyze firmware?

Yes. Both can disassemble many firmware images. The hard part is supplying the missing context: CPU architecture, base address, memory map, peripheral registers, and board behavior.

Why do you need the physical board?

Because firmware controls hardware. The board tells you what each pin connects to, what sensors and buses exist, and how the code’s register writes translate into real behavior.

Is embedded Linux firmware closer to software or firmware?

Both. The root filesystem and applications look like software. The bootloader, kernel, device tree, drivers, and hardware configuration make it firmware work too.

Can firmware be rebuilt from a disassembly?

Sometimes. The rebuilt source may not match the original source line for line, but it can be made functionally equivalent if the hardware behavior is understood and tested.

Need the Right Kind of Reverse Engineering?

Send us the device, the firmware image if you have it, and what behavior you need recovered. We’ll tell you whether this is a software job, a firmware job, or both. See our firmware reverse engineering service or contact us for an assessment.

References

  1. Firmware reference: https://en.wikipedia.org/wiki/Firmware
  2. Reverse engineering reference: https://en.wikipedia.org/wiki/Reverse_engineering
  3. Ghidra reference: https://en.wikipedia.org/wiki/Ghidra
  4. Embedded system reference: https://en.wikipedia.org/wiki/Embedded_system

Get Weekly PCB Engineering Insights!

Practical insights on PCB design, PCB reverse engineering, IC unlocking and hardware development from PCBDesign Lab.

One email each week. Unsubscribe anytime. Read our privacy policy for more info.

Get Started

PCBDesign Lab Has Helped 100+ Customers Build Their Products

Free Consulting