Function at 0x56b24d
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
mov dword [ebp - 0x24], 0
mov byte [ebp - 1], 0
mov al, byte [ebp - 1]
mov byte [ebp - 9], al
mov cl, byte [ebp - 9]
mov byte [ebp - 0x19], cl
mov edx, dword [ebp + 8]
mov dword [ebp - 0x38], edx
cmp dword [ebp - 0x38], 4
ja case.default.0x56b22f
mov eax, dword [ebp - 0x38]
jmp dword [eax*4 + 0x56b5c8]
mov byte [ebp - 0x19], 1
jmp 0x56b2d8
jmp 0x56b2d8
mov byte [ebp - 9], 1
jmp 0x56b2d8
mov byte [ebp - 1], 1
jmp 0x56b2d8
call fcn.00496fec
mov dword [eax], 0
xor ecx, ecx
je 0x56b26e
mov dword [ebp - 0x34], 1
jmp 0x56b275
mov dword [ebp - 0x34], 0
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x30], edx
cmp dword [ebp - 0x30], 0
jne 0x56b2a4
push str.__invalid_mode___0_
push 0x5c7ce0
push 0
push 0x56
push 0x5ec498
push 2
call fcn.004926ea
add esp, 0x18
cmp eax, 1
jne 0x56b2a4
int3
cmp dword [ebp - 0x30], 0
jne 0x56b2d8
call fcn.0049637b
mov dword [eax], 0x16
push 0
push 0x56
push 0x5ec498
push str._dospawn
push str.__invalid_mode___0_
call fcn.00495b10
add esp, 0x14
or eax, 0xffffffff
jmp 0x56b5c2
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x44], ecx
mov edx, dword [ebp + 0x10]
movsx eax, byte [edx]
test eax, eax
je 0x56b321
mov ecx, dword [ebp + 0x10]
movsx edx, byte [ecx]
test edx, edx
je 0x56b2fd
mov eax, dword [ebp + 0x10]
add eax, 1
mov dword [ebp + 0x10], eax
jmp 0x56b2e8
mov ecx, 1
shl ecx, 0
mov edx, dword [ebp + 0x10]
movsx eax, byte [edx + ecx]
test eax, eax
je 0x56b31f
mov ecx, dword [ebp + 0x10]
mov byte [ecx], 0x20
mov edx, dword [ebp + 0x10]
add edx, 1
mov dword [ebp + 0x10], edx
jmp 0x56b2de
push 0x44
push 0
lea eax, [ebp - 0x9c]
push eax
call fcn.00493f9f
add esp, 0xc
mov dword [ebp - 0x9c], 0x44
mov ecx, dword [0x6124b0]
mov dword [ebp - 8], ecx
jmp 0x56b352
mov edx, dword [ebp - 8]
sub edx, 1
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 0
je 0x56b37f
mov eax, dword [ebp - 8]
sub eax, 1
sar eax, 5
mov ecx, dword [ebp - 8]
sub ecx, 1
and ecx, 0x1f
shl ecx, 6
mov edx, dword [eax*4 + 0x611e18]
movsx eax, byte [edx + ecx + 4]
test eax, eax
jne 0x56b37f
jmp 0x56b349
cmp dword [ebp - 8], 0
jl 0x56b38e
cmp dword [ebp - 8], 0x3332
jb 0x56b3a1
call fcn.0049637b
mov dword [eax], 0xc
or eax, 0xffffffff
jmp 0x56b5c2
imul ecx, dword [ebp - 8], 5
add ecx, 4
mov word [ebp - 0x6a], cx
push 0x7d
push str.f:dd_vctoolscrtcrtw32execdospawn.c
push 2
push 1
movzx edx, word [ebp - 0x6a]
push edx
call fcn.00493761
add esp, 0x14
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x68], 0
jne 0x56b3e0
call fcn.0049637b
mov dword [eax], 0xc
or eax, 0xffffffff
jmp 0x56b5c2
mov eax, dword [ebp - 0x68]
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov edx, dword [ebp - 0x68]
add edx, 4
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x68]
lea edx, [ecx + eax + 4]
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x10], 0
jmp 0x56b422
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x18]
add edx, 4
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 8]
jge 0x56b477
mov ecx, dword [ebp - 0x10]
sar ecx, 5
mov edx, dword [ebp - 0x10]
and edx, 0x1f
shl edx, 6
add edx, dword [ecx*4 + 0x611e18]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x28]
movsx ecx, byte [eax + 4]
and ecx, 0x10
jne 0x56b466
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x28]
mov cl, byte [eax + 4]
mov byte [edx], cl
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
mov dword [edx], ecx
jmp 0x56b475
mov edx, dword [ebp - 0x14]
mov byte [edx], 0
mov eax, dword [ebp - 0x18]
mov dword [eax], 0xffffffff
jmp 0x56b407
movsx ecx, byte [ebp - 1]
test ecx, ecx
je 0x56b4f0
mov dword [ebp - 0x10], 0
mov edx, dword [ebp - 0x68]
add edx, 4
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x68]
lea edx, [ecx + eax + 4]
mov dword [ebp - 0x18], edx
jmp 0x56b4b9
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x18]
add edx, 4
mov dword [ebp - 0x18], edx
cmp dword [ebp - 8], 3
jge 0x56b4c7
mov eax, dword [ebp - 8]
mov dword [ebp - 0x2c], eax
jmp 0x56b4ce
mov dword [ebp - 0x2c], 3
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp - 0x2c]
jge 0x56b4e7
mov edx, dword [ebp - 0x14]
mov byte [edx], 0
mov eax, dword [ebp - 0x18]
mov dword [eax], 0xffffffff
jmp 0x56b49e
mov ecx, dword [ebp - 0x24]
or ecx, 8
mov dword [ebp - 0x24], ecx
call fcn.00496fec
mov dword [eax], 0
lea edx, [ebp - 0x58]
push edx
lea eax, [ebp - 0x9c]
push eax
push 0
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp - 0x24]
push edx
push 1
push 0
push 0
mov eax, dword [ebp - 0x44]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov dword [ebp - 0x3c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x48], eax
push 2
mov edx, dword [ebp - 0x68]
push edx
call fcn.00497578
add esp, 8
cmp dword [ebp - 0x3c], 0
jne 0x56b555
mov eax, dword [ebp - 0x48]
push eax
call fcn.0049259b
add esp, 4
or eax, 0xffffffff
jmp 0x56b5c2
cmp dword [ebp + 8], 2
jne 0x56b564
push 0
call fcn.004928fc
jmp 0x56b5b5
cmp dword [ebp + 8], 0
jne 0x56b596
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x58]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea edx, [ebp - 0x40]
push edx
mov eax, dword [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x58]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x56b5b5
cmp dword [ebp + 8], 4
jne 0x56b5af
mov eax, dword [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x20], 0
jmp 0x56b5b5
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x54]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x20]
mov esp, ebp
pop ebp
ret