Function at 0x140001984
Capabilities:
Enumerate pe sections
Parse pe header
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x948
mov rax, qword [rsp + 0x960]
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x98]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400019c8
mov eax, 0xc00000bb
jmp 0x140001f4f
mov rax, qword [rsp + 0x98]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x960]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x140001a07
mov rax, qword [rsp + 0x30]
cmp dword [rax], 0x4550
jne 0x140001a07
mov rax, qword [rsp + 0x30]
cmp dword [rax + 0x50], 8
ja 0x140001a11
mov eax, 0xc00000bb
jmp 0x140001f4f
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x50]
mov edx, eax
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x140001a3a
mov eax, 0xc0000017
jmp 0x140001f4f
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x54]
mov r8d, eax
mov rdx, qword [rsp + 0x960]
mov rcx, qword [rsp + 0x28]
call fcn.140002640
mov rax, qword [rsp + 0x30]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x30]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 0xb8], rax
xor eax, eax
mov word [rsp + 0x20], ax
jmp 0x140001a88
movzx eax, word [rsp + 0x20]
inc ax
mov word [rsp + 0x20], ax
movzx eax, word [rsp + 0x20]
mov rcx, qword [rsp + 0x30]
movzx ecx, word [rcx + 6]
cmp eax, ecx
jge 0x140001b15
movzx eax, word [rsp + 0x20]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0xb8]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x78]
cmp dword [rax + 0x10], 0
je 0x140001b10
mov rax, qword [rsp + 0x78]
mov eax, dword [rax + 0x10]
mov rcx, qword [rsp + 0x78]
mov ecx, dword [rcx + 0x14]
mov rdx, qword [rsp + 0x960]
add rdx, rcx
mov rcx, rdx
mov rdx, qword [rsp + 0x78]
mov edx, dword [rdx + 0xc]
mov r8, qword [rsp + 0x28]
add r8, rdx
mov rdx, r8
mov qword [rsp + 0xc0], rdx
mov r8d, eax
mov rdx, rcx
mov rax, qword [rsp + 0xc0]
mov rcx, rax
call fcn.140002640
jmp 0x140001a7b
mov eax, 8
imul rax, rax, 1
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax + 0x88]
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x58], 0
je 0x140001c95
mov eax, dword [rsp + 0x58]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
jmp 0x140001b5d
mov rax, qword [rsp + 0x50]
add rax, 0x14
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
cmp dword [rax + 0x10], 0
je 0x140001c95
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0xc]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xc8], rax
mov rcx, qword [rsp + 0xc8]
call fcn.1400017b0
mov qword [rsp + 0xa0], rax
cmp qword [rsp + 0xa0], 0
jne 0x140001bbe
xor edx, edx
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, 0xc0000225
jmp 0x140001f4f
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x10]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x50]
mov eax, dword [rax]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x88], rax
jmp 0x140001c14
mov rax, qword [rsp + 0x68]
add rax, 8
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x88]
add rax, 8
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x68]
cmp qword [rax], 0
je 0x140001c90
mov rax, qword [rsp + 0x88]
mov rax, qword [rax]
mov rcx, qword [rsp + 0x28]
lea rax, [rcx + rax + 2]
mov qword [rsp + 0xd0], rax
mov rdx, qword [rsp + 0xd0]
mov rcx, qword [rsp + 0xa0]
call fcn.1400015d4
mov qword [rsp + 0xa8], rax
cmp qword [rsp + 0xa8], 0
jne 0x140001c7b
xor edx, edx
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, 0xc0000225
jmp 0x140001f4f
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0xa8]
mov qword [rax], rcx
jmp 0x140001bf2
jmp 0x140001b4f
mov eax, 8
imul rax, rax, 5
mov rcx, qword [rsp + 0x30]
lea rax, [rcx + rax + 0x88]
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x90]
cmp dword [rax], 0
je 0x140001e40
mov rax, qword [rsp + 0x90]
mov eax, dword [rax]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x48], 0
mov rax, qword [rsp + 0x90]
mov eax, dword [rax + 4]
cmp dword [rsp + 0x48], eax
jae 0x140001e40
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 4]
sub rax, 8
xor edx, edx
mov ecx, 2
div rcx
mov dword [rsp + 0x80], eax
mov rax, qword [rsp + 0x60]
add rax, 8
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x60]
mov eax, dword [rax]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xd8], rax
mov dword [rsp + 0x44], 0
jmp 0x140001d62
mov eax, dword [rsp + 0x44]
inc eax
mov dword [rsp + 0x44], eax
mov rax, qword [rsp + 0x70]
add rax, 2
mov qword [rsp + 0x70], rax
mov eax, dword [rsp + 0x80]
cmp dword [rsp + 0x44], eax
jae 0x140001e1d
mov rax, qword [rsp + 0x70]
movzx eax, word [rax]
mov word [rsp + 0x38], ax
movzx eax, word [rsp + 0x38]
sar eax, 0xc
mov word [rsp + 0x3c], ax
movzx eax, word [rsp + 0x38]
and eax, 0xfff
mov word [rsp + 0x40], ax
movzx eax, word [rsp + 0x3c]
mov dword [rsp + 0x5c], eax
cmp dword [rsp + 0x5c], 0
je 0x140001db5
cmp dword [rsp + 0x5c], 0xa
je 0x140001db7
jmp 0x140001e01
jmp 0x140001e18
movzx eax, word [rsp + 0x40]
mov rcx, qword [rsp + 0xd8]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx + 0x30]
mov rax, qword [rax]
sub rax, rcx
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0xb0]
mov qword [rcx], rax
jmp 0x140001e18
xor edx, edx
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, 0xc00000bb
jmp 0x140001f4f
jmp 0x140001d4a
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 4]
mov ecx, dword [rsp + 0x48]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x48], eax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x60], rax
jmp 0x140001ce6
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x28]
mov dword [rsp + 0x84], eax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x54]
mov r8d, eax
xor edx, edx
mov rcx, qword [rsp + 0x960]
call fcn.140002900
mov rax, qword [rsp + 0x970]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0xe0], rax
mov rax, qword [rsp + 0xe0]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x970]
add rax, qword [rcx + 0x18]
mov qword [rsp + 0xe8], rax
lea rax, [rsp + 0x100]
mov rdi, rax
xor eax, eax
mov ecx, 0x414
rep stosb byte [rdi], al
mov rax, qword [rsp + 0xe8]
mov eax, dword [rax + 8]
mov dword [rsp + 0x100], eax
mov rcx, qword [rsp + 0x968]
call fcn.14000154c
mov r8, rax
mov edx, 0x104
lea rcx, [rsp + 0x104]
call sub.ntoskrnl.exe_wcscpy_s
mov dl, 1
mov rcx, qword [rsp + 0x968]
call fcn.14000140c
mov r8, rax
mov edx, 0x104
lea rcx, [rsp + 0x30c]
call sub.ntoskrnl.exe_wcscpy_s
mov eax, dword [rsp + 0x84]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0xf0], rax
lea rax, [rsp + 0x520]
lea rcx, [rsp + 0x100]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x414
rep movsb byte [rdi], byte [rsi]
lea rcx, [rsp + 0x520]
call qword [rsp + 0xf0]
add rsp, 0x948
pop rdi
pop rsi
ret