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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4251a8
mov eax, dword fs:[0]
push eax
sub esp, 0x328
mov eax, dword [0x432024]
xor eax, esp
mov dword [esp + 0x320], eax
push ebx
push esi
push edi
mov eax, dword [0x432024]
xor eax, esp
push eax
lea eax, [esp + 0x338]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
push ebx
push 2
mov dword [esp + 0x40], eax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x34], edx
xor edi, edi
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x40af2f
lea eax, [esp + 0xfc]
push eax
push esi
mov dword [esp + 0x104], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x40aee7
mov ebx, dword [sym.imp.MSVCR80.dll__wcsicmp]
lea esp, [esp]
lea ecx, [esp + 0x120]
push str.explorer.exe
push ecx
call ebx
add esp, 8
test eax, eax
jne 0x40aeca
mov eax, dword [esp + 0x104]
lea edx, [esp + 0x1c]
push edx
push eax
mov dword [esp + 0x24], edi
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x40aeca
mov ecx, dword [ebp + 0xc]
cmp dword [esp + 0x1c], ecx
je 0x40aede
lea edx, [esp + 0xfc]
push edx
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40ae90
jmp 0x40aee5
mov edi, dword [esp + 0x104]
xor ebx, ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
cmp edi, ebx
je 0x40af2f
push edi
push ebx
push 0x400
mov dword [esp + 0x40], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ebx
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
cmp edi, ebx
mov dword [esp + 0x28], edi
je 0x40af2f
lea eax, [esp + 0x18]
push eax
push 0xf00ff
push edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x40af36
push edi
call esi
xor eax, eax
jmp 0x40b131
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x34]
push ecx
push 4
lea edx, [esp + 0x1c]
push edx
push 0x13
push eax
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
cmp dword [esp + 0x14], ebx
jne 0x40af80
lea ecx, [esp + 0x1c]
push ecx
push str.SeDebugPrivilege
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x14]
push edx
push 1
push 1
push ebx
push 0x2000000
push eax
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
mov ecx, dword [esp + 0x14]
push 1
push ecx
lea edx, [esp + 0x2c]
push edx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x28], 0x2000000
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x40afaa
mov dword [esp + 0x1c], 0x2000400
mov eax, dword [esp + 0x30]
cmp eax, ebx
mov edi, 7
mov dword [esp + 0x54], edi
mov ecx, str._null_
mov dword [esp + 0x4c], eax
jne 0x40afc8
mov dword [esp + 0x4c], ecx
mov eax, dword [esp + 0x38]
cmp eax, ebx
mov dword [esp + 0x74], edi
mov dword [esp + 0x6c], eax
jne 0x40afdc
mov dword [esp + 0x6c], ecx
lea esi, [esp + 0xc4]
call fcn.004026c0
mov dword [esp + 0x340], ebx
mov esi, 8
mov dword [esp + 0x64], edi
cmp dword [eax + 0x18], esi
jb 0x40b002
mov eax, dword [eax + 4]
jmp 0x40b005
add eax, 4
push 0x433550
lea ecx, [esp + 0x50]
push ecx
lea edx, [esp + 0x74]
push edx
mov dword [esp + 0x68], eax
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0xf0]
push str._01__2
push ecx
call fcn.0041e480
add esp, 0x18
lea ecx, [esp + 0xc4]
mov byte [esp + 0x340], 2
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x40b05d
push eax
lea ecx, [esp + 0xe4]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::append_wchar_t_const__]
push 0x44
lea edx, [esp + 0x80]
push ebx
push edx
call sub.MSVCR80.dll_memset
xor eax, eax
add esp, 0xc
cmp dword [esp + 0xf8], esi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0xe4]
mov dword [esp + 0x7c], 0x44
mov dword [esp + 0xa8], 0x81
mov word [esp + 0xac], bx
jae 0x40b0b4
lea eax, [esp + 0xe4]
lea ecx, [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x80]
push edx
mov edx, dword [esp + 0x24]
push ebx
push ecx
push edx
push ebx
push ebx
push ebx
push eax
mov eax, dword [esp + 0x38]
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, eax
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x40b0ef
push eax
call esi
mov ecx, dword [esp + 0x28]
push ecx
call esi
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x40b101
push eax
call esi
mov eax, dword [esp + 0x3c]
cmp eax, ebx
je 0x40b10c
push eax
call esi
mov eax, dword [esp + 0x40]
cmp eax, ebx
je 0x40b117
push eax
call esi
lea ecx, [esp + 0xe0]
mov dword [esp + 0x340], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, edi
mov ecx, dword [esp + 0x338]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x320]
xor ecx, esp
call fcn.0041f808
mov esp, ebp
pop ebp
ret