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

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100a4258
push 0x10058bc0
mov eax, dword fs:[0]
push eax
sub esp, 0x8b8
mov eax, dword [0x100ae254]
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 0x10089d20
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
call esi
mov dword [ebp - 0x834], eax
test eax, eax
jne 0x10016582
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.hModKernel32__NULL___d_n
call fcn.10007df0
add esp, 8
mov esi, edi
jmp 0x10016979
push str.wtsapi32.dll
call esi
mov esi, eax
mov dword [ebp - 0x860], esi
test esi, esi
jne 0x100165b4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.hModWtsapi32__NULL___d_n
call fcn.10007df0
add esp, 8
mov esi, dword [ebp - 0x820]
jmp 0x10016979
push str.WTSGetActiveConsoleSessionId
push dword [ebp - 0x834]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x830], eax
test eax, eax
jne 0x100165ee
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.WTSGetActiveConsoleSessionId__NULL___d_n
call fcn.10007df0
add esp, 8
mov esi, dword [ebp - 0x820]
jmp 0x10016979
push str.WTSQueryUserToken
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x840], eax
test eax, eax
jne 0x10016623
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.WTSQueryUserToken__NULL___d_n
call fcn.10007df0
add esp, 8
mov esi, dword [ebp - 0x820]
jmp 0x10016979
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.10016230
mov dword [ebp - 0x830], eax
test eax, eax
jne 0x10016689
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.FindSessionPid_dwWinlogonPid___0___d_n
call fcn.10007df0
add esp, 8
mov esi, dword [ebp - 0x820]
jmp 0x10016979
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 0x100166c7
mov eax, dword [ebp - 0x844]
mov dword [ebp - 0x828], eax
jmp 0x100166fb
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 0x1001671b
call esi
push eax
push str.WTSQueryUserToken_OpenProcessToken_hPToken___NULL___d_n
call fcn.10007df0
add esp, 8
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 0x10016764
mov eax, dword [ebp - 0x830]
mov dword [ebp - 0x824], eax
jmp 0x100167a7
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 0x100167c1
call esi
push eax
push str.GetTokenInformation_DuplicateTokenEx_hUserTokenDup___NULL___d_n
call fcn.10007df0
add esp, 8
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 0x100167fc
mov edi, 0x430
mov dword [ebp - 0x864], edi
mov eax, dword [ebp - 0x82c]
jmp 0x10016804
xor eax, eax
mov dword [ebp - 0x82c], eax
test eax, eax
jne 0x10016818
call esi
push eax
push str.CreateEnvironmentBlock_pEnv___NULL___d_n
call fcn.10007df0
add esp, 8
push 0x800
push 0
lea eax, [ebp - 0x81c]
push eax
call fcn.10058a20
add esp, 0xc
mov eax, dword [ebp - 0x848]
test eax, eax
je 0x1001686c
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x1001686c
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 0x10016884
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.10007df0
xorps xmm0, xmm0
movups xmmword [ebp - 0x87c], xmm0
push 0x44
push 0
lea eax, [ebp - 0x8c8]
push eax
call fcn.10058a20
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 0x100168eb
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 0x10016948
call esi
push eax
lea eax, [ebp - 0x81c]
push eax
push str.CreateProcessAsUser__s___FALSE___d_n
call fcn.10007df0
add esp, 0xc
mov esi, dword [ebp - 0x820]
jmp 0x10016979
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.100169b1
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.10051ab7
mov esp, ebp
pop ebp
ret 0xc