> For the complete documentation index, see [llms.txt](https://j0luuuu.gitbook.io/ctf/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://j0luuuu.gitbook.io/ctf/kpmg-ctf-2023/binary-cryptogram-unravel-the-enigma.md).

# Binary Cryptogram - Unravel the Enigma

## Description :

> A notorious organization, "The Enigma Syndicate," has sent encrypted messages detailing a dark conspiracy. Participants must tackle their binary cryptogram using powerful reverse engineering tool to reveal the sinister plot. Unravel the enigma, stop the conspiracy, and become the ultimate codebreaker in this thrilling CTF challenge!

## Solution :

* Open **Ghidra** and make a new project and import the executable provided.
* Double click on it and let it analyze and decompile the binary.
* Go to the main function and we can see that it is expecting `"error"` as an argument. And performs **strcmp** on it.

![strcmp](https://1613628666-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKkuxWaWwvkRd57ql1rtY%2Fuploads%2Fgit-blob-b12c452c93826c0fcd5bc87edf23923896367b47%2Fimage.png?alt=media)

* Run the executable with error as an argument and we get the flag.

![flag](https://1613628666-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKkuxWaWwvkRd57ql1rtY%2Fuploads%2Fgit-blob-92c4521ff0a651f86207dda3145ea7645bdb1b3e%2Fimage-1.png?alt=media)

* Flag:\
  `KPMG_CTF{be441ba8020e7ea99cd879b156db1e79}`
