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

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100a2aa8
push 0x10050550
mov eax, dword fs:[0]
push eax
sub esp, 0x8b8
mov eax, dword [0x100ac1c4]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x84c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x848], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x86c], eax
xor edi, edi
mov dword [ebp - 0x838], edi
mov dword [ebp - 0x834], edi
mov dword [ebp - 0x860], edi
mov dword [ebp - 0x828], edi
mov dword [ebp - 0x83c], edi
mov dword [ebp - 0x824], edi
mov dword [ebp - 0x82c], edi
mov dword [ebp - 0x85c], edi
mov dword [ebp - 0x820], edi
mov dword [ebp - 0x850], edi
mov dword [ebp - 0x858], edi
mov dword [ebp - 0x854], edi
mov dword [ebp - 4], edi
mov dword [eax], edi
push 0x10089d34
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
call esi
mov dword [ebp - 0x834], eax
test eax, eax
jne 0x100160c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp - 0x820]
jmp 0x10016408
push str.wtsapi32.dll
call esi
mov esi, eax
mov dword [ebp - 0x860], esi
test esi, esi
je 0x100160b7
push str.WTSGetActiveConsoleSessionId
push dword [ebp - 0x834]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x830], eax
test eax, eax
je 0x100160b7
push str.WTSQueryUserToken
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x840], eax
test eax, eax
je 0x100160b7
push str.Wow64DisableWow64FsRedirection
mov esi, dword [ebp - 0x834]
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x868], eax
push str.Wow64RevertWow64FsRedirection
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x854], eax
call dword [ebp - 0x830]
mov esi, eax
push esi
push str.explorer.exe
call fcn.10015d90
mov dword [ebp - 0x830], eax
test eax, eax
je 0x100160b7
mov dword [ebp - 0x828], 0
mov dword [ebp - 0x83c], 0
mov dword [ebp - 0x844], 0
lea eax, [ebp - 0x844]
push eax
push esi
call dword [ebp - 0x840]
test eax, eax
je 0x10016195
mov eax, dword [ebp - 0x844]
mov dword [ebp - 0x828], eax
jmp 0x100161c9
push dword [ebp - 0x830]
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov dword [ebp - 0x83c], esi
lea eax, [ebp - 0x828]
push eax
push 0xf00ff
push esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov eax, dword [ebp - 0x828]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x100161db
call esi
mov eax, dword [ebp - 0x828]
mov dword [ebp - 0x824], 0
mov dword [ebp - 0x830], 0
mov dword [ebp - 0x840], 0
lea ecx, [ebp - 0x840]
push ecx
push 4
lea ecx, [ebp - 0x830]
push ecx
push 0x13
push eax
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x10016224
mov eax, dword [ebp - 0x830]
mov dword [ebp - 0x824], eax
jmp 0x10016267
xorps xmm0, xmm0
movlpd qword [ebp - 0x884], xmm0
lea eax, [ebp - 0x884]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
lea eax, [ebp - 0x824]
push eax
push 1
push 1
push 0
push 0x2000000
push dword [ebp - 0x828]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
mov eax, dword [ebp - 0x824]
test eax, eax
jne 0x10016273
call esi
mov eax, dword [ebp - 0x824]
mov edi, 0x30
mov dword [ebp - 0x864], edi
mov dword [ebp - 0x82c], 0
push 1
push eax
lea eax, [ebp - 0x82c]
push eax
call sub.USERENV.dll_CreateEnvironmentBlock
test eax, eax
je 0x100162ae
mov edi, 0x430
mov dword [ebp - 0x864], edi
mov eax, dword [ebp - 0x82c]
jmp 0x100162b6
xor eax, eax
mov dword [ebp - 0x82c], eax
test eax, eax
jne 0x100162bc
call esi
push 0x800
push 0
lea eax, [ebp - 0x81c]
push eax
call fcn.100503b0
add esp, 0xc
mov eax, dword [ebp - 0x848]
test eax, eax
je 0x10016310
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x10016310
mov eax, dword [ebp - 0x848]
push eax
push dword [ebp - 0x84c]
push str.__s___s
push 0x3ff
lea eax, [ebp - 0x81c]
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x14
jmp 0x10016328
push 0x3ff
push dword [ebp - 0x84c]
lea eax, [ebp - 0x81c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
lea eax, [ebp - 0x81c]
push eax
push str.CreateProcessAsUser__s_....._n
call fcn.100136e0
xorps xmm0, xmm0
movups xmmword [ebp - 0x87c], xmm0
push 0x44
push 0
lea eax, [ebp - 0x8c8]
push eax
call fcn.100503b0
add esp, 0x14
mov dword [ebp - 0x8c8], 0x44
mov eax, 5
mov word [ebp - 0x898], ax
mov dword [ebp - 0x8c0], str.winsta0default
mov eax, dword [ebp - 0x868]
test eax, eax
je 0x1001638f
lea ecx, [ebp - 0x858]
push ecx
call eax
mov dword [ebp - 0x850], eax
lea eax, [ebp - 0x87c]
push eax
lea eax, [ebp - 0x8c8]
push eax
push 0
push dword [ebp - 0x82c]
push edi
push 0
push 0
push 0
lea eax, [ebp - 0x81c]
push eax
push 0
push dword [ebp - 0x824]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov edi, eax
mov dword [ebp - 0x838], edi
test edi, edi
jne 0x100163d7
call esi
mov esi, dword [ebp - 0x820]
jmp 0x10016408
mov eax, dword [ebp - 0x87c]
mov dword [ebp - 0x85c], eax
mov esi, dword [ebp - 0x878]
mov dword [ebp - 0x820], esi
mov eax, dword [ebp - 0x874]
mov ecx, dword [ebp - 0x86c]
mov dword [ecx], eax
mov edi, 1
mov dword [ebp - 0x838], edi
mov dword [ebp - 4], 0xfffffffe
call fcn.10016440
mov eax, edi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.10047acb
mov esp, ebp
pop ebp
ret 0xc