tl;dr reverse a functional language program, which reads input (which is the flag), encodes it, and compares with hardcode values.
[Write-up](https://thekidofarcrania.gitlab.io/2018/12/09/hxpctf/#wreckme2)