Function at 0x401108
Capabilities:
Acquire debug privileges
Create process on windows
Enumerate processes

Disassembly:
push ebp
lea ebp, [esp - 0x134]
sub esp, 0x1b4
mov eax, dword [0x409070]
xor eax, ebp
mov dword [ebp + 0x130], eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
xor esi, esi
push esi
mov edi, eax
push 2
mov dword [ebp - 0x14], edi
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
lea eax, [ebp + 8]
push eax
push ebx
mov dword [ebp + 8], 0x128
call sub.KERNEL32.dll_Process32First
lea eax, [ebp + 0x2c]
push str.Winlogon.exe
push eax
call dword [sym.imp.MSVCR90.dll__stricmp]
pop ecx
pop ecx
test eax, eax
jne 0x401180
lea eax, [ebp + 4]
push eax
push dword [ebp + 0x10]
mov dword [ebp + 4], esi
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x401180
cmp dword [ebp + 4], edi
je 0x40127f
lea eax, [ebp + 8]
push eax
push ebx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x40114e
mov ebx, dword [ebp - 0xc]
push str.Wtsapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.WTSQueryUserToken
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [ebp - 0xc]
push ecx
push edi
call eax
push 0x44
pop edi
push edi
lea eax, [ebp - 0x80]
push esi
push eax
mov dword [ebp + 4], 0x8000020
call sub.MSVCR90.dll_memset
push 0x10
lea eax, [ebp - 0x3c]
push esi
push eax
mov dword [ebp - 0x80], edi
mov dword [ebp - 0x78], str.winsta0default
call sub.MSVCR90.dll_memset
add esp, 0x18
push ebx
push esi
mov edi, 0x2000000
push edi
call dword [sym.imp.KERNEL32.dll_OpenProcess]
lea ecx, [ebp - 8]
push ecx
push 0x201eb
push eax
mov dword [ebp - 0x10], eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
xor ebx, ebx
inc ebx
push ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x1c]
push eax
push str.SeDebugPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
lea eax, [ebp]
push eax
push ebx
push ebx
push esi
push edi
push dword [ebp - 8]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x20], 2
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
push 4
push dword [ebp - 0x14]
push 0xc
push dword [ebp]
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
push esi
push esi
push 0x10
lea eax, [ebp - 0x2c]
push eax
push esi
push dword [ebp]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push ebx
push dword [ebp]
lea eax, [ebp - 4]
push eax
mov dword [ebp - 4], esi
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x401287
mov dword [ebp + 4], 0x8000420
jmp 0x40128a
mov ebx, dword [ebp + 0x10]
jmp 0x401191
mov dword [ebp - 4], esi
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x80]
push eax
push esi
push dword [ebp - 4]
push dword [ebp + 4]
push esi
push esi
push esi
push str.WMSysPrs.exe_7
push esi
push dword [ebp]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xc]
call esi
push dword [ebp]
call esi
push dword [ebp - 8]
call esi
mov ecx, dword [ebp + 0x130]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0040202c
add ebp, 0x134
leave
ret