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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x483dad
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x10a4
call fcn.0046eec0
mov eax, dword [0x4b700c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov byte [ebp - 0x1021], dl
mov edi, ecx
mov dword [ebp - 0x104c], edi
mov dword [ebp - 0x1020], edi
mov dword [ebp - 0x1050], edi
mov dword [ebp - 0x101c], 0
mov dword [ebp - 4], 1
mov byte [ebp - 4], 2
mov dword [ebp - 0x1034], 0
mov dword [ebp - 0x103c], 0
mov dword [ebp - 0x106c], 0xc
mov dword [ebp - 0x1064], 1
mov dword [ebp - 0x1068], 0
push 0
lea eax, [ebp - 0x106c]
push eax
lea eax, [ebp - 0x103c]
push eax
lea eax, [ebp - 0x1034]
push eax
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x460fc8
mov ecx, str.executeCommand_StdoutRd_CreatePipe
call fcn.00460d60
push str.Error:_executeCommand_StdoutRd_CreatePipe
mov ecx, edi
call fcn.0045d100
mov dword [ebp - 0x101c], 1
mov dword [ebp - 4], 3
mov byte [ebp - 4], 0
jmp 0x461709
push 0
push 1
push dword [ebp - 0x1034]
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
jne 0x46102b
mov ecx, str.executeCommand_Stdout_SetHandleInformation
call fcn.00460d60
push str.Error:_executeCommand_Stdout_SetHandleInformation
mov ecx, edi
call fcn.0045d100
mov dword [ebp - 0x101c], 1
mov dword [ebp - 4], 4
mov byte [ebp - 4], 0
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x461724
mov ecx, dword [edx]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
jmp 0x461724
push str.C:WINDOWSSystem32cmd.exe__c
lea ecx, [ebp - 0x1038]
call fcn.0045d100
mov byte [ebp - 4], 5
mov edi, dword [ebp + 8]
mov eax, edi
mov dword [ebp - 0x1030], eax
xor esi, esi
mov dword [ebp - 0x1044], esi
mov ecx, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_iswspace]
movzx eax, word [eax]
test ax, ax
je 0x4610a6
push eax
call ecx
add esp, 4
test eax, eax
je 0x46108a
mov eax, dword [ebp - 0x1030]
test esi, esi
jne 0x461098
mov esi, eax
mov dword [ebp - 0x1044], esi
add eax, 2
mov dword [ebp - 0x1030], eax
mov edi, dword [ebp + 8]
jmp 0x461052
xor esi, esi
mov dword [ebp - 0x1044], esi
mov eax, dword [ebp - 0x1030]
add eax, 2
mov dword [ebp - 0x1030], eax
mov edi, dword [ebp + 8]
jmp 0x461052
test esi, esi
je 0x4610ef
sub esi, edi
sar esi, 1
js 0x46178c
mov ecx, 1
sub ecx, dword [edi - 4]
mov eax, dword [edi - 8]
sub eax, esi
or eax, ecx
jge 0x4610d1
push esi
lea ecx, [ebp + 8]
call fcn.004032b0
mov edi, dword [ebp + 8]
cmp esi, dword [edi - 8]
jg 0x46178c
mov dword [edi - 0xc], esi
xor ecx, ecx
mov eax, dword [ebp + 8]
mov word [eax + esi*2], cx
mov edi, dword [ebp + 8]
mov ecx, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_iswspace]
mov dword [ebp - 0x1048], edi
movzx eax, word [edi]
push eax
call ecx
add esp, 4
test eax, eax
je 0x461113
add edi, 2
mov dword [ebp - 0x1048], edi
mov ecx, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_iswspace]
jmp 0x4610f5
mov eax, dword [ebp + 8]
cmp edi, eax
je 0x4611a0
sub edi, eax
sar edi, 1
mov esi, dword [eax - 0xc]
test esi, esi
js 0x461796
mov edx, 1
sub edx, dword [eax - 4]
mov ecx, dword [eax - 8]
sub ecx, esi
or ecx, edx
jge 0x46114a
push esi
lea ecx, [ebp + 8]
call fcn.004032b0
mov eax, dword [ebp + 8]
lea esi, [eax + edi*2]
mov dword [ebp - 0x1048], esi
mov edx, dword [eax - 0xc]
mov ecx, edx
sub ecx, edi
mov dword [ebp - 0x1028], ecx
lea ecx, [ecx*2 + 2]
push ecx
push esi
lea ecx, [edx*2 + 2]
push ecx
push eax
call fcn.0045d860
add esp, 0x10
mov ecx, dword [ebp - 0x1028]
test ecx, ecx
js 0x46178c
mov eax, dword [ebp + 8]
cmp ecx, dword [eax - 8]
jg 0x46178c
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [ebp + 8]
mov word [eax + ecx*2], dx
lea eax, [ebp + 8]
push eax
lea edx, [ebp - 0x1038]
lea ecx, [ebp - 0x102c]
call fcn.0045c7c0
add esp, 4
mov byte [ebp - 4], 6
mov edx, dword [eax]
lea ecx, [edx - 0x10]
mov esi, dword [ebp + 8]
add esi, 0xfffffff0
cmp ecx, esi
je 0x461215
cmp dword [esi + 0xc], 0
jl 0x461209
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x461209
call fcn.00403060
mov dword [ebp - 0x1028], eax
or edi, 0xffffffff
mov ecx, edi
lea edx, [esi + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x461201
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov eax, dword [ebp - 0x1028]
add eax, 0x10
mov dword [ebp + 8], eax
jmp 0x461218
push dword [edx - 0xc]
push edx
lea ecx, [ebp + 8]
call fcn.004030c0
or edi, 0xffffffff
mov byte [ebp - 4], 7
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x102c]
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46123d
mov ecx, dword [edx]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
mov byte [ebp - 4], 8
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x1038]
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x461262
mov ecx, dword [edx]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
mov esi, dword [ebp + 8]
mov eax, dword [esi - 0xc]
inc eax
mov dword [ebp - 0x102c], eax
xorps xmm0, xmm0
movups xmmword [ebp - 0x1060], xmm0
push 0x44
push 0
lea eax, [ebp - 0x10b4]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x10b4], 0x44
mov eax, dword [ebp - 0x103c]
mov dword [ebp - 0x1074], eax
mov dword [ebp - 0x1078], eax
mov eax, dword [ebp - 0x1088]
or eax, 0x100
mov dword [ebp - 0x1088], eax
or eax, 1
mov dword [ebp - 0x1088], eax
xor eax, eax
mov word [ebp - 0x1084], ax
mov edx, dword [ebp - 0x102c]
test edx, edx
js 0x4617a0
mov ecx, 1
sub ecx, dword [esi - 4]
mov eax, dword [esi - 8]
sub eax, edx
or eax, ecx
jge 0x4612f6
push edx
lea ecx, [ebp + 8]
call fcn.004032b0
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x1060]
push eax
lea eax, [ebp - 0x10b4]
push eax
push 0
push 0
push 0x10
push 1
push 0
push 0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov esi, eax
push ecx
lea ecx, [ebp + 8]
call fcn.0046c410
test esi, esi
jne 0x461375
mov ecx, str.CreateChildProcess_CreateProcess
call fcn.00460d60
push str.Error:_CreateChildProcess_CreateProcess_Fail
mov esi, dword [ebp - 0x104c]
mov ecx, esi
call fcn.0045d100
or dword [ebp - 0x101c], 1
mov dword [ebp - 4], 9
mov byte [ebp - 4], 0
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x46136e
mov ecx, dword [edx]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
mov eax, esi
jmp 0x461726
mov eax, 0x1d4c0
cmp byte [ebp - 0x1021], 1
cmove eax, edi
push eax
push dword [ebp - 0x1060]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x102c]
push eax
push dword [ebp - 0x1060]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov esi, eax
push dword [ebp - 0x1060]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x105c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jne 0x461404
mov esi, dword [ebp - 0x102c]
push ecx
mov ecx, esp
mov dword [ebp - 0x1020], esp
push 0x48780e
call fcn.0045d100
mov byte [ebp - 4], 0xa
push ecx
mov ecx, esp
mov dword [ebp - 0x1028], esp
push str.CommonUtils_CreateChildProcess_Error:_Executed_command_but_couldnt_get_exit_code:
call fcn.0045d100
mov byte [ebp - 4], 0xb
mov byte [ebp - 4], 2
mov ecx, esi
call fcn.0045f800
add esp, 8
push dword [ebp - 0x103c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x461451
push ecx
mov ecx, esp
mov dword [ebp - 0x1020], esp
push 0x488924
call fcn.0045d100
mov byte [ebp - 4], 0xc
push ecx
mov ecx, esp
mov dword [ebp - 0x1028], esp
push str.CreateChildProcess_Error:_g_hChildStd_OUT_Wr_Pipe_Close_failure
call fcn.0045d100
mov byte [ebp - 4], 0xd
mov byte [ebp - 4], 2
or ecx, 0xffffffff
call fcn.0045f800
add esp, 8
push 0x48780e
lea ecx, [ebp - 0x1018]
call fcn.0045d100
mov byte [ebp - 4], 0xe
push 0
lea eax, [ebp - 0x1040]
push eax
push 0x1000
lea eax, [ebp - 0x1014]
push eax
push dword [ebp - 0x1034]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4615ad
mov eax, dword [ebp - 0x1040]
test eax, eax
je 0x4615ad
push eax
lea eax, [ebp - 0x1014]
push eax
lea ecx, [ebp - 0x1020]
call fcn.0046c320
mov byte [ebp - 4], 0xf
mov ecx, dword [eax]
mov dword [ebp - 0x1038], ecx
mov edi, dword [ecx - 0xc]
mov edx, ecx
mov eax, dword [ebp - 0x1018]
sub edx, eax
sar edx, 1
mov dword [ebp - 0x1028], edx
mov esi, dword [eax - 0xc]
mov dword [ebp - 0x102c], esi
test edi, edi
js 0x4617aa
test ecx, ecx
jne 0x4614e9
xor edi, edi
jmp 0x4614fc
push edi
push ecx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsnlen]
add esp, 8
mov edi, eax
mov eax, dword [ebp - 0x1018]
mov ecx, 0x7fffffff
sub ecx, edi
cmp ecx, esi
jl 0x4617b4
add esi, edi
js 0x4617be
mov edx, 1
sub edx, dword [eax - 4]
mov ecx, dword [eax - 8]
sub ecx, esi
or ecx, edx
jge 0x461536
push esi
lea ecx, [ebp - 0x1018]
call fcn.004032b0
mov eax, dword [ebp - 0x1018]
mov edx, dword [ebp - 0x102c]
mov ecx, dword [ebp - 0x1028]
cmp ecx, edx
lea ecx, [eax + ecx*2]
jbe 0x46154f
mov ecx, dword [ebp - 0x1038]
push edi
push ecx
lea ecx, [eax + edx*2]
mov edx, edi
call fcn.004031c0
add esp, 8
mov eax, dword [ebp - 0x1018]
cmp esi, dword [eax - 8]
jg 0x46178c
mov dword [eax - 0xc], esi
xor ecx, ecx
mov eax, dword [ebp - 0x1018]
mov word [eax + esi*2], cx
mov byte [ebp - 4], 0x10
mov byte [ebp - 4], 0xe
mov edx, dword [ebp - 0x1020]
add edx, 0xfffffff0
or edi, 0xffffffff
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x461465
mov ecx, dword [edx]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
jmp 0x461465
push dword [ebp - 0x1034]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x4615c7
mov ecx, str.CreateChildProcess_Error:_Pipe_Close_failure
call fcn.00460d60
mov esi, dword [ebp - 0x1018]
add esi, 0xfffffff0
mov ecx, dword [esi]
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
mov ecx, eax
lea eax, [esi + 0xc]
cmp dword [eax], 0
jl 0x4615ec
cmp ecx, dword [esi]
jne 0x4615ec
lock inc dword [eax]
jmp 0x461627
mov eax, dword [ecx]
push 2
push dword [esi + 4]
mov eax, dword [eax]
call eax
mov ecx, eax
mov dword [ebp - 0x1020], ecx
test ecx, ecx
je 0x4617c8
mov eax, dword [esi + 4]
mov dword [ecx + 4], eax
mov edx, dword [esi + 4]
inc edx
push edx
lea eax, [esi + 0x10]
push eax
add ecx, 0x10
call fcn.004031c0
add esp, 8
mov esi, dword [ebp - 0x1020]
lea eax, [esi + 0x10]
mov esi, dword [ebp - 0x104c]
mov dword [esi], eax
mov byte [ebp - 4], 0x11
mov byte [ebp - 4], 0xe
or dword [ebp - 0x101c], 1
mov byte [ebp - 4], 0x12
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x1018]
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x461666
mov ecx, dword [edx]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
mov dword [ebp - 4], 0x13
mov byte [ebp - 4], 0
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x46136e
mov ecx, dword [edx]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
mov eax, esi
jmp 0x461726
mov esi, dword [ebp + 8]
or eax, 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x461724
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0046dda6
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00403850
push 0x80070057
call fcn.00403850
push 0x80070057
call fcn.00403850
push 0x80070057
call fcn.00403850
push 0x80070057
call fcn.00403850
push 0x80070057
call fcn.00403850
call fcn.004031b0
int3