Function at 0x14005e5d0
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.14006a6b0
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 0x14005e737
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.14000c8e0
mov rbx, rax
lea rdx, str.Error:_executeCommand_StdoutRd_CreatePipe
lea rcx, [rsp + 0x130]
call fcn.14000c8e0
nop
mov edi, 0xffffffff
mov r8d, edi
mov rdx, rbx
mov rcx, rax
call fcn.14005c860
lea rdx, str.Error:_executeCommand_StdoutRd_CreatePipe
mov rcx, r14
call fcn.14000c8e0
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 0x14005e72f
mov rdx, qword [rsp + 0x138]
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [r8 + 8]
mov rax, r14
jmp 0x14005f24c
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.14000c8e0
mov rbx, rax
lea rdx, str.Success:_executeCommand_StdoutRd_CreatePipe
lea rcx, [rsp + 0x148]
call fcn.14000c8e0
nop
mov edi, 0xffffffff
mov r8d, edi
mov rdx, rbx
mov rcx, rax
call fcn.14005c860
xor r8d, r8d
lea edx, [rdi + 2]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
jne 0x14005e85e
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.14000c8e0
mov rbx, rax
lea rdx, str.Error:_executeCommand_Stdout_SetHandleInformation
lea rcx, [rsp + 0x158]
call fcn.14000c8e0
nop
mov r8d, edi
mov rdx, rbx
mov rcx, rax
call fcn.14005c860
lea rdx, str.Error:_executeCommand_Stdout_SetHandleInformation
mov rcx, r14
call fcn.14000c8e0
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 0x14005e856
mov rdx, qword [rsp + 0x160]
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rax, r14
jmp 0x14005f24c
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.14000c8e0
mov rbx, rax
lea rdx, str.Success:_executeCommand_Stdout_SetHandleInformation
lea rcx, [rsp + 0x170]
call fcn.14000c8e0
nop
mov r8d, edi
mov rdx, rbx
mov rcx, rax
call fcn.14005c860
lea rdx, str.C:WINDOWSSystem32cmd.exe__c
lea rcx, [rsp + 0xb8]
call fcn.14000c8e0
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 0x14005e91d
mov word [rsp + 0x70], cx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_iswspace]
test eax, eax
je 0x14005e904
test rbx, rbx
jne 0x14005e90f
mov rbx, rsi
jmp 0x14005e907
mov rbx, r13
mov qword [rsp + 0xa8], rbx
add rsi, 2
mov qword [rsp + 0x178], rsi
jmp 0x14005e8e3
test rbx, rbx
je 0x14005e985
mov rax, qword [r15]
mov qword [rsp + 0x2b8], rax
sub rbx, rax
sar rbx, 1
mov dword [rsp + 0x218], ebx
test ebx, ebx
js 0x14005f26f
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 0x14005e96b
mov edx, ebx
mov rcx, r15
call fcn.14000d2f0
mov rax, qword [r15]
cmp ebx, dword [rax - 0xc]
jg 0x14005f279
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 0x14005e9c0
add rbx, 2
mov qword [rsp + 0xb0], rbx
jmp 0x14005e9a0
mov r9, qword [r15]
mov qword [rsp + 0x2c8], r9
cmp rbx, r9
je 0x14005eab9
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 0x14005f283
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 0x14005ea28
mov rcx, r15
call fcn.14000d2f0
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 0x14005ea97
test rdx, rdx
jne 0x14005ea7d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0x16
jmp 0x14005f299
lea eax, [rcx + 1]
movsxd rcx, eax
add rcx, rcx
cmp rcx, r8
jb 0x14005f28d
mov rcx, r9
call sub.VCRUNTIME140.dll_memmove
test esi, esi
js 0x14005f2a9
mov rax, qword [r15]
cmp esi, dword [rax - 0xc]
jg 0x14005f2a9
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.14000bc20
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 0x14005eb62
cmp dword [rbx + 0x10], 0
jl 0x14005eb45
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x14005eb45
call fcn.14000d260
mov qword [rsp + 0x188], rax
mov eax, edi
lock xadd dword [rbx + 0x10], eax
sub eax, 1
jg 0x14005eb34
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 0x14005eb62
mov r8d, dword [rdx - 0x10]
mov dword [rsp + 0xf8], r8d
mov qword [rsp + 0x2f0], rdx
mov rcx, r15
call fcn.14000d350
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 0x14005eb94
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 0x14005ebc5
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 0x14005f2b4
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 0x14005ec82
mov edx, ebx
mov rcx, r15
call fcn.14000d2f0
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 0x14005ecff
mov eax, r13d
mov dword [rsp + 0x80], eax
jmp 0x14005ed14
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsnlen]
mov dword [rsp + 0x80], eax
test eax, eax
js 0x14005f2e8
mov rcx, qword [r15]
cmp eax, dword [rcx - 0xc]
jg 0x14005f2e8
mov dword [rcx - 0x10], eax
movsxd rcx, eax
mov rax, qword [r15]
mov word [rax + rcx*2], r13w
test ebx, ebx
jne 0x14005ede2
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.14000c8e0
mov rbx, rax
lea rdx, str.Error:_CreateChildProcess_CreateProcess_Fail
lea rcx, [rsp + 0x1b0]
call fcn.14000c8e0
nop
mov r8d, edi
mov rdx, rbx
mov rcx, rax
call fcn.14005c860
lea rdx, str.Error:_CreateChildProcess_CreateProcess_Fail
mov rcx, r14
call fcn.14000c8e0
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 0x14005edda
mov rdx, qword [rsp + 0x1b8]
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rax, r14
jmp 0x14005f24c
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 0x14005ee8b
lea rax, [rsp + 0x1c0]
mov qword [rsp + 0x318], rax
lea rax, [rsp + 0x1c8]
mov qword [rsp + 0x320], rax
lea rcx, [rsp + 0x1c0]
call fcn.14000c8e0
mov rbx, rax
lea rdx, str.CommonUtils_CreateChildProcess_Error:_Executed_command_but_couldnt_get_exit_code:
lea rcx, [rsp + 0x1c8]
call fcn.14000c8e0
nop
jmp 0x14005eed0
lea rax, [rsp + 0x1d0]
mov qword [rsp + 0x328], rax
lea rax, [rsp + 0x1d8]
mov qword [rsp + 0x330], rax
lea rcx, [rsp + 0x1d0]
call fcn.14000c8e0
mov rbx, rax
lea rdx, str.CommonUtils_CreateChildProcess.._Executed_command_successfully
lea rcx, [rsp + 0x1d8]
call fcn.14000c8e0
nop
mov r8d, dword [rsp + 0x60]
mov rdx, rbx
mov rcx, rax
call fcn.14005c860
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [0x140099090]
test eax, eax
jne 0x14005ef40
lea rax, [rsp + 0x1e0]
mov qword [rsp + 0x338], rax
lea rax, [rsp + 0x1e8]
mov qword [rsp + 0x340], rax
lea rcx, [rsp + 0x1e0]
call fcn.14000c8e0
mov rbx, rax
lea rdx, str.CreateChildProcess_Error:_g_hChildStd_OUT_Wr_Pipe_Close_failure
lea rcx, [rsp + 0x1e8]
call fcn.14000c8e0
nop
jmp 0x14005ef85
lea rax, [rsp + 0x1f0]
mov qword [rsp + 0x348], rax
lea rax, [rsp + 0x1f8]
mov qword [rsp + 0x350], rax
lea rcx, [rsp + 0x1f0]
call fcn.14000c8e0
mov rbx, rax
lea rdx, str.CreateChildProcess_g_hChildStd_OUT_Wr_Pipe_Close_Success
lea rcx, [rsp + 0x1f8]
call fcn.14000c8e0
nop
mov r8d, edi
mov rdx, rbx
mov rcx, rax
call fcn.14005c860
lea rdx, [0x140098d49]
lea rcx, [rsp + 0x58]
call fcn.14000c8e0
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 0x14005f15a
mov r8d, dword [rsp + 0x8c]
test r8d, r8d
je 0x14005f15a
lea rdx, [rsp + 0x420]
lea rcx, [rsp + 0x208]
call fcn.14000c7d0
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 0x14005f2bf
test r14, r14
jne 0x14005f063
xor esi, esi
mov dword [rsp + 0x90], esi
jmp 0x14005f07e
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 0x14005f2c9
lea ebx, [rsi + r13]
mov dword [rsp + 0x118], ebx
test ebx, ebx
js 0x14005f2d3
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 0x14005f0dd
mov edx, ebx
lea rcx, [rsp + 0x58]
call fcn.14000d2f0
mov rax, qword [rsp + 0x58]
cmp r12, r13
ja 0x14005f0ee
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.14000dc80
mov rax, qword [rsp + 0x58]
cmp ebx, dword [rax - 0xc]
jg 0x14005f2dd
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 0x14005f155
mov rdx, qword [rsp + 0x210]
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
jmp 0x14005efb0
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x14005f175
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.14000d260
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 0x14005f1d6
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 0x14005f200
mov rdx, qword [rsp + 0x228]
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rax, r14
jmp 0x14005f24c
mov rcx, qword [rsp + 0x1420]
xor rcx, rsp
call fcn.1400693e0
add rsp, 0x1430
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
mov ecx, 0x80070057
call fcn.14000df80
mov ecx, 0x80070057
call fcn.14000df80
mov ecx, 0x80070057
call fcn.14000df80
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.14000df80
mov ecx, 0x80070057
call fcn.14000df80
nop
mov ecx, 0x80070057
call fcn.14000df80
nop
mov ecx, 0x80070057
call fcn.14000df80
mov ecx, 0x80070057
call fcn.14000df80
mov ecx, 0x80070057
call fcn.14000df80
mov ecx, 0x80070057
call fcn.14000df80
nop
mov ecx, 0x80070057
call fcn.14000df80
int3