Function at 0x443230
Capabilities:
Create a process with modified i/o handles and window
Create process on windows
Create process suspended
Resume thread

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0xac
mov eax, dword [esp + 0xd4]
mov edx, dword [esp + 0xc4]
lea ecx, [esp + 0x30]
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov dword [eax], 0xffffffff
mov eax, dword [esp + 0xc0]
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x34], 0xc
call fcn.00441fc0
mov ebx, eax
test eax, eax
je 0x4432b0
add esp, 0xac
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
lea edx, [esp + 0x60]
mov ecx, 0x10
cmp dword [esp + 0xc8], 0xffffffff
mov dword [esp + 0x5c], 0x44
mov edi, edx
mov esi, 0xffffffff
rep stosd dword es:[edi], eax
mov eax, 6
mov dword [esp + 0x88], 0x101
mov word [esp + 0x8c], ax
je 0x443580
cmp dword [esp + 0xcc], 0xffffffff
mov dword [esp + 0x40], esi
mov ebp, 0xffffffff
je 0x443510
cmp dword [esp + 0xd0], 0xffffffff
mov dword [esp + 0x44], ebp
mov edi, 0xffffffff
je 0x4434a3
cmp dword [esp + 0xc8], 0xffffffff
mov dword [esp + 0x48], edi
je 0x44333e
mov eax, dword [esp + 0xc8]
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__get_osfhandle]
mov esi, eax
cmp dword [esp + 0xcc], 0xffffffff
mov dword [esp + 0x94], esi
je 0x443361
mov eax, dword [esp + 0xcc]
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__get_osfhandle]
mov ebp, eax
cmp dword [esp + 0xd0], 0xffffffff
mov dword [esp + 0x98], ebp
je 0x443384
mov eax, dword [esp + 0xd0]
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__get_osfhandle]
mov edi, eax
mov dword [esp + 0x9c], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetPriorityClass]
sub esp, 4
or eax, 0x400000c
mov dword [esp + 0x14], eax
lea eax, [esp + 0x34]
lea edi, [esp + 0x4c]
mov dword [esp + 0xc], eax
lea edx, [esp + 0x5c]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x24], edi
mov dword [esp + 4], eax
mov eax, dword [esp + 0xc0]
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], 1
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
sub esp, 0x28
test eax, eax
je 0x443470
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x40]
mov dword [esp], eax
call sub.libgcrypt_20.dll_gcry_free
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp]
cmp eax, 0xffffffff
je 0x44341f
mov dword [esp], eax
call esi
sub esp, 4
add ebp, 4
cmp edi, ebp
jne 0x44340f
test ebx, ebx
jne 0x44329c
mov eax, dword [esp + 0x50]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
sub esp, 4
mov eax, dword [esp + 0x50]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0xd4]
mov dword [edx], eax
add esp, 0xac
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], 0xffffffff
call fcn.00427000
mov dword [esp], str.CreateProcess_failed:__s_n
mov dword [esp + 4], eax
call fcn.0042d9c0
mov ebx, dword [0x45a340]
shl ebx, 0x18
and ebx, 0x7f000000
or ebx, 1
jmp 0x4433f9
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 3
mov dword [esp + 4], 0x40000000
mov dword [esp], 0x4582d8
call dword [sym.imp.KERNEL32.dll_CreateFileW]
sub esp, 0x1c
mov edi, eax
cmp eax, 0xffffffff
jne 0x44331e
mov dword [esp], 0xffffffff
call fcn.00427000
mov dword [esp], str.cant_open_nul:__s_n
mov dword [esp + 4], eax
call fcn.0042dbe0
jmp 0x44331e
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 3
mov dword [esp + 4], 0x40000000
mov dword [esp], 0x4582d8
call dword [sym.imp.KERNEL32.dll_CreateFileW]
sub esp, 0x1c
mov ebp, eax
cmp eax, 0xffffffff
jne 0x443307
mov dword [esp], 0xffffffff
call fcn.00427000
mov dword [esp], str.cant_open_nul:__s_n
mov dword [esp + 4], eax
call fcn.0042dbe0
jmp 0x443307
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 3
mov dword [esp + 4], 0x80000000
mov dword [esp], 0x4582d8
call dword [sym.imp.KERNEL32.dll_CreateFileW]
sub esp, 0x1c
mov esi, eax
cmp eax, 0xffffffff
jne 0x4432f0
mov dword [esp], 0xffffffff
call fcn.00427000
mov dword [esp], str.cant_open_nul:__s_n
mov dword [esp + 4], eax
call fcn.0042dbe0
jmp 0x4432f0