Solution for AthCon2013's reverse-engineering challenge