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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x425124
mov eax, dword fs:[0]
push eax
sub esp, 0x550
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 - 0x490]
xor ebx, ebx
push eax
push ecx
mov dword [ebp - 0x498], ebx
mov dword [ebp - 0x488], ebx
mov dword [ebp - 0x490], ebx
mov dword [ebp - 0x48c], ebx
call sub.WTSAPI32.dll_WTSQueryUserToken
test eax, eax
jne 0x40b876
push ebx
push 2
xor edi, edi
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x40b86f
lea edx, [ebp - 0x484]
push edx
push esi
mov dword [ebp - 0x484], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x40b82b
lea eax, [ebp - 0x460]
push str.explorer.exe
push eax
call dword [sym.imp.MSVCR80.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x40b812
mov edx, dword [ebp - 0x47c]
lea ecx, [ebp - 0x488]
push ecx
push edx
mov dword [ebp - 0x488], ebx
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x40b812
mov eax, dword [ebp + 8]
cmp dword [ebp - 0x488], eax
je 0x40b825
lea ecx, [ebp - 0x484]
push ecx
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40b7d0
jmp 0x40b82b
mov edi, dword [ebp - 0x47c]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
cmp edi, ebx
je 0x40b86f
push edi
push ebx
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp eax, ebx
mov dword [ebp - 0x488], eax
je 0x40b86f
lea edx, [ebp - 0x490]
push edx
push 0xf00ff
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x40b87c
mov eax, dword [ebp - 0x488]
push eax
call esi
xor eax, eax
jmp 0x40bb4a
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x490]
cmp eax, ebx
jne 0x40b896
mov ecx, dword [ebp - 0x488]
push ecx
call esi
xor eax, eax
jmp 0x40bb4a
lea edx, [ebp - 0x498]
push edx
push 4
lea ecx, [ebp - 0x4a4]
push ecx
push 0x13
push eax
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
cmp eax, ebx
jne 0x40b8e6
lea edx, [ebp - 0x4a0]
push edx
push str.SeDebugPrivilege
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov ecx, dword [ebp - 0x490]
lea eax, [ebp - 0x48c]
push eax
push 1
push 1
push ebx
push 0x2000000
push ecx
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
jmp 0x40b8f2
mov edx, dword [ebp - 0x4a4]
mov dword [ebp - 0x48c], edx
mov eax, dword [ebp - 0x48c]
push 1
push eax
lea ecx, [ebp - 0x494]
push ecx
mov dword [ebp - 0x494], ebx
mov dword [ebp - 0x49c], 0x2000000
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x40b926
mov dword [ebp - 0x49c], 0x2000400
push str._CreateTime
lea ecx, [ebp - 0x238]
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 edx, [ebp - 0x21a]
push ebx
mov dword [ebp - 4], ebx
push edx
mov word [ebp - 0x21c], bx
call sub.MSVCR80.dll_memset
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push 0x4288c4
lea eax, [ebp - 0x21c]
push 0x103
push eax
call dword [sym.imp.MSVCR80.dll__snwprintf]
add esp, 0x10
lea ecx, [ebp - 0x21c]
push ecx
lea ecx, [ebp - 0x238]
call dword [0x42729c]
mov ebx, 8
cmp dword [ebp - 0x220], ebx
mov edi, 7
mov dword [ebp - 0x4bc], edi
jb 0x40b9b0
mov edx, dword [ebp - 0x234]
mov dword [ebp - 0x4c4], edx
jmp 0x40b9bc
lea eax, [ebp - 0x234]
mov dword [ebp - 0x4c4], eax
lea esi, [ebp - 0x558]
mov dword [ebp - 0x4dc], edi
mov dword [ebp - 0x4e4], str._startboot
mov dword [ebp - 0x4ec], edi
mov dword [ebp - 0x4f4], str.QQPCLeakScan.exe
call fcn.004026c0
mov byte [ebp - 4], 1
mov dword [ebp - 0x4cc], edi
cmp dword [eax + 0x18], ebx
jb 0x40ba01
mov ecx, dword [eax + 4]
mov dword [ebp - 0x4d4], ecx
jmp 0x40ba0a
add eax, 4
mov dword [ebp - 0x4d4], eax
lea edx, [ebp - 0x4c4]
push edx
lea eax, [ebp - 0x4e4]
push eax
lea ecx, [ebp - 0x4f4]
push ecx
lea edx, [ebp - 0x4d4]
push edx
lea eax, [ebp - 0x254]
push str._01__2_3
push eax
call fcn.0041e480
add esp, 0x18
lea ecx, [ebp - 0x558]
mov byte [ebp - 4], 3
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 ecx, [ebp - 0x53c]
push 0
push ecx
call sub.MSVCR80.dll_memset
xor eax, eax
add esp, 0xc
cmp dword [ebp - 0x23c], ebx
mov dword [ebp - 0x4b4], eax
mov dword [ebp - 0x4b0], eax
mov dword [ebp - 0x4ac], eax
mov dword [ebp - 0x4a8], eax
mov eax, dword [ebp - 0x250]
mov dword [ebp - 0x53c], 0x44
mov dword [ebp - 0x510], 0x81
mov word [ebp - 0x50c], 0
jae 0x40baa8
lea eax, [ebp - 0x250]
lea edx, [ebp - 0x4b4]
push edx
mov edx, dword [ebp - 0x494]
lea ecx, [ebp - 0x53c]
push ecx
mov ecx, dword [ebp - 0x49c]
push 0
push edx
mov edx, dword [ebp - 0x48c]
push ecx
push 0
push 0
push 0
push eax
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, eax
mov eax, dword [ebp - 0x4b4]
test eax, eax
je 0x40baf1
push eax
call esi
mov eax, dword [ebp - 0x4b0]
test eax, eax
je 0x40bafe
push eax
call esi
mov eax, dword [ebp - 0x48c]
test eax, eax
je 0x40bb0b
push eax
call esi
mov eax, dword [ebp - 0x488]
test eax, eax
je 0x40bb18
push eax
call esi
mov eax, dword [ebp - 0x490]
test eax, eax
je 0x40bb25
push eax
call esi
lea ecx, [ebp - 0x254]
mov byte [ebp - 4], 0
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 - 0x238]
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