Chaos

Anyone available to checkover some code ? - don’t want to give away spoilers here

Got something to decrypt something , found something similar on google that, with a bit of alteration should do the job . Only issue is, its deleting the file or just outputting unreadable characters as apposed to what its supposed to do.

Dont really want to waste another day trying to figure why this is misbehaving.