Function at 0x10004780
Capabilities:
Acquire debug privileges
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x89c
mov eax, dword [0x101b600c]
xor eax, esp
mov dword [esp + 0x898], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor bl, bl
push edi
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 0x10]
push 0x44
mov dword [esp + 0x38], eax
lea eax, [esp + 0x4c]
push 0
push eax
call fcn.100106a0
add esp, 0xc
mov dword [esp + 0x18], 0
xorps xmm0, xmm0
mov dword [esp + 0x10], 0
lea eax, [esp + 0xa0]
mov dword [esp + 0x14], 0
movups xmmword [esp + 0x38], xmm0
push 0x800
push 0
push eax
mov dword [esp + 0x28], 0
mov dword [esp + 0x9c], 0
movq qword [esp + 0xa0], xmm0
mov dword [esp + 0xa8], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
call fcn.100106a0
add esp, 0xc
lea eax, [esp + 0xa0]
push esi
push 0x400
push eax
call fcn.10015598
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], eax
push ecx
push eax
mov esi, 0x30
mov dword [esp + 0x50], 0x44
mov dword [esp + 0x58], 0x10027d40
call dword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
mov edi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
test eax, eax
jne 0x10004a87
call fcn.10003b00
mov dword [esp + 0x18], eax
cmp eax, 0xffffffff
jne 0x10004980
mov esi, dword [0x101b7488]
test esi, esi
jne 0x100048ef
push 0x124
call fcn.1000da7d
add esp, 4
mov esi, eax
mov dword [esp + 0xc], esi
push 0x104
lea eax, [esi + 4]
mov dword [esi], 0
push 0
push eax
mov dword [esi + 0x108], 0xffffffff
call fcn.100106a0
add esp, 0xc
lea eax, [esi + 0x10c]
push eax
call edi
mov dword [0x101b7488], esi
push str.error_EnumActiveSessionId_set_sessionid_to_1.
push 0
push str.BaseCreateProcessAsUser
push str.................utilitycompany_liboutincludecommon_base_proc.cpp
push 0x19d
push esi
call fcn.10002fc0
mov esi, dword [0x101b7488]
add esp, 0x18
test esi, esi
jne 0x1000495d
push 0x124
call fcn.1000da7d
add esp, 4
mov esi, eax
mov dword [esp + 0xc], esi
push 0x104
lea eax, [esi + 4]
mov dword [esi], 0
push 0
push eax
mov dword [esi + 0x108], 0xffffffff
call fcn.100106a0
add esp, 0xc
lea eax, [esi + 0x10c]
push eax
call edi
mov dword [0x101b7488], esi
push str.BaseCreateProcessAsUser
push str.................utilitycompany_liboutincludecommon_base_proc.cpp
push 0x19d
push ecx
mov ecx, esi
call fcn.100033f0
mov eax, 1
mov dword [esp + 0x18], eax
lea esi, [eax + 0x2f]
lea ecx, [esp + 0x14]
push ecx
push eax
call dword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
test eax, eax
jne 0x10004a87
mov edx, dword [esp + 0x18]
mov ecx, str.EXPLORER.EXE
call fcn.10003b70
mov dword [esp + 0x14], eax
test eax, eax
jne 0x10004a8b
mov esi, dword [0x101b7488]
test esi, esi
jne 0x100049fd
push 0x124
call fcn.1000da7d
add esp, 4
mov esi, eax
mov dword [esp + 0xc], esi
push 0x104
lea eax, [esi + 4]
mov dword [esi], 0
push 0
push eax
mov dword [esi + 0x108], 0xffffffff
call fcn.100106a0
add esp, 0xc
lea eax, [esi + 0x10c]
push eax
call edi
mov dword [0x101b7488], esi
push str.error_GetProcessTokenHandle
push 0
push str.BaseCreateProcessAsUser
push str.................utilitycompany_liboutincludecommon_base_proc.cpp
push 0x1a7
push esi
call fcn.10002fc0
mov esi, dword [0x101b7488]
add esp, 0x18
test esi, esi
jne 0x10004a6b
push 0x124
call fcn.1000da7d
add esp, 4
mov esi, eax
mov dword [esp + 0xc], esi
push 0x104
lea eax, [esi + 4]
mov dword [esi], 0
push 0
push eax
mov dword [esi + 0x108], 0xffffffff
call fcn.100106a0
add esp, 0xc
lea eax, [esi + 0x10c]
push eax
call edi
mov dword [0x101b7488], esi
push str.BaseCreateProcessAsUser
push str.................utilitycompany_liboutincludecommon_base_proc.cpp
push 0x1a7
push ecx
mov ecx, esi
call fcn.100033f0
jmp 0x10004ec7
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x2c]
push ecx
push 4
lea ecx, [esp + 0x28]
push ecx
push 0x13
push eax
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x10004ab1
mov eax, dword [esp + 0x20]
mov dword [esp + 0x10], eax
jmp 0x10004d9a
lea eax, [esp + 0x24]
push eax
push 0x10027afc
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x10004ba4
mov esi, dword [0x101b7488]
test esi, esi
jne 0x10004b1a
push 0x124
call fcn.1000da7d
add esp, 4
mov esi, eax
mov dword [esp + 0xc], esi
push 0x104
lea eax, [esi + 4]
mov dword [esi], 0
push 0
push eax
mov dword [esi + 0x108], 0xffffffff
call fcn.100106a0
add esp, 0xc
lea eax, [esi + 0x10c]
push eax
call edi
mov dword [0x101b7488], esi
push str.error_LookupPrivilegeValue
push 0
push str.BaseCreateProcessAsUser
push str.................utilitycompany_liboutincludecommon_base_proc.cpp
push 0x1b9
push esi
call fcn.10002fc0
mov esi, dword [0x101b7488]
add esp, 0x18
test esi, esi
jne 0x10004b88
push 0x124
call fcn.1000da7d
add esp, 4
mov esi, eax
mov dword [esp + 0xc], esi
push 0x104
lea eax, [esi + 4]
mov dword [esi], 0
push 0
push eax
mov dword [esi + 0x108], 0xffffffff
call fcn.100106a0
add esp, 0xc
lea eax, [esi + 0x10c]
push eax
call edi
mov dword [0x101b7488], esi
push str.BaseCreateProcessAsUser
push str.................utilitycompany_liboutincludecommon_base_proc.cpp
push 0x1b9
push ecx
mov ecx, esi
call fcn.100033f0
jmp 0x10004ec7
mov eax, dword [esp + 0x24]
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x98], eax
lea eax, [esp + 0x10]
push eax
push 1
push 1
push 0
push 0x2000000
push dword [esp + 0x28]
mov dword [esp + 0xa8], 1
mov dword [esp + 0xb4], 2
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
jne 0x10004ccb
mov esi, dword [0x101b7488]
test esi, esi
jne 0x10004c41
push 0x124
call fcn.1000da7d
add esp, 4
mov esi, eax
mov dword [esp + 0xc], esi
push 0x104
lea eax, [esi + 4]
mov dword [esi], 0
push 0
push eax
mov dword [esi + 0x108], 0xffffffff
call fcn.100106a0
add esp, 0xc
lea eax, [esi + 0x10c]
push eax
call edi
mov dword [0x101b7488], esi
push str.error_DuplicateTokenEx
push 0
push str.BaseCreateProcessAsUser
push str.................utilitycompany_liboutincludecommon_base_proc.cpp
push 0x1c3
push esi
call fcn.10002fc0
mov esi, dword [0x101b7488]
add esp, 0x18
test esi, esi
jne 0x10004caf
push 0x124
call fcn.1000da7d
add esp, 4
mov esi, eax
mov dword [esp + 0xc], esi
push 0x104
lea eax, [esi + 4]
mov dword [esi], 0
push 0
push eax
mov dword [esi + 0x108], 0xffffffff
call fcn.100106a0
add esp, 0xc
lea eax, [esi + 0x10c]
push eax
call edi
mov dword [0x101b7488], esi
push str.BaseCreateProcessAsUser
push str.................utilitycompany_liboutincludecommon_base_proc.cpp
push 0x1c3
push ecx
mov ecx, esi
call fcn.100033f0
jmp 0x10004ec7
push 4
lea eax, [esp + 0x1c]
push eax
push 0xc
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
jne 0x10004d34
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x522
je 0x10004d34
push str.error_SetTokenInformation
push 0
push str.BaseCreateProcessAsUser
push str.................utilitycompany_liboutincludecommon_base_proc.cpp
push 0x1cb
call fcn.10002d70
push eax
call fcn.10002fc0
add esp, 0x18
push str.BaseCreateProcessAsUser
push str.................utilitycompany_liboutincludecommon_base_proc.cpp
push 0x1cb
push ecx
call fcn.10002d70
mov ecx, eax
call fcn.100033f0
jmp 0x10004ec7
push 0
push 0
push 0x10
lea eax, [esp + 0x9c]
push eax
push 0
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x10004d96
push str.error_AdjustTokenPrivileges
push eax
push str.BaseCreateProcessAsUser
push str.................utilitycompany_liboutincludecommon_base_proc.cpp
push 0x1d2
call fcn.10002d70
push eax
call fcn.10002fc0
add esp, 0x18
push str.BaseCreateProcessAsUser
push str.................utilitycompany_liboutincludecommon_base_proc.cpp
push 0x1d2
push ecx
call fcn.10002d70
mov ecx, eax
call fcn.100033f0
jmp 0x10004ec7
mov eax, dword [esp + 0x10]
push 1
push eax
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x10004db7
mov eax, dword [esp + 0x1c]
mov esi, 0x430
jmp 0x10004dbd
xor eax, eax
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x4c]
push ecx
push 0
push eax
push esi
push 0
push 0
push 0
lea eax, [esp + 0xc0]
push eax
push dword [esp + 0x54]
push dword [esp + 0x38]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x10004ec5
mov esi, dword [0x101b7488]
test esi, esi
jne 0x10004e3e
push 0x124
call fcn.1000da7d
add esp, 4
mov esi, eax
mov dword [esp + 0xc], esi
push 0x104
lea eax, [esi + 4]
mov dword [esi], 0
push 0
push eax
mov dword [esi + 0x108], 0xffffffff
call fcn.100106a0
add esp, 0xc
lea eax, [esi + 0x10c]
push eax
call edi
mov dword [0x101b7488], esi
push str.error_CreateProcessAsUser
push 0
push str.BaseCreateProcessAsUser
push str.................utilitycompany_liboutincludecommon_base_proc.cpp
push 0x1ec
push esi
call fcn.10002fc0
mov esi, dword [0x101b7488]
add esp, 0x18
test esi, esi
jne 0x10004eac
push 0x124
call fcn.1000da7d
add esp, 4
mov esi, eax
mov dword [esp + 0xc], esi
push 0x104
lea eax, [esi + 4]
mov dword [esi], 0
push 0
push eax
mov dword [esi + 0x108], 0xffffffff
call fcn.100106a0
add esp, 0xc
lea eax, [esi + 0x10c]
push eax
call edi
mov dword [0x101b7488], esi
push str.BaseCreateProcessAsUser
push str.................utilitycompany_liboutincludecommon_base_proc.cpp
push 0x1ec
push ecx
mov ecx, esi
call fcn.100033f0
jmp 0x10004ec7
mov bl, 1
mov eax, dword [esp + 0x38]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, 0xffffffff
je 0x10004efc
test bl, bl
je 0x10004eed
cmp byte [ebp + 0x14], 0
je 0x10004eed
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x10004ef9
mov dword [ecx], eax
jmp 0x10004efc
push eax
call esi
mov eax, dword [esp + 0x3c]
cmp eax, 0xffffffff
je 0x10004f08
push eax
call esi
mov eax, dword [esp + 0x10]
test eax, eax
je 0x10004f13
push eax
call esi
mov eax, dword [esp + 0x14]
test eax, eax
je 0x10004f1e
push eax
call esi
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x10004f2d
push ecx
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov ecx, dword [esp + 0x8a4]
mov al, bl
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1000da67
mov esp, ebp
pop ebp
ret