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

Disassembly:
sub esp, 0x2b8
mov eax, dword [0x4555b4]
xor eax, esp
mov dword [esp + 0x2b4], eax
mov eax, dword [esp + 0x2bc]
push ebx
push ebp
push esi
push edi
xor esi, esi
push 0x228
mov dword [esp + 0x34], eax
lea eax, [esp + 0x98]
push esi
push eax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x40], edx
xor ebp, ebp
mov dword [esp + 0x9c], esi
call fcn.004315d0
push 0x40
xor eax, eax
lea ecx, [esp + 0x5c]
push esi
push ecx
mov dword [esp + 0x54], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x60], esi
call fcn.004315d0
add esp, 0x18
push esi
push 2
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x40], 0x2000000
xor edi, edi
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40122c
lea edx, [esp + 0x90]
push edx
push ebx
mov dword [esp + 0x98], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x40122c
lea ecx, [ecx]
lea eax, [esp + 0xb4]
push str.explorer.exe
push eax
call fcn.00429f18
add esp, 8
test eax, eax
jne 0x4010e0
mov ebp, dword [esp + 0x98]
lea ecx, [esp + 0x90]
push ecx
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4010c0
cmp ebp, esi
je 0x40122c
push ebp
push esi
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebp, eax
cmp ebp, esi
je 0x40122c
lea edx, [esp + 0x14]
push edx
push 0xf00ff
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x401221
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x3c]
push eax
push 4
lea ecx, [esp + 0x18]
push ecx
push 0x13
push edx
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
cmp dword [esp + 0x10], esi
jne 0x401174
lea eax, [esp + 0x40]
push eax
push str.SeDebugPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push ecx
push 1
push 1
push esi
push 0x2000000
push edx
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
mov eax, dword [esp + 0x10]
push 1
push eax
lea ecx, [esp + 0x30]
push ecx
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
mov edi, 0x2000400
jne 0x401193
mov edi, dword [esp + 0x38]
push 0x44
lea edx, [esp + 0x4c]
push esi
push edx
call fcn.004315d0
mov edx, dword [esp + 0x34]
add esp, 0xc
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x4c]
push ecx
mov ecx, dword [esp + 0x38]
push esi
push edx
mov edx, dword [esp + 0x20]
push edi
push 1
push esi
push esi
push eax
push ecx
push edx
mov dword [esp + 0x74], 0x44
mov word [esp + 0xa4], 1
mov dword [esp + 0xa0], 0x80
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov edi, eax
cmp edi, esi
je 0x401221
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [eax], ecx
mov ecx, dword [esp + 0x20]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x24]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebp
jmp 0x401232
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, esi
je 0x401239
push ebx
call ebp
mov eax, dword [esp + 0x14]
cmp eax, esi
je 0x401248
push eax
call ebp
mov dword [esp + 0x14], esi
mov eax, dword [esp + 0x10]
cmp eax, esi
je 0x401253
push eax
call ebp
mov ecx, dword [esp + 0x2c4]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00429d78
add esp, 0x2b8
ret