Skip to content
Adam Omar Saleh

hiCTF 2026 placeholder badge (unofficial)hiCTF 2026Reverse Engineering

Last Execution

EXE-9 image / SHA-256 checks / stream cipher

Competition
hiCTF 2026 placeholder badge (unofficial)hiCTF 2026
Category
Reverse EngineeringHard · estimated
Analysis status
Flag extracted locally
Document
Original PDF

01Challenge analysis

The problem

The image last_execution.img contained a custom execution/checking pipeline that had to be understood before the protected WILL_SEAL content could be decrypted.

02Exploit or recovery path

How I solved it

  1. 01

    I inspected last_execution.img and traced the EXE-9 execution logic, separating the constants and halt checks from the actual decryption data.

  2. 02

    I corrected the constants used by the EXE-9 emulator and reproduced the SHA-256 validation check, confirming I was modeling the intended state.

  3. 03

    Rather than waiting for a misleading final halt, I simplified the program's repeated mathematical loop to derive the required state directly.

  4. 04

    Using the recovered state, I decrypted WILL_SEAL through the SEAL-256 stage and read the released flag.

Result

RECOVERED FLAG

hiCTF{3x3c_9_r3m3mb3rs_4ll_but_th3_l4st_h4lt_l13s}

Flag extracted locally

Local Verification
The plaintext flag was recovered from the analyzed image. Platform acceptance was not recorded.
Evidence Limitation
The previous session did not preserve all EXE-9 constants or a complete standalone solver; these steps are a faithful high-level reconstruction, not invented executable code.

Original document

Original PDF

The writeup as I first documented it.