recover xored file by using magic number