Function at 0x432160
Capabilities:
Check for time delay via gettickcount
Create pipe
Create process on windows
Write and execute a file
Write file on windows
Write pipe

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffedc
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x124], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 8], edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x43274b
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x1d], 0
mov eax, dword [ebp - 0xc]
xor edx, edx
mov dword [eax + 0x34], edx
mov eax, dword [ebp - 0xc]
add eax, 0x20
call fcn.00406e68
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0
je 0x43271b
xor eax, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x34], 0xffffffff
mov dword [ebp - 0x3c], 0xffffffff
mov dword [ebp - 0x30], 0xffffffff
mov dword [ebp - 0x38], 0xffffffff
mov dword [ebp - 0x44], 0xffffffff
mov dword [ebp - 0x40], 0xffffffff
xor eax, eax
mov dword [ebp - 0x4c], eax
xor edx, edx
push ebp
push 0x432711
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0xc]
cmp byte [eax + 0x31], 0
je 0x43220c
push 0x8003
call sub.KERNEL32.DLL_SetErrorMode
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0xc]
cmp byte [eax + 0x30], 0
je 0x4322a3
mov eax, dword [0x47f970]
call fcn.0040792c
push eax
push 0xffffffffffffffff
push 6
call sub.KERNEL32.DLL_OpenJobObjectW
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
je 0x4322a3
xor eax, eax
push ebp
push 0x43229c
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x50]
push eax
push 0x70
lea eax, [ebp - 0x120]
push eax
push 9
mov eax, dword [ebp - 0x48]
push eax
call sub.KERNEL32.DLL_QueryInformationJobObject
test eax, eax
je 0x432283
or dword [ebp - 0x110], 0x800
push 0x70
lea eax, [ebp - 0x120]
push eax
push 9
mov eax, dword [ebp - 0x48]
push eax
call sub.KERNEL32.DLL_SetInformationJobObject
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4322a3
mov eax, dword [ebp - 0x48]
push eax
call sub.KERNEL32.DLL_CloseHandle
pop eax
jmp eax
mov eax, dword [ebp - 0xc]
cmp byte [eax + 0x18], 0
je 0x4323b7
lea eax, [ebp - 0xb0]
xor ecx, ecx
mov edx, 0xc
call fcn.00405340
mov dword [ebp - 0xb0], 0xc
mov dword [ebp - 0xa8], 0xffffffff
push 0
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x30]
push eax
call sub.KERNEL32.DLL_CreatePipe
test eax, eax
jne 0x432304
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x34], 0xfffffffc
call fcn.00406630
jmp 0x43271b
push 0
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x38]
push eax
call sub.KERNEL32.DLL_CreatePipe
test eax, eax
jne 0x432332
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x34], 0xfffffffb
call fcn.00406630
jmp 0x43271b
push 0
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.KERNEL32.DLL_CreatePipe
test eax, eax
jne 0x432360
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x34], 0xfffffffa
call fcn.00406630
jmp 0x43271b
mov edx, dword [ebp - 0xc]
mov edx, dword [edx + 0x1c]
lea eax, [ebp - 8]
mov ecx, 0x43276c
call fcn.00407530
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
call fcn.004073cc
mov esi, eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x43238e
sub ebx, 4
mov ebx, dword [ebx]
push 0
lea eax, [ebp - 4]
push eax
push ebx
push esi
mov eax, dword [ebp - 0x34]
push eax
call sub.KERNEL32.DLL_WriteFile
test eax, eax
jne 0x4323b7
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x34], 0xfffffff9
call fcn.00406630
jmp 0x43271b
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x4323c6
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0x432410
lea ecx, [ebp - 0x124]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc]
mov edx, 0x43277c
call fcn.0042f430
push dword [ebp - 0x124]
push 0x43277c
push 0x43277c
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.00407b84
mov eax, dword [ebp - 0x1c]
call fcn.0040792c
mov esi, eax
or dword [ebp - 0x28], 0x400
jmp 0x432412
xor esi, esi
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
call fcn.0042e010
lea eax, [ebp - 0x18]
push eax
mov edx, dword [ebp - 0xc]
mov edx, dword [edx + 4]
mov ecx, 0x43278c
mov eax, dword [ebp - 0x14]
call fcn.0042f4a0
mov eax, dword [ebp - 0x18]
call fcn.0040792c
mov dword [ebp - 0x24], eax
xor ebx, ebx
lea eax, [ebp - 0x94]
xor ecx, ecx
mov edx, 0x44
call fcn.00405340
mov dword [ebp - 0x94], 0x44
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 0x10]
mov word [ebp - 0x64], ax
mov dword [ebp - 0x68], 1
mov edx, dword [ebp - 0xc]
cmp byte [edx + 0x18], 0
je 0x432495
or dword [ebp - 0x68], 0x100
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x5c], edx
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x58], edx
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x54], edx
mov bl, 1
test ax, ax
jne 0x4324a1
or dword [ebp - 0x28], 0x8000000
mov eax, dword [ebp - 0xc]
cmp byte [eax + 0x30], 0
je 0x4324b1
or dword [ebp - 0x28], 0x1000000
lea eax, [ebp - 0xa4]
xor ecx, ecx
mov edx, 0x10
call fcn.00405340
xor edi, edi
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x14], 0
je 0x4324db
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x14]
call fcn.0040792c
mov edi, eax
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp - 0x94]
push eax
push edi
push esi
mov eax, dword [ebp - 0x28]
push eax
cmp bl, 1
cmc
sbb eax, eax
push eax
push 0
push 0
mov eax, dword [ebp - 0x24]
push eax
push 0
call sub.KERNEL32.DLL_CreateProcessW
test eax, eax
jne 0x43251d
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x34], 0xfffffffe
call fcn.00406630
jmp 0x43271b
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0xa4]
mov dword [eax + 0x3c], edx
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x9c]
mov dword [eax + 0x40], edx
xor eax, eax
push ebp
push 0x43267d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xa0]
push eax
call sub.KERNEL32.DLL_CloseHandle
mov eax, dword [ebp - 0xc]
cmp byte [eax + 0x18], 0
je 0x4325c7
call sub.KERNEL32.DLL_GetTickCount
mov esi, eax
push 0x64
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
push eax
call sub.KERNEL32.DLL_WaitForSingleObject
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x43258d
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x34], 0xffffffff
call fcn.00406630
call fcn.00406630
jmp 0x43271b
push ebp
xor edx, edx
mov eax, dword [ebp - 0x38]
call fcn.00431ff0
pop ecx
push ebp
mov dl, 1
mov eax, dword [ebp - 0x40]
call fcn.00431ff0
pop ecx
mov eax, dword [ebp - 0xc]
cmp dword [eax + 8], 0xffffffff
je 0x4325bd
call sub.KERNEL32.DLL_GetTickCount
sub eax, esi
mov edx, dword [ebp - 0xc]
cmp eax, dword [edx + 8]
ja 0x4325fa
cmp ebx, 0x102
je 0x43255f
jmp 0x4325fa
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 8]
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
push eax
call sub.KERNEL32.DLL_WaitForSingleObject
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4325fa
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x34], 0xffffffff
call fcn.00406630
call fcn.00406630
jmp 0x43271b
xor eax, eax
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
push eax
call sub.KERNEL32.DLL_GetExitCodeProcess
test eax, eax
jne 0x432634
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x34], 0xfffffffd
mov eax, dword [ebp - 0xc]
xor edx, edx
mov dword [eax + 0x3c], edx
call fcn.00406630
call fcn.00406630
jmp 0x43271b
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x2c]
mov dword [eax + 0x34], edx
mov byte [ebp - 0x1d], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x432684
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x3c], 0
je 0x43267a
cmp byte [ebp - 0x1d], 0
je 0x432666
mov eax, dword [ebp - 0xc]
cmp byte [eax + 0x38], 0
je 0x43267a
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
push eax
call sub.KERNEL32.DLL_CloseHandle
mov eax, dword [ebp - 0xc]
xor edx, edx
mov dword [eax + 0x3c], edx
pop eax
jmp eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x432752
lea eax, [ebp - 0x124]
call fcn.00406e44
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.00406ea4
lea eax, [ebp - 8]
call fcn.00406e68
pop eax
jmp eax