Function at 0x1400066f0
Capabilities:
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
push rdi
sub rsp, 0x400
mov rax, qword [0x140038018]
xor rax, rsp
mov qword [rsp + 0x3f0], rax
lea rax, [rsp + 0xc0]
mov rdi, rax
xor eax, eax
mov ecx, 0x104
rep stosb byte [rdi], al
lea rax, [rsp + 0x1d0]
mov rdi, rax
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
mov dword [rsp + 0x48], 0
mov qword [rsp + 0x98], 0
mov qword [rsp + 0x3e0], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov dword [rsp + 0x3e8], 0
mov dword [rsp + 0x3ec], 0
mov dword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x3e8]
xor r8d, r8d
xor edx, edx
lea rcx, [0x14003b968]
call qword [0x14003f4f0]
test eax, eax
je 0x1400067d3
cmp dword [rsp + 0x3e8], 0
jne 0x140006871
xor eax, eax
cmp eax, 1
je 0x14000686a
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, 0x208
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
je 0x14000686a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.____GetVolumeInformationW_Failed_With_Error:__d__n
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.USER32.dll_wsprintfA]
mov dword [rsp + 0xa0], eax
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, dword [rsp + 0xa0]
mov rdx, qword [rsp + 0x68]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteConsoleA]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rsp + 0x68]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
jmp 0x140006d9d
xor eax, eax
cmp eax, 1
je 0x140006907
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, 0x208
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x70], 0
je 0x140006907
mov r8d, dword [rsp + 0x3e8]
lea rdx, str._i__New_Volume_Serial_Number:_0x_0.4X_n
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.USER32.dll_wsprintfA]
mov dword [rsp + 0xa4], eax
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, dword [rsp + 0xa4]
mov rdx, qword [rsp + 0x70]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteConsoleA]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rsp + 0x70]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
cmp eax, 1
je 0x14000699c
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, 0x208
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x78], 0
je 0x14000699c
mov r8d, dword [0x140034630]
lea rdx, str._i__Old_Volume_Serial_Number:_0x_0.4X_n
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.USER32.dll_wsprintfA]
mov dword [rsp + 0xa8], eax
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, dword [rsp + 0xa8]
mov rdx, qword [rsp + 0x78]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteConsoleA]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rsp + 0x78]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [rsp + 0x3e8]
cmp dword [0x140034630], eax
jne 0x140006a60
xor eax, eax
cmp eax, 1
je 0x140006a4c
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, 0x208
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rsp + 0x80], rax
cmp qword [rsp + 0x80], 0
je 0x140006a4c
lea rdx, str.___Same_Machine__n
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.USER32.dll_wsprintfA]
mov dword [rsp + 0xac], eax
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, dword [rsp + 0xac]
mov rdx, qword [rsp + 0x80]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteConsoleA]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rsp + 0x80]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [0x14003f570], 1
mov eax, 1
jmp 0x140006d9d
cmp dword [0x140034630], 0x4e554c4c
je 0x140006b14
xor eax, eax
cmp eax, 1
je 0x140006b0d
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, 0x208
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rsp + 0x88], rax
cmp qword [rsp + 0x88], 0
je 0x140006b0d
lea rdx, str.____Different_Machine__n
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.USER32.dll_wsprintfA]
mov dword [rsp + 0xb0], eax
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, dword [rsp + 0xb0]
mov rdx, qword [rsp + 0x88]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteConsoleA]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rsp + 0x88]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
jmp 0x140006d9d
xor eax, eax
cmp eax, 1
je 0x140006bb1
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, 0x208
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rsp + 0x90], rax
cmp qword [rsp + 0x90], 0
je 0x140006bb1
lea rdx, str._i__First_Time_Running__Patching_Image_...__n
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.USER32.dll_wsprintfA]
mov dword [rsp + 0xb4], eax
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, dword [rsp + 0xb4]
mov rdx, qword [rsp + 0x90]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteConsoleA]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rsp + 0x90]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x20]
mov rax, qword [rax + 0x68]
mov qword [rsp + 0x98], rax
lea r8, [rsp + 0x3ec]
lea rdx, [rsp + 0x3e0]
mov rcx, qword [rsp + 0x98]
call fcn.140005b80
test eax, eax
jne 0x140006bf0
jmp 0x140006d75
mov rax, qword [rsp + 0x3e0]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x3e0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
cmp dword [rax], 0x4550
je 0x140006c21
jmp 0x140006d75
mov rax, qword [rsp + 0x50]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x50]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x40], 0
jmp 0x140006c4d
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0x50]
movzx eax, word [rax + 6]
cmp dword [rsp + 0x40], eax
jae 0x140006d21
cmp qword [rsp + 0x60], 0
jne 0x140006d21
mov eax, dword [rsp + 0x40]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x58]
cmp dword [rcx + rax], 0x6164722e
jne 0x140006d1c
mov dword [rsp + 0x44], 0
jmp 0x140006c9d
movsxd rax, dword [rsp + 0x44]
add rax, 4
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x40]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x58]
mov eax, dword [rcx + rax + 0x10]
cmp dword [rsp + 0x44], eax
jae 0x140006d1c
cmp qword [rsp + 0x60], 0
jne 0x140006d1c
mov eax, dword [rsp + 0x40]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x58]
mov eax, dword [rcx + rax + 0x14]
mov rcx, qword [rsp + 0x3e0]
add rcx, rax
mov rax, rcx
movsxd rcx, dword [rsp + 0x44]
mov edx, dword [0x140034630]
cmp dword [rax + rcx], edx
jne 0x140006d17
mov eax, dword [rsp + 0x40]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x58]
mov eax, dword [rcx + rax + 0x14]
mov rcx, qword [rsp + 0x3e0]
add rcx, rax
mov rax, rcx
movsxd rcx, dword [rsp + 0x44]
add rax, rcx
mov qword [rsp + 0x60], rax
jmp 0x140006c90
jmp 0x140006c43
cmp qword [rsp + 0x60], 0
je 0x140006d75
mov rax, qword [rsp + 0x60]
mov ecx, dword [rsp + 0x3e8]
mov dword [rax], ecx
mov rcx, qword [rsp + 0x98]
call fcn.140006270
test eax, eax
jne 0x140006d4a
jmp 0x140006d75
mov r8d, dword [rsp + 0x3ec]
mov rdx, qword [rsp + 0x3e0]
mov rcx, qword [rsp + 0x98]
call fcn.140005fe0
test eax, eax
jne 0x140006d6d
jmp 0x140006d75
mov dword [rsp + 0x48], 1
cmp qword [rsp + 0x3e0], 0
je 0x140006d99
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rsp + 0x3e0]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x3f0]
xor rcx, rsp
call fcn.14000e5c0
add rsp, 0x400
pop rdi
ret