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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x487ded
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x10a4
call fcn.004724e0
mov eax, dword [0x4bc00c]
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 0x4643d8
mov ecx, str.executeCommand_StdoutRd_CreatePipe
call fcn.00464170
push str.Error:_executeCommand_StdoutRd_CreatePipe
mov ecx, edi
call fcn.0045fcf0
mov dword [ebp - 0x101c], 1
mov dword [ebp - 4], 3
mov byte [ebp - 4], 0
jmp 0x464b19
push 0
push 1
push dword [ebp - 0x1034]
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
jne 0x46443b
mov ecx, str.executeCommand_Stdout_SetHandleInformation
call fcn.00464170
push str.Error:_executeCommand_Stdout_SetHandleInformation
mov ecx, edi
call fcn.0045fcf0
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 0x464b34
mov ecx, dword [edx]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
jmp 0x464b34
push str.C:WINDOWSSystem32cmd.exe__c
lea ecx, [ebp - 0x1038]
call fcn.0045fcf0
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 0x4644b6
push eax
call ecx
add esp, 4
test eax, eax
je 0x46449a
mov eax, dword [ebp - 0x1030]
test esi, esi
jne 0x4644a8
mov esi, eax
mov dword [ebp - 0x1044], esi
add eax, 2
mov dword [ebp - 0x1030], eax
mov edi, dword [ebp + 8]
jmp 0x464462
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 0x464462
test esi, esi
je 0x4644ff
sub esi, edi
sar esi, 1
js 0x464b9c
mov ecx, 1
sub ecx, dword [edi - 4]
mov eax, dword [edi - 8]
sub eax, esi
or eax, ecx
jge 0x4644e1
push esi
lea ecx, [ebp + 8]
call fcn.004032e0
mov edi, dword [ebp + 8]
cmp esi, dword [edi - 8]
jg 0x464b9c
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 0x464523
add edi, 2
mov dword [ebp - 0x1048], edi
mov ecx, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_iswspace]
jmp 0x464505
mov eax, dword [ebp + 8]
cmp edi, eax
je 0x4645b0
sub edi, eax
sar edi, 1
mov esi, dword [eax - 0xc]
test esi, esi
js 0x464ba6
mov edx, 1
sub edx, dword [eax - 4]
mov ecx, dword [eax - 8]
sub ecx, esi
or ecx, edx
jge 0x46455a
push esi
lea ecx, [ebp + 8]
call fcn.004032e0
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.00460b50
add esp, 0x10
mov ecx, dword [ebp - 0x1028]
test ecx, ecx
js 0x464b9c
mov eax, dword [ebp + 8]
cmp ecx, dword [eax - 8]
jg 0x464b9c
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.0045f3b0
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 0x464625
cmp dword [esi + 0xc], 0
jl 0x464619
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x464619
call fcn.00403090
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 0x464611
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 0x464628
push dword [edx - 0xc]
push edx
lea ecx, [ebp + 8]
call fcn.004030f0
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 0x46464d
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 0x464672
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 0x464bb0
mov ecx, 1
sub ecx, dword [esi - 4]
mov eax, dword [esi - 8]
sub eax, edx
or eax, ecx
jge 0x464706
push edx
lea ecx, [ebp + 8]
call fcn.004032e0
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.0046f820
test esi, esi
jne 0x464785
mov ecx, str.CreateChildProcess_CreateProcess
call fcn.00464170
push str.Error:_CreateChildProcess_CreateProcess_Fail
mov esi, dword [ebp - 0x104c]
mov ecx, esi
call fcn.0045fcf0
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 0x46477e
mov ecx, dword [edx]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
mov eax, esi
jmp 0x464b36
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 0x464814
mov esi, dword [ebp - 0x102c]
push ecx
mov ecx, esp
mov dword [ebp - 0x1020], esp
push 0x48d10a
call fcn.0045fcf0
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.0045fcf0
mov byte [ebp - 4], 0xb
mov byte [ebp - 4], 2
mov ecx, esi
call fcn.00462c10
add esp, 8
push dword [ebp - 0x103c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x464861
push ecx
mov ecx, esp
mov dword [ebp - 0x1020], esp
push 0x48e2cc
call fcn.0045fcf0
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.0045fcf0
mov byte [ebp - 4], 0xd
mov byte [ebp - 4], 2
or ecx, 0xffffffff
call fcn.00462c10
add esp, 8
push 0x48d10a
lea ecx, [ebp - 0x1018]
call fcn.0045fcf0
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 0x4649bd
mov eax, dword [ebp - 0x1040]
test eax, eax
je 0x4649bd
push eax
lea eax, [ebp - 0x1014]
push eax
lea ecx, [ebp - 0x1020]
call fcn.0046f730
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 0x464bba
test ecx, ecx
jne 0x4648f9
xor edi, edi
jmp 0x46490c
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, SysReAllocString
sub ecx, edi
cmp ecx, esi
jl 0x464bc4
add esi, edi
js 0x464bce
mov edx, 1
sub edx, dword [eax - 4]
mov ecx, dword [eax - 8]
sub ecx, esi
or ecx, edx
jge 0x464946
push esi
lea ecx, [ebp - 0x1018]
call fcn.004032e0
mov eax, dword [ebp - 0x1018]
mov edx, dword [ebp - 0x102c]
mov ecx, dword [ebp - 0x1028]
cmp ecx, edx
lea ecx, [eax + ecx*2]
jbe 0x46495f
mov ecx, dword [ebp - 0x1038]
push edi
push ecx
lea ecx, [eax + edx*2]
mov edx, edi
call fcn.004031f0
add esp, 8
mov eax, dword [ebp - 0x1018]
cmp esi, dword [eax - 8]
jg 0x464b9c
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 0x464875
mov ecx, dword [edx]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
jmp 0x464875
push dword [ebp - 0x1034]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x4649d7
mov ecx, str.CreateChildProcess_Error:_Pipe_Close_failure
call fcn.00464170
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 0x4649fc
cmp ecx, dword [esi]
jne 0x4649fc
lock inc dword [eax]
jmp 0x464a37
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 0x464bd8
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.004031f0
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 0x464a76
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 0x46477e
mov ecx, dword [edx]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
mov eax, esi
jmp 0x464b36
mov esi, dword [ebp + 8]
or eax, 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x464b34
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.00471083
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00403880
push 0x80070057
call fcn.00403880
push 0x80070057
call fcn.00403880
push 0x80070057
call fcn.00403880
push 0x80070057
call fcn.00403880
push 0x80070057
call fcn.00403880
call fcn.004031e0
int3