Function at 0x18003d670
Capabilities:
Allocate or change rwx memory
Enumerate pe sections
Parse pe header
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0xc8
mov qword [rsp + 0xb0], 0xfffffffffffffffe
mov dword [rsp + 0x3c], 0
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
je 0x18003d6bb
mov rax, qword [rsp + 0x40]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x18003d6c0
jmp 0x18003d95c
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 0x3c]
mov rax, qword [rsp + 0xe0]
add rax, rcx
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
cmp dword [rax], 0x4550
je 0x18003d6eb
jmp 0x18003d95c
mov rax, qword [rsp + 0x58]
mov eax, dword [rax + 0x50]
mov dword [rsp + 0x24], eax
mov edx, dword [rsp + 0x24]
mov r9d, 0x40
mov r8d, 0x1000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x24]
mov dword [rsp + 0x70], eax
cmp qword [rsp + 0x30], 0
jne 0x18003d729
jmp 0x18003d95c
mov ecx, dword [rsp + 0x24]
mov rdi, qword [rsp + 0x30]
xor eax, eax
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x58]
movzx eax, word [rax + 6]
mov word [rsp + 0x28], ax
mov rax, qword [rsp + 0x58]
movzx ecx, word [rax + 0x14]
mov rax, qword [rsp + 0x58]
lea rax, [rax + rcx + 0x18]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov ecx, dword [rax + 0xc]
mov rdi, qword [rsp + 0x30]
mov rsi, qword [rsp + 0xe0]
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x58]
mov eax, dword [rax + 0x3c]
sub eax, 1
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0x58]
mov eax, dword [rax + 0x38]
sub eax, 1
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x48], 0
jmp 0x18003d7b4
mov eax, dword [rsp + 0x48]
add eax, 1
mov dword [rsp + 0x48], eax
mov rax, qword [rsp + 0x50]
add rax, 0x28
mov qword [rsp + 0x50], rax
movzx eax, word [rsp + 0x28]
cmp dword [rsp + 0x48], eax
jge 0x18003d7ee
mov rax, qword [rsp + 0x50]
mov ecx, dword [rax + 0x10]
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0x14]
mov rsi, qword [rsp + 0xe0]
add rsi, rax
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0xc]
mov rdi, qword [rsp + 0x30]
add rdi, rax
rep movsb byte [rdi], byte [rsi]
jmp 0x18003d79b
mov rax, qword [rsp + 0x58]
add rax, 0x18
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x98]
add rax, 0x60
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov ecx, dword [rax]
mov rax, qword [rsp + 0x30]
add rax, rcx
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov ecx, dword [rax + 0x20]
mov rax, qword [rsp + 0x30]
add rax, rcx
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x60]
mov ecx, dword [rax + 0x24]
mov rax, qword [rsp + 0x30]
add rax, rcx
mov qword [rsp + 0x90], rax
xor eax, eax
mov word [rsp + 0x88], ax
mov dword [rsp + 0xa0], 0
jmp 0x18003d879
mov eax, dword [rsp + 0xa0]
add eax, 1
mov dword [rsp + 0xa0], eax
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 0x18]
cmp dword [rsp + 0xa0], eax
jae 0x18003d915
lea rcx, [rsp + 0xa8]
call fcn.180001700
nop
mov ecx, dword [rsp + 0xa0]
mov rax, qword [rsp + 0x78]
mov eax, dword [rax + rcx*4]
mov rdx, qword [rsp + 0x30]
add rdx, rax
lea rcx, [rsp + 0xa8]
call fcn.18000b890
mov rdx, qword [rsp + 0xe8]
lea rcx, [rsp + 0xa8]
call fcn.18001cb80
test eax, eax
jne 0x18003d903
mov ecx, dword [rsp + 0xa0]
mov rax, qword [rsp + 0x90]
movzx eax, word [rax + rcx*2]
mov word [rsp + 0x88], ax
lea rcx, [rsp + 0xa8]
call fcn.1800017c0
jmp 0x18003d915
lea rcx, [rsp + 0xa8]
call fcn.1800017c0
jmp 0x18003d868
movzx eax, word [rsp + 0x88]
test eax, eax
jne 0x18003d923
jmp 0x18003d95c
mov rax, qword [rsp + 0x60]
mov ecx, dword [rax + 0x1c]
mov rax, qword [rsp + 0x30]
add rax, rcx
mov qword [rsp + 0x80], rax
movzx ecx, word [rsp + 0x88]
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + rcx*4]
mov dword [rsp + 0x3c], eax
xor eax, eax
test eax, eax
jne 0x18003d697
cmp qword [rsp + 0x30], 0
je 0x18003d977
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [rsp + 0x3c]
add rsp, 0xc8
pop rdi
pop rsi
ret