Function at 0x40aaa0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40c628
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2a8
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov ecx, 0x18
xor eax, eax
lea edi, [ebp - 0x86]
mov word [ebp - 0x88], bx
mov dword [ebp - 0x10], esp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], ebx
cmp eax, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], ebx
jne 0x40aafe
lea eax, [ebp - 0x88]
push str.explorer.exe
push eax
jmp 0x40ab06
lea ecx, [ebp - 0x88]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_wcscpy]
add esp, 8
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, ebx
mov dword [ebp - 0x24], edi
jne 0x40ab49
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.FindToken___CreateToolhelp32Snapshot_Error:_d
call fcn.0040b440
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, esi
call fcn.0040ad10
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 4]
cmp eax, ebx
jle 0x40ab5d
mov dword [ebp - 0x18], eax
lea edx, [ebp - 0x2b4]
mov dword [ebp - 0x2b4], 0x22c
push edx
push edi
call sub.KERNEL32.dll_Process32FirstW
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40acee
lea eax, [ebp - 0x88]
lea ecx, [ebp - 0x290]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40acc6
mov eax, dword [ebp - 0x2ac]
lea edx, [ebp + 0xc]
push edx
push eax
mov dword [ebp + 0xc], 0xffffffff
mov esi, eax
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x40acb6
lea ecx, [ebp - 0x1c]
call fcn.00409f2c
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x18]
cmp eax, ecx
mov byte [ebp - 4], 1
jne 0x40ac89
push esi
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
je 0x40ac5b
lea ecx, [ebp - 0x20]
push ecx
push 0xf01ff
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40ac2d
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x20]
push str.FindToken___OpenProcessToken_success
mov dword [ebp - 0x14], 1
mov dword [edx], eax
call fcn.0040b440
add esp, 4
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call sub.MFC42u.DLL_CString::CString
jmp 0x40acee
call ebx
push eax
push str.FindToken___OpenProcessToken_error:_d
call fcn.0040b440
add esp, 8
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp - 0x2b4]
push ecx
push edi
call sub.KERNEL32.dll_Process32NextW
jmp 0x40ab7a
call ebx
push eax
push str.FindToken___OpenProcess_error:_d
call fcn.0040b440
add esp, 8
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp - 0x2b4]
push ecx
push edi
call sub.KERNEL32.dll_Process32NextW
jmp 0x40ab7a
push ecx
push eax
push str.FindToken___dwSessionID:_d____nCurSessionID:_d
call fcn.0040b440
add esp, 0xc
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp - 0x2b4]
push ecx
push edi
call sub.KERNEL32.dll_Process32NextW
jmp 0x40ab7a
call ebx
push eax
push str.FindToken___ProcessIdToSessionId_Error:_d
call fcn.0040b440
add esp, 8
lea ecx, [ebp - 0x2b4]
push ecx
push edi
call sub.KERNEL32.dll_Process32NextW
jmp 0x40ab7a
test edi, edi
je 0x40acf9
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8