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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4254d8
mov eax, dword fs:[0]
push eax
sub esp, 0x318
mov eax, dword [0x432024]
xor eax, esp
mov dword [esp + 0x310], eax
push ebx
push esi
push edi
mov eax, dword [0x432024]
xor eax, esp
push eax
lea eax, [esp + 0x328]
mov dword fs:[0], eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
lea ecx, [esp + 0x14]
xor edi, edi
push ecx
xor ebx, ebx
push edx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], edi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], edi
call sub.WTSAPI32.dll_WTSQueryUserToken
test eax, eax
jne 0x4029b5
push edi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x4029ca
lea eax, [esp + 0xec]
push eax
push esi
mov dword [esp + 0xf4], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x40297a
lea ecx, [esp + 0x110]
push str.explorer.exe
push ecx
call dword [sym.imp.MSVCR80.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x40295f
mov eax, dword [esp + 0xf4]
lea edx, [esp + 0x20]
push edx
push eax
mov dword [esp + 0x28], edi
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x40295f
mov ecx, dword [ebp + 8]
cmp dword [esp + 0x20], ecx
je 0x402973
lea edx, [esp + 0xec]
push edx
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x402921
jmp 0x40297a
mov ebx, dword [esp + 0xf4]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
cmp ebx, edi
je 0x4029ca
push ebx
push edi
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
cmp ebx, edi
mov dword [esp + 0x18], ebx
je 0x4029ca
lea eax, [esp + 0x14]
push eax
push 0xf00ff
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4029c7
jmp 0x4029bb
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
cmp eax, edi
jne 0x4029d1
cmp ebx, edi
je 0x4029ca
push ebx
call esi
xor eax, eax
jmp 0x402bca
lea ecx, [esp + 0x2c]
push ecx
push 4
lea edx, [esp + 0x38]
push edx
push 0x13
push eax
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
cmp eax, edi
jne 0x402a17
lea eax, [esp + 0x64]
push eax
push str.SeDebugPrivilege
push edi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push ecx
push 1
push 1
push edi
push 0x2000000
push edx
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
jmp 0x402a1f
mov eax, dword [esp + 0x30]
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x10]
push 1
push ecx
lea edx, [esp + 0x24]
push edx
mov dword [esp + 0x28], edi
mov dword [esp + 0x30], 0x2000000
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x402a49
mov dword [esp + 0x24], 0x2000400
mov ebx, 7
lea esi, [esp + 0xb4]
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x54], str.QQPCMgr.exe
call fcn.004026c0
mov dword [esp + 0x330], edi
mov dword [esp + 0x4c], ebx
mov ebx, 8
cmp dword [eax + 0x18], ebx
jb 0x402a80
mov eax, dword [eax + 4]
jmp 0x402a83
add eax, 4
push 0x433550
push 0x433550
lea ecx, [esp + 0x5c]
push ecx
lea edx, [esp + 0x50]
push edx
mov dword [esp + 0x54], eax
lea eax, [esp + 0xe0]
push 0x4278bc
push eax
call fcn.0041e480
add esp, 0x18
lea ecx, [esp + 0xb4]
mov byte [esp + 0x330], 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 esi, dword [esp + 0x28]
cmp esi, edi
je 0x402aed
push 0x4278d4
lea ecx, [esp + 0xd4]
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 esi
lea ecx, [esp + 0xd4]
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 ecx, [esp + 0x70]
push edi
push ecx
call sub.MSVCR80.dll_memset
xor eax, eax
add esp, 0xc
cmp dword [esp + 0xe8], ebx
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0xd4]
mov dword [esp + 0x6c], 0x44
mov word [esp + 0x9c], di
mov dword [esp + 0x98], 0x81
jae 0x402b41
lea eax, [esp + 0xd4]
lea edx, [esp + 0x34]
push edx
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x70]
push ecx
mov ecx, dword [esp + 0x2c]
push edi
push edx
mov edx, dword [esp + 0x20]
push ecx
push edi
push edi
push edi
push eax
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, eax
mov eax, dword [esp + 0x34]
cmp eax, edi
je 0x402b79
push eax
call esi
mov eax, dword [esp + 0x38]
cmp eax, edi
je 0x402b84
push eax
call esi
mov eax, dword [esp + 0x10]
cmp eax, edi
je 0x402b8f
push eax
call esi
mov eax, dword [esp + 0x18]
cmp eax, edi
je 0x402b9a
push eax
call esi
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x402ba5
push eax
call esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x433274], eax
lea ecx, [esp + 0xd0]
mov dword [esp + 0x330], 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 + 0x328]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x310]
xor ecx, esp
call fcn.0041f808
mov esp, ebp
pop ebp
ret