Change that: "dwPubKey = ImageBaseAddress + 0xef9fc0;" to "dwPubKey = ImageBaseAddress + 0xF52050;" in "replace_pubkey.c" and compile.
If 0xF52050 doesn't work, choose 0xF4F650.
I haven't tested it, because i replaced the original hardcoded public key in .exe (with a hex editor). Then everything should work with new version.
Greetings.
Edit: No, not working when you replace the key. Only when you ignoring the crypto stuff. Sorry.