Function at 0x103abf9
Capabilities:
Check processdebugport
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x478
mov eax, dword [0x1040190]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, 0x104
push ebx
lea eax, [ebp - 0x414]
push eax
call fcn.0103a741
test eax, eax
jne 0x103ac63
mov eax, dword [0x1040184]
cmp eax, 0x1040184
je 0x103aea7
test byte [eax + 0x1c], 8
je 0x103aea7
cmp byte [eax + 0x19], 2
jb 0x103aea7
push dword [ebp + 8]
push 0x1027ae8
push 0xe
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01001f65
jmp 0x103aea7
push esi
mov esi, dword [ebp + 8]
push edi
push esi
xor edi, edi
push edi
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x418], eax
cmp eax, edi
je 0x103ae71
lea ecx, [ebp - 0x424]
push ecx
push 4
lea ecx, [ebp - 0x41c]
push ecx
push 7
push eax
mov dword [ebp - 0x41c], edi
call dword [sym.imp.ntdll.dll_NtQueryInformationProcess]
cmp eax, edi
jl 0x103ae2e
lea eax, [ebp - 0x420]
push eax
push 0x2000000
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x103ae03
push 0x44
pop esi
push esi
lea eax, [ebp - 0x478]
push edi
push eax
call sub.msvcrt.dll_memset
push dword [ebp + 8]
xor eax, eax
lea edi, [ebp - 0x434]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x414]
push eax
push 0x103aec4
lea eax, [ebp - 0x20c]
push ebx
push eax
mov dword [ebp - 0x478], esi
call fcn.01004d53
xor eax, eax
add esp, 0x20
mov esi, 0x1040184
mov edi, 0x1027ae8
cmp dword [ebp - 0x41c], eax
je 0x103ad5c
mov eax, dword [0x1040184]
cmp eax, esi
je 0x103ad48
test byte [eax + 0x1c], 8
je 0x103ad48
cmp byte [eax + 0x19], 2
jb 0x103ad48
push dword [ebp + 8]
push edi
push 0xf
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01001f65
push 0x103aeb8
push ebx
lea eax, [ebp - 0x20c]
push eax
call fcn.010059df
xor eax, eax
lea ecx, [ebp - 0x434]
push ecx
lea ecx, [ebp - 0x478]
push ecx
push eax
push eax
push eax
push eax
push eax
push eax
lea ecx, [ebp - 0x20c]
push ecx
push eax
push dword [ebp - 0x420]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x103adc3
mov eax, dword [0x1040184]
cmp eax, esi
je 0x103adab
test byte [eax + 0x1c], 8
je 0x103adab
cmp byte [eax + 0x19], 4
jb 0x103adab
push edi
push 0x10
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01001848
push dword [ebp - 0x430]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x434]
call esi
jmp 0x103adf5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x1040184]
cmp ecx, esi
je 0x103adf5
test byte [ecx + 0x1c], 8
je 0x103adf5
cmp byte [ecx + 0x19], 2
jb 0x103adf5
push eax
lea eax, [ebp - 0x20c]
push eax
push edi
push 0x11
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.0100d355
push dword [ebp - 0x420]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x103ae63
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x1040184]
cmp ecx, 0x1040184
je 0x103ae63
test byte [ecx + 0x1c], 8
je 0x103ae63
cmp byte [ecx + 0x19], 2
jb 0x103ae63
push eax
push esi
push 0x1027ae8
push 0x12
jmp 0x103ae58
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov ecx, dword [0x1040184]
cmp ecx, 0x1040184
je 0x103ae63
test byte [ecx + 0x1c], 8
je 0x103ae63
cmp byte [ecx + 0x19], 2
jb 0x103ae63
push eax
push esi
push 0x1027ae8
push 0x13
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01002a94
push dword [ebp - 0x418]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x103aea5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x1040184]
cmp ecx, 0x1040184
je 0x103aea5
test byte [ecx + 0x1c], 8
je 0x103aea5
cmp byte [ecx + 0x19], 2
jb 0x103aea5
push eax
push esi
push 0x1027ae8
push 0x14
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01002a94
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.010024b0
leave
ret 4