Function at 0x409800
Capabilities:
Enumerate processes

Disassembly:
push 0xffffffffffffffff
push 0x42761b
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x43914c]
xor eax, esp
mov dword [esp + 0x248], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x43914c]
xor eax, esp
push eax
lea eax, [esp + 0x260]
mov dword fs:[0], eax
lea eax, [esp + 0x24]
xor ebp, ebp
push eax
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x28], ebp
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.DLL_ProcessIdToSessionId]
cmp dword [esp + 0x24], ebp
je 0x409928
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_GetThreadDesktop]
push 0x10000000
push ebp
push ebp
push str.Default
mov dword [esp + 0x2c], eax
call dword [sym.imp.USER32.dll_OpenDesktopW]
cmp eax, ebp
je 0x40988f
push eax
call dword [sym.imp.USER32.dll_SetThreadDesktop]
mov ebp, dword [sym.imp.USER32.dll_FindWindowW]
mov edi, dword [sym.imp.USER32.dll_FindWindowExW]
xor ebx, ebx
lea ecx, [ecx]
push 0
push 0x42f69c
call ebp
test eax, eax
je 0x4098e9
push 0
push 0x42f6ac
push 0
push eax
call edi
test eax, eax
je 0x4098e2
push 0
push 0x42f6d0
push 0
push eax
call edi
test eax, eax
je 0x4098db
lea ecx, [esp + 0x18]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
jmp 0x4098f3
mov esi, str._fsve
jmp 0x4098ee
mov esi, str._fsde
jmp 0x4098ee
mov esi, str._fpme
call fcn.00401ad0
cmp dword [esp + 0x18], 4
ja 0x40990d
push 0x64
call dword [sym.imp.KERNEL32.DLL_Sleep]
inc ebx
cmp ebx, 0x12c
jl 0x4098a0
jmp 0x409917
mov esi, str._fok
call fcn.00401ad0
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x409926
push eax
call dword [sym.imp.USER32.dll_SetThreadDesktop]
xor ebp, ebp
mov eax, dword [esp + 0x18]
cmp eax, ebp
jne 0x409a35
mov esi, str._fer
call fcn.00401ad0
mov dword [esp + 0x1c], ebp
or edi, 0xffffffff
push ebp
push 0xf
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, ebp
je 0x409a0c
lea edx, [esp + 0x2c]
push edx
push esi
mov dword [esp + 0x34], 0x22c
call sub.KERNEL32.DLL_Process32FirstW
test eax, eax
je 0x409a05
lea eax, [esp + 0x2c]
push eax
push esi
call sub.KERNEL32.DLL_Process32NextW
test eax, eax
je 0x409a05
mov edx, dword [esp + 0x34]
lea ecx, [esp + 0x20]
push ecx
push edx
mov dword [esp + 0x28], ebp
call dword [sym.imp.KERNEL32.DLL_ProcessIdToSessionId]
cmp dword [esp + 0x20], ebp
je 0x4099ec
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x54]
call fcn.004033a0
mov eax, dword [eax]
push str.explorer.exe
push eax
call fcn.00417669
add esp, 8
cmp eax, ebp
mov dword [esp + 0x268], edi
mov eax, dword [esp + 0x28]
sete bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4099e8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
jne 0x4099fd
lea ecx, [esp + 0x2c]
push ecx
push esi
call sub.KERNEL32.DLL_Process32NextW
test eax, eax
jne 0x409985
jmp 0x409a05
mov edx, dword [esp + 0x34]
mov dword [esp + 0x18], edx
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [esp + 0x18]
cmp eax, 4
ja 0x409a35
push 0x64
call dword [sym.imp.KERNEL32.DLL_Sleep]
mov eax, dword [esp + 0x1c]
inc eax
cmp eax, 0x12c
mov dword [esp + 0x1c], eax
jl 0x409945
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x260]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x248]
xor ecx, esp
call fcn.00416b64
add esp, 0x258
ret