Skip to content

Commit

Permalink
Updated fortnite decryption for version 17.40-CL-17269705 (guttir14#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
Suwup authored Aug 25, 2021
1 parent 576defd commit 6a6a23d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Dumper/engine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -290,13 +290,13 @@ struct {
mov [rsp +8], rbx
push rdi
sub rsp, 0x20
mov ebx, edx
mov rdi, rcx
mov edi, edx
mov rbx, rcx
mov rax, 0xDEADBEEFDEADBEEF
jmp rax
*/
uint8 trampoline[] = { 0x48, 0x89, 0x5C, 0x24, 0x08, 0x57, 0x48, 0x83, 0xEC, 0x20, 0x89, 0xD3, 0x48, 0x89, 0xCF, 0x48, 0xB8, 0xEF, 0xBE, 0xAD, 0xDE, 0xEF, 0xBE, 0xAD, 0xDE, 0xFF, 0xE0 };
*(uint64*)(trampoline + 17) = (uint64)((uint8*)decryptAnsi + 0x4A); // https://i.imgur.com/zWtMDar.png
uint8 trampoline[] = { 0x48, 0x89, 0x5C, 0x24, 0x08, 0x57, 0x48, 0x83, 0xEC, 0x20, 0x89, 0xD7, 0x48, 0x89, 0xCB, 0x48, 0xB8, 0xEF, 0xBE, 0xAD, 0xDE, 0xEF, 0xBE, 0xAD, 0xDE, 0xFF, 0xE0 };
*(uint64*)(trampoline + 17) = (uint64)((uint8*)decryptAnsi + 0x2A); // https://i.imgur.com/zWtMDar.png
Decrypt_ANSI = (ansi_fn)VirtualAlloc(0, sizeof(trampoline), MEM_COMMIT, PAGE_EXECUTE_READWRITE);
if (Decrypt_ANSI) {
memcpy(Decrypt_ANSI, trampoline, sizeof(trampoline));
Expand Down

0 comments on commit 6a6a23d

Please sign in to comment.