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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c0
mov eax, dword [0x1000c018]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 1
lea edx, [ebp - 0x868]
xor ebx, ebx
push edx
mov dword [ebp - 0x834], eax
mov dword [ebp - 0x81c], ecx
mov dword [ebp - 0x828], ebx
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push ebx
push ebx
push 1
lea eax, [ebp - 0x868]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
lea ecx, [ebp - 0x868]
mov dword [ebp - 0x854], 0xc
mov dword [ebp - 0x84c], ebx
mov dword [ebp - 0x850], ecx
mov dword [ebp - 0x820], ebx
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
mov esi, eax
push esi
call fcn.10001730
mov edi, eax
cmp edi, ebx
jne 0x10001462
push 0x7fe
lea eax, [ebp - 0x80a]
xor edx, edx
push ebx
push eax
mov word [ebp - 0x80c], dx
call sub.MSVCR100.dll_memset
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x80c]
push 0x100092c8
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1000747e
mov esp, ebp
pop ebp
ret 4
push 0x44
lea edx, [ebp - 0x8bc]
push ebx
push edx
mov dword [ebp - 0x838], 0x30
call sub.MSVCR100.dll_memset
xor eax, eax
add esp, 0xc
lea ecx, [ebp - 0x830]
mov dword [ebp - 0x848], eax
mov dword [ebp - 0x844], eax
mov dword [ebp - 0x840], eax
mov dword [ebp - 0x83c], eax
push ecx
mov eax, 5
push esi
mov dword [ebp - 0x8bc], 0x44
mov dword [ebp - 0x8b4], 0x100092f8
mov word [ebp - 0x88c], ax
mov dword [ebp - 0x890], 1
mov dword [ebp - 0x824], ebx
call dword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1000153f
push edi
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
lea edx, [ebp - 0x810]
push edx
mov edi, eax
push 0xf00ff
push edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x10001551
push 0x7fe
push eax
lea ecx, [ebp - 0x80a]
push ecx
mov word [ebp - 0x80c], ax
call sub.MSVCR100.dll_memset
add esp, 0xc
call ebx
push eax
lea edx, [ebp - 0x80c]
push 0x10009318
push edx
call esi
add esp, 0xc
jmp 0x10001551
mov eax, dword [ebp - 0x830]
mov edi, dword [ebp - 0x828]
mov dword [ebp - 0x810], eax
mov eax, dword [ebp - 0x810]
lea ecx, [ebp - 0x824]
push ecx
push 4
lea edx, [ebp - 0x82c]
push edx
push 0x13
push eax
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x10001582
mov ecx, dword [ebp - 0x82c]
mov dword [ebp - 0x818], ecx
jmp 0x10001601
lea edx, [ebp - 0x870]
push edx
push 0x10009354
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x100015ca
push 0x7fe
push eax
lea ecx, [ebp - 0x80a]
push ecx
mov word [ebp - 0x80c], ax
call sub.MSVCR100.dll_memset
add esp, 0xc
call ebx
push eax
lea edx, [ebp - 0x80c]
push 0x10009378
push edx
call esi
add esp, 0xc
mov ecx, dword [ebp - 0x810]
lea eax, [ebp - 0x818]
push eax
push 1
push 1
push 0
push 0x2000000
push ecx
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
jne 0x10001601
call ebx
push eax
lea edx, [ebp - 0x80c]
push 0x100093bc
push edx
call esi
add esp, 0xc
mov eax, dword [ebp - 0x818]
push 1
push eax
lea ecx, [ebp - 0x814]
push ecx
mov dword [ebp - 0x814], 0
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x1000162c
mov eax, 0x430
jmp 0x1000163c
mov eax, dword [ebp - 0x838]
mov dword [ebp - 0x814], 0
lea edx, [ebp - 0x848]
push edx
mov edx, dword [ebp - 0x814]
lea ecx, [ebp - 0x8bc]
push ecx
mov ecx, dword [ebp - 0x81c]
push 0
push edx
mov edx, dword [ebp - 0x834]
push eax
push 1
push 0
lea eax, [ebp - 0x854]
push eax
mov eax, dword [ebp - 0x818]
push ecx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x100016b8
xor ecx, ecx
push 0x7fe
push ecx
lea edx, [ebp - 0x80a]
push edx
mov word [ebp - 0x80c], cx
call sub.MSVCR100.dll_memset
add esp, 0xc
call ebx
push eax
lea eax, [ebp - 0x80c]
push 0x100093f4
push eax
call esi
mov ebx, dword [ebp - 0x820]
add esp, 0xc
jmp 0x100016bd
mov ebx, 1
mov eax, dword [ebp - 0x848]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x100016d0
push eax
call esi
mov eax, dword [ebp - 0x844]
test eax, eax
je 0x100016dd
push eax
call esi
test edi, edi
je 0x100016e4
push edi
call esi
mov eax, dword [ebp - 0x818]
test eax, eax
je 0x100016f1
push eax
call esi
mov eax, dword [ebp - 0x810]
test eax, eax
je 0x100016fe
push eax
call esi
mov eax, dword [ebp - 0x814]
test eax, eax
je 0x1000170f
push eax
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov ecx, dword [ebp - 8]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.1000747e
mov esp, ebp
pop ebp
ret 4