Function at 0x10011000
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101c6098
mov eax, dword fs:[0]
push eax
sub esp, 0x118
mov eax, dword [0x10264190]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xe8], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x90], 0
mov eax, dword [ebp + 8]
push eax
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x90], eax
cmp dword [ebp - 0x90], 0
jne 0x10011110
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x8c], eax
push 0x1021d0d8
push 0
push 3
lea ecx, [ebp - 0xf4]
push ecx
call fcn.10009d30
mov edx, dword [eax]
mov dword [ebp - 0xe4], edx
mov ecx, dword [eax + 4]
mov dword [ebp - 0xe0], ecx
mov edx, dword [eax + 8]
mov dword [ebp - 0xdc], edx
mov eax, dword [ebp - 0x8c]
push eax
push str._tOpenProcess_failed_le_d._n
sub esp, 0xc
mov ecx, esp
mov edx, dword [ebp - 0xe4]
mov dword [ecx], edx
mov eax, dword [ebp - 0xe0]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0xdc]
mov dword [ecx + 8], edx
call fcn.10008d70
add esp, 0x14
mov dword [ebp - 0x9c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.100385b0
mov eax, dword [ebp - 0x9c]
jmp 0x100115b5
mov dword [ebp - 0x94], 0
lea eax, [ebp - 0x28]
push eax
push 0xf01ff
mov ecx, dword [ebp - 0x90]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x100111d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x8c], eax
push 0x1021d140
push 0
push 3
lea edx, [ebp - 0x10c]
push edx
call fcn.10009d30
mov ecx, dword [eax]
mov dword [ebp - 0xc4], ecx
mov edx, dword [eax + 4]
mov dword [ebp - 0xc0], edx
mov eax, dword [eax + 8]
mov dword [ebp - 0xbc], eax
mov ecx, dword [ebp - 0x8c]
push ecx
push str._tOpenProcessToken_failed_le_d._n
sub esp, 0xc
mov edx, esp
mov eax, dword [ebp - 0xc4]
mov dword [edx], eax
mov ecx, dword [ebp - 0xc0]
mov dword [edx + 4], ecx
mov eax, dword [ebp - 0xbc]
mov dword [edx + 8], eax
call fcn.10008d70
add esp, 0x14
mov ecx, dword [ebp - 0x90]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0xd4], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.100385b0
mov eax, dword [ebp - 0xd4]
jmp 0x100115b5
lea edx, [ebp - 0x20]
push edx
push 1
push 1
push 0
push 0x2000000
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
cmp dword [ebp - 0x20], 0
jne 0x100112a3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x8c], eax
push 0x1021d1a8
push 0
push 3
lea ecx, [ebp - 0x124]
push ecx
call fcn.10009d30
mov edx, dword [eax]
mov dword [ebp - 0xd0], edx
mov ecx, dword [eax + 4]
mov dword [ebp - 0xcc], ecx
mov edx, dword [eax + 8]
mov dword [ebp - 0xc8], edx
mov eax, dword [ebp - 0x8c]
push eax
push str._tDuplicateTokenEx_failed_le_d._n
sub esp, 0xc
mov ecx, esp
mov edx, dword [ebp - 0xd0]
mov dword [ecx], edx
mov eax, dword [ebp - 0xcc]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0xc8]
mov dword [ecx + 8], edx
call fcn.10008d70
add esp, 0x14
mov eax, dword [ebp - 0x90]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0xa0], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.100385b0
mov eax, dword [ebp - 0xa0]
jmp 0x100115b5
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], 0
lea edx, [ebp - 0x1c]
push edx
push 4
lea eax, [ebp - 0x14]
push eax
push 0xc
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp + 0xc]
je 0x100113a0
push 4
lea eax, [ebp + 0xc]
push eax
push 0xc
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
jne 0x100113a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x8c], eax
push 0x1021d210
push 0
push 3
lea edx, [ebp - 0x118]
push edx
call fcn.10009d30
mov ecx, dword [eax]
mov dword [ebp - 0xac], ecx
mov edx, dword [eax + 4]
mov dword [ebp - 0xa8], edx
mov eax, dword [eax + 8]
mov dword [ebp - 0xa4], eax
mov ecx, dword [ebp - 0x8c]
push ecx
push str._tSetTokenInformation_failed_le_d._n
sub esp, 0xc
mov edx, esp
mov eax, dword [ebp - 0xac]
mov dword [edx], eax
mov ecx, dword [ebp - 0xa8]
mov dword [edx + 4], ecx
mov eax, dword [ebp - 0xa4]
mov dword [edx + 8], eax
call fcn.10008d70
add esp, 0x14
mov ecx, dword [ebp - 0x90]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0xd8], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.100385b0
mov eax, dword [ebp - 0xd8]
jmp 0x100115b5
mov dword [ebp - 0x24], 0
mov ecx, dword [ebp + 0x3c]
or ecx, 0x30
mov dword [ebp + 0x3c], ecx
push 1
mov edx, dword [ebp - 0x20]
push edx
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x100113d2
mov ecx, dword [ebp + 0x3c]
or ecx, 0x400
mov dword [ebp + 0x3c], ecx
jmp 0x100113d9
mov dword [ebp - 0x24], 0
push 0x44
push 0
lea edx, [ebp - 0x88]
push edx
call fcn.10195c90
add esp, 0xc
mov dword [ebp - 0x88], 0x44
cmp dword [ebp + 0x40], 0
je 0x10011404
mov eax, dword [ebp + 0x40]
mov dword [ebp - 0x80], eax
jmp 0x1001140b
mov dword [ebp - 0x80], str.winsta0default
mov cx, word [ebp + 0x30]
mov word [ebp - 0x58], cx
mov dword [ebp - 0x5c], 1
xor edx, edx
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x44], 0xc
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x40], 0
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x88]
push ecx
push 0
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [ebp + 0x3c]
push eax
push 0
push 0
lea ecx, [ebp - 0x44]
push ecx
lea ecx, [ebp + 0x10]
call fcn.10039750
push eax
push 0
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov dword [ebp - 0x94], eax
cmp dword [ebp - 0x94], 0
je 0x100114f5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x8c], eax
cmp dword [ebp + 0x2c], 0
je 0x10011498
mov eax, dword [ebp + 0x2c]
mov ecx, dword [ebp - 0x30]
mov dword [eax], ecx
cmp dword [ebp + 0x28], 0
je 0x100114bf
push 0xffffffffffffffff
mov edx, dword [ebp - 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [ebp + 0x34], 0
je 0x100114cf
mov edx, dword [ebp + 0x34]
mov eax, dword [ebp - 0x38]
mov dword [edx], eax
jmp 0x100114d9
mov ecx, dword [ebp - 0x38]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0x38], 0
je 0x100114e9
mov edx, dword [ebp + 0x38]
mov eax, dword [ebp - 0x34]
mov dword [edx], eax
jmp 0x100114f3
mov ecx, dword [ebp - 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10011563
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x8c], eax
push 0x1021d2f0
push 0
push 3
lea edx, [ebp - 0x100]
push edx
call fcn.10009d30
mov ecx, dword [eax]
mov dword [ebp - 0xb8], ecx
mov edx, dword [eax + 4]
mov dword [ebp - 0xb4], edx
mov eax, dword [eax + 8]
mov dword [ebp - 0xb0], eax
mov ecx, dword [ebp - 0x8c]
push ecx
push str._tCreateProcessAsUser_failed_le_d._n
sub esp, 0xc
mov edx, esp
mov eax, dword [ebp - 0xb8]
mov dword [edx], eax
mov ecx, dword [ebp - 0xb4]
mov dword [edx + 4], ecx
mov eax, dword [ebp - 0xb0]
mov dword [edx + 8], eax
call fcn.10008d70
add esp, 0x14
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x90]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x24], 0
je 0x10011594
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov edx, dword [ebp - 0x94]
mov dword [ebp - 0x98], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.100385b0
mov eax, dword [ebp - 0x98]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1019110d
mov esp, ebp
pop ebp
ret 0x3c