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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c8
mov eax, dword [0x432024]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor esi, esi
push 0x228
mov dword [ebp - 0x268], eax
lea eax, [ebp - 0x238]
push esi
push eax
mov dword [ebp - 0x260], ecx
mov dword [ebp - 0x264], edx
mov dword [ebp - 0x248], esi
mov dword [ebp - 0x23c], esi
call sub.MSVCR80.dll_memset
push 0x40
xor eax, eax
lea ecx, [ebp - 0x2c0]
push esi
push ecx
mov dword [ebp - 0x26c], esi
mov dword [ebp - 0x258], esi
mov dword [ebp - 0x254], eax
mov dword [ebp - 0x250], eax
mov dword [ebp - 0x24c], eax
mov dword [ebp - 0x2c4], esi
call sub.MSVCR80.dll_memset
add esp, 0x18
push esi
push 2
mov dword [ebp - 0x244], esi
mov dword [ebp - 0x240], esi
mov dword [ebp - 0x25c], esi
mov dword [ebp - 0x270], 0x2000000
xor edi, edi
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
je 0x401285
lea edx, [ebp - 0x23c]
push edx
push ebx
mov dword [ebp - 0x23c], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x401285
lea eax, [ebp - 0x218]
push str.explorer.exe
push eax
call dword [sym.imp.MSVCR80.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x4010f8
mov ecx, dword [ebp - 0x234]
mov dword [ebp - 0x248], ecx
lea edx, [ebp - 0x23c]
push edx
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4010d3
mov eax, dword [ebp - 0x248]
cmp eax, esi
je 0x401285
push eax
push esi
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp eax, esi
mov dword [ebp - 0x248], eax
je 0x401285
lea ecx, [ebp - 0x244]
push ecx
push 0xf00ff
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x401278
mov ecx, dword [ebp - 0x244]
lea edx, [ebp - 0x26c]
push edx
push 4
lea eax, [ebp - 0x240]
push eax
push 0x13
push ecx
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
cmp dword [ebp - 0x240], esi
jne 0x4011a5
lea edx, [ebp - 0x278]
push edx
push str.SeDebugPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov ecx, dword [ebp - 0x244]
lea eax, [ebp - 0x240]
push eax
push 1
push 1
push esi
push 0x2000000
push ecx
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
mov edx, dword [ebp - 0x240]
push 1
push edx
lea eax, [ebp - 0x25c]
push eax
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
mov edi, 0x2000400
jne 0x4011ca
mov edi, dword [ebp - 0x270]
push 0x44
lea ecx, [ebp - 0x2c4]
push esi
push ecx
call sub.MSVCR80.dll_memset
mov ecx, dword [ebp - 0x25c]
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x258], eax
mov dword [ebp - 0x254], eax
mov dword [ebp - 0x250], eax
mov dword [ebp - 0x24c], eax
lea edx, [ebp - 0x258]
push edx
mov edx, dword [ebp - 0x260]
lea eax, [ebp - 0x2c4]
push eax
mov eax, dword [ebp - 0x268]
push esi
push ecx
mov ecx, dword [ebp - 0x240]
push edi
push 1
push esi
push esi
push edx
push eax
push ecx
mov dword [ebp - 0x2c4], 0x44
mov word [ebp - 0x294], 1
mov dword [ebp - 0x298], 0x80
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov edi, eax
cmp edi, esi
je 0x401278
mov eax, dword [ebp - 0x264]
mov edx, dword [ebp - 0x258]
mov ecx, dword [ebp - 0x254]
mov dword [eax], edx
mov edx, dword [ebp - 0x250]
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0x24c]
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov edx, dword [ebp - 0x248]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, esi
je 0x401294
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
jmp 0x40129a
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x244]
cmp eax, esi
je 0x4012ad
push eax
call ebx
mov dword [ebp - 0x244], esi
mov eax, dword [ebp - 0x240]
cmp eax, esi
je 0x4012ba
push eax
call ebx
mov ecx, dword [ebp - 8]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041f808
mov esp, ebp
pop ebp
ret