set the correct magic

Also add the deciphered magic as a global variable