Aller au contenu

ARMssembly 4

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

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

Énoncé

What integer does this program print?

Flag format: academy{...} -> (hex, lowercase, no 0x, and 32 bits. ex. 5614267 would be academy{...}) Use argument a: 965270072

File: chall_4.S

Résolution

Méthode : interpretation à la main d'un .S ARM.

Le source ARM64 chall_4.S : main appelle func1(atoi(argv[1])) avec a=965270072. func1 : si a>100 -> func2(a+100) sinon func3(a). func2 : si x>499 -> func5(x+13) sinon func4(x-86). func5 -> func8(x) qui fait x+2. Chaîne : 965270072 -> 965270172 -> 965270185 -> 965270187 = 0x39885dab. Les autres branches (func3/func4/func6/func7) ne sont jamais prises avec cette entrée.

Flag

academy{...}

Scripts