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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x425201
mov eax, dword fs:[0]
push eax
sub esp, 0x328
mov eax, dword [0x432024]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x26c]
xor ebx, ebx
push eax
push ecx
mov dword [ebp - 0x280], ebx
mov dword [ebp - 0x268], ebx
mov dword [ebp - 0x26c], ebx
mov dword [ebp - 0x270], ebx
call sub.WTSAPI32.dll_WTSQueryUserToken
test eax, eax
jne 0x40a4c6
push ebx
push 2
xor edi, edi
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x40a4bf
lea edx, [ebp - 0x264]
push edx
push esi
mov dword [ebp - 0x264], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x40a47b
lea eax, [ebp - 0x240]
push str.explorer.exe
push eax
call dword [sym.imp.MSVCR80.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x40a462
mov edx, dword [ebp - 0x25c]
lea ecx, [ebp - 0x268]
push ecx
push edx
mov dword [ebp - 0x268], ebx
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x40a462
mov eax, dword [ebp + 8]
cmp dword [ebp - 0x268], eax
je 0x40a475
lea ecx, [ebp - 0x264]
push ecx
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40a420
jmp 0x40a47b
mov edi, dword [ebp - 0x25c]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
cmp edi, ebx
je 0x40a4bf
push edi
push ebx
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp eax, ebx
mov dword [ebp - 0x268], eax
je 0x40a4bf
lea edx, [ebp - 0x26c]
push edx
push 0xf00ff
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x40a4cc
mov eax, dword [ebp - 0x268]
push eax
call esi
xor eax, eax
jmp 0x40a6ff
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x26c]
cmp eax, ebx
jne 0x40a4e6
mov ecx, dword [ebp - 0x268]
push ecx
call esi
xor eax, eax
jmp 0x40a6ff
lea edx, [ebp - 0x280]
push edx
push 4
lea ecx, [ebp - 0x284]
push ecx
push 0x13
push eax
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
cmp eax, ebx
jne 0x40a536
lea edx, [ebp - 0x27c]
push edx
push str.SeDebugPrivilege
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov ecx, dword [ebp - 0x26c]
lea eax, [ebp - 0x270]
push eax
push 1
push 1
push ebx
push 0x2000000
push ecx
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
jmp 0x40a542
mov edx, dword [ebp - 0x284]
mov dword [ebp - 0x270], edx
mov eax, dword [ebp - 0x270]
push 1
push eax
lea ecx, [ebp - 0x274]
push ecx
mov dword [ebp - 0x274], ebx
mov dword [ebp - 0x278], 0x2000000
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x40a576
mov dword [ebp - 0x278], 0x2000400
lea ecx, [ebp - 0x30]
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 dword [ebp - 4], ebx
mov edi, 7
lea esi, [ebp - 0x318]
mov dword [ebp - 0x2ac], edi
mov dword [ebp - 0x2b4], str.QQPCMgr.exe
call fcn.004026c0
mov byte [ebp - 4], 1
mov esi, 8
mov dword [ebp - 0x29c], edi
cmp dword [eax + 0x18], esi
jb 0x40a5c1
mov edx, dword [eax + 4]
mov dword [ebp - 0x2a4], edx
jmp 0x40a5ca
add eax, 4
mov dword [ebp - 0x2a4], eax
push 0x433550
push 0x433550
lea eax, [ebp - 0x2b4]
push eax
lea ecx, [ebp - 0x2a4]
push ecx
lea edx, [ebp - 0x334]
push str._01_
push edx
call fcn.0041e480
add esp, 0x18
push eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 2
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, [ebp - 0x334]
mov byte [ebp - 4], 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_]
lea ecx, [ebp - 0x318]
mov byte [ebp - 4], 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_]
push 0x44
lea eax, [ebp - 0x2fc]
push ebx
push eax
call sub.MSVCR80.dll_memset
xor eax, eax
add esp, 0xc
cmp dword [ebp - 0x18], esi
mov dword [ebp - 0x294], eax
mov dword [ebp - 0x290], eax
mov dword [ebp - 0x28c], eax
mov dword [ebp - 0x288], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x2fc], 0x44
mov word [ebp - 0x2cc], bx
mov dword [ebp - 0x2d0], 0x81
jae 0x40a675
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x294]
push ecx
mov ecx, dword [ebp - 0x274]
lea edx, [ebp - 0x2fc]
push edx
mov edx, dword [ebp - 0x278]
push ebx
push ecx
push edx
push ebx
push ebx
push ebx
push eax
mov eax, dword [ebp - 0x270]
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 [ebp - 0x294]
cmp eax, ebx
je 0x40a6b9
push eax
call esi
mov eax, dword [ebp - 0x290]
cmp eax, ebx
je 0x40a6c6
push eax
call esi
mov eax, dword [ebp - 0x270]
cmp eax, ebx
je 0x40a6d3
push eax
call esi
mov eax, dword [ebp - 0x268]
cmp eax, ebx
je 0x40a6e0
push eax
call esi
mov eax, dword [ebp - 0x26c]
cmp eax, ebx
je 0x40a6ed
push eax
call esi
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], 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 [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041f808
mov esp, ebp
pop ebp
ret