Function at 0x409f60
Capabilities:
Acquire debug privileges
Create process on windows
Enumerate processes
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x425260
mov eax, dword fs:[0]
push eax
sub esp, 0x560
mov eax, dword [0x432024]
xor eax, esp
mov dword [esp + 0x558], eax
push ebx
push esi
push edi
mov eax, dword [0x432024]
xor eax, esp
push eax
lea eax, [esp + 0x570]
mov dword fs:[0], eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
lea ecx, [esp + 0x14]
xor ebx, ebx
push ecx
push edx
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
call sub.WTSAPI32.dll_WTSQueryUserToken
test eax, eax
jne 0x40a09f
push ebx
push 2
xor edi, edi
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x40a098
lea eax, [esp + 0x12c]
push eax
push esi
mov dword [esp + 0x134], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x40a05a
lea ecx, [esp + 0x150]
push str.explorer.exe
push ecx
call dword [sym.imp.MSVCR80.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x40a03f
mov eax, dword [esp + 0x134]
lea edx, [esp + 0x10]
push edx
push eax
mov dword [esp + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x40a03f
mov ecx, dword [ebp + 8]
cmp dword [esp + 0x10], ecx
je 0x40a053
lea edx, [esp + 0x12c]
push edx
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40a001
jmp 0x40a05a
mov edi, dword [esp + 0x134]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
cmp edi, ebx
je 0x40a098
push edi
push ebx
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp eax, ebx
mov dword [esp + 0x10], eax
je 0x40a098
lea ecx, [esp + 0x14]
push ecx
push 0xf00ff
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x40a0a5
mov edx, dword [esp + 0x10]
push edx
call esi
xor eax, eax
jmp 0x40a362
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
cmp eax, ebx
jne 0x40a0bb
mov eax, dword [esp + 0x10]
push eax
call esi
xor eax, eax
jmp 0x40a362
lea ecx, [esp + 0x30]
push ecx
push 4
lea edx, [esp + 0x30]
push edx
push 0x13
push eax
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
cmp eax, ebx
jne 0x40a101
lea eax, [esp + 0x20]
push eax
push str.SeDebugPrivilege
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
push 1
push 1
push ebx
push 0x2000000
push edx
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
jmp 0x40a109
mov eax, dword [esp + 0x28]
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x18]
push 1
push ecx
lea edx, [esp + 0x24]
push edx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], 0x2000000
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x40a133
mov dword [esp + 0x20], 0x2000400
push str._CreateTime
lea ecx, [esp + 0x114]
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__::constructor_wchar_t_const__]
push 0x206
lea eax, [esp + 0x362]
push ebx
mov dword [esp + 0x580], ebx
push eax
mov word [esp + 0x368], bx
call sub.MSVCR80.dll_memset
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push 0x4288c4
lea ecx, [esp + 0x364]
push 0x103
push ecx
call dword [sym.imp.MSVCR80.dll__snwprintf]
add esp, 0x10
lea edx, [esp + 0x35c]
push edx
lea ecx, [esp + 0x114]
call dword [0x42729c]
lea ecx, [esp + 0xf4]
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__::constructor_void_]
mov byte [esp + 0x578], 1
mov edi, 7
lea esi, [esp + 0xd8]
mov dword [esp + 0x6c], edi
mov dword [esp + 0x64], str._elevated
mov dword [esp + 0x5c], edi
mov dword [esp + 0x54], str.QQPCTray.exe
call fcn.004026c0
mov byte [esp + 0x578], 2
mov esi, 8
mov dword [esp + 0x4c], edi
cmp dword [eax + 0x18], esi
jb 0x40a1fa
mov eax, dword [eax + 4]
jmp 0x40a1fd
add eax, 4
push 0x433550
lea ecx, [esp + 0x68]
push ecx
lea edx, [esp + 0x5c]
push edx
mov dword [esp + 0x50], eax
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0xcc]
push str._01__2
push ecx
call fcn.0041e480
add esp, 0x18
push eax
lea ecx, [esp + 0xf8]
mov byte [esp + 0x57c], 3
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__::operator_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
lea ecx, [esp + 0xbc]
mov byte [esp + 0x578], 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_]
lea ecx, [esp + 0xd8]
mov byte [esp + 0x578], 1
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 edx, dword [esp + 0x2c]
push edx
lea ecx, [esp + 0xf8]
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 eax, [esp + 0x78]
push ebx
push eax
call sub.MSVCR80.dll_memset
xor eax, eax
add esp, 0xc
cmp dword [esp + 0x10c], esi
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0xf8]
mov dword [esp + 0x74], 0x44
mov word [esp + 0xa4], bx
mov dword [esp + 0xa0], 0x81
jae 0x40a2d0
lea eax, [esp + 0xf8]
lea ecx, [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x78]
push edx
mov edx, dword [esp + 0x28]
push ebx
push ecx
push edx
push ebx
push ebx
push ebx
push eax
mov eax, dword [esp + 0x3c]
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 + 0x34]
cmp eax, ebx
je 0x40a308
push eax
call esi
mov eax, dword [esp + 0x38]
cmp eax, ebx
je 0x40a313
push eax
call esi
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x40a31e
push eax
call esi
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x40a329
push eax
call esi
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x40a334
push eax
call esi
lea ecx, [esp + 0xf4]
mov byte [esp + 0x578], bl
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_]
lea ecx, [esp + 0x110]
mov dword [esp + 0x578], 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 + 0x570]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x558]
xor ecx, esp
call fcn.0041f808
mov esp, ebp
pop ebp
ret