Function at 0x10004cb8
Capabilities:
Create process on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffff60
mov ebx, eax
xor eax, eax
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 0x18], eax
xor eax, eax
mov dword [esp + 0x1c], eax
xor eax, eax
mov dword [esp + 0x20], eax
xor eax, eax
mov dword [esp + 0x24], eax
xor eax, eax
mov dword [esp + 0x28], eax
xor eax, eax
mov dword [esp + 0x2c], eax
xor eax, eax
mov dword [esp + 0x30], eax
xor esi, esi
xor edi, edi
call fcn.10004c30
mov eax, 0x100050ec
call fcn.10004af4
cmp eax, 0xffffffff
jne 0x10004d1a
or ebx, 0xffffffff
jmp 0x10005012
push eax
push 0
push 0x400
call sub.kernel32.dll_OpenProcess
mov ebp, eax
test ebp, ebp
jne 0x10004d35
or ebx, 0xffffffff
jmp 0x10005012
push esp
push 0x60000
push ebp
call sub.advapi32.dll_OpenProcessToken
test eax, eax
jne 0x10004d4d
or ebx, 0xffffffff
jmp 0x10005012
lea eax, [esp + 0x38]
mov edx, 0x14
call fcn.1000407c
push 0
push 1
push 0xf00ff
push 0x100050fc
lea eax, [esp + 0x48]
push eax
call sub.ADVAPI32.DLL_BuildExplicitAccessWithNameA
lea eax, [esp + 0x34]
push eax
push 0
push esi
push 4
mov eax, dword [esp + 0x10]
push eax
call sub.advapi32.dll_GetKernelObjectSecurity
test eax, eax
jne 0x10004de0
call sub.kernel32.dll_GetLastError_1
cmp eax, 0x7a
jne 0x10004dd8
mov eax, dword [esp + 0x34]
push eax
push 8
call sub.kernel32.dll_GetProcessHeap
push eax
call sub.kernel32.dll_HeapAlloc
mov esi, eax
test esi, esi
jne 0x10004db5
or ebx, 0xffffffff
jmp 0x10005012
lea eax, [esp + 0x34]
push eax
mov eax, dword [esp + 0x38]
push eax
push esi
push 4
mov eax, dword [esp + 0x10]
push eax
call sub.advapi32.dll_GetKernelObjectSecurity
test eax, eax
jne 0x10004de0
or ebx, 0xffffffff
jmp 0x10005012
or ebx, 0xffffffff
jmp 0x10005012
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x18]
push eax
push esi
call sub.advapi32.dll_GetSecurityDescriptorDacl
test eax, eax
jne 0x10004e01
or ebx, 0xffffffff
jmp 0x10005012
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0xc]
push eax
lea eax, [esp + 0x40]
push eax
push 1
call sub.ADVAPI32.DLL_SetEntriesInAclA
test eax, eax
je 0x10004e29
xor eax, eax
mov dword [esp + 0xc], eax
or ebx, 0xffffffff
jmp 0x10005012
lea eax, [esp + 0x30]
push eax
mov eax, dword [esp + 0x24]
push eax
lea eax, [esp + 0x34]
push eax
mov eax, dword [esp + 0x28]
push eax
lea eax, [esp + 0x38]
push eax
mov eax, dword [esp + 0x2c]
push eax
lea eax, [esp + 0x3c]
push eax
mov eax, dword [esp + 0x24]
push eax
lea eax, [esp + 0x54]
push eax
push edi
push esi
call sub.advapi32.dll_MakeAbsoluteSD
test eax, eax
jne 0x10004f4f
call sub.kernel32.dll_GetLastError_1
cmp eax, 0x7a
jne 0x10004f47
mov eax, dword [esp + 0x24]
push eax
push 8
call sub.kernel32.dll_GetProcessHeap
push eax
call sub.kernel32.dll_HeapAlloc
mov dword [esp + 8], eax
mov eax, dword [esp + 0x28]
push eax
push 8
call sub.kernel32.dll_GetProcessHeap
push eax
call sub.kernel32.dll_HeapAlloc
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x2c]
push eax
push 8
call sub.kernel32.dll_GetProcessHeap
push eax
call sub.kernel32.dll_HeapAlloc
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x30]
push eax
push 8
call sub.kernel32.dll_GetProcessHeap
push eax
call sub.kernel32.dll_HeapAlloc
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x34]
push eax
push 8
call sub.kernel32.dll_GetProcessHeap
push eax
call sub.kernel32.dll_HeapAlloc
mov edi, eax
cmp dword [esp + 8], 0
je 0x10004eff
cmp dword [esp + 0x18], 0
je 0x10004eff
cmp dword [esp + 0x1c], 0
je 0x10004eff
cmp dword [esp + 0x20], 0
je 0x10004eff
test edi, edi
jne 0x10004f07
or ebx, 0xffffffff
jmp 0x10005012
lea eax, [esp + 0x30]
push eax
mov eax, dword [esp + 0x24]
push eax
lea eax, [esp + 0x34]
push eax
mov eax, dword [esp + 0x28]
push eax
lea eax, [esp + 0x38]
push eax
mov eax, dword [esp + 0x2c]
push eax
lea eax, [esp + 0x3c]
push eax
mov eax, dword [esp + 0x24]
push eax
lea eax, [esp + 0x54]
push eax
push edi
push esi
call sub.advapi32.dll_MakeAbsoluteSD
test eax, eax
jne 0x10004f4f
or ebx, 0xffffffff
jmp 0x10005012
or ebx, 0xffffffff
jmp 0x10005012
mov eax, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x18]
push eax
push edi
call sub.advapi32.dll_SetSecurityDescriptorDacl
test eax, eax
jne 0x10004f70
or ebx, 0xffffffff
jmp 0x10005012
push edi
push 4
mov eax, dword [esp + 8]
push eax
call sub.advapi32.dll_SetKernelObjectSecurity
test eax, eax
jne 0x10004f89
or ebx, 0xffffffff
jmp 0x10005012
push esp
push 0xf00ff
push ebp
call sub.advapi32.dll_OpenProcessToken
test eax, eax
jne 0x10004f9e
or ebx, 0xffffffff
jmp 0x10005012
lea eax, [esp + 4]
push eax
push 1
push 2
push 0
push 0xf00ff
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_DuplicateTokenEx
test eax, eax
jne 0x10004fc1
or ebx, 0xffffffff
jmp 0x10005012
lea eax, [esp + 0x4c]
mov edx, 0x44
call fcn.1000407c
mov dword [esp + 0x4c], 0x44
mov eax, dword [esp + 4]
push eax
call sub.advapi32.dll_ImpersonateLoggedOnUser
lea eax, [esp + 0x90]
push eax
lea eax, [esp + 0x50]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
push 0
mov eax, dword [esp + 0x2c]
push eax
call sub.advapi32.dll_CreateProcessAsUserA
test eax, eax
jne 0x10005010
or ebx, 0xffffffff
jmp 0x10005012
xor ebx, ebx
test esi, esi
jne 0x10005024
push esi
push 0
call sub.kernel32.dll_GetProcessHeap
push eax
call sub.kernel32.dll_HeapFree
test edi, edi
jne 0x10005036
push edi
push 0
call sub.kernel32.dll_GetProcessHeap
push eax
call sub.kernel32.dll_HeapFree
cmp dword [esp + 0x20], 0
jne 0x1000504f
mov eax, dword [esp + 0x20]
push eax
push 0
call sub.kernel32.dll_GetProcessHeap
push eax
call sub.kernel32.dll_HeapFree
cmp dword [esp + 0x1c], 0
jne 0x10005068
mov eax, dword [esp + 0x1c]
push eax
push 0
call sub.kernel32.dll_GetProcessHeap
push eax
call sub.kernel32.dll_HeapFree
cmp dword [esp + 0x18], 0
jne 0x10005081
mov eax, dword [esp + 0x18]
push eax
push 0
call sub.kernel32.dll_GetProcessHeap
push eax
call sub.kernel32.dll_HeapFree
cmp dword [esp + 8], 0
jne 0x1000509a
mov eax, dword [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetProcessHeap
push eax
call sub.kernel32.dll_HeapFree
mov eax, dword [esp + 0x90]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [esp + 0x94]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [esp]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [esp + 4]
push eax
call sub.kernel32.dll_CloseHandle_1
push ebp
call sub.kernel32.dll_CloseHandle_1
test ebx, ebx
je 0x100050d5
xor eax, eax
jmp 0x100050d8
or eax, 0xffffffff
add esp, 0xa0
pop ebp
pop edi
pop esi
pop ebx
ret