Function at 0x40a820
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 + 0xc]
xor edi, edi
push edi
push 2
mov dword [esp + 0x30], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x40a93f
lea ecx, [esp + 0xfc]
push ecx
push esi
mov dword [esp + 0x104], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x40a8f5
mov ebx, dword [sym.imp.MSVCR80.dll__wcsicmp]
nop
lea edx, [esp + 0x120]
push str.explorer.exe
push edx
call ebx
add esp, 8
test eax, eax
jne 0x40a8da
mov ecx, dword [esp + 0x104]
lea eax, [esp + 0x18]
push eax
push ecx
mov dword [esp + 0x20], edi
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x40a8da
mov edx, dword [ebp + 8]
cmp dword [esp + 0x18], edx
je 0x40a8ee
lea eax, [esp + 0xfc]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40a8a0
jmp 0x40a8f5
mov edi, dword [esp + 0x104]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call ebx
xor eax, eax
cmp edi, eax
je 0x40a93f
push edi
push eax
push 0x400
mov dword [esp + 0x30], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
mov dword [esp + 0x18], esi
je 0x40a93f
lea ecx, [esp + 0x1c]
push ecx
push 0xf00ff
push esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x40a946
push esi
call ebx
xor eax, eax
jmp 0x40ab37
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x24]
push edx
push 4
lea eax, [esp + 0x1c]
push eax
push 0x13
push ecx
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
cmp dword [esp + 0x14], 0
jne 0x40a993
lea edx, [esp + 0x3c]
push edx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x14]
push eax
push 1
push 1
push 0
push 0x2000000
push ecx
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
mov edx, dword [esp + 0x14]
push 1
push edx
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x2c], 0
mov ebx, 0x2000000
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x40a9bb
mov ebx, 0x2000400
mov edi, 7
lea esi, [esp + 0xc4]
mov dword [esp + 0x64], edi
mov dword [esp + 0x5c], str._elevated
mov dword [esp + 0x74], edi
mov dword [esp + 0x6c], str.QQPCMgrUpdate.exe
mov dword [esp + 0x54], edi
mov dword [esp + 0x4c], str.QMUpdate_
call fcn.004026c0
xor esi, esi
mov dword [esp + 0x340], esi
mov dword [esp + 0x44], edi
mov edi, 8
cmp dword [eax + 0x18], edi
jb 0x40aa10
mov ecx, dword [eax + 4]
mov dword [esp + 0x3c], ecx
jmp 0x40aa17
add eax, 4
mov dword [esp + 0x3c], eax
lea edx, [esp + 0x5c]
push edx
lea eax, [esp + 0x70]
push eax
lea ecx, [esp + 0x54]
push ecx
lea edx, [esp + 0x48]
push edx
lea eax, [esp + 0xf0]
push str._012__3
push eax
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 ecx, dword [esp + 0x28]
push ecx
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 esi
push edx
call sub.MSVCR80.dll_memset
xor eax, eax
add esp, 0xc
cmp dword [esp + 0xf8], edi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0xe4]
mov dword [esp + 0x7c], 0x44
mov dword [esp + 0xa8], 0x81
mov word [esp + 0xac], si
jae 0x40aabe
lea eax, [esp + 0xe4]
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x80]
push edx
mov edx, dword [esp + 0x1c]
push esi
push ecx
push ebx
push esi
push esi
push esi
push eax
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, eax
mov eax, dword [esp + 0x14]
cmp eax, esi
je 0x40aaf5
push eax
call edi
mov eax, dword [esp + 0x18]
push eax
call edi
mov eax, dword [esp + 0x1c]
cmp eax, esi
je 0x40ab07
push eax
call edi
mov eax, dword [esp + 0x2c]
cmp eax, esi
je 0x40ab12
push eax
call edi
mov eax, dword [esp + 0x30]
cmp eax, esi
je 0x40ab1d
push eax
call edi
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, ebx
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