Function at 0x42c6c0
Capabilities:
Create pipe
Create process on windows
Terminate process

Disassembly:
sub esp, 0x24
push esi
mov esi, dword [esp + 0x30]
xor eax, eax
cmp esi, eax
mov dword [esp + 0x18], ecx
jne 0x42c6d9
pop esi
add esp, 0x24
ret 8
cmp dword [esi + 8], eax
push ebx
push ebp
push edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], eax
jne 0x42c7ee
mov edi, dword [sym.imp.KERNEL32.dll_CreatePipe]
mov eax, 1
xor ebp, ebp
push ebp
mov dword [esi + 0x54], eax
mov dword [esp + 0x34], eax
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x48]
push edx
mov word [esi + 0x58], bp
mov dword [esp + 0x38], 0xc
mov dword [esp + 0x3c], ebp
call edi
push ebp
lea ecx, [esp + 0x2c]
mov ebx, eax
push ecx
lea eax, [esi + 0xd4]
push eax
lea edx, [esp + 0x20]
push edx
call edi
push 0
mov ebp, eax
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x1c]
push edx
call edi
test ebx, ebx
je 0x42c794
test ebp, ebp
je 0x42c794
test eax, eax
je 0x42c794
mov eax, dword [esi + 0x54]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
or eax, 0x100
mov dword [esi + 0x54], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], 1
mov dword [esi + 0x60], eax
mov dword [esi + 0x64], ecx
mov dword [esi + 0x68], edx
jmp 0x42c7ee
mov eax, dword [esp + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
cmp eax, ebx
je 0x42c7a7
push eax
call edi
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x42c7b2
push eax
call edi
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x42c7bd
push eax
call edi
mov eax, dword [esi + 0xd4]
cmp eax, ebx
je 0x42c7ca
push eax
call edi
mov eax, dword [esp + 0x3c]
cmp eax, ebx
je 0x42c7d5
push eax
call edi
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x42c7e0
push eax
call edi
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x10], ebx
mov dword [esi + 0xd4], ebx
mov eax, dword [esi]
mov ecx, dword [eax - 4]
sub eax, 0x10
cmp ecx, 1
jle 0x42c806
mov eax, dword [eax + 4]
push eax
mov ecx, esi
call fcn.004012d0
mov edx, dword [esp + 0x20]
mov eax, dword [esi]
lea edi, [esi + 0x6c]
push edi
lea ecx, [esi + 0x28]
push ecx
push 0
push 0
push 0
push edx
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
mov ebx, dword [esp + 0x38]
je 0x42cb10
mov eax, dword [edi]
push 0x4000
push eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
mov ebp, dword [esp + 0x24]
lea edx, [esp + 0x38]
lea ecx, [ebp + 0x34]
push edx
mov dword [esp + 0x24], ecx
call fcn.0042c510
mov ecx, dword [edi]
mov dword [eax], ecx
jmp 0x42c860
mov eax, dword [esi + 0x24]
test eax, eax
je 0x42c87b
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [esi + 0x20]
add edx, dword [esi + 0x24]
cmp eax, edx
ja 0x42c9b1
mov eax, dword [esi + 4]
test eax, eax
je 0x42c89b
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x42c89b
push eax
push ebx
lea ecx, [ebp + 4]
call fcn.0040ce90
test eax, eax
jne 0x42c9c1
mov eax, dword [edi]
push 1
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x42c95f
mov ecx, dword [esi + 0x14]
mov edx, dword [ecx]
push ebx
push esi
push ebp
call dword [edx]
test eax, eax
je 0x42c97d
mov edx, dword [edi]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0xffffffffffffffff
mov ecx, esi
mov dword [esi + 0xc], 0xffffffff
call fcn.004066b0
mov eax, dword [esp + 0x14]
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x42c8ef
push eax
call edi
mov eax, dword [esp + 0x18]
test eax, eax
je 0x42c8fa
push eax
call edi
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x42c905
push eax
call edi
mov eax, dword [esi + 0xd4]
test eax, eax
je 0x42c912
push eax
call edi
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x42c91d
push eax
call edi
mov eax, dword [esp + 0x10]
test eax, eax
je 0x42c928
push eax
call edi
mov ecx, esi
mov dword [esi + 0xd4], 0
call fcn.00421520
push esi
call fcn.004955bc
add esp, 4
lea eax, [esp + 0x38]
push eax
mov ecx, dword [esp + 0x24]
call fcn.00428330
pop edi
pop ebp
pop ebx
mov eax, 1
pop esi
add esp, 0x24
ret 8
cmp eax, 0xffffffff
je 0x42ca4a
mov ecx, dword [edi]
lea eax, [esi + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x42cae5
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x42c991
lea edx, [esi + 0x7c]
push edx
push eax
mov ecx, ebp
call fcn.00420a70
mov eax, dword [esp + 0x10]
test eax, eax
je 0x42c860
lea ecx, [esi + 0xa8]
push ecx
push eax
mov ecx, ebp
call fcn.00420a70
jmp 0x42c860
mov edx, dword [edi]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x42cb14
mov eax, dword [edi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0xffffffffffffffff
mov ecx, esi
mov dword [esi + 0xc], 0xffffffff
call fcn.004066b0
mov eax, dword [esp + 0x14]
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x42c9ed
push eax
call edi
mov eax, dword [esp + 0x18]
test eax, eax
je 0x42c9f8
push eax
call edi
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x42ca03
push eax
call edi
mov eax, dword [esi + 0xd4]
test eax, eax
je 0x42ca10
push eax
call edi
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x42ca1b
push eax
call edi
mov eax, dword [esp + 0x10]
test eax, eax
je 0x42ca26
push eax
call edi
mov ecx, esi
mov dword [esi + 0xd4], 0
call fcn.00421520
push esi
call fcn.004955bc
add esp, 4
lea ecx, [esp + 0x38]
push ecx
jmp 0x42c947
push 0xffffffffffffffff
mov ecx, esi
mov dword [esi + 0xc], 0xffffffff
call fcn.004066b0
mov eax, dword [esi + 0x10]
test eax, eax
je 0x42ca66
mov ecx, dword [esi + 0xc]
mov dword [eax], ecx
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x14]
mov edx, dword [ecx]
push eax
push 1
push ebx
push esi
push ebp
call dword [edx + 4]
mov eax, dword [esp + 0x14]
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x42ca88
push eax
call edi
mov eax, dword [esp + 0x18]
test eax, eax
je 0x42ca93
push eax
call edi
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x42ca9e
push eax
call edi
mov eax, dword [esi + 0xd4]
test eax, eax
je 0x42caab
push eax
call edi
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x42cab6
push eax
call edi
mov eax, dword [esp + 0x10]
test eax, eax
je 0x42cac1
push eax
call edi
mov ecx, esi
mov dword [esi + 0xd4], 0
call fcn.00421520
push esi
call fcn.004955bc
add esp, 4
lea ecx, [esp + 0x38]
push ecx
jmp 0x42c947
push 0xffffffffffffffff
mov ecx, esi
call fcn.004066b0
mov eax, dword [esi + 0x10]
test eax, eax
je 0x42cafa
mov edx, dword [esi + 0xc]
mov dword [eax], edx
mov edx, dword [esi + 0xc]
mov ecx, dword [esi + 0x14]
mov eax, dword [ecx]
push edx
push 1
push ebx
push esi
push ebp
call dword [eax + 4]
jmp 0x42c8de
mov ebp, dword [esp + 0x24]
mov eax, dword [esi]
test eax, eax
je 0x42cb2b
push eax
call fcn.0047e9ef
add esp, 4
test eax, eax
jl 0x42cbcd
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x42cbcd
push 0
mov dword [ecx - 0xc], eax
mov ecx, dword [esi]
push 0
push ebx
mov word [ecx + eax*2], 0
mov ecx, dword [esi + 0x14]
mov edx, dword [ecx]
push esi
push ebp
call dword [edx + 4]
mov eax, dword [esp + 0x14]
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x42cb61
push eax
call edi
mov eax, dword [esp + 0x18]
test eax, eax
je 0x42cb6c
push eax
call edi
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x42cb77
push eax
call edi
mov eax, dword [esi + 0xd4]
test eax, eax
je 0x42cb84
push eax
call edi
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x42cb8f
push eax
call edi
mov eax, dword [esp + 0x10]
test eax, eax
je 0x42cb9a
push eax
call edi
mov ecx, esi
mov dword [esi + 0xd4], 0
call fcn.00421520
push esi
call fcn.004955bc
add esp, 4
lea eax, [esp + 0x38]
push eax
lea ecx, [ebp + 0x34]
call fcn.00428330
pop edi
pop ebp
pop ebx
xor eax, eax
pop esi
add esp, 0x24
ret 8
push 0x80070057
call fcn.00401100
int3