Function at 0x10004520
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005febe
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x10075604]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov edx, dword [edi + 8]
mov ecx, dword [edi + 0x14]
sub ecx, dword [edi + 0x10]
lea eax, [edx + 1]
cmp eax, ecx
jbe 0x10004562
xor al, al
jmp 0x10004568
mov eax, dword [edi + 0x10]
mov al, byte [edx + eax]
inc edx
movzx eax, al
mov dword [edi + 8], edx
sub eax, 0xa3
je 0x10004885
sub eax, 3
je 0x10004877
sub eax, 4
jne 0x10004907
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x28], al
mov ecx, dword [edi + 0x14]
lea eax, [edx + 2]
sub ecx, dword [edi + 0x10]
mov dword [ebp - 4], 1
cmp eax, ecx
jbe 0x100045b1
xor ecx, ecx
jmp 0x100045b8
mov eax, dword [edi + 0x10]
movzx ecx, word [edx + eax]
lea eax, [edx + 2]
mov edx, 0x3e8
cmp cx, dx
mov dword [edi + 8], eax
movzx eax, cx
cmova eax, edx
xor ecx, ecx
cmp cx, ax
jae 0x10004907
movzx eax, ax
mov dword [ebp - 0x44], eax
nop dword [eax]
mov edx, dword [edi + 8]
mov ecx, dword [edi + 0x14]
sub ecx, dword [edi + 0x10]
lea eax, [edx + 2]
cmp eax, ecx
jbe 0x100045f4
xor ebx, ebx
jmp 0x100045fb
mov eax, dword [edi + 0x10]
movzx ebx, word [edx + eax]
add edx, 2
mov dword [edi + 8], edx
mov ecx, dword [edi + 0x14]
sub ecx, dword [edi + 0x10]
lea eax, [edx + 1]
cmp eax, ecx
jbe 0x10004614
mov byte [ebp - 0x29], 0
jmp 0x1000461d
mov eax, dword [edi + 0x10]
mov al, byte [edx + eax]
mov byte [ebp - 0x29], al
lea eax, [edx + 1]
mov ecx, edi
mov dword [edi + 8], eax
lea eax, [ebp - 0x28]
push eax
call fcn.100042a0
mov edx, eax
mov esi, dword [edx + 8]
mov ecx, dword [edx + 0x14]
sub ecx, dword [edx + 0x10]
lea eax, [esi + 1]
cmp eax, ecx
jbe 0x10004646
mov byte [ebp - 0x40], 0
jmp 0x1000464f
mov eax, dword [edx + 0x10]
mov al, byte [esi + eax]
mov byte [ebp - 0x40], al
inc esi
mov dword [edx + 8], esi
mov ecx, dword [edx + 0x14]
sub ecx, dword [edx + 0x10]
lea eax, [esi + 1]
cmp eax, ecx
jbe 0x10004666
mov byte [ebp - 0x3c], 0
jmp 0x1000466f
mov eax, dword [edx + 0x10]
mov al, byte [esi + eax]
mov byte [ebp - 0x3c], al
inc esi
mov dword [edx + 8], esi
mov ecx, dword [edx + 0x14]
sub ecx, dword [edx + 0x10]
lea eax, [esi + 1]
cmp eax, ecx
jbe 0x10004686
mov byte [ebp - 0x38], 0
jmp 0x1000468f
mov eax, dword [edx + 0x10]
mov al, byte [esi + eax]
mov byte [ebp - 0x38], al
cmp byte [ebp - 0x29], 1
lea eax, [esi + 1]
mov dword [edx + 8], eax
mov ecx, 0x10076264
jne 0x100047e9
movzx eax, bx
mov edx, eax
mov dword [ebp - 0x48], eax
call fcn.10004930
test eax, eax
jne 0x1000486b
push 0x1c
call fcn.1005e74b
mov esi, eax
add esp, 4
mov dword [ebp - 0x50], esi
mov byte [ebp - 4], 2
test esi, esi
je 0x10004713
push dword [ebp - 0x38]
push dword [ebp - 0x3c]
push dword [ebp - 0x40]
sub esp, 0x18
mov ecx, esp
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 0x10
jb 0x100046f6
mov eax, dword [ecx]
jmp 0x100046f8
mov eax, ecx
push 0xffffffffffffffff
mov byte [eax], 0
lea eax, [ebp - 0x28]
push 0
push eax
call fcn.100026e0
mov ecx, esi
call fcn.10004190
mov esi, eax
jmp 0x10004715
xor esi, esi
push 0x1c
mov byte [ebp - 4], 1
call fcn.1005e74b
mov ebx, eax
add esp, 4
mov dword [ebp - 0x34], ebx
mov byte [ebp - 4], 3
test ebx, ebx
je 0x10004771
push dword [ebp - 0x38]
push dword [ebp - 0x3c]
push dword [ebp - 0x40]
sub esp, 0x18
mov ecx, esp
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 0x10
jb 0x10004756
mov eax, dword [ecx]
jmp 0x10004758
mov eax, ecx
push 0xffffffffffffffff
mov byte [eax], 0
lea eax, [ebp - 0x28]
push 0
push eax
call fcn.100026e0
mov ecx, ebx
call fcn.10004190
jmp 0x10004773
xor eax, eax
mov edx, dword [ebp - 0x48]
mov ecx, 0x10076264
push eax
mov byte [ebp - 4], 1
call fcn.100049e0
test al, al
jne 0x1000486b
test esi, esi
je 0x1000486b
mov eax, dword [esi + 0x14]
cmp eax, 0x10
jb 0x100047ab
push 1
inc eax
push eax
push dword [esi]
call fcn.10002610
add esp, 0xc
mov dword [esi + 0x14], 0xf
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], 0
jb 0x100047d4
mov eax, dword [esi]
push 0x1c
push esi
mov byte [eax], 0
call fcn.1005e7b2
add esp, 8
jmp 0x1000486b
mov eax, esi
push 0x1c
push esi
mov byte [eax], 0
call fcn.1005e7b2
add esp, 8
jmp 0x1000486b
movzx esi, bx
mov edx, esi
call fcn.10004930
test eax, eax
je 0x1000486b
cmp dword [eax + 0x14], 0x10
mov dword [eax + 0x10], 0
jb 0x10004808
mov ecx, dword [eax]
jmp 0x1000480a
mov ecx, eax
mov byte [ecx], 0
mov edx, esi
mov ecx, 0x10076264
mov word [eax + 0x18], 0xffff
mov byte [eax + 0x1a], 0xff
call fcn.10004420
push 1
push ebx
call fcn.1001c830
mov esi, eax
add esp, 8
test esi, esi
je 0x1000486b
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1000486b
cmp dword [esi + 0x760], eax
je 0x1000486b
mov ecx, dword [esi + 0x3a8]
mov dword [esi + 0x760], eax
test ecx, ecx
je 0x1000486b
mov eax, dword [ecx]
push 1
mov eax, dword [eax]
call eax
mov dword [esi + 0x3a8], 0
sub dword [ebp - 0x44], 1
jne 0x100045e0
jmp 0x100048f0
push edi
call fcn.10004e10
add esp, 4
jmp 0x10004907
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
mov ecx, edi
call fcn.100042a0
cmp dword [ebp - 0x14], 0x10
lea esi, [ebp - 0x28]
push 1
cmovae esi, dword [ebp - 0x28]
mov ah, 0x33
push 0
mov al, 0x5c
mov byte [ebp - 0x34], ah
xor al, ah
mov byte [ebp - 0x2f], 0
push 0
mov cl, 0x43
mov byte [ebp - 0x33], al
mov dl, 0x56
mov byte [ebp - 0x2f], 0
mov bl, 0x5d
xor cl, ah
xor dl, ah
mov byte [ebp - 0x32], cl
xor bl, ah
mov byte [ebp - 0x31], dl
push esi
lea eax, [ebp - 0x33]
mov byte [ebp - 0x30], bl
push eax
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x10004907
push 1
inc eax
push eax
push dword [ebp - 0x28]
call fcn.10002610
add esp, 0xc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1005e77e
mov esp, ebp
pop ebp
ret