Challenges
Thumb firmware
Reverse engineering
Hard
Analysing raw Cortex-M4 (Thumb-2) firmware in Ghidra
Solves: 2
Thumb firmware
Author: CyberSamSU
Points
110
A flash dump was taken from the device: fw.bin, raw firmware for an ARM Cortex-M4 (Thumb-2, little-endian). The file is loaded at address 0x08000000 (the vector table starts there: initial SP, Reset, ...). Peripheral map: USART1 0x40011000 (SR; bit 5 = RXNE) and 0x40011004 (DR), the LED output is GPIO ODR 0x40020C14.
The firmware reads 16 characters from the UART and checks them with the unlock() logic: for each character a CRC-like mixing (32-bit state, 8-step shift) is computed and compared with a table in flash. If the correct 16 characters (lowercase hex) are entered, the LED lights up. Flag: BAYROQ{THUMB_PROSHIVKA_<16 belgi>}.
Attached files
fw.bin
Log in to download
Theory: learn the topic
To submit a flag, log in.