Function at 0x140001670
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x80
mov rax, qword [0x14002c010]
xor rax, rsp
mov qword [rsp + 0x70], rax
xor r12d, r12d
mov rdi, rcx
mov r14d, 0x5a4d
test rcx, rcx
jne 0x1400018e4
mov r15d, r12d
mov qword [rsp + 0x20], r12
mov rbp, r12
mov r13, qword [r15 + 0x30]
lea rcx, str.ntdll.dll
mov qword [rsp + 0x40], r13
mov qword [rsp + 0xb8], rsi
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
movzx ecx, word [0x140020628]
lea rdx, [rsp + 0x60]
movsd xmm0, qword [str.NtUnmapVi]
mov rbx, rax
mov word [rsp + 0x50], cx
xor eax, eax
mov ecx, dword [0x140020638]
movsd qword [rsp + 0x48], xmm0
movsd xmm0, qword [str.ewOfSection]
mov dword [rsp + 0x68], ecx
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x52], rax
mov dword [rsp + 0x5a], eax
movsd qword [rsp + 0x60], xmm0
call qword [sym.imp.KERNEL32.dll_lstrcatA]
lea rdx, [rsp + 0x48]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdx, qword [r15 + 0x30]
mov rcx, 0xffffffffffffffff
call rax
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
je 0x140001a6e
lea rdx, str.VirtualAlloc
mov rcx, rax
call fcn.140001500
mov edx, dword [r15 + 0x50]
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, r13
call rax
mov rsi, rax
test rax, rax
jne 0x14000178d
test rbp, rbp
je 0x140001a6e
mov r8d, dword [r15 + 0x54]
mov rdx, rdi
mov rcx, rsi
mov qword [r15 + 0x30], rsi
call fcn.140005b10
mov ebp, r12d
cmp r12w, word [r15 + 6]
jae 0x1400017d4
lea rbx, [r15 + 0x11c]
mov edx, dword [rbx]
mov ecx, dword [rbx - 8]
add rdx, rdi
mov r8d, dword [rbx - 4]
add rcx, rsi
call fcn.140005b10
movzx eax, word [r15 + 6]
lea rbx, [rbx + 0x28]
inc ebp
cmp ebp, eax
jl 0x1400017b1
test rsi, rsi
je 0x140001989
cmp word [rsi], r14w
jne 0x140001989
movsxd rax, dword [rsi + 0x3c]
cmp eax, 0x400
jg 0x140001989
cmp dword [rax + rsi], 0x4550
jne 0x140001989
mov ecx, dword [rax + rsi + 0x90]
test ecx, ecx
je 0x140001989
mov edx, dword [rax + rsi + 0x94]
mov eax, ecx
mov qword [rsp + 0x38], rdx
test rdx, rdx
je 0x140001989
lea rbp, [rsi + 0x10]
add rbp, rcx
mov rcx, 0xfffffffffffffff0
sub rcx, rax
mov qword [rsp + 0x28], rbp
sub rcx, rsi
mov qword [rsp + 0x30], rcx
mov edx, dword [rbp - 0x10]
test edx, edx
jne 0x140001857
cmp dword [rbp], edx
je 0x140001976
mov ecx, dword [rbp]
mov r15d, dword [rbp - 4]
mov r12d, ecx
add r15, rsi
movabs rbp, 0x8000000080000000
test edx, edx
lea r13, [rcx + rsi]
cmovne r12, rdx
mov r14, r13
nop dword [rax + rax]
mov rdi, r12
sub rdi, r13
add rdi, r14
mov rax, qword [rdi + rsi]
test rbp, rax
je 0x1400018ac
mov rcx, r15
movzx ebx, ax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, rax
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [r14], rax
mov rax, qword [r14]
test rax, rax
je 0x140001955
mov rcx, qword [rdi + rsi]
cmp rax, rcx
jne 0x1400018de
lea rbx, [rcx + 2]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, rax
lea rdx, [rbx + rsi]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [r14], rax
add r14, 8
jmp 0x140001880
movzx eax, word [rcx]
cmp ax, r14w
je 0x1400018f2
mov r15, r12
jmp 0x140001912
movsxd rcx, dword [rcx + 0x3c]
cmp ecx, 0x400
jle 0x140001903
mov r15, r12
jmp 0x140001912
cmp dword [rdi + rcx], 0x4550
lea r15, [rdi + rcx]
cmovne r15, r12
mov qword [rsp + 0x20], r15
cmp ax, r14w
jne 0x1400016b6
movsxd rax, dword [rdi + 0x3c]
cmp eax, 0x400
jg 0x1400016b6
cmp dword [rdi + rax], 0x4550
lea rbp, [rdi + rax]
jne 0x1400016b6
add rbp, 0xb0
cmp dword [rbp], 0
cmove rbp, r12
jmp 0x1400016b9
mov rbp, qword [rsp + 0x28]
mov rax, qword [rsp + 0x30]
add rbp, 0x14
add rax, rbp
mov qword [rsp + 0x28], rbp
cmp rax, qword [rsp + 0x38]
jb 0x140001847
mov r15, qword [rsp + 0x20]
xor r12d, r12d
mov r13, qword [rsp + 0x40]
mov r14d, 0x5a4d
cmp rsi, r13
je 0x140001a65
mov ebx, dword [r15 + 0x50]
test rsi, rsi
je 0x140001a65
cmp word [rsi], r14w
jne 0x140001a65
movsxd rax, dword [rsi + 0x3c]
cmp eax, 0x400
jg 0x140001a65
cmp dword [rax + rsi], 0x4550
jne 0x140001a65
mov ecx, dword [rax + rsi + 0xb0]
test ecx, ecx
je 0x140001a65
mov ebp, dword [rax + rsi + 0xb4]
mov r14d, ecx
mov r11, r12
test rbp, rbp
je 0x140001a65
nop word [rax + rax]
lea r10, [r11 + r14]
add r10, rsi
mov eax, dword [r10]
test eax, eax
je 0x140001a65
mov ecx, dword [r10 + 4]
test ecx, ecx
je 0x140001a65
lea r9, [rcx - 8]
mov edi, eax
shr r9, 1
lea r8, [r10 + 8]
mov rdx, r12
je 0x140001a59
nop dword [rax + rax]
movzx ecx, word [r8]
mov eax, ecx
and ecx, 0xfff
add rcx, rdi
shr rax, 0xc
test rax, rax
je 0x140001a59
cmp rax, 3
jne 0x140001a65
cmp rcx, rbx
jae 0x140001a65
mov rax, rsi
add r8, 2
sub rax, r13
inc rdx
add qword [rcx + rsi], rax
cmp rdx, r9
jb 0x140001a20
mov eax, dword [r10 + 4]
add r11, rax
cmp r11, rbp
jb 0x1400019f0
mov eax, dword [r15 + 0x28]
add rax, rsi
call rax
mov rsi, qword [rsp + 0xb8]
xor eax, eax
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140002430
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret