Function at 0x140003e80
Capabilities:
Accept command line arguments
Check if file exists
Get common file path
Get file attributes
Get system information on windows
Get uefi variable
Get windows directory from kuser_shared_data
Manipulate boot configuration
Manipulate console buffer
Query environment variable
Set console window title
Write file on windows

Disassembly:
push rbp
push rsi
push rdi
push r14
lea rbp, [rsp - 0x908]
sub rsp, 0xa08
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x8f0], rax
xor esi, esi
lea rdi, [rbp - 0x50]
xor eax, eax
mov dword [rsp + 0x54], esi
mov ecx, 0x114
mov dword [rsp + 0x58], esi
rep stosb byte [rdi], al
lea rcx, [rbp - 0x50]
mov dword [rbp - 0x50], 0x114
mov r14d, esi
call qword [sym.imp.ntdll.dll_RtlGetVersion]
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [0x14000d8d0], rax
cmp rax, 0xffffffffffffffff
jne 0x140003ef3
mov eax, 0xffffffff
jmp 0x140005923
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [0x14000d8e0], rax
cmp rax, 0xffffffffffffffff
jne 0x140003f15
mov eax, 0xfffffffe
jmp 0x140005923
mov rcx, qword [0x14000d8d0]
lea rdx, [rsp + 0x58]
mov qword [rsp + 0xa30], rbx
mov qword [rsp + 0xa38], r12
mov qword [rsp + 0xa40], r13
mov qword [rsp + 0xa00], r15
mov dword [0x14000d8d8], 1
call qword [sym.imp.KERNEL32.dll_GetConsoleMode]
mov ecx, dword [0x14000d8d8]
mov edx, 7
test eax, eax
cmove ecx, esi
mov dword [0x14000d8d8], ecx
mov rcx, qword [0x14000d8d0]
call qword [sym.imp.KERNEL32.dll_SetConsoleMode]
cmp dword [0x14000d8d8], esi
jne 0x140003fa0
mov rcx, qword [0x14000d8d0]
lea r9, [rsp + 0x58]
mov r8d, 2
mov qword [rsp + 0x20], rsi
lea rdx, [0x14000d010]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rbx, qword [0x14000d8d0]
lea rdx, [rsp + 0x68]
mov rcx, rbx
mov dword [rsp + 0x5c], esi
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
mov r15d, 0x20
test eax, eax
je 0x140004033
movsx eax, word [rsp + 0x68]
mov edx, r15d
movsx esi, word [rsp + 0x6a]
mov rcx, rbx
mov edi, dword [rsp + 0x5c]
mov r9d, edi
imul esi, eax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterW]
test eax, eax
je 0x140004033
lea rdx, [rsp + 0x68]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
je 0x140004033
movzx edx, word [rsp + 0x70]
lea rax, [rsp + 0x40]
mov r9d, edi
mov qword [rsp + 0x20], rax
mov r8d, esi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FillConsoleOutputAttribute]
test eax, eax
je 0x140004033
mov edx, edi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
mov esi, dword [0x14000d8d8]
lea rax, str.Universal_PatchGuard_and_Driver_Signature_Enforcement_Disable
mov rbx, qword [0x14000d8d0]
mov rdi, rax
nop word [rax + rax]
add rdi, 2
cmp word [rdi], r14w
jne 0x140004050
sub rdi, rax
lea r13, [0x140009904]
sar rdi, 1
mov r12d, 0xd
lea rax, [rdi - 1]
cmp rax, 0x40f
ja 0x14000414e
lea rdi, [rdi*2 + 6]
call qword [sym.imp.ntdll.dll_RtlGetCurrentPeb]
mov r8, rdi
lea edx, [r12 - 5]
mov rcx, qword [rax + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
test rax, rax
je 0x14000414e
lea rdx, str.Universal_PatchGuard_and_Driver_Signature_Enforcement_Disable
mov rcx, rax
call fcn.140005990
mov rcx, rdi
cmp word [rdi], r14w
je 0x1400040cb
add rcx, 2
cmp word [rcx], r14w
jne 0x1400040c1
mov r8, r13
mov edx, r12d
sub r8, rcx
nop dword [rax]
nop dword [rax + rax]
mov word [rcx], dx
lea rcx, [rcx + 2]
movzx eax, word [r8 + rcx]
movzx edx, ax
test ax, ax
jne 0x1400040e0
xor edx, edx
mov rax, rdi
mov word [rcx], dx
cmp word [rdi], dx
je 0x14000410a
add rax, 2
cmp word [rax], dx
jne 0x140004101
sub rax, rdi
mov qword [rsp + 0x20], rdx
sar rax, 1
lea r9, [rsp + 0x5c]
mov rcx, rbx
mov rdx, rdi
test esi, esi
je 0x14000412f
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_WriteConsoleW]
jmp 0x140004139
lea r8d, [rax + rax]
call qword [sym.imp.KERNEL32.dll_WriteFile]
call qword [sym.imp.ntdll.dll_RtlGetCurrentPeb]
mov r8, rdi
xor edx, edx
mov rcx, qword [rax + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
xor eax, eax
lea rdi, [rbp + 0x4e0]
xor esi, esi
mov ecx, 0x410
rep stosb byte [rdi], al
lea rax, [rbp + 0x4e0]
mov edx, 0x7ffe0030
mov ebx, esi
cmp rax, rdx
je 0x1400041a3
movzx ecx, word [rdx]
lea rax, [rbp + 0x4e0]
test cx, cx
je 0x1400041a0
lea rdi, [rbp + 0x4e0]
sub rdx, rdi
nop dword [rax]
mov word [rax], cx
add rax, 2
movzx ecx, word [rdx + rax]
test cx, cx
jne 0x140004190
mov word [rax], si
lea rcx, [rbp + 0x4e0]
cmp word [rbp + 0x4e0], bx
je 0x1400041bc
add rcx, 2
cmp word [rcx], bx
jne 0x1400041b3
lea rdi, str._system32_ntoskrnl.exe
mov edx, 0x5c
sub rdi, rcx
nop dword [rax + rax]
movzx eax, word [rdi + rcx + 2]
mov word [rcx], dx
lea rcx, [rcx + 2]
movzx edx, ax
test ax, ax
jne 0x1400041d0
xor edx, edx
mov word [rcx], si
lea rcx, [rbp + 0x4e0]
lea r8d, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
test rax, rax
je 0x1400056a9
lea rdx, str.NtBuildNumber
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140004224
movzx r14d, word [rax]
mov ebx, 1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test ebx, ebx
je 0x1400056a9
cmp dword [rbp - 0x44], r14d
jne 0x140005663
lea rdx, [rsp + 0x54]
call fcn.140001710
test eax, eax
je 0x1400043a9
cmp dword [rsp + 0x54], esi
je 0x1400043a9
xor eax, eax
lea rdi, [rbp + 0xd0]
mov ecx, 0x410
lea rdx, [rbp + 0xd0]
rep stosb byte [rdi], al
lea rdi, str.Patch:_Boot_entry_already_present__remove_it_to_run_this_patch_again_if_needed._n_r
mov ecx, 0x50
lea rax, [rbp + 0xd0]
sub rdi, rax
nop dword [rax + rax]
movzx eax, word [rdi + rdx + 2]
mov word [rdx], cx
lea rdx, [rdx + 2]
movzx ecx, ax
test ax, ax
jne 0x140004290
xor r15d, r15d
lea rcx, [rbp + 0xd0]
mov word [rdx], r15w
cmp word [rbp + 0xd0], si
je 0x1400042c9
nop dword [rax + rax]
add rcx, 2
cmp word [rcx], si
jne 0x1400042c0
lea rdi, str.Removal:_Launch_elevated_command_prompt_and_use_the_following_command____n_r
mov edx, 0x52
sub rdi, rcx
nop dword [rax + rax]
movzx eax, word [rdi + rcx + 2]
mov word [rcx], dx
lea rcx, [rcx + 2]
movzx edx, ax
test ax, ax
jne 0x1400042e0
mov word [rcx], r15w
lea rcx, [rbp + 0xd0]
cmp word [rbp + 0xd0], si
je 0x140004319
nop dword [rax + rax]
add rcx, 2
cmp word [rcx], si
jne 0x140004310
lea rdi, str.bcdedit__delete
mov edx, 0x62
sub rdi, rcx
nop dword [rax + rax]
movzx eax, word [rdi + rcx + 2]
mov word [rcx], dx
lea rcx, [rcx + 2]
movzx edx, ax
test ax, ax
jne 0x140004330
mov word [rcx], r15w
lea rcx, [rbp + 0xd0]
cmp word [rbp + 0xd0], si
je 0x140004369
nop dword [rax + rax]
add rcx, 2
cmp word [rcx], si
jne 0x140004360
lea rdi, str.71A3C7FC_F751_4982_AEC1_E958357E6813
mov edx, 0x7b
sub rdi, rcx
nop dword [rax + rax]
movzx eax, word [rdi + rcx + 2]
mov word [rcx], dx
lea rcx, [rcx + 2]
movzx edx, ax
test ax, ax
jne 0x140004380
lea rdx, [rbp + 0xd0]
mov word [rcx], r15w
call fcn.140002d10
jmp 0x1400056b8
xor eax, eax
mov dword [rsp + 0x58], esi
lea rdi, [rbp + 0xd0]
mov ecx, 0x410
rep stosb byte [rdi], al
lea rdi, [rbp + 0xd0]
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [rsp + 0x58], esi
mov rcx, rax
test rax, rax
jne 0x1400043e2
mov word [rbp + 0xd0], si
jmp 0x14000447a
mov r8d, esi
movzx eax, word [rcx]
mov edx, esi
cmp ax, r15w
jne 0x1400043fe
movzx eax, word [rcx + 2]
add rcx, 2
cmp ax, r15w
je 0x1400043f0
test ax, ax
je 0x14000446e
cmp ax, 0x22
je 0x14000440f
movzx r9d, r15w
jmp 0x14000441d
movzx eax, word [rcx + 2]
add rcx, 2
mov r9d, 0x22
cmp ax, 0x22
je 0x140004458
cmp ax, r9w
je 0x140004458
test ax, ax
je 0x140004461
inc edx
cmp r8d, 1
jne 0x14000444a
cmp edx, 0x208
jae 0x14000444a
test rdi, rdi
je 0x14000444a
mov word [rdi], ax
add rdi, 2
movzx eax, word [rcx + 2]
add rcx, 2
cmp ax, 0x22
jne 0x140004423
cmp word [rcx], si
je 0x140004461
add rcx, 2
inc r8d
cmp r8d, 1
jbe 0x1400043e5
test rdi, rdi
je 0x140004476
mov word [rdi], si
mov dword [rsp + 0x58], edx
mov r8, rsi
lea r9, [0x14000a430]
nop dword [rax]
nop dword [rax + rax]
movzx ecx, word [rbp + r8 + 0xd0]
lea r8, [r8 + 2]
lea eax, [rcx - 0x41]
cmp ax, 0x19
lea edx, [rcx + 0x20]
cmova dx, cx
movzx ecx, word [r8 + r9 - 2]
lea eax, [rcx - 0x41]
cmp ax, 0x19
lea edi, [rcx + 0x20]
cmova di, cx
test dx, dx
je 0x1400044c9
cmp dx, di
je 0x140004490
cmp dx, di
mov dword [rsp + 0x40], esi
lea rdi, [rsp + 0x68]
mov rcx, r15
sete r14b
lea r9, [rsp + 0x40]
xor eax, eax
lea rdx, [rsp + 0x68]
rep stosb byte [rdi], al
lea ecx, [rax + 0x5a]
mov r8d, r15d
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov ebx, dword [rsp + 0x78]
mov ecx, eax
mov edi, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test edi, edi
js 0x14000564d
lea eax, [rbx - 1]
cmp eax, 1
ja 0x14000563a
mov r8d, esi
cmp ebx, 2
sete r8b
mov dword [0x14000d8dc], r8d
jne 0x140004655
mov byte [rsp + 0x50], sil
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x48]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ntdll.dll_NtOpenProcessToken]
test eax, eax
js 0x140004631
mov rcx, qword [rsp + 0x48]
lea r8, [rbp - 0x78]
mov qword [rsp + 0x28], rsi
mov r9d, 0x10
xor edx, edx
mov qword [rsp + 0x20], rsi
mov dword [rbp - 0x78], 1
mov qword [rbp - 0x74], 0x16
mov dword [rbp - 0x6c], 2
call qword [sym.imp.ntdll.dll_NtAdjustPrivilegesToken]
mov rcx, qword [rsp + 0x48]
mov edi, eax
mov eax, 0xc0000061
cmp edi, 0x106
cmove edi, eax
call qword [sym.imp.ntdll.dll_NtClose]
test edi, edi
js 0x140004631
mov r9d, 1
lea r8, [rsp + 0x50]
lea rdx, str.8be4df61_93ca_11d2_aa0d_00e098032b8c
lea rcx, str.SecureBoot
call qword [sym.imp.KERNEL32.dll_GetFirmwareEnvironmentVariableW]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x40]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ntdll.dll_NtOpenProcessToken]
test eax, eax
js 0x140004631
mov rcx, qword [rsp + 0x40]
lea r8, [rsp + 0x68]
mov qword [rsp + 0x28], rsi
mov r9d, 0x10
xor edx, edx
mov qword [rsp + 0x20], rsi
mov dword [rsp + 0x68], 1
mov qword [rsp + 0x6c], 0x16
mov dword [rsp + 0x74], esi
call qword [sym.imp.ntdll.dll_NtAdjustPrivilegesToken]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntdll.dll_NtClose]
cmp byte [rsp + 0x50], sil
je 0x14000464e
lea rdx, str.SecureBoot_enabled._Disable_it_before_using_this_program.
mov ecx, 0x65e
call fcn.140007010
jmp 0x1400056b5
mov r8d, dword [0x14000d8dc]
lea rdi, str.UPGDSED_v1.3.0
mov edx, 0x55
lea rax, [rbp + 0xd0]
sub rdi, rax
lea rcx, [rbp + 0xd0]
nop dword [rax]
nop word [rax + rax]
movzx eax, word [rdi + rcx + 2]
mov word [rcx], dx
lea rcx, [rcx + 2]
movzx edx, ax
test ax, ax
jne 0x140004680
mov word [rcx], si
lea rcx, [rbp + 0xd0]
test r8d, r8d
je 0x1400046db
cmp word [rbp + 0xd0], si
je 0x1400046b9
nop dword [rax]
add rcx, 2
cmp word [rcx], si
jne 0x1400046b0
lea rdx, str.__EFI_Boot
sub rdx, rcx
movzx eax, word [rdx + rcx + 2]
mov word [rcx], r15w
lea rcx, [rcx + 2]
movzx r15d, ax
test ax, ax
jne 0x1400046c3
jmp 0x140004716
cmp word [rbp + 0xd0], si
je 0x1400046ed
add rcx, 2
cmp word [rcx], si
jne 0x1400046e4
lea rdx, str.__Legacy_Boot
sub rdx, rcx
nop word [rax + rax]
movzx eax, word [rdx + rcx + 2]
mov word [rcx], r15w
lea rcx, [rcx + 2]
movzx r15d, ax
test ax, ax
jne 0x140004700
xor r15d, r15d
mov word [rcx], r15w
lea rcx, [rbp + 0xd0]
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
mov rbx, qword [0x14000dc58]
lea rdi, [rbp + 0xd0]
xor eax, eax
mov ecx, 0x410
cmp dword [0x14000d8dc], esi
rep stosb byte [rdi], al
lea rax, [0x14000a580]
mov rcx, rbx
lea rdi, str.LegacyBIOS
cmovne rdi, rax
call qword [0x1400092d8]
mov eax, dword [rbp - 0x44]
lea r9, str.Patch:_Windows_Version:__lu._lu._lu___ws_n
mov qword [rsp + 0x38], rdi
lea rcx, [rbp + 0xd0]
mov dword [rsp + 0x30], eax
mov edx, 0x104
mov eax, dword [rbp - 0x48]
mov r8d, edx
mov dword [rsp + 0x28], eax
mov eax, dword [rbp - 0x4c]
mov dword [rsp + 0x20], eax
call rbx
lea rdx, [rbp + 0xd0]
call fcn.140002d10
mov eax, dword [rbp - 0x44]
add eax, 0xffffe24f
cmp eax, 0x253d
ja 0x140005629
xor eax, eax
lea rdi, [0x14000d980]
mov ecx, 0x20a
lea rdx, [0x14000d980]
rep stosb byte [rdi], al
lea rcx, str._temp__
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x140005610
xor eax, eax
lea rdi, [0x14000de80]
mov ecx, 0x20a
lea rdx, [0x14000de80]
rep stosb byte [rdi], al
lea rcx, str._SYSTEMDRIVE_
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x1400055f7
lea rbx, [0x14000dc60]
xor eax, eax
mov rdi, rbx
mov ecx, 0x20a
rep stosb byte [rdi], al
mov rcx, rbx
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov rdi, qword [0x14000dc58]
mov rcx, rdi
call qword [0x1400092d8]
lea rax, str.bcdedit.exe
mov edx, 0x104
mov qword [rsp + 0x28], rax
lea r9, str._s_s
mov r8d, edx
mov qword [rsp + 0x20], rbx
lea rcx, [rbp + 0xd0]
call rdi
lea rcx, [rbp + 0xd0]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400055e6
call fcn.140007690
test eax, eax
je 0x1400055c9
mov esi, dword [0x14000d8d8]
lea rax, str.Patch:_Symbol_dlls_extracted_successfully.
mov rbx, qword [0x14000d8d0]
mov rdi, rax
nop dword [rax + rax]
add rdi, 2
cmp word [rdi], 0
jne 0x1400048b0
sub rdi, rax
sar rdi, 1
lea rax, [rdi - 1]
cmp rax, 0x40f
ja 0x14000499e
lea rdi, [rdi*2 + 6]
call qword [sym.imp.ntdll.dll_RtlGetCurrentPeb]
mov r8, rdi
mov edx, 8
mov rcx, qword [rax + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
test rax, rax
je 0x14000499e
lea rdx, str.Patch:_Symbol_dlls_extracted_successfully.
mov rcx, rax
call fcn.140005990
cmp word [rdi], 0
mov rcx, rdi
je 0x14000491e
add rcx, 2
cmp word [rcx], 0
jne 0x140004914
mov r8, r13
mov edx, r12d
sub r8, rcx
nop word [rax + rax]
mov word [rcx], dx
lea rcx, [rcx + 2]
movzx eax, word [r8 + rcx]
movzx edx, ax
test ax, ax
jne 0x140004930
mov word [rcx], r15w
mov rax, rdi
cmp word [rdi], dx
je 0x14000495a
add rax, 2
cmp word [rax], 0
jne 0x140004950
sub rax, rdi
mov qword [rsp + 0x20], r15
sar rax, 1
lea r9, [rsp + 0x40]
mov rdx, rdi
mov rcx, rbx
test esi, esi
je 0x14000497f
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_WriteConsoleW]
jmp 0x140004989
lea r8d, [rax + rax]
call qword [sym.imp.KERNEL32.dll_WriteFile]
call qword [sym.imp.ntdll.dll_RtlGetCurrentPeb]
mov r8, rdi
xor edx, edx
mov rcx, qword [rax + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
call fcn.1400059d0
test eax, eax
je 0x1400055b3
mov esi, dword [0x14000d8d8]
lea rax, str.Patch:_Dbghelp_initialized.
mov rbx, qword [0x14000d8d0]
mov rdi, rax
add rdi, 2
cmp word [rdi], 0
jne 0x1400049c2
sub rdi, rax
sar rdi, 1
lea rax, [rdi - 1]
cmp rax, 0x40f
ja 0x140004aae
lea rdi, [rdi*2 + 6]
call qword [sym.imp.ntdll.dll_RtlGetCurrentPeb]
mov r8, rdi
mov edx, 8
mov rcx, qword [rax + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
test rax, rax
je 0x140004aae
lea rdx, str.Patch:_Dbghelp_initialized.
mov rcx, rax
call fcn.140005990
cmp word [rdi], 0
mov rcx, rdi
je 0x140004a30
add rcx, 2
cmp word [rcx], 0
jne 0x140004a26
mov r8, r13
mov edx, r12d
sub r8, rcx
nop dword [rax]
mov word [rcx], dx
lea rcx, [rcx + 2]
movzx eax, word [r8 + rcx]
movzx edx, ax
test ax, ax
jne 0x140004a40
mov word [rcx], r15w
mov rax, rdi
cmp word [rdi], dx
je 0x140004a6a
add rax, 2
cmp word [rax], 0
jne 0x140004a60
sub rax, rdi
mov qword [rsp + 0x20], r15
sar rax, 1
lea r9, [rsp + 0x40]
mov rdx, rdi
mov rcx, rbx
test esi, esi
je 0x140004a8f
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_WriteConsoleW]
jmp 0x140004a99
lea r8d, [rax + rax]
call qword [sym.imp.KERNEL32.dll_WriteFile]
call qword [sym.imp.ntdll.dll_RtlGetCurrentPeb]
mov r8, rdi
xor edx, edx
mov rcx, qword [rax + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov esi, dword [0x14000d8d8]
lea rax, str.Patch:_Copy_files_to__TEMP_.
mov rbx, qword [0x14000d8d0]
mov rdi, rax
add rdi, 2
cmp word [rdi], 0
jne 0x140004ac5
sub rdi, rax
sar rdi, 1
lea rax, [rdi - 1]
cmp rax, 0x40f
ja 0x140004bbe
lea rdi, [rdi*2 + 6]
call qword [sym.imp.ntdll.dll_RtlGetCurrentPeb]
mov r8, rdi
mov edx, 8
mov rcx, qword [rax + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
test rax, rax
je 0x140004bbe
lea rdx, str.Patch:_Copy_files_to__TEMP_.
mov rcx, rax
call fcn.140005990
cmp word [rdi], 0
mov rcx, rdi
je 0x140004b3a
nop dword [rax]
add rcx, 2
cmp word [rcx], 0
jne 0x140004b30
mov r8, r13
mov edx, r12d
sub r8, rcx
nop dword [rax]
nop word [rax + rax]
mov word [rcx], dx
lea rcx, [rcx + 2]
movzx eax, word [r8 + rcx]
movzx edx, ax
test ax, ax
jne 0x140004b50
mov word [rcx], r15w
mov rax, rdi
cmp word [rdi], dx
je 0x140004b7a
add rax, 2
cmp word [rax], 0
jne 0x140004b70
sub rax, rdi
mov qword [rsp + 0x20], r15
sar rax, 1
lea r9, [rsp + 0x54]
mov rdx, rdi
mov rcx, rbx
test esi, esi
je 0x140004b9f
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_WriteConsoleW]
jmp 0x140004ba9
lea r8d, [rax + rax]
call qword [sym.imp.KERNEL32.dll_WriteFile]
call qword [sym.imp.ntdll.dll_RtlGetCurrentPeb]
mov r8, rdi
xor edx, edx
mov rcx, qword [rax + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
call fcn.1400070f0
mov esi, dword [0x14000d8d8]
mov rbx, qword [0x14000d8d0]
test al, al
je 0x1400054b4
lea rax, str.Patch:_Copy_success.
mov rdi, rax
add rdi, 2
cmp word [rdi], 0
jne 0x140004be2
sub rdi, rax
sar rdi, 1
lea rax, [rdi - 1]
cmp rax, 0x40f
ja 0x140004cce
lea rdi, [rdi*2 + 6]
call qword [sym.imp.ntdll.dll_RtlGetCurrentPeb]
mov r8, rdi
mov edx, 8
mov rcx, qword [rax + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
test rax, rax
je 0x140004cce
lea rdx, str.Patch:_Copy_success.
mov rcx, rax
call fcn.140005990
cmp word [rdi], 0
mov rcx, rdi
je 0x140004c50
add rcx, 2
cmp word [rcx], 0
jne 0x140004c46
mov r8, r13
mov edx, r12d
sub r8, rcx
nop dword [rax]
mov word [rcx], dx
lea rcx, [rcx + 2]
movzx eax, word [r8 + rcx]
movzx edx, ax
test ax, ax
jne 0x140004c60
mov word [rcx], r15w
mov rax, rdi
cmp word [rdi], dx
je 0x140004c8a
add rax, 2
cmp word [rax], 0
jne 0x140004c80
sub rax, rdi
mov qword [rsp + 0x20], r15
sar rax, 1
lea r9, [rsp + 0x40]
mov rdx, rdi
mov rcx, rbx
test esi, esi
je 0x140004caf
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_WriteConsoleW]
jmp 0x140004cb9
lea r8d, [rax + rax]
call qword [sym.imp.KERNEL32.dll_WriteFile]
call qword [sym.imp.ntdll.dll_RtlGetCurrentPeb]
mov r8, rdi
xor edx, edx
mov rcx, qword [rax + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov esi, dword [0x14000d8d8]
lea rax, str.Patch:_Scanning_ntoskrnl_for_patterns._n
mov rbx, qword [0x14000d8d0]
mov rdi, rax
add rdi, 2
cmp word [rdi], 0
jne 0x140004ce5
sub rdi, rax
sar rdi, 1
lea rax, [rdi - 1]
cmp rax, 0x40f
ja 0x140004dde
lea rdi, [rdi*2 + 6]
call qword [sym.imp.ntdll.dll_RtlGetCurrentPeb]
mov r8, rdi
mov edx, 8
mov rcx, qword [rax + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
test rax, rax
je 0x140004dde
lea rdx, str.Patch:_Scanning_ntoskrnl_for_patterns._n
mov rcx, rax
call fcn.140005990
cmp word [rdi], 0
mov rcx, rdi
je 0x140004d5a
nop dword [rax]
add rcx, 2
cmp word [rcx], 0
jne 0x140004d50
mov r8, r13
mov edx, r12d
sub r8, rcx
nop dword [rax]
nop word [rax + rax]
mov word [rcx], dx
lea rcx, [rcx + 2]
movzx eax, word [r8 + rcx]
movzx edx, ax
test ax, ax
jne 0x140004d70
mov word [rcx], r15w
mov rax, rdi
cmp word [rdi], dx
je 0x140004d9a
add rax, 2
cmp word [rax], 0
jne 0x140004d90
sub rax, rdi
mov qword [rsp + 0x20], r15
sar rax, 1
lea r9, [rsp + 0x54]
mov rdx, rdi
mov rcx, rbx
test esi, esi
je 0x140004dbf
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_WriteConsoleW]
jmp 0x140004dc9
lea r8d, [rax + rax]
call qword [sym.imp.KERNEL32.dll_WriteFile]
call qword [sym.imp.ntdll.dll_RtlGetCurrentPeb]
mov r8, rdi
xor edx, edx
mov rcx, qword [rax + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
movzx ecx, r14b
call fcn.140002e60
mov esi, dword [0x14000d8d8]
mov rbx, qword [0x14000d8d0]
test al, al
je 0x1400053f4
lea rax, str._nPatch:_Ntoskrnl_scan_complete.
mov rdi, rax
add rdi, 2
cmp word [rdi], 0
jne 0x140004e06
sub rdi, rax
sar rdi, 1
lea rax, [rdi - 1]
cmp rax, 0x40f
ja 0x140004efe
lea rdi, [rdi*2 + 6]
call qword [sym.imp.ntdll.dll_RtlGetCurrentPeb]
mov r8, rdi
mov edx, 8
mov rcx, qword [rax + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
test rax, rax
je 0x140004efe
lea rdx, str._nPatch:_Ntoskrnl_scan_complete.
mov rcx, rax
call fcn.140005990
cmp word [rdi], 0
mov rcx, rdi
je 0x140004e7a
nop word [rax + rax]
add rcx, 2
cmp word [rcx], 0
jne 0x140004e70
mov r8, r13
mov edx, r12d
sub r8, rcx
nop dword [rax]
nop word [rax + rax]
mov word [rcx], dx
lea rcx, [rcx + 2]
movzx eax, word [r8 + rcx]
movzx edx, ax
test ax, ax
jne 0x140004e90
mov word [rcx], r15w
mov rax, rdi
cmp word [rdi], dx
je 0x140004eba
add rax, 2
cmp word [rax], 0
jne 0x140004eb0
sub rax, rdi
mov qword [rsp + 0x20], r15
sar rax, 1
lea r9, [rsp + 0x40]
mov rdx, rdi
mov rcx, rbx
test esi, esi
je 0x140004edf
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_WriteConsoleW]
jmp 0x140004ee9
lea r8d, [rax + rax]
call qword [sym.imp.KERNEL32.dll_WriteFile]
call qword [sym.imp.ntdll.dll_RtlGetCurrentPeb]
mov r8, rdi
xor edx, edx
mov rcx, qword [rax + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov esi, dword [0x14000d8d8]
lea rax, str.Patch:_Scanning_winload_for_patterns._n
mov rbx, qword [0x14000d8d0]
mov rdi, rax
add rdi, 2
cmp word [rdi], 0
jne 0x140004f15
sub rdi, rax
sar rdi, 1
lea rax, [rdi - 1]
cmp rax, 0x40f
ja 0x14000500e
lea rdi, [rdi*2 + 6]
call qword [sym.imp.ntdll.dll_RtlGetCurrentPeb]
mov r8, rdi
mov edx, 8
mov rcx, qword [rax + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
test rax, rax
je 0x14000500e
lea rdx, str.Patch:_Scanning_winload_for_patterns._n
mov rcx, rax
call fcn.140005990
cmp word [rdi], 0
mov rcx, rdi
je 0x140004f8a
nop dword [rax]
add rcx, 2
cmp word [rcx], 0
jne 0x140004f80
mov r8, r13
mov edx, r12d
sub r8, rcx
nop dword [rax]
nop word [rax + rax]
mov word [rcx], dx
lea rcx, [rcx + 2]
movzx eax, word [r8 + rcx]
movzx edx, ax
test ax, ax
jne 0x140004fa0
mov word [rcx], r15w
mov rax, rdi
cmp word [rdi], dx
je 0x140004fca
add rax, 2
cmp word [rax], 0
jne 0x140004fc0
sub rax, rdi
mov qword [rsp + 0x20], r15
sar rax, 1
lea r9, [rsp + 0x54]
mov rdx, rdi
mov rcx, rbx
test esi, esi
je 0x140004fef
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_WriteConsoleW]
jmp 0x140004ff9
lea r8d, [rax + rax]
call qword [sym.imp.KERNEL32.dll_WriteFile]
call qword [sym.imp.ntdll.dll_RtlGetCurrentPeb]
mov r8, rdi
xor edx, edx
mov rcx, qword [rax + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
call fcn.1400033c0
mov esi, dword [0x14000d8d8]
mov rbx, qword [0x14000d8d0]
test al, al
je 0x140005336
lea rax, str._nPatch:_Winload_scan_complete.
mov rdi, rax
add rdi, 2
cmp word [rdi], 0
jne 0x140005032
sub rdi, rax
sar rdi, 1
lea rax, [rdi - 1]
cmp rax, 0x40f
ja 0x14000511e
lea rdi, [rdi*2 + 6]
call qword [sym.imp.ntdll.dll_RtlGetCurrentPeb]
mov r8, rdi
mov edx, 8
mov rcx, qword [rax + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
test rax, rax
je 0x14000511e
lea rdx, str._nPatch:_Winload_scan_complete.
mov rcx, rax
call fcn.140005990
cmp word [rdi], 0
mov rcx, rdi
je 0x1400050a0
add rcx, 2
cmp word [rcx], 0
jne 0x140005096
mov r8, r13
mov edx, r12d
sub r8, rcx
nop dword [rax]
mov word [rcx], dx
lea rcx, [rcx + 2]
movzx eax, word [r8 + rcx]
movzx edx, ax
test ax, ax
jne 0x1400050b0
mov word [rcx], r15w
mov rax, rdi
cmp word [rdi], dx
je 0x1400050da
add rax, 2
cmp word [rax], 0
jne 0x1400050d0
sub rax, rdi
mov qword [rsp + 0x20], r15
sar rax, 1
lea r9, [rsp + 0x40]
mov rdx, rdi
mov rcx, rbx
test esi, esi
je 0x1400050ff
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_WriteConsoleW]
jmp 0x140005109
lea r8d, [rax + rax]
call qword [sym.imp.KERNEL32.dll_WriteFile]
call qword [sym.imp.ntdll.dll_RtlGetCurrentPeb]
mov r8, rdi
xor edx, edx
mov rcx, qword [rax + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
movzx ecx, r14b
call fcn.140003ab0
test al, al
je 0x14000531d
mov esi, dword [0x14000d8d8]
lea r14, str._nPatch:_ModifyFilesAndMove_succeed
mov rbx, qword [0x14000d8d0]
mov rdi, r14
add rdi, 2
cmp word [rdi], 0
jne 0x140005146
sub rdi, r14
sar rdi, 1
lea rax, [rdi - 1]
cmp rax, 0x40f
ja 0x14000522e
lea rdi, [rdi*2 + 6]
call qword [sym.imp.ntdll.dll_RtlGetCurrentPeb]
mov r8, rdi
mov edx, 8
mov rcx, qword [rax + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
test rax, rax
je 0x14000522e
mov rdx, r14
mov rcx, rax
call fcn.140005990
cmp word [rdi], 0
mov rcx, rdi
je 0x1400051b0
add rcx, 2
cmp word [rcx], 0
jne 0x1400051a6
mov r8, r13
mov edx, r12d
sub r8, rcx
nop dword [rax]
mov word [rcx], dx
lea rcx, [rcx + 2]
movzx eax, word [r8 + rcx]
movzx edx, ax
test ax, ax
jne 0x1400051c0
mov word [rcx], r15w
mov rax, rdi
cmp word [rdi], dx
je 0x1400051ea
add rax, 2
cmp word [rax], 0
jne 0x1400051e0
sub rax, rdi
mov qword [rsp + 0x20], r15
sar rax, 1
lea r9, [rsp + 0x40]
mov rdx, rdi
mov rcx, rbx
test esi, esi
je 0x14000520f
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_WriteConsoleW]
jmp 0x140005219
lea r8d, [rax + rax]
call qword [sym.imp.KERNEL32.dll_WriteFile]
call qword [sym.imp.ntdll.dll_RtlGetCurrentPeb]
mov r8, rdi
xor edx, edx
mov rcx, qword [rax + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov ecx, dword [rbp - 0x44]
call fcn.140001ae0
test eax, eax
je 0x140005304
mov esi, dword [0x14000d8d8]
lea r14, str._nPatch:_BcdCreatePatchEntry_succeed
mov rbx, qword [0x14000d8d0]
mov rdi, r14
add rdi, 2
cmp word [rdi], 0
jne 0x140005255
sub rdi, r14
sar rdi, 1
lea rax, [rdi - 1]
cmp rax, 0x40f
ja 0x1400056b8
lea rdi, [rdi*2 + 6]
call qword [sym.imp.ntdll.dll_RtlGetCurrentPeb]
mov r8, rdi
mov edx, 8
mov rcx, qword [rax + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
test rax, rax
je 0x1400056b8
mov rdx, r14
mov rcx, rax
call fcn.140005990
cmp word [rdi], 0
mov rcx, rdi
je 0x1400052bf
add rcx, 2
cmp word [rcx], 0
jne 0x1400052b5
mov r8, r13
mov edx, r12d
sub r8, rcx
nop dword [rax + rax]
mov word [rcx], dx
lea rcx, [rcx + 2]
movzx eax, word [r8 + rcx]
movzx edx, ax
test ax, ax
jne 0x1400052d0
mov word [rcx], r15w
mov rax, rdi
cmp word [rdi], dx
je 0x1400052fa
add rax, 2
cmp word [rax], 0
jne 0x1400052f0
lea r9, [rsp + 0x60]
jmp 0x14000556f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
lea rdx, str._nBcdCreatePatchEntry_failed
call fcn.140007010
jmp 0x1400056b8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
lea rdx, str._nModifyFilesAndMove_failed
call fcn.140007010
jmp 0x1400056b8
lea r14, str.Patch:_Cannot_locate_patch_offsets_for_winload.
mov rdi, r14
add rdi, 2
cmp word [rdi], 0
jne 0x140005340
sub rdi, r14
sar rdi, 1
lea rax, [rdi - 1]
cmp rax, 0x40f
ja 0x1400056b8
lea rdi, [rdi*2 + 6]
call qword [sym.imp.ntdll.dll_RtlGetCurrentPeb]
mov r8, rdi
mov edx, 8
mov rcx, qword [rax + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
test rax, rax
je 0x1400056b8
mov rdx, r14
mov rcx, rax
call fcn.140005990
cmp word [rdi], 0
mov rcx, rdi
je 0x1400053aa
add rcx, 2
cmp word [rcx], 0
jne 0x1400053a0
mov r8, r13
mov edx, r12d
sub r8, rcx
nop dword [rax]
nop word [rax + rax]
mov word [rcx], dx
lea rcx, [rcx + 2]
movzx eax, word [rcx + r8]
movzx edx, ax
test ax, ax
jne 0x1400053c0
mov word [rcx], r15w
mov rax, rdi
cmp word [rdi], dx
je 0x1400053ea
add rax, 2
cmp word [rax], 0
jne 0x1400053e0
lea r9, [rsp + 0x40]
jmp 0x14000556f
lea r14, str.Patch:_Cannot_locate_patch_offsets_for_ntoskrnl.
mov rdi, r14
nop
add rdi, 2
cmp word [rdi], 0
jne 0x140005400
sub rdi, r14
sar rdi, 1
lea rax, [rdi - 1]
cmp rax, 0x40f
ja 0x1400056b8
lea rdi, [rdi*2 + 6]
call qword [sym.imp.ntdll.dll_RtlGetCurrentPeb]
mov r8, rdi
mov edx, 8
mov rcx, qword [rax + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
test rax, rax
je 0x1400056b8
mov rdx, r14
mov rcx, rax
call fcn.140005990
cmp word [rdi], 0
mov rcx, rdi
je 0x14000546a
add rcx, 2
cmp word [rcx], 0
jne 0x140005460
mov r8, r13
mov edx, r12d
sub r8, rcx
nop dword [rax]
nop word [rax + rax]
mov word [rcx], dx
lea rcx, [rcx + 2]
movzx eax, word [rcx + r8]
movzx edx, ax
test ax, ax
jne 0x140005480
mov word [rcx], r15w
mov rax, rdi
cmp word [rdi], dx
je 0x1400054aa
add rax, 2
cmp word [rax], 0
jne 0x1400054a0
lea r9, [rsp + 0x54]
jmp 0x14000556f
lea r14, str.Patch:_Cannot_copy_files_to_the__TEMP__folder.
mov rdi, r14
nop
add rdi, 2
cmp word [rdi], 0
jne 0x1400054c0
sub rdi, r14
sar rdi, 1
lea rax, [rdi - 1]
cmp rax, 0x40f
ja 0x1400056b8
lea rdi, [rdi*2 + 6]
call qword [sym.imp.ntdll.dll_RtlGetCurrentPeb]
mov r8, rdi
mov edx, 8
mov rcx, qword [rax + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
test rax, rax
je 0x1400056b8
mov rdx, r14
mov rcx, rax
call fcn.140005990
cmp word [rdi], 0
mov rcx, rdi
je 0x14000552a
add rcx, 2
cmp word [rcx], 0
jne 0x140005520
mov r8, r13
mov edx, r12d
sub r8, rcx
nop dword [rax]
nop word [rax + rax]
mov word [rcx], dx
lea rcx, [rcx + 2]
movzx eax, word [r8 + rcx]
movzx edx, ax
test ax, ax
jne 0x140005540
mov word [rcx], r15w
mov rax, rdi
cmp word [rdi], dx
je 0x14000556a
add rax, 2
cmp word [rax], 0
jne 0x140005560
lea r9, [rsp + 0x5c]
sub rax, rdi
mov qword [rsp + 0x20], r15
sar rax, 1
mov rdx, rdi
mov rcx, rbx
test esi, esi
je 0x14000558f
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_WriteConsoleW]
jmp 0x140005599
lea r8d, [rax + rax]
call qword [sym.imp.KERNEL32.dll_WriteFile]
call qword [sym.imp.ntdll.dll_RtlGetCurrentPeb]
mov r8, rdi
xor edx, edx
mov rcx, qword [rax + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x1400056b8
lea rdx, str.Cannot_initialize_dbghelp.
mov ecx, 0x3e3
call fcn.140007010
jmp 0x1400056b8
lea rdx, str.Patch:_Cannot_extract_symbol_dlls_to_the__TEMP__folder.
call fcn.140002d10
lea rdx, str.Patch:_Make_sure__TEMP__folder_is_writeable.
call fcn.140002d10
jmp 0x1400056b8
lea rdx, str.Patch:_Error__bcdedit.exe_not_found.
call fcn.140002d10
jmp 0x1400056b8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
lea rdx, str.Cannot_expand__SYSTEMDRIVE__variable.
call fcn.140007010
jmp 0x1400056b8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
lea rdx, str.Cannot_expand__TEMP__variable.
call fcn.140007010
jmp 0x1400056b8
lea rdx, str.Patch:_Unsupported_Windows_version.
call fcn.140002d10
jmp 0x1400056b8
lea rdx, str.Unsupported_firmware_type.
mov ecx, 0x65e
call fcn.140007010
jmp 0x1400056b5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
lea rdx, str.Cannot_query_firmware_type.
call fcn.140007010
jmp 0x1400056b5
lea rdi, str._n_rApplication_Compatibility_Mode_is_active._n_rDisable_it_for_this_application.
mov edx, 0xa
lea rax, [rbp + 0xd0]
sub rdi, rax
lea rcx, [rbp + 0xd0]
movzx eax, word [rdi + rcx + 2]
mov word [rcx], dx
lea rcx, [rcx + 2]
movzx edx, ax
test ax, ax
jne 0x140005680
xor r15d, r15d
lea rdx, [rbp + 0xd0]
mov word [rcx], r15w
call fcn.140002d10
jmp 0x1400056b8
lea rdx, str._n_rCannot_query_NtBuildNumber_value__abort._n_r
call fcn.140002d10
xor r15d, r15d
mov esi, dword [0x14000d8d8]
lea r14, str.Patch:_Press_Enter_to_exit
mov rbx, qword [0x14000d8d0]
mov rdi, r14
nop
add rdi, 2
cmp word [rdi], 0
jne 0x1400056d0
sub rdi, r14
sar rdi, 1
lea rax, [rdi - 1]
cmp rax, 0x40f
ja 0x1400057be
lea rdi, [rdi*2 + 6]
call qword [sym.imp.ntdll.dll_RtlGetCurrentPeb]
mov r8, rdi
mov edx, 8
mov rcx, qword [rax + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
test rax, rax
je 0x1400057be
mov rdx, r14
mov rcx, rax
call fcn.140005990
cmp word [rdi], 0
mov rcx, rdi
je 0x14000573a
add rcx, 2
cmp word [rcx], 0
jne 0x140005730
mov r8, r13
mov edx, r12d
sub r8, rcx
nop dword [rax]
nop word [rax + rax]
mov word [rcx], dx
lea rcx, [rcx + 2]
movzx eax, word [rcx + r8]
movzx edx, ax
test ax, ax
jne 0x140005750
mov word [rcx], r15w
mov rax, rdi
cmp word [rdi], dx
je 0x14000577a
add rax, 2
cmp word [rax], 0
jne 0x140005770
sub rax, rdi
mov qword [rsp + 0x20], r15
sar rax, 1
lea r9, [rsp + 0x48]
mov rdx, rdi
mov rcx, rbx
test esi, esi
je 0x14000579f
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_WriteConsoleW]
jmp 0x1400057a9
lea r8d, [rax + rax]
call qword [sym.imp.KERNEL32.dll_WriteFile]
call qword [sym.imp.ntdll.dll_RtlGetCurrentPeb]
mov r8, rdi
xor edx, edx
mov rcx, qword [rax + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
xor eax, eax
lea rdi, [rbp - 0x68]
mov ecx, 0x14
lea r9, [rsp + 0x58]
rep stosb byte [rdi], al
mov rcx, qword [0x14000d8e0]
lea rdx, [rbp - 0x68]
lea r8d, [rax + 1]
call qword [sym.imp.KERNEL32.dll_ReadConsoleInputW]
mov rcx, qword [0x14000d8e0]
lea r9, [rsp + 0x58]
mov r8d, 2
mov qword [rsp + 0x20], r15
lea rdx, [rbp + 0xd0]
call qword [sym.imp.KERNEL32.dll_ReadConsoleW]
mov esi, dword [0x14000d8d8]
lea r14, str.Patch:_Exit
mov rbx, qword [0x14000d8d0]
mov rdi, r14
add rdi, 2
cmp word [rdi], 0
jne 0x140005820
sub rdi, r14
sar rdi, 1
lea rax, [rdi - 1]
cmp rax, 0x40f
ja 0x140005901
lea rdi, [rdi*2 + 6]
call qword [sym.imp.ntdll.dll_RtlGetCurrentPeb]
mov r8, rdi
mov edx, 8
mov rcx, qword [rax + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
test rax, rax
je 0x140005901
mov rdx, r14
mov rcx, rax
call fcn.140005990
cmp word [rdi], 0
mov rcx, rdi
je 0x14000588a
add rcx, 2
cmp word [rcx], 0
jne 0x140005880
sub r13, rcx
nop dword [rax]
mov word [rcx], r12w
lea rcx, [rcx + 2]
movzx eax, word [rcx + r13]
movzx r12d, ax
test ax, ax
jne 0x140005890
mov word [rcx], r15w
mov rax, rdi
cmp word [rdi], r12w
je 0x1400058bd
add rax, 2
cmp word [rax], 0
jne 0x1400058b3
sub rax, rdi
mov qword [rsp + 0x20], r15
sar rax, 1
lea r9, [rsp + 0x48]
mov rdx, rdi
mov rcx, rbx
test esi, esi
je 0x1400058e2
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_WriteConsoleW]
jmp 0x1400058ec
lea r8d, [rax + rax]
call qword [sym.imp.KERNEL32.dll_WriteFile]
call qword [sym.imp.ntdll.dll_RtlGetCurrentPeb]
mov r8, rdi
xor edx, edx
mov rcx, qword [rax + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov r15, qword [rsp + 0xa00]
xor eax, eax
mov r13, qword [rsp + 0xa40]
mov r12, qword [rsp + 0xa38]
mov rbx, qword [rsp + 0xa30]
mov rcx, qword [rbp + 0x8f0]
xor rcx, rsp
call fcn.1400081d0
add rsp, 0xa08
pop r14
pop rdi
pop rsi
pop rbp
ret