Function at 0x10005150
Capabilities:
Create process on windows

Disassembly:
sub esp, 0xc0
push ebx
xor ebx, ebx
push ebp
push esi
push edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], ebx
call fcn.1000fdb0
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
test eax, eax
jne 0x100051ac
push str.EnableDebugPriv___to_failed__n
call fcn.1001523c
add esp, 4
lea esi, [ebx + 1]
jmp 0x1000564b
call fcn.100050b0
cmp eax, ebx
jne 0x100051cc
push str.GetProcessId___to_failed__n
call fcn.1001523c
add esp, 4
mov esi, 1
jmp 0x1000564b
push eax
push ebx
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [esp + 0x4c], eax
cmp eax, ebx
jne 0x100051ff
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenProcess_____d_n
call fcn.1001523c
add esp, 8
mov esi, 1
jmp 0x1000564b
lea ecx, [esp + 0x18]
push ecx
push 0x60000
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x10005232
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenProcessToken_____d_n
call fcn.1001523c
add esp, 8
mov esi, 1
jmp 0x1000564b
push ebx
xor eax, eax
push 1
push 0xf01ff
push str.Everyone
lea edx, [esp + 0x68]
push edx
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
call dword [sym.imp.ADVAPI32.dll_BuildExplicitAccessWithNameA]
mov ecx, dword [esp + 0x18]
mov ebp, dword [sym.imp.ADVAPI32.dll_GetKernelObjectSecurity]
lea eax, [esp + 0x20]
push eax
push ebx
push ebx
push 4
push ecx
call ebp
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
jne 0x10005310
call ebx
cmp eax, 0x7a
jne 0x100052f6
mov edx, dword [esp + 0x20]
push edx
push 8
call edi
push eax
call esi
mov dword [esp + 0x24], eax
test eax, eax
jne 0x100052d1
push str.Allocate_pSd_memory_to_failed__n
call fcn.1001523c
mov ebp, dword [esp + 0x20]
add esp, 4
mov esi, 1
jmp 0x100055ef
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x20]
push ecx
push edx
push eax
mov eax, dword [esp + 0x24]
push 4
push eax
call ebp
test eax, eax
jne 0x10005310
call ebx
push eax
push str.GetKernelObjectSecurity_____d_n
jmp 0x10005497
call ebx
push eax
push str.GetKernelObjectSecurity_____d_n
call fcn.1001523c
add esp, 8
mov esi, 1
jmp 0x10005649
mov ebp, dword [esp + 0x24]
lea ecx, [esp + 0x54]
push ecx
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x58]
push eax
push ebp
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorDacl]
test eax, eax
jne 0x1000533b
call ebx
push eax
push str.GetSecurityDescriptorDacl_____d_n
jmp 0x10005497
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x44]
push ecx
push edx
lea eax, [esp + 0x60]
push eax
push 1
call dword [sym.imp.ADVAPI32.dll_SetEntriesInAclA]
test eax, eax
je 0x1000537c
call ebx
push eax
push str.SetEntriesInAcl_____d_n
call fcn.1001523c
mov ebp, dword [esp + 0x24]
add esp, 8
mov dword [esp + 0x44], 0
mov esi, 1
jmp 0x100055ef
lea ecx, [esp + 0x3c]
push ecx
push 0
lea edx, [esp + 0x3c]
push edx
mov edx, dword [esp + 0x20]
push 0
lea eax, [esp + 0x58]
push eax
push 0
lea ecx, [esp + 0x44]
push ecx
push edx
lea eax, [esp + 0x40]
push eax
push 0
push ebp
call dword [sym.imp.ADVAPI32.dll_MakeAbsoluteSD]
test eax, eax
jne 0x100054ad
call ebx
cmp eax, 0x7a
jne 0x1000548f
mov ecx, dword [esp + 0x2c]
push ecx
push 8
call edi
push eax
call esi
mov edx, dword [esp + 0x48]
push edx
push 8
mov dword [esp + 0x1c], eax
call edi
push eax
call esi
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x34]
push eax
push 8
call edi
push eax
call esi
mov ecx, dword [esp + 0x3c]
push ecx
push 8
mov dword [esp + 0x48], eax
call edi
push eax
call esi
mov edx, dword [esp + 0x20]
push edx
push 8
mov dword [esp + 0x40], eax
call edi
push eax
call esi
mov ebp, eax
mov eax, dword [esp + 0x14]
test eax, eax
je 0x10005478
cmp dword [esp + 0x28], 0
je 0x10005478
mov edx, dword [esp + 0x40]
test edx, edx
je 0x10005478
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x10005478
test ebp, ebp
je 0x10005478
lea esi, [esp + 0x3c]
push esi
push ecx
lea ecx, [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x34]
push edx
lea edx, [esp + 0x58]
push edx
push ecx
mov ecx, dword [esp + 0x3c]
lea edx, [esp + 0x44]
push edx
push eax
lea eax, [esp + 0x40]
push eax
push ebp
push ecx
call dword [sym.imp.ADVAPI32.dll_MakeAbsoluteSD]
test eax, eax
jne 0x100054b1
call ebx
push eax
push str.MakeAbsoluteSD_____d_n
call fcn.1001523c
add esp, 8
mov esi, 1
jmp 0x100055ef
push str.Allocate_SID_or_ACL_to_failed__n
call fcn.1001523c
add esp, 4
mov esi, 1
jmp 0x100055ef
call ebx
push eax
push str.MakeAbsoluteSD_____d_n
call fcn.1001523c
mov ebp, dword [esp + 0x24]
add esp, 8
mov esi, 1
jmp 0x100055ef
mov ebp, dword [esp + 0x1c]
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x50]
push edx
push eax
push ecx
push ebp
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
jne 0x100054e5
call ebx
push eax
push str.SetSecurityDescriptorDacl_____d_n
call fcn.1001523c
add esp, 8
mov esi, 1
jmp 0x100055ef
mov edx, dword [esp + 0x18]
push ebp
push 4
push edx
call dword [sym.imp.ADVAPI32.dll_SetKernelObjectSecurity]
test eax, eax
jne 0x10005511
call ebx
push eax
push str.SetKernelObjectSecurity_____d_n
call fcn.1001523c
add esp, 8
mov esi, 1
jmp 0x100055ef
mov ecx, dword [esp + 0x4c]
lea eax, [esp + 0x18]
push eax
push 0xf01ff
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x10005544
call ebx
push eax
push str.OpenProcessToken_____d_n
call fcn.1001523c
add esp, 8
mov esi, 1
jmp 0x100055ef
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x30]
push edx
push 1
push 2
push 0
push 0xf01ff
push eax
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
jne 0x1000557a
call ebx
push eax
push str.DuplicateTokenEx_____d_n
call fcn.1001523c
add esp, 8
mov esi, 1
jmp 0x100055ef
push 0x44
lea ecx, [esp + 0x8c]
push 0
push ecx
call fcn.1001cc90
mov edx, dword [esp + 0x3c]
add esp, 0xc
push edx
mov dword [esp + 0x8c], 0x44
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
mov edx, dword [esp + 0xd4]
lea eax, [esp + 0x78]
push eax
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x8c]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push edx
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
test eax, eax
jne 0x100055ed
call ebx
push eax
push str.CreateProcessAsUser_____d_n
call fcn.1001523c
add esp, 8
mov esi, 1
jmp 0x100055ef
xor esi, esi
mov eax, dword [esp + 0x24]
test eax, eax
je 0x10005607
push eax
push 0
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
push eax
call ebx
jmp 0x1000560d
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
test ebp, ebp
je 0x10005619
push ebp
push 0
call edi
push eax
call ebx
mov eax, dword [esp + 0x38]
test eax, eax
je 0x10005629
push eax
push 0
call edi
push eax
call ebx
mov eax, dword [esp + 0x40]
test eax, eax
je 0x10005639
push eax
push 0
call edi
push eax
call ebx
mov eax, dword [esp + 0x28]
test eax, eax
je 0x10005649
push eax
push 0
call edi
push eax
call ebx
xor ebx, ebx
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x1000565e
push eax
push ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [esp + 0x78]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call edi
mov edx, dword [esp + 0x7c]
push edx
call edi
mov eax, dword [esp + 0x18]
push eax
call edi
mov ecx, dword [esp + 0x30]
push ecx
call edi
mov edx, dword [esp + 0x4c]
push edx
call edi
pop edi
xor eax, eax
cmp esi, ebx
pop esi
pop ebp
sete al
pop ebx
add esp, 0xc0
ret