Function at 0x14005e3e0
Capabilities:
Create pipe
Create process on windows
Read file on windows

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1430
call fcn.14006a4c0
sub rsp, rax
mov qword [rsp + 0x388], 0xfffffffffffffffe
mov rax, qword [0x1400dc010]
xor rax, rsp
mov qword [rsp + 0x1420], rax
movzx r12d, r8b
mov r15, rdx
mov r14, rcx
mov qword [rsp + 0xa0], rcx
mov qword [rsp + 0x250], rcx
mov qword [rsp + 0x258], rdx
xor r13d, r13d
mov dword [rsp + 0x50], r13d
mov qword [rsp + 0x68], r13
mov qword [rsp + 0x98], r13
mov dword [rsp + 0x270], 0x18
mov dword [rsp + 0x280], 1
mov qword [rsp + 0x278], r13
xor r9d, r9d
lea r8, [rsp + 0x270]
lea rdx, [rsp + 0x98]
lea rcx, [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x14005e547
lea rcx, str.executeCommand_StdoutRd_CreatePipe
call fcn.140007600
lea rax, [rsp + 0x128]
mov qword [rsp + 0x398], rax
lea rax, [rsp + 0x130]
mov qword [rsp + 0x3a0], rax
lea rdx, [0x140099090]
lea rcx, [rsp + 0x128]
call fcn.14000c6f0
mov rbx, rax
lea rdx, str.Error:_executeCommand_StdoutRd_CreatePipe
lea rcx, [rsp + 0x130]
call fcn.14000c6f0
nop
mov edi, 0xffffffff
mov r8d, edi
mov rdx, rbx
mov rcx, rax
call fcn.14005c670
lea rdx, str.Error:_executeCommand_StdoutRd_CreatePipe
mov rcx, r14
call fcn.14000c6f0
mov dword [rsp + 0x50], 1
mov rcx, qword [r15]
sub rcx, 0x18
mov qword [rsp + 0x138], rcx
lock xadd dword [rcx + 0x10], edi
sub edi, 1
jg 0x14005e53f
mov rdx, qword [rsp + 0x138]
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [r8 + 8]
mov rax, r14
jmp 0x14005f05c
lea rax, [rsp + 0x140]
mov qword [rsp + 0x288], rax
lea rax, [rsp + 0x148]
mov qword [rsp + 0x290], rax
lea rdx, [0x140099090]
lea rcx, [rsp + 0x140]
call fcn.14000c6f0
mov rbx, rax
lea rdx, str.Success:_executeCommand_StdoutRd_CreatePipe
lea rcx, [rsp + 0x148]
call fcn.14000c6f0
nop
mov edi, 0xffffffff
mov r8d, edi
mov rdx, rbx
mov rcx, rax
call fcn.14005c670
xor r8d, r8d
lea edx, [rdi + 2]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
jne 0x14005e66e
lea rcx, str.executeCommand_Stdout_SetHandleInformation
call fcn.140007600
lea rax, [rsp + 0x150]
mov qword [rsp + 0x298], rax
lea rax, [rsp + 0x158]
mov qword [rsp + 0x2a0], rax
lea rdx, [0x140099090]
lea rcx, [rsp + 0x150]
call fcn.14000c6f0
mov rbx, rax
lea rdx, str.Error:_executeCommand_Stdout_SetHandleInformation
lea rcx, [rsp + 0x158]
call fcn.14000c6f0
nop
mov r8d, edi
mov rdx, rbx
mov rcx, rax
call fcn.14005c670
lea rdx, str.Error:_executeCommand_Stdout_SetHandleInformation
mov rcx, r14
call fcn.14000c6f0
mov dword [rsp + 0x50], 1
mov rax, qword [r15]
sub rax, 0x18
mov qword [rsp + 0x160], rax
lock xadd dword [rax + 0x10], edi
sub edi, 1
jg 0x14005e666
mov rdx, qword [rsp + 0x160]
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rax, r14
jmp 0x14005f05c
lea rax, [rsp + 0x168]
mov qword [rsp + 0x2a8], rax
lea rax, [rsp + 0x170]
mov qword [rsp + 0x2b0], rax
lea rdx, [0x140099090]
lea rcx, [rsp + 0x168]
call fcn.14000c6f0
mov rbx, rax
lea rdx, str.Success:_executeCommand_Stdout_SetHandleInformation
lea rcx, [rsp + 0x170]
call fcn.14000c6f0
nop
mov r8d, edi
mov rdx, rbx
mov rcx, rax
call fcn.14005c670
lea rdx, str.C:WINDOWSSystem32cmd.exe__c
lea rcx, [rsp + 0xb8]
call fcn.14000c6f0
nop
mov rsi, qword [r15]
mov qword [rsp + 0x178], rsi
mov rbx, r13
mov qword [rsp + 0xa8], rbx
movzx ecx, word [rsi]
test cx, cx
je 0x14005e72d
mov word [rsp + 0x70], cx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_iswspace]
test eax, eax
je 0x14005e714
test rbx, rbx
jne 0x14005e71f
mov rbx, rsi
jmp 0x14005e717
mov rbx, r13
mov qword [rsp + 0xa8], rbx
add rsi, 2
mov qword [rsp + 0x178], rsi
jmp 0x14005e6f3
test rbx, rbx
je 0x14005e795
mov rax, qword [r15]
mov qword [rsp + 0x2b8], rax
sub rbx, rax
sar rbx, 1
mov dword [rsp + 0x218], ebx
test ebx, ebx
js 0x14005f07f
mov ecx, 1
sub ecx, dword [rax - 8]
mov dword [rsp + 0x268], ecx
mov eax, dword [rax - 0xc]
sub eax, ebx
mov dword [rsp + 0xd8], eax
or eax, ecx
jge 0x14005e77b
mov edx, ebx
mov rcx, r15
call fcn.14000d100
mov rax, qword [r15]
cmp ebx, dword [rax - 0xc]
jg 0x14005f089
mov dword [rax - 0x10], ebx
movsxd rcx, ebx
mov rax, qword [r15]
mov word [rax + rcx*2], r13w
mov qword [rsp + 0x2c0], r15
mov rbx, qword [r15]
mov qword [rsp + 0xb0], rbx
nop dword [rax + rax]
movzx ecx, word [rbx]
mov word [rsp + 0x78], cx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_iswspace]
test eax, eax
je 0x14005e7d0
add rbx, 2
mov qword [rsp + 0xb0], rbx
jmp 0x14005e7b0
mov r9, qword [r15]
mov qword [rsp + 0x2c8], r9
cmp rbx, r9
je 0x14005e8c9
mov qword [rsp + 0x2d0], r9
sub rbx, r9
sar rbx, 1
mov dword [rsp + 0xdc], ebx
mov edx, dword [r9 - 0x10]
mov dword [rsp + 0xe0], edx
test edx, edx
js 0x14005f093
mov ecx, 1
sub ecx, dword [r9 - 8]
mov dword [rsp + 0xe4], ecx
mov eax, dword [r9 - 0xc]
sub eax, edx
mov dword [rsp + 0xe8], eax
or eax, ecx
jge 0x14005e838
mov rcx, r15
call fcn.14000d100
mov r9, qword [r15]
movsxd rax, ebx
lea rdx, [r9 + rax*2]
mov qword [rsp + 0xb0], rdx
mov ecx, dword [r9 - 0x10]
mov dword [rsp + 0xec], ecx
mov esi, ecx
sub esi, ebx
mov dword [rsp + 0xf0], esi
mov dword [rsp + 0xf4], ecx
lea eax, [rsi + 1]
movsxd r8, eax
add r8, r8
mov qword [rsp + 0x2d8], r8
je 0x14005e8a7
test rdx, rdx
jne 0x14005e88d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0x16
jmp 0x14005f0a9
lea eax, [rcx + 1]
movsxd rcx, eax
add rcx, rcx
cmp rcx, r8
jb 0x14005f09d
mov rcx, r9
call sub.VCRUNTIME140.dll_memmove
test esi, esi
js 0x14005f0b9
mov rax, qword [r15]
cmp esi, dword [rax - 0xc]
jg 0x14005f0b9
mov dword [rax - 0x10], esi
movsxd rcx, esi
mov rax, qword [r15]
mov word [rax + rcx*2], r13w
mov r8, r15
lea rdx, [rsp + 0xb8]
lea rcx, [rsp + 0x190]
call fcn.14000ba30
mov qword [rsp + 0x2e0], rax
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
mov qword [rsp + 0x2e8], rcx
mov rbx, qword [r15]
sub rbx, 0x18
mov qword [rsp + 0x180], rbx
cmp rcx, rbx
je 0x14005e972
cmp dword [rbx + 0x10], 0
jl 0x14005e955
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x14005e955
call fcn.14000d070
mov qword [rsp + 0x188], rax
mov eax, edi
lock xadd dword [rbx + 0x10], eax
sub eax, 1
jg 0x14005e944
mov rdx, qword [rsp + 0x180]
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rax, qword [rsp + 0x188]
add rax, 0x18
mov qword [r15], rax
jmp 0x14005e972
mov r8d, dword [rdx - 0x10]
mov dword [rsp + 0xf8], r8d
mov qword [rsp + 0x2f0], rdx
mov rcx, r15
call fcn.14000d160
nop
mov rcx, qword [rsp + 0x190]
add rcx, 0xffffffffffffffe8
mov qword [rsp + 0x198], rcx
mov eax, edi
lock xadd dword [rcx + 0x10], eax
sub eax, 1
jg 0x14005e9a4
mov rdx, qword [rsp + 0x198]
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rcx, qword [rsp + 0xb8]
add rcx, 0xffffffffffffffe8
mov qword [rsp + 0x1a0], rcx
mov eax, edi
lock xadd dword [rcx + 0x10], eax
sub eax, 1
jg 0x14005e9d5
mov rdx, qword [rsp + 0x1a0]
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rsi, qword [r15]
mov eax, dword [rsi - 0x10]
mov dword [rsp + 0xfc], eax
lea ebx, [rax + 1]
mov dword [rsp + 0x100], ebx
xor eax, eax
mov qword [rsp + 0xc0], rax
mov qword [rsp + 0xc8], rax
mov qword [rsp + 0xd0], rax
xor edx, edx
lea r8d, [rax + 0x68]
lea rcx, [rsp + 0x3b0]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x3b0], 0x68
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x410], rax
mov qword [rsp + 0x408], rax
mov eax, dword [rsp + 0x3ec]
bts eax, 8
mov dword [rsp + 0x3ec], eax
or eax, 1
mov dword [rsp + 0x3ec], eax
mov word [rsp + 0x3f0], r13w
test ebx, ebx
js 0x14005f0c4
mov ecx, 1
sub ecx, dword [rsi - 8]
mov dword [rsp + 0x104], ecx
mov eax, dword [rsi - 0xc]
sub eax, ebx
mov dword [rsp + 0x108], eax
or eax, ecx
jge 0x14005ea92
mov edx, ebx
mov rcx, r15
call fcn.14000d100
mov rdx, qword [r15]
mov qword [rsp + 0x2f8], rdx
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x3b0]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x10
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ebx, eax
mov dword [rsp + 0x88], eax
mov rcx, qword [r15]
movsxd rdx, dword [rcx - 0xc]
mov dword [rsp + 0x10c], edx
mov qword [rsp + 0x300], rcx
test rcx, rcx
jne 0x14005eb0f
mov eax, r13d
mov dword [rsp + 0x80], eax
jmp 0x14005eb24
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsnlen]
mov dword [rsp + 0x80], eax
test eax, eax
js 0x14005f0f8
mov rcx, qword [r15]
cmp eax, dword [rcx - 0xc]
jg 0x14005f0f8
mov dword [rcx - 0x10], eax
movsxd rcx, eax
mov rax, qword [r15]
mov word [rax + rcx*2], r13w
test ebx, ebx
jne 0x14005ebf2
lea rcx, str.CreateChildProcess_CreateProcess
call fcn.140007600
lea rax, [rsp + 0x1a8]
mov qword [rsp + 0x308], rax
lea rax, [rsp + 0x1b0]
mov qword [rsp + 0x310], rax
lea rdx, [0x140099090]
lea rcx, [rsp + 0x1a8]
call fcn.14000c6f0
mov rbx, rax
lea rdx, str.Error:_CreateChildProcess_CreateProcess_Fail
lea rcx, [rsp + 0x1b0]
call fcn.14000c6f0
nop
mov r8d, edi
mov rdx, rbx
mov rcx, rax
call fcn.14005c670
lea rdx, str.Error:_CreateChildProcess_CreateProcess_Fail
mov rcx, r14
call fcn.14000c6f0
or dword [rsp + 0x50], 1
mov rax, qword [r15]
sub rax, 0x18
mov qword [rsp + 0x1b8], rax
lock xadd dword [rax + 0x10], edi
sub edi, 1
jg 0x14005ebea
mov rdx, qword [rsp + 0x1b8]
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rax, r14
jmp 0x14005f05c
mov edx, 0x1d4c0
mov eax, 0xffffffff
cmp r12b, 1
cmove edx, eax
mov dword [rsp + 0x110], edx
mov rcx, qword [rsp + 0xc0]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0xc0]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ebx, eax
mov rcx, qword [rsp + 0xc0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0xc8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [0x140098d49]
test ebx, ebx
jne 0x14005ec9b
lea rax, [rsp + 0x1c0]
mov qword [rsp + 0x318], rax
lea rax, [rsp + 0x1c8]
mov qword [rsp + 0x320], rax
lea rcx, [rsp + 0x1c0]
call fcn.14000c6f0
mov rbx, rax
lea rdx, str.CommonUtils_CreateChildProcess_Error:_Executed_command_but_couldnt_get_exit_code:
lea rcx, [rsp + 0x1c8]
call fcn.14000c6f0
nop
jmp 0x14005ece0
lea rax, [rsp + 0x1d0]
mov qword [rsp + 0x328], rax
lea rax, [rsp + 0x1d8]
mov qword [rsp + 0x330], rax
lea rcx, [rsp + 0x1d0]
call fcn.14000c6f0
mov rbx, rax
lea rdx, str.CommonUtils_CreateChildProcess.._Executed_command_successfully
lea rcx, [rsp + 0x1d8]
call fcn.14000c6f0
nop
mov r8d, dword [rsp + 0x60]
mov rdx, rbx
mov rcx, rax
call fcn.14005c670
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [0x140099090]
test eax, eax
jne 0x14005ed50
lea rax, [rsp + 0x1e0]
mov qword [rsp + 0x338], rax
lea rax, [rsp + 0x1e8]
mov qword [rsp + 0x340], rax
lea rcx, [rsp + 0x1e0]
call fcn.14000c6f0
mov rbx, rax
lea rdx, str.CreateChildProcess_Error:_g_hChildStd_OUT_Wr_Pipe_Close_failure
lea rcx, [rsp + 0x1e8]
call fcn.14000c6f0
nop
jmp 0x14005ed95
lea rax, [rsp + 0x1f0]
mov qword [rsp + 0x348], rax
lea rax, [rsp + 0x1f8]
mov qword [rsp + 0x350], rax
lea rcx, [rsp + 0x1f0]
call fcn.14000c6f0
mov rbx, rax
lea rdx, str.CreateChildProcess_g_hChildStd_OUT_Wr_Pipe_Close_Success
lea rcx, [rsp + 0x1f8]
call fcn.14000c6f0
nop
mov r8d, edi
mov rdx, rbx
mov rcx, rax
call fcn.14005c670
lea rdx, [0x140098d49]
lea rcx, [rsp + 0x58]
call fcn.14000c6f0
nop
nop word [rax + rax]
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x8c]
mov r8d, 0x1000
lea rdx, [rsp + 0x420]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [rsp + 0x88], eax
test eax, eax
je 0x14005ef6a
mov r8d, dword [rsp + 0x8c]
test r8d, r8d
je 0x14005ef6a
lea rdx, [rsp + 0x420]
lea rcx, [rsp + 0x208]
call fcn.14000c5e0
mov qword [rsp + 0x358], rax
mov r14, qword [rax]
movsxd rcx, dword [r14 - 0x10]
mov dword [rsp + 0x114], ecx
mov qword [rsp + 0x360], r14
mov qword [rsp + 0x200], r14
mov r12, r14
mov rax, qword [rsp + 0x58]
sub r12, rax
sar r12, 1
mov qword [rsp + 0x368], r12
mov r13d, dword [rax - 0x10]
test ecx, ecx
js 0x14005f0cf
test r14, r14
jne 0x14005ee73
xor esi, esi
mov dword [rsp + 0x90], esi
jmp 0x14005ee8e
mov rdx, rcx
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsnlen]
mov rsi, rax
mov dword [rsp + 0x90], eax
mov rax, qword [rsp + 0x58]
mov ecx, 0x7fffffff
sub ecx, esi
cmp ecx, r13d
jl 0x14005f0d9
lea ebx, [rsi + r13]
mov dword [rsp + 0x118], ebx
test ebx, ebx
js 0x14005f0e3
lea rcx, [rax - 0x18]
mov qword [rsp + 0x370], rcx
mov edx, 1
sub edx, dword [rcx + 0x10]
mov dword [rsp + 0x11c], edx
mov ecx, dword [rcx + 0xc]
sub ecx, ebx
mov dword [rsp + 0x120], ecx
or ecx, edx
jge 0x14005eeed
mov edx, ebx
lea rcx, [rsp + 0x58]
call fcn.14000d100
mov rax, qword [rsp + 0x58]
cmp r12, r13
ja 0x14005eefe
lea r14, [rax + r12*2]
mov qword [rsp + 0x200], r14
movsxd rdx, esi
add rdx, rdx
lea rcx, [rax + r13*2]
mov r9, rdx
mov r8, r14
call fcn.14000da90
mov rax, qword [rsp + 0x58]
cmp ebx, dword [rax - 0xc]
jg 0x14005f0ed
mov dword [rax - 0x10], ebx
movsxd rcx, ebx
mov rax, qword [rsp + 0x58]
xor r13d, r13d
mov word [rax + rcx*2], r13w
mov rcx, qword [rsp + 0x208]
add rcx, 0xffffffffffffffe8
mov qword [rsp + 0x210], rcx
mov eax, edi
lock xadd dword [rcx + 0x10], eax
sub eax, 1
jg 0x14005ef65
mov rdx, qword [rsp + 0x210]
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
jmp 0x14005edc0
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x14005ef85
lea rcx, str.CreateChildProcess_Error:_Pipe_Close_failure
call fcn.140007600
mov rcx, qword [rsp + 0x58]
add rcx, 0xffffffffffffffe8
mov qword [rsp + 0x378], rcx
call fcn.14000d070
mov qword [rsp + 0x380], rax
add rax, 0x18
mov r14, qword [rsp + 0xa0]
mov qword [r14], rax
or dword [rsp + 0x50], 1
mov rcx, qword [rsp + 0x58]
add rcx, 0xffffffffffffffe8
mov qword [rsp + 0x220], rcx
mov eax, edi
lock xadd dword [rcx + 0x10], eax
sub eax, 1
jg 0x14005efe6
mov rdx, qword [rsp + 0x220]
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rax, qword [r15]
sub rax, 0x18
mov qword [rsp + 0x228], rax
lock xadd dword [rax + 0x10], edi
sub edi, 1
jg 0x14005f010
mov rdx, qword [rsp + 0x228]
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rax, r14
jmp 0x14005f05c
mov rcx, qword [rsp + 0x1420]
xor rcx, rsp
call fcn.1400691f0
add rsp, 0x1430
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
mov ecx, 0x80070057
call fcn.14000dd90
mov ecx, 0x80070057
call fcn.14000dd90
mov ecx, 0x80070057
call fcn.14000dd90
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0x22
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
mov ecx, 0x80070057
call fcn.14000dd90
mov ecx, 0x80070057
call fcn.14000dd90
nop
mov ecx, 0x80070057
call fcn.14000dd90
nop
mov ecx, 0x80070057
call fcn.14000dd90
mov ecx, 0x80070057
call fcn.14000dd90
mov ecx, 0x80070057
call fcn.14000dd90
mov ecx, 0x80070057
call fcn.14000dd90
nop
mov ecx, 0x80070057
call fcn.14000dd90
int3