#include <stdio.h>
#include <stdlib.h>
#include <string.h>

int main(void){
	FILE *fp = fopen("BackupBtcInv.rar","rb");
	fseek(fp,0,SEEK_END);
	size_t size = ftell(fp);
	fseek(fp,0,SEEK_SET);
	unsigned char *t = malloc(size);
	fread(t,1,size,fp);
	fclose(fp);
	int i;
	for (i=0;i<size;i++){
		t[i] ^= 0xFF;
	}
	fp = fopen("out.dat","wb");
	fwrite(t,1,size,fp);
	fclose(fp);
	return 0;
}