Function at 0x42fba0
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5064fc
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1118
call fcn.004b5ac0
mov eax, dword [0x557200]
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 esi, ecx
mov dword [ebp - 0x10f4], esi
mov ecx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 4], 0
xorps xmm0, xmm0
movq qword [ebp - 0x109c], xmm0
mov dword [ebp - 0x10ec], ecx
mov dword [ebp - 0x1080], 0
mov dword [ebp - 0x1084], eax
mov dword [ebp - 0x10a0], 0xc
mov dword [ebp - 0x1098], 1
mov dword [ebp - 0x109c], eax
cmp dword [ecx + 0x10], eax
je 0x42fe64
push eax
lea eax, [ebp - 0x10a0]
push eax
lea eax, [ebp - 0x1084]
push eax
lea eax, [ebp - 0x1080]
push eax
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x42fe5e
push 0x1a
mov dword [ebp - 0x1060], eax
lea ecx, [ebp - 0x1060]
push str.ProcessUtil::RunDosCommand
mov dword [ebp - 0x1050], eax
mov dword [ebp - 0x104c], 7
mov word [ebp - 0x1060], ax
call fcn.004084c0
push 0x5c
push str.D:_MyProjectMOffice4.0moffice_4.0_agent_win__SourceUtilProcessUtil.cpp
mov byte [ebp - 4], 1
call fcn.004b69f9
add esp, 8
test eax, eax
je 0x42fcac
push 0x5c
push str.D:_MyProjectMOffice4.0moffice_4.0_agent_win__SourceUtilProcessUtil.cpp
call fcn.004b69f9
add esp, 8
lea edx, [eax + 2]
jmp 0x42fcb1
mov edx, str.D:_MyProjectMOffice4.0moffice_4.0_agent_win__SourceUtilProcessUtil.cpp
mov ecx, edx
mov dword [ebp - 0x102c], 0
xor eax, eax
mov dword [ebp - 0x101c], 0
mov dword [ebp - 0x1018], 7
mov word [ebp - 0x102c], ax
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42fce0
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x102c]
call fcn.004084c0
xor edx, edx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x110c]
call fcn.00434e10
mov byte [ebp - 4], 3
cmp dword [eax + 0x14], 8
jb 0x42fd19
mov eax, dword [eax]
push eax
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x10f0], esp
push 0x17
push str.CreatePipe_failed:___s_
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
call fcn.004084c0
mov byte [ebp - 4], 4
call fcn.00408db0
push 0xac
lea eax, [ebp - 0x1060]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x102c]
push eax
push 6
push dword [0x560f9c]
call fcn.0040d3e0
mov byte [ebp - 4], 2
add esp, 0x30
mov edx, dword [ebp - 0x10f8]
cmp edx, 8
jb 0x42fdb9
mov ecx, dword [ebp - 0x110c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42fdaf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43097a
push edx
push ecx
call fcn.004b51c1
add esp, 8
xor eax, eax
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x1018]
mov dword [ebp - 0x10fc], 0
mov dword [ebp - 0x10f8], 7
mov word [ebp - 0x110c], ax
cmp edx, 8
jb 0x42fe1a
mov ecx, dword [ebp - 0x102c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42fe10
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43097a
push edx
push ecx
call fcn.004b51c1
add esp, 8
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x104c]
cmp edx, 8
jb 0x42fe5e
mov ecx, dword [ebp - 0x1060]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42fe54
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43097a
push edx
push ecx
call fcn.004b51c1
add esp, 8
mov eax, dword [ebp - 0x1084]
xorps xmm0, xmm0
mov dword [ebp - 0x10e4], 0x44
xor ecx, ecx
movlpd qword [ebp - 0x10e0], xmm0
movlpd qword [ebp - 0x10d8], xmm0
movlpd qword [ebp - 0x10d0], xmm0
movlpd qword [ebp - 0x10c8], xmm0
movlpd qword [ebp - 0x10c0], xmm0
movlpd qword [ebp - 0x10b2], xmm0
movlpd qword [ebp - 0x10aa], xmm0
mov word [ebp - 0x10a2], cx
movups xmmword [ebp - 0x1094], xmm0
mov dword [ebp - 0x10b8], 1
cmp dword [ebp - 0x1080], ecx
je 0x42feeb
test eax, eax
je 0x42feeb
mov dword [ebp - 0x10b8], 0x101
mov dword [ebp - 0x10ac], ecx
mov dword [ebp - 0x10a8], eax
mov dword [ebp - 0x10a4], eax
xor eax, eax
lea ecx, [ebp - 0x107c]
push esi
mov word [ebp - 0x10b4], ax
call fcn.00408370
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x1044]
push 0x1a
xor eax, eax
mov dword [ebp - 0x1044], 0
push str.ProcessUtil::RunDosCommand
mov dword [ebp - 0x1034], 0
mov dword [ebp - 0x1030], 7
mov word [ebp - 0x1044], ax
call fcn.004084c0
push 0x5c
push str.D:_MyProjectMOffice4.0moffice_4.0_agent_win__SourceUtilProcessUtil.cpp
mov byte [ebp - 4], 6
call fcn.004b69f9
add esp, 8
test eax, eax
je 0x42ff68
push 0x5c
push str.D:_MyProjectMOffice4.0moffice_4.0_agent_win__SourceUtilProcessUtil.cpp
call fcn.004b69f9
add esp, 8
lea edx, [eax + 2]
jmp 0x42ff6d
mov edx, str.D:_MyProjectMOffice4.0moffice_4.0_agent_win__SourceUtilProcessUtil.cpp
mov ecx, edx
mov dword [ebp - 0x102c], 0
xor eax, eax
mov dword [ebp - 0x101c], 0
mov dword [ebp - 0x1018], 7
mov word [ebp - 0x102c], ax
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42ffa0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x102c]
call fcn.004084c0
mov byte [ebp - 4], 7
lea eax, [ebp - 0x107c]
cmp dword [ebp - 0x1068], 8
cmovae eax, dword [ebp - 0x107c]
push eax
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x10f0], esp
push 0x15
push str.execute_command:___s_
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
call fcn.004084c0
mov byte [ebp - 4], 8
call fcn.00408db0
push 0xc6
lea eax, [ebp - 0x1044]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0x102c]
push eax
push 2
push dword [0x560f9c]
call fcn.0040d3e0
mov byte [ebp - 4], 6
add esp, 0x30
mov edx, dword [ebp - 0x1018]
cmp edx, 8
jb 0x430074
mov ecx, dword [ebp - 0x102c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x43006a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43097f
push edx
push ecx
call fcn.004b51c1
add esp, 8
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x1030]
cmp edx, 8
jb 0x4300b8
mov ecx, dword [ebp - 0x1044]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4300ae
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43097f
push edx
push ecx
call fcn.004b51c1
add esp, 8
cmp dword [ebp - 0x1068], 8
lea ecx, [ebp - 0x1094]
push ecx
lea ecx, [ebp - 0x10e4]
push ecx
push 0
push 0
push 0x8000000
push 1
push 0
lea eax, [ebp - 0x107c]
cmovae eax, dword [ebp - 0x107c]
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x430395
mov eax, dword [ebp - 0x1080]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x43010d
push eax
call esi
mov eax, dword [ebp - 0x1084]
test eax, eax
je 0x43011a
push eax
call esi
push 0x1a
xor eax, eax
mov dword [ebp - 0x1044], 0
push str.ProcessUtil::RunDosCommand
lea ecx, [ebp - 0x1044]
mov dword [ebp - 0x1034], 0
mov dword [ebp - 0x1030], 7
mov word [ebp - 0x1044], ax
call fcn.004084c0
push 0x5c
push str.D:_MyProjectMOffice4.0moffice_4.0_agent_win__SourceUtilProcessUtil.cpp
mov byte [ebp - 4], 9
call fcn.004b69f9
add esp, 8
test eax, eax
je 0x43017e
push 0x5c
push str.D:_MyProjectMOffice4.0moffice_4.0_agent_win__SourceUtilProcessUtil.cpp
call fcn.004b69f9
add esp, 8
lea edx, [eax + 2]
jmp 0x430183
mov edx, str.D:_MyProjectMOffice4.0moffice_4.0_agent_win__SourceUtilProcessUtil.cpp
mov ecx, edx
mov dword [ebp - 0x102c], 0
xor eax, eax
mov dword [ebp - 0x101c], 0
mov dword [ebp - 0x1018], 7
mov word [ebp - 0x102c], ax
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4301b0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x102c]
call fcn.004084c0
mov eax, dword [ebp - 0x10f4]
mov byte [ebp - 4], 0xa
cmp dword [eax + 0x14], 8
jb 0x4301de
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0x110c]
call fcn.00434e10
mov byte [ebp - 4], 0xb
cmp dword [eax + 0x14], 8
jb 0x4301fe
mov eax, dword [eax]
push eax
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x10ec], esp
push 0x1f
push str.CreateProcess_failed:___s____s_
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
call fcn.004084c0
mov byte [ebp - 4], 0xc
call fcn.00408db0
push 0xd9
lea eax, [ebp - 0x1044]
mov byte [ebp - 4], 0xb
push eax
lea eax, [ebp - 0x102c]
push eax
push 6
push dword [0x560f9c]
call fcn.0040d3e0
mov edx, dword [ebp - 0x10f8]
add esp, 0x34
cmp edx, 8
jb 0x43029a
mov ecx, dword [ebp - 0x110c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x430290
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x430984
push edx
push ecx
call fcn.004b51c1
add esp, 8
mov edx, dword [ebp - 0x1018]
xor eax, eax
mov dword [ebp - 0x10fc], 0
mov dword [ebp - 0x10f8], 7
mov word [ebp - 0x110c], ax
cmp edx, 8
jb 0x4302f7
mov ecx, dword [ebp - 0x102c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4302ed
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x430984
push edx
push ecx
call fcn.004b51c1
add esp, 8
mov edx, dword [ebp - 0x1030]
cmp edx, 8
jb 0x430337
mov ecx, dword [ebp - 0x1044]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x43032d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x430984
push edx
push ecx
call fcn.004b51c1
add esp, 8
mov edx, dword [ebp - 0x1068]
cmp edx, 8
jb 0x430377
mov ecx, dword [ebp - 0x107c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x43036d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x430998
push edx
push ecx
call fcn.004b51c1
add esp, 8
xor eax, eax
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.004b4f32
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x1084]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4303a8
push eax
call edi
cmp dword [ebp - 0x1080], 0
je 0x4306e3
mov dword [ebp - 0x1060], 0
mov dword [ebp - 0x1050], 0
mov dword [ebp - 0x104c], 0xf
mov byte [ebp - 0x1060], 0
mov byte [ebp - 4], 0xd
nop
push 0x1000
lea eax, [ebp - 0x1014]
push 0
push eax
call fcn.004b73e0
add esp, 0xc
lea eax, [ebp - 0x1064]
push 0
push eax
push 0x1000
lea eax, [ebp - 0x1014]
push eax
push dword [ebp - 0x1080]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x430546
cmp dword [ebp - 0x1064], 0
je 0x430546
lea ecx, [ebp - 0x1014]
mov dword [ebp - 0x102c], 0
mov dword [ebp - 0x101c], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x1018], 0xf
mov byte [ebp - 0x102c], 0
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x430460
sub ecx, edx
lea eax, [ebp - 0x1014]
push ecx
push eax
lea ecx, [ebp - 0x102c]
call fcn.004124d0
mov byte [ebp - 4], 0xe
lea edx, [ebp - 0x102c]
cmp dword [ebp - 0x1018], 0x10
mov edi, dword [ebp - 0x102c]
mov eax, dword [ebp - 0x104c]
cmovae edx, edi
mov esi, dword [ebp - 0x1050]
sub eax, esi
mov ecx, dword [ebp - 0x101c]
push ecx
push edx
cmp ecx, eax
ja 0x4304e4
cmp dword [ebp - 0x104c], 0x10
lea eax, [esi + ecx]
mov dword [ebp - 0x1050], eax
lea eax, [ebp - 0x1060]
cmovae eax, dword [ebp - 0x1060]
add esi, eax
push esi
call fcn.004b6e60
mov eax, dword [ebp - 0x101c]
add esp, 0xc
mov byte [esi + eax], 0
jmp 0x430503
mov byte [ebp - 0x10f0], 0
push dword [ebp - 0x10f0]
push ecx
lea ecx, [ebp - 0x1060]
call fcn.0042b340
mov edi, dword [ebp - 0x102c]
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0x1018]
cmp eax, 0x10
jb 0x4303e0
lea ecx, [eax + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x430537
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x430989
push ecx
push edi
call fcn.004b51c1
add esp, 8
jmp 0x4303e0
xor eax, eax
mov dword [ebp - 0x1044], 0
mov dword [ebp - 0x1034], 0
mov dword [ebp - 0x1030], 7
mov word [ebp - 0x1044], ax
mov byte [ebp - 4], 0xf
lea edx, [ebp - 0x1060]
push dword [ebp - 0x1050]
lea ecx, [ebp - 0x1044]
call fcn.00434890
mov esi, dword [ebp - 0x10f4]
lea eax, [ebp - 0x1044]
add esp, 4
cmp dword [ebp - 0x1030], 8
cmovae eax, dword [ebp - 0x1044]
cmp dword [esi + 0x14], 8
push 0
push dword [ebp - 0x10ec]
push eax
jb 0x4305b6
mov esi, dword [esi]
push esi
sub esp, 0x18
mov ecx, esp
push 5
push str._s_n_s
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
call fcn.004084c0
lea eax, [ebp - 0x110c]
push eax
call fcn.00433e40
add esp, 0x24
mov edx, 1
mov byte [ebp - 4], 0x10
mov ecx, eax
call fcn.00422560
mov edx, dword [ebp - 0x10f8]
add esp, 8
cmp edx, 8
jb 0x43063e
mov ecx, dword [ebp - 0x110c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x430634
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43098e
push edx
push ecx
call fcn.004b51c1
add esp, 8
push dword [ebp - 0x1080]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
mov edx, dword [ebp - 0x1030]
cmp edx, 8
jb 0x43068c
mov ecx, dword [ebp - 0x1044]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x430682
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x430993
push edx
push ecx
call fcn.004b51c1
add esp, 8
mov edx, dword [ebp - 0x104c]
xor eax, eax
mov dword [ebp - 0x1034], 0
mov dword [ebp - 0x1030], 7
mov word [ebp - 0x1044], ax
cmp edx, 0x10
jb 0x4306e3
mov ecx, dword [ebp - 0x1060]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4306d9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x430993
push edx
push ecx
call fcn.004b51c1
add esp, 8
push 0xffffffffffffffff
push dword [ebp - 0x1094]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 0x1094]
mov dword [ebp - 0x1048], 0x103
test eax, eax
je 0x430733
mov esi, dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
nop dword [eax + eax]
lea ecx, [ebp - 0x1048]
push ecx
push eax
call esi
cmp dword [ebp - 0x1048], 0x103
mov eax, dword [ebp - 0x1094]
je 0x430710
test eax, eax
je 0x430733
push eax
call edi
mov eax, dword [ebp - 0x1090]
test eax, eax
je 0x430740
push eax
call edi
mov edx, dword [ebp - 0x1068]
xor eax, eax
cmp dword [ebp - 0x1048], eax
sete al
mov dword [ebp - 0x10ec], eax
cmp edx, 8
jb 0x430379
mov ecx, dword [ebp - 0x107c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x43078b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x430998
push edx
push ecx
call fcn.004b51c1
mov eax, dword [ebp - 0x10ec]
add esp, 8
jmp 0x430379
call fcn.004b9cae
call fcn.004b9cae
call fcn.004b9cae
call fcn.004b9cae
call fcn.004b9cae
call fcn.004b9cae
call fcn.004b9cae
int3