Function at 0x1001b8d0
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x260
push ebx
cmp byte [eax], 0x26
mov dword [esp + 4], 0
push esi
push edi
push ebp
je 0x1001b910
push str.COMSPEC
call fcn.1002288e
mov dword [esp + 0x14], eax
add esp, 4
test eax, eax
jne 0x1001b910
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x260
ret
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
inc eax
cmp eax, 1
mov eax, dword [esp + 0x274]
sbb ebx, ebx
inc ebx
cmp byte [eax], 0x26
jne 0x1001b955
mov ebp, 1
mov ecx, 0xffffffff
lea edi, [ebp + eax]
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
lea edi, [esp + 0x68]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
jmp 0x1001ba2f
xor ebp, ebp
mov edi, dword [esp + 0x10]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
lea edi, [esp + 0x68]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x10]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
shr ecx, 2
mov esi, edi
lea edi, [esp + 0x16c]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push str.COMMAND.COM
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x170]
push eax
call fcn.10028dba
add esp, 4
push eax
call fcn.10022854
add esp, 8
test eax, eax
je 0x1001b9e3
mov edx, str._CON
lea edi, [esp + 0x68]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov eax, dword [edx]
mov cl, byte [edx + 4]
mov dword [edi], eax
mov byte [edi + 4], cl
mov edx, str.__C
lea edi, [esp + 0x68]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov eax, dword [edx]
mov cl, byte [edx + 4]
mov dword [edi], eax
sub eax, eax
mov byte [edi + 4], cl
mov edi, dword [esp + 0x274]
mov ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x68]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0x24], 0x44
mov dword [esp + 0x50], 1
xor ecx, ecx
cmp ebp, 1
sbb eax, eax
mov dword [esp + 0x28], ecx
mov word [esp + 0x56], cx
and eax, 5
inc eax
lea edx, [esp + 0x14]
mov word [esp + 0x54], ax
push edx
lea esi, [esp + 0x28]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], ecx
push esi
mov dword [esp + 0x60], ecx
push ecx
lea eax, [esp + 0x74]
push ecx
push 0x20
cmp ebp, 1
push ebx
push ecx
push ecx
push eax
sbb eax, eax
lea ecx, [esp + 0x190]
and eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x1001baa8
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x260
ret
mov eax, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 0x14]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x278]
test eax, eax
je 0x1001bad9
push eax
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [esp + 0x14]
push eax
call esi
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x260
ret