Just done this one. It seriously took me more time to figure out what to do with the flag than to patch the binary. So my main hint is - beware of deep rabbit holes!
Quite a nice challenge for people keen on RE. Thank you @decoder and @stefano118 for making this available.