# milktea, re
In this task we got quite obfuscated, though small, binary. It asked for a password and checked whether itis correct. As an easy to overlook obfuscation, it patched its GOT `memcmp` entry to point to a custom function,which actually checks whether `arg1 == arg2 ^ const_buf`. Other than that, the reverse engineering boiled down tosimplifying as many expressions from the executed statements as possible. In the end, most of them turned outto be xors with constants, which eventually cancelled out to zero. The final encryption code was quite simpleand fit in a few lines of C code. All operations were invertible, so we wrote the decryption function, whichyielded the flag. The whole solution code is available in `doit.cpp`.