Function at 0x10050500
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100dddc5
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x10108c80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x10], 0
jne 0x1005053a
xor al, al
jmp 0x10050a7b
push eax
lea ecx, [ebp - 0x28]
call fcn.10002200
xorps xmm0, xmm0
mov dword [ebp - 4], 0
xor esi, esi
mov edi, 0xf
movups xmmword [ebp - 0x58], xmm0
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x44], edi
mov byte [ebp - 0x58], 0
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 4], 1
test ecx, ecx
je 0x100505eb
nop dword [eax]
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov edi, dword [ebp - 0x28]
cmp esi, 0xf
cmova eax, edi
cmp byte [eax], 0x20
jne 0x100505e5
mov dword [ebp - 0x30], 0
xorps xmm0, xmm0
mov dword [ebp - 0x2c], 0
movups xmmword [ebp - 0x40], xmm0
cmp ecx, 1
jb 0x10050a98
lea eax, [ecx - 1]
or ecx, 0xffffffff
cmp eax, 0xffffffff
cmovb ecx, eax
cmp esi, 0xf
lea eax, [ebp - 0x28]
cmova eax, edi
push ecx
inc eax
lea ecx, [ebp - 0x40]
push eax
call fcn.10001c10
lea ecx, [ebp - 0x28]
call fcn.10002900
cmp dword [ebp - 0x30], 0
movups xmm0, xmmword [ebp - 0x40]
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [ebp - 0x30]
movq qword [ebp - 0x18], xmm0
mov ecx, dword [ebp - 0x18]
jne 0x10050570
mov esi, dword [ebp - 0x48]
mov edi, dword [ebp - 0x44]
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x28]
cmp eax, 0xf
cmova edx, dword [ebp - 0x28]
mov dword [ebp - 0x5c], edx
test ecx, ecx
je 0x10050745
push ecx
push 0x22
push edx
call fcn.100ae9a0
add esp, 0xc
test eax, eax
je 0x1005073f
sub eax, dword [ebp - 0x5c]
jne 0x1005073f
cmp dword [ebp - 0x14], 0xf
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0x18]
cmova ecx, dword [ebp - 0x28]
mov dword [ebp - 0x5c], ecx
cmp eax, 1
jbe 0x1005064f
dec eax
push eax
lea eax, [ecx + 1]
push 0x22
push eax
call fcn.100ae9a0
add esp, 0xc
test eax, eax
je 0x1005064f
sub eax, dword [ebp - 0x5c]
jmp 0x10050652
or eax, 0xffffffff
mov dword [ebp - 0x5c], eax
cmp eax, 0xffffffff
je 0x1005089f
lea edx, [eax + 1]
mov dword [ebp - 0x30], 0
mov eax, dword [ebp - 0x18]
xorps xmm0, xmm0
mov dword [ebp - 0x2c], 0
movups xmmword [ebp - 0x40], xmm0
cmp eax, edx
jb 0x10050a98
sub eax, edx
or ecx, 0xffffffff
cmp eax, 0xffffffff
cmovb ecx, eax
cmp dword [ebp - 0x14], 0xf
lea eax, [ebp - 0x28]
cmova eax, dword [ebp - 0x28]
push ecx
add eax, edx
lea ecx, [ebp - 0x40]
push eax
call fcn.10001c10
mov ecx, dword [ebp - 0x44]
cmp ecx, 0xf
jbe 0x100506d7
mov edx, dword [ebp - 0x58]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100506cd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10050a9d
push ecx
push edx
call fcn.100ace28
add esp, 8
movups xmm0, xmmword [ebp - 0x40]
lea ecx, [ebp - 0x40]
mov byte [ebp - 0x40], 0
movups xmmword [ebp - 0x58], xmm0
movq xmm0, qword [ebp - 0x30]
movq qword [ebp - 0x48], xmm0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
call fcn.10002900
mov eax, dword [ebp - 0x18]
xorps xmm0, xmm0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
movups xmmword [ebp - 0x40], xmm0
cmp eax, 1
jb 0x10050a98
mov ecx, dword [ebp - 0x5c]
dec eax
dec ecx
cmp eax, ecx
cmovb ecx, eax
cmp dword [ebp - 0x14], 0xf
lea eax, [ebp - 0x28]
cmova eax, dword [ebp - 0x28]
inc eax
jmp 0x10050849
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
cmp eax, 0xf
lea edx, [ebp - 0x28]
cmova edx, dword [ebp - 0x28]
mov dword [ebp - 0x5c], edx
test ecx, ecx
je 0x1005076b
push ecx
push 0x20
push edx
call fcn.100ae9a0
add esp, 0xc
test eax, eax
je 0x1005076b
sub eax, dword [ebp - 0x5c]
jmp 0x1005076e
or eax, 0xffffffff
mov dword [ebp - 0x5c], eax
cmp eax, 0xffffffff
je 0x1005089f
lea edx, [eax + 1]
mov dword [ebp - 0x30], 0
mov eax, dword [ebp - 0x18]
xorps xmm0, xmm0
mov dword [ebp - 0x2c], 0
movups xmmword [ebp - 0x40], xmm0
cmp eax, edx
jb 0x10050a98
sub eax, edx
or ecx, 0xffffffff
cmp eax, 0xffffffff
cmovb ecx, eax
cmp dword [ebp - 0x14], 0xf
lea eax, [ebp - 0x28]
cmova eax, dword [ebp - 0x28]
push ecx
add eax, edx
lea ecx, [ebp - 0x40]
push eax
call fcn.10001c10
mov ecx, dword [ebp - 0x44]
cmp ecx, 0xf
jbe 0x100507f3
mov edx, dword [ebp - 0x58]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100507e9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10050a9d
push ecx
push edx
call fcn.100ace28
add esp, 8
movups xmm0, xmmword [ebp - 0x40]
lea ecx, [ebp - 0x40]
mov byte [ebp - 0x40], 0
movups xmmword [ebp - 0x58], xmm0
movq xmm0, qword [ebp - 0x30]
movq qword [ebp - 0x48], xmm0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
call fcn.10002900
mov ecx, dword [ebp - 0x5c]
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x18], ecx
xorps xmm0, xmm0
movups xmmword [ebp - 0x40], xmm0
cmovb ecx, dword [ebp - 0x18]
cmp dword [ebp - 0x14], 0xf
mov dword [ebp - 0x30], 0
cmova eax, dword [ebp - 0x28]
mov dword [ebp - 0x2c], 0
push ecx
push eax
lea ecx, [ebp - 0x40]
call fcn.10001c10
mov ecx, dword [ebp - 0x14]
cmp ecx, 0xf
jbe 0x10050887
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1005087d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10050a9d
push ecx
push edx
call fcn.100ace28
add esp, 8
movups xmm0, xmmword [ebp - 0x40]
mov esi, dword [ebp - 0x48]
mov edi, dword [ebp - 0x44]
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [ebp - 0x30]
movq qword [ebp - 0x18], xmm0
test esi, esi
je 0x100509bf
mov edx, dword [ebp - 0x58]
lea eax, [ebp - 0x58]
cmp edi, 0xf
cmova eax, edx
cmp byte [eax], 0x20
jne 0x10050922
mov dword [ebp - 0x30], 0
xorps xmm0, xmm0
mov dword [ebp - 0x2c], 0
movups xmmword [ebp - 0x40], xmm0
cmp esi, 1
jb 0x10050a98
or ecx, 0xffffffff
lea eax, [esi - 1]
cmp eax, 0xffffffff
cmovb ecx, eax
cmp edi, 0xf
lea eax, [ebp - 0x58]
cmova eax, edx
push ecx
inc eax
lea ecx, [ebp - 0x40]
push eax
call fcn.10001c10
lea ecx, [ebp - 0x58]
call fcn.10002900
cmp dword [ebp - 0x30], 0
movups xmm0, xmmword [ebp - 0x40]
movups xmmword [ebp - 0x58], xmm0
movq xmm0, qword [ebp - 0x30]
movq qword [ebp - 0x48], xmm0
je 0x100509bf
mov edi, dword [ebp - 0x44]
mov esi, dword [ebp - 0x48]
jmp 0x100508a7
cmp edi, 0xf
lea eax, [ebp - 0x58]
lea ecx, [esi - 1]
cmova eax, edx
cmp byte [eax + ecx], 0x20
jne 0x100509bf
cmp esi, ecx
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x58]
mov dword [ebp - 0x2c], 0
cmovb ecx, esi
xorps xmm0, xmm0
cmp edi, 0xf
push ecx
cmova eax, edx
lea ecx, [ebp - 0x40]
push eax
movups xmmword [ebp - 0x40], xmm0
call fcn.10001c10
mov ecx, dword [ebp - 0x44]
cmp ecx, 0xf
jbe 0x10050999
mov edx, dword [ebp - 0x58]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1005098f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10050a9d
push ecx
push edx
call fcn.100ace28
add esp, 8
cmp dword [ebp - 0x30], 0
movups xmm0, xmmword [ebp - 0x40]
movups xmmword [ebp - 0x58], xmm0
movq xmm0, qword [ebp - 0x30]
movq qword [ebp - 0x48], xmm0
je 0x100509bf
mov edi, dword [ebp - 0x44]
mov esi, dword [ebp - 0x48]
mov edx, dword [ebp - 0x58]
jmp 0x10050922
mov esi, dword [sym.imp.USER32.dll_GetDesktopWindow]
call esi
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
cmp dword [ebp - 0x48], 0
je 0x100509e1
cmp dword [ebp - 0x44], 0xf
lea ecx, [ebp - 0x58]
cmova ecx, dword [ebp - 0x58]
jmp 0x100509e3
xor ecx, ecx
cmp dword [ebp - 0x14], 0xf
lea eax, [ebp - 0x28]
push 5
cmova eax, dword [ebp - 0x28]
push 0
push ecx
push eax
push 0
call esi
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov ecx, dword [ebp - 0x44]
cmp eax, 0x20
setg byte [ebp - 0x5d]
cmp ecx, 0xf
jbe 0x10050a36
mov edx, dword [ebp - 0x58]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10050a2c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10050a9d
push ecx
push edx
call fcn.100ace28
add esp, 8
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
cmp ecx, 0xf
jbe 0x10050a78
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10050a6e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10050a9d
push ecx
push edx
call fcn.100ace28
add esp, 8
mov al, byte [ebp - 0x5d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100ad4b8
mov esp, ebp
pop ebp
ret 4
call fcn.10003200
call fcn.100b251a
int3