Function at 0x10105d5
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4e8
mov eax, dword [0x10150c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov dword [ebp - 0x480], eax
mov eax, dword [ebp + 0x10]
push 0x10108a8
mov dword [ebp - 0x484], eax
call fcn.0100afd3
mov edi, dword [ebp + 8]
shr edi, 0x1e
and edi, 1
push 0
pop esi
je 0x1010625
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x47c], eax
jmp 0x101062b
mov dword [ebp - 0x47c], esi
mov dword [ebp - 0x478], esi
cmp dword [ebp + 8], esi
je 0x10107ba
call fcn.010104a6
mov ebx, eax
cmp ebx, esi
jne 0x1010745
mov ebx, 0x100
lea eax, [ebp - 0x250]
cmp edi, esi
jne 0x1010674
push dword [0x1015118]
push 0x1010980
push 0x101095c
push ebx
push eax
call fcn.01002691
add esp, 0x14
jmp 0x1010694
push dword [ebp - 0x47c]
push dword [0x1015118]
push 0x1010980
push 0x1010900
push ebx
push eax
call fcn.01002691
add esp, 0x18
xor ecx, ecx
test eax, eax
setl cl
mov eax, ecx
cmp eax, esi
je 0x10106a9
push 0x7a
pop ebx
jmp 0x1010745
push 0x44
lea eax, [ebp - 0x4e8]
push esi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x4e8], 0x44
mov dword [ebp - 0x4e0], 0x10108d8
cmp edi, esi
je 0x10106d9
mov dword [ebp - 0x4e0], esi
mov eax, dword [0x10158c0]
or dword [ebp - 0x4a8], 0xffffffff
mov dword [ebp - 0x4b0], eax
mov eax, dword [0x10158c4]
mov dword [ebp - 0x4ac], eax
lea eax, [ebp - 0x494]
push eax
lea eax, [ebp - 0x4e8]
push eax
push esi
push esi
push esi
push 1
push esi
push esi
lea eax, [ebp - 0x250]
push eax
mov dword [ebp - 0x4bc], ebx
push esi
cmp dword [ebp - 0x480], esi
jne 0x1010729
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
jmp 0x1010735
push dword [ebp - 0x480]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x101078d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, esi
je 0x101074f
push 0x10108c8
call fcn.0100afd3
cmp dword [ebp - 0x478], esi
je 0x1010764
lea eax, [ebp - 0x478]
push eax
call dword [sym.imp.RPCRT4.dll_RpcStringFreeW]
cmp ebx, esi
je 0x1010770
push dword [ebp + 8]
call fcn.0101050f
push 0x10108b8
call fcn.0100afd3
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.010015a4
leave
ret 0xc
mov eax, dword [ebp - 0x494]
push dword [ebp - 0x490]
mov dword [0x10158c8], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x48c]
mov ecx, dword [ebp - 0x484]
push esi
push eax
mov dword [ecx], eax
call dword [sym.imp.USER32.dll_RegisterLogonProcess]
cmp edi, esi
je 0x10107c6
mov eax, dword [ebp - 0x47c]
jmp 0x10107de
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x1d4]
cmp eax, esi
jne 0x10107de
mov eax, dword [0x7ffe02d8]
lea ecx, [ebp - 0x50]
push ecx
push eax
call fcn.01011121
mov ebx, eax
cmp ebx, esi
jne 0x1010745
lea eax, [ebp - 0x478]
push eax
push esi
push esi
push esi
push 0x1006e08
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.RPCRT4.dll_RpcStringBindingComposeW]
mov ebx, eax
cmp ebx, esi
jne 0x1010745
push 0x10158bc
push dword [ebp - 0x478]
call dword [sym.imp.RPCRT4.dll_RpcBindingFromStringBindingW]
mov ebx, eax
cmp ebx, esi
jne 0x1010745
cmp edi, esi
jne 0x101074f
push 0x111
lea eax, [ebp - 0x474]
push eax
call fcn.01011197
test eax, eax
je 0x101074f
xor eax, eax
inc eax
mov dword [ebp - 0x4a4], eax
mov dword [ebp - 0x4a0], eax
mov dword [ebp - 0x49c], esi
mov dword [ebp - 0x498], 2
lea eax, [ebp - 0x4a4]
push eax
push esi
push esi
push 0xa
push 6
lea eax, [ebp - 0x474]
push eax
push dword [0x10158bc]
call dword [sym.imp.RPCRT4.dll_RpcBindingSetAuthInfoExW]
mov ebx, eax
cmp ebx, esi
je 0x101074f
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1010870