Function at 0x10014d40
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10043ba8
mov eax, dword fs:[0]
push eax
sub esp, 0x70
push ebx
push esi
push edi
mov eax, dword [0x100695e8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], edx
mov edi, ecx
mov dword [ebp - 0x24], edi
mov dword [ebp - 4], 2
mov eax, dword [0x10069550]
mov ecx, 0x10069550
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 3
push dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push dword [ebp + 8]
push str.__s___s
push eax
call fcn.1000c0d0
push 0x40
lea eax, [ebp - 0x78]
push 0
push eax
mov dword [ebp - 0x7c], 0x44
call fcn.100275b0
add esp, 0x1c
mov eax, 1
push 0x10062040
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x50], 1
mov word [ebp - 0x4c], ax
call fcn.1000b510
mov byte [ebp - 4], 4
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x10]
mov dword [ebp - 0x18], 0
lea ebx, [ebx]
mov edx, dword [esi - 0xc]
test edx, edx
js 0x10015040
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
jge 0x10014e18
push edx
lea ecx, [ebp - 0x10]
call fcn.1000dfc0
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x7c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x10014e5d
push 0x3e8
call sub.KERNEL32.dll_Sleep
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_GetProcessId]
mov ecx, dword [ebp - 0x1c]
push dword [ebp - 0x34]
mov dword [ecx], eax
call ebx
push dword [ebp - 0x38]
call ebx
jmp 0x10014e65
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
mov dword [ebp - 0x14], 0
lea esp, [esp]
mov edi, dword [ebp + 0x10]
push ecx
mov ecx, dword [edi - 0x10]
mov dword [ebp - 0x20], esp
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [edi - 4], 0
lea edx, [edi - 4]
mov ecx, eax
jl 0x10014e9d
cmp ecx, dword [edi - 0x10]
jne 0x10014e9d
lea ebx, [edi - 0x10]
mov eax, 1
lock xadd dword [edx], eax
jmp 0x10014ec9
mov eax, dword [ecx]
push 1
push dword [edi - 0xc]
call dword [eax]
mov ebx, eax
test ebx, ebx
je 0x1001503b
mov ecx, dword [edi - 0xc]
mov dword [ebx + 4], ecx
mov ecx, dword [edi - 0xc]
inc ecx
push ecx
push edi
push ecx
lea eax, [ebx + 0x10]
push eax
call fcn.100255bd
add esp, 0x10
mov ecx, dword [ebp - 0x20]
lea eax, [ebx + 0x10]
mov dword [ecx], eax
call fcn.10014bb0
add esp, 4
test eax, eax
jne 0x10014ef7
push 0xc8
call sub.KERNEL32.dll_Sleep
mov ebx, dword [ebp - 0x14]
inc ebx
mov dword [ebp - 0x14], ebx
cmp ebx, 0xa
jl 0x10014e70
mov edi, dword [ebp + 0x10]
push ecx
mov ecx, dword [edi - 0x10]
mov dword [ebp - 0x20], esp
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [edi - 4], 0
lea edx, [edi - 4]
mov ecx, eax
jl 0x10014f24
cmp ecx, dword [edi - 0x10]
jne 0x10014f24
lea ebx, [edi - 0x10]
mov eax, 1
lock xadd dword [edx], eax
jmp 0x10014f50
mov eax, dword [ecx]
push 1
push dword [edi - 0xc]
call dword [eax]
mov ebx, eax
test ebx, ebx
je 0x1001503b
mov ecx, dword [edi - 0xc]
mov dword [ebx + 4], ecx
mov ecx, dword [edi - 0xc]
inc ecx
push ecx
push edi
push ecx
lea eax, [ebx + 0x10]
push eax
call fcn.100255bd
add esp, 0x10
mov ecx, dword [ebp - 0x20]
lea eax, [ebx + 0x10]
mov dword [ecx], eax
call fcn.10014bb0
add esp, 4
test eax, eax
jne 0x10014f81
mov eax, dword [ebp - 0x18]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x18], eax
cmp eax, 5
jl 0x10014df0
xor ebx, ebx
jmp 0x10014f86
mov ebx, 1
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x28]
add edx, 0xfffffff0
or edi, 0xffffffff
lea ecx, [edx + 0xc]
mov eax, edi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x10014fa9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov byte [ebp - 4], 2
lea eax, [esi + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10014fc6
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10014fe6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10015006
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp + 0x10]
add esi, 0xfffffff0
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x10015027
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.1000df70
push 0x80070057
call fcn.1000e050
int3