After learning all the bits and pieces of binary exploitation, I don't think you need a win function anymore. Good luck!
nc ctf.joshl.ca 31341
dbcf5a13e47645aacaede95b26eb0f3b66ba0a7b22055280db687eb8084233d1