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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2b4
mov eax, dword [0x42c4fc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x254], eax
mov eax, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x250], eax
mov eax, dword [ebp + 0x10]
xor ebx, ebx
push 0x228
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x22c]
push ebx
push eax
xor esi, esi
mov dword [ebp - 0x230], ebx
call sub.MSVCR80.dll_memset
xor eax, eax
mov dword [ebp - 0x270], ebx
lea edi, [ebp - 0x26c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x40
stosd dword es:[edi], eax
lea eax, [ebp - 0x2b0]
push ebx
push eax
mov dword [ebp - 0x248], ebx
mov dword [ebp - 0x2b4], ebx
call sub.MSVCR80.dll_memset
add esp, 0x18
push ebx
mov edi, 0x2000000
push 2
mov dword [ebp - 0x23c], ebx
mov dword [ebp - 0x234], ebx
mov dword [ebp - 0x244], ebx
mov dword [ebp - 0x240], edi
mov dword [ebp - 0x258], ebx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
cmp eax, 0xffffffff
mov dword [ebp - 0x238], eax
je 0x401252
lea ecx, [ebp - 0x230]
push ecx
push eax
mov dword [ebp - 0x230], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x401252
lea eax, [ebp - 0x20c]
push str.explorer.exe
push eax
call dword [sym.imp.MSVCR80.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x4010f3
mov esi, dword [ebp - 0x228]
lea eax, [ebp - 0x230]
push eax
push dword [ebp - 0x238]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4010d5
cmp esi, ebx
je 0x401252
push esi
push ebx
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp eax, ebx
mov dword [ebp - 0x24c], eax
je 0x401252
lea ecx, [ebp - 0x23c]
push ecx
push 0xf00ff
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x401246
lea eax, [ebp - 0x248]
push eax
push 4
lea eax, [ebp - 0x234]
push eax
push 0x13
push dword [ebp - 0x23c]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
xor esi, esi
inc esi
cmp dword [ebp - 0x234], ebx
jne 0x40119a
lea eax, [ebp - 0x25c]
push eax
push str.SeDebugPrivilege
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
lea eax, [ebp - 0x234]
push eax
push esi
push esi
push ebx
push edi
push dword [ebp - 0x23c]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
push esi
push dword [ebp - 0x234]
lea eax, [ebp - 0x244]
push eax
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x4011bc
mov dword [ebp - 0x240], 0x2000400
push 0x44
pop edi
push edi
lea eax, [ebp - 0x2b4]
push ebx
push eax
call sub.MSVCR80.dll_memset
push 0x10
lea eax, [ebp - 0x270]
push ebx
push eax
mov dword [ebp - 0x2b4], edi
mov word [ebp - 0x284], si
mov dword [ebp - 0x288], 0x80
call sub.MSVCR80.dll_memset
add esp, 0x18
lea eax, [ebp - 0x270]
push eax
lea eax, [ebp - 0x2b4]
push eax
push ebx
push dword [ebp - 0x244]
push dword [ebp - 0x240]
push esi
push ebx
push ebx
push dword [ebp - 0x250]
push dword [ebp - 0x254]
push dword [ebp - 0x234]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
cmp eax, ebx
mov dword [ebp - 0x258], eax
je 0x401246
mov edi, dword [ebp - 0x260]
lea esi, [ebp - 0x270]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push dword [ebp - 0x24c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x238], ebx
pop edi
pop esi
pop ebx
je 0x401269
push dword [ebp - 0x238]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x258]
xor ecx, ebp
call fcn.00416e92
leave
ret