Skip to content

Instantly share code, notes, and snippets.

@herrcore
Created December 10, 2020 04:56
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save herrcore/dcbffcdf544b38d87d182c940c5ab24d to your computer and use it in GitHub Desktop.
Save herrcore/dcbffcdf544b38d87d182c940c5ab24d to your computer and use it in GitHub Desktop.
Decryptor for PrnLoader
def decrypt(data, video):
video_len = len(video)
if video_len > 0xa00000:
video_len = 0xa00000
video_offset_count = video_len /len(data)
out = ''
for i in range(len(data)):
out += chr(ord(data[i]) ^ ord(video[video_offset_count*i]))
return out
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment