Aller au contenu

asm3

Writeup de Arnold-26, repris avec son autorisation. Source : cylab-academy-writeups — challenge #72, résolu le 2026-11-24. Flags tronqués.

Catégorie : Reverse Engineering · Challenge : #72 · Résolu le : 2026-11-24

Énoncé

What does asm3(0xba75113d,0xdc9e1676,0xe2b51af6) return? Submit the flag as a hexadecimal value (starting with '0x'). NOTE: Your submission for this question will NOT be in the normal flag format. Source

Résolution

Méthode : lecture d'assemblee x86.

Trace de asm3(0xba75113d,0xdc9e1676,0xe2b51af6) : mov ah,[ebp+0xa] -> 0x75, shl ax,0x10 (16 bits -> 0), sub al,[ebp+0xc] -> 0x8a, add ah,[ebp+0xd] -> 0x168a, xor ax,[ebp+0x10] ^0x1af6 = 0x0c7c.

Flag

0xc7c