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

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x118
movaps xmmword [rsp + 0x100], xmm6
mov rax, qword [0x180016008]
xor rax, rsp
mov qword [rsp + 0xf8], rax
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x18000140c
mov rsi, rax
xorps xmm6, xmm6
movaps xmmword [rsp + 0xe0], xmm6
movaps xmmword [rsp + 0xd0], xmm6
movaps xmmword [rsp + 0xc0], xmm6
movaps xmmword [rsp + 0xb0], xmm6
lea rdx, str.RtlInitUnicodeString
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x18000140c
lea rdx, str.KnownDlls_ntdll.dll
lea rdi, [rsp + 0xb0]
mov rcx, rdi
call rax
mov dword [rsp + 0xc0], 0x30
mov qword [rsp + 0xc8], 0
mov dword [rsp + 0xd8], 0x40
mov qword [rsp + 0xd0], rdi
movaps xmmword [rsp + 0xe0], xmm6
mov qword [rsp + 0xa8], 0
lea rcx, [rsp + 0xa8]
lea r8, [rsp + 0xc0]
mov edx, 0xc
call qword [0x1800169f0]
test eax, eax
js 0x1800013fe
mov qword [rsp + 0xa0], 0
mov qword [rsp + 0x98], 0
mov rcx, qword [rsp + 0xa8]
lea rax, [rsp + 0x98]
mov qword [rsp + 0x30], rax
xorps xmm6, xmm6
movups xmmword [rsp + 0x20], xmm6
mov dword [rsp + 0x48], 2
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x38], 1
xor r13d, r13d
lea r8, [rsp + 0xa0]
mov rdx, 0xffffffffffffffff
xor r9d, r9d
call qword [0x1800169f8]
test eax, eax
js 0x18000143e
movaps xmmword [rsp + 0x80], xmm6
mov qword [rsp + 0x90], 0
lea r8, [rsp + 0x80]
mov rcx, 0xffffffffffffffff
mov rdx, rsi
mov r9d, 0x18
call sub.KERNEL32.dll_K32GetModuleInformation
xor r13d, r13d
test eax, eax
je 0x18000140f
mov r12, qword [rsp + 0x80]
movsxd rax, dword [r12 + 0x3c]
movzx ebp, word [rax + r12 + 6]
test rbp, rbp
je 0x180001543
lea rcx, [r12 + rax]
movzx eax, word [r12 + rax + 0x14]
lea rbx, [rax + rcx]
add rbx, 0x18
lea rdi, [0x18000d330]
nop word cs:[rax + rax]
nop
mov rcx, rbx
mov rdx, rdi
call fcn.180003730
test eax, eax
je 0x18000144e
add rbx, 0x28
add rbp, 0xffffffffffffffff
jne 0x1800013e0
jmp 0x180001543
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor r13d, r13d
mov rcx, qword [rsp + 0xf8]
xor rcx, rsp
call fcn.180001600
mov eax, r13d
movaps xmm6, xmmword [rsp + 0x100]
add rsp, 0x118
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x18000140f
mov r15d, dword [rbx + 8]
mov ebx, dword [rbx + 0xc]
add r12, rbx
mov rbp, qword [rsp + 0xa0]
mov qword [rsp + 0x78], r12
mov qword [rsp + 0x70], r15
movzx eax, word [rbp]
cmp eax, 0x5a4d
jne 0x1800014e0
movsxd rax, dword [rbp + 0x3c]
cmp dword [rbp + rax], 0x4550
jne 0x1800014e0
mov eax, dword [rbp + rax + 0x88]
mov r14d, dword [rbp + rax + 0x18]
test r14, r14
je 0x1800014e0
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x60], rax
mov edi, dword [rbp + rax + 0x20]
add rdi, rbp
mov r15, rbp
xor ebx, ebx
mov ecx, dword [rdi + rbx*4]
add rcx, rbp
lea rdx, str.NtProtectVirtualMemory
call fcn.180003730
test eax, eax
je 0x180001585
add rbx, 1
add r15, 2
cmp r14, rbx
jne 0x1800014af
mov r15, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
xor edi, edi
lea r14, [rsp + 0x6c]
mov qword [rsp + 0x20], r14
lea rdx, [rsp + 0x78]
lea r8, [rsp + 0x70]
mov rcx, 0xffffffffffffffff
mov r9d, 0x40
call rdi
test eax, eax
js 0x18000140c
add rbp, rbx
mov rcx, r12
mov rdx, rbp
mov r8, r15
call fcn.180002440
mov r9d, dword [rsp + 0x6c]
mov qword [rsp + 0x20], r14
lea rdx, [rsp + 0x78]
lea r8, [rsp + 0x70]
mov rcx, 0xffffffffffffffff
call rdi
test eax, eax
js 0x18000140c
lea rdx, str.NtUnmapViewOfSection
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdx, qword [rsp + 0xa0]
mov rcx, 0xffffffffffffffff
call rax
test eax, eax
js 0x18000140f
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r13d, 1
jmp 0x18000140f
mov rcx, qword [rsp + 0x60]
mov eax, dword [rbp + rcx + 0x1c]
mov ecx, dword [rbp + rcx + 0x24]
movzx ecx, word [r15 + rcx]
add rax, rbp
mov edi, dword [rax + rcx*4]
add rdi, rbp
mov r15, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
jmp 0x1800014e2