Another way to solve this is using IDA and the x86emu plugin. It's much longer because you will need to go over the multiple decryption loops before finally arriving at the ptrace syscall and the check, but it's interesting by itself as an introduction to x86emu plugin.