Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void addcipher(){
- unsigned int buffer;
- unsigned int key = 0;
- FILE *input = fopen("encrypted_payload.bin", "rb");
- FILE *output = fopen("decrypted_payload.bin", "wb");
- fseek(input, 0, SEEK_SET);
- fseek(output, 0, SEEK_SET);
- for(int i = 0; i < 0x1000; i++)
- {
- key += 0xD5828281;
- fread(&buffer, sizeof(int), 1, input);
- buffer += key;
- fwrite(&buffer, sizeof(int), 1, output);
- }
- fclose(input);
- fclose(output);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement