Function at 0x4045c0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48d901
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x10464
call fcn.00481910
mov eax, dword [0x5a7f20]
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 dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
xor ebx, ebx
push ebx
xor esi, esi
push 2
mov dword [ebp - 0x10474], eax
mov dword [ebp - 0x1044c], ebx
mov dword [ebp - 0x10454], esi
mov dword [ebp - 4], ebx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
mov dword [ebp - 0x10450], edi
cmp edi, ebx
je 0x4048f0
cmp edi, 0xffffffff
je 0x4048d4
push 0x228
lea ecx, [ebp - 0x10444]
push ebx
push ecx
mov dword [ebp - 0x1044c], 1
call fcn.00481000
add esp, 0xc
lea edx, [ebp - 0x10448]
push edx
push edi
mov dword [ebp - 0x10448], 0x22c
call sub.KERNEL32.dll_Process32FirstW
lea esp, [esp]
cmp eax, ebx
je 0x4048d4
lea eax, [ebp - 0x10424]
push eax
call fcn.004826ad
add esp, 4
cmp eax, ebx
je 0x40489e
mov ecx, eax
lea edi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x404694
sub ecx, edi
sar ecx, 1
add ecx, ecx
push ecx
push eax
push ebx
call fcn.00438580
mov ecx, 0x6fcb9ae
add esp, 0xc
cmp eax, ecx
jne 0x404898
mov edx, dword [0x5a8e20]
mov eax, dword [edx + 0xc]
mov ecx, 0x5a8e20
call eax
add eax, 0x10
mov dword [ebp - 0x1046c], eax
mov byte [ebp - 4], 1
mov edx, dword [0x5a8e20]
mov eax, dword [edx + 0xc]
mov ecx, 0x5a8e20
call eax
add eax, 0x10
mov dword [ebp - 0x10468], eax
push ebx
mov byte [ebp - 4], 2
push 0x404118
lea ecx, [ebp - 0x10468]
mov dword [ebp - 0x10470], ebx
call fcn.00406310
mov dword [ebp - 0x10464], ebx
mov dword [ebp - 0x10460], ebx
mov dword [ebp - 0x1045c], ebx
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x10440]
lea ecx, [ebp - 0x10458]
push ecx
push eax
mov dword [ebp - 0x10470], eax
mov dword [ebp - 0x10458], ebx
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x404754
mov edx, dword [ebp - 0x10458]
mov dword [ebp - 0x10464], edx
mov eax, dword [ebp - 0x10440]
push eax
call fcn.00404940
mov ecx, dword [ebp - 0x10440]
push ecx
push ebx
push 0x410
mov dword [ebp - 0x10460], eax
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov dword [ebp - 0x10454], esi
cmp esi, ebx
je 0x40483e
cmp esi, 0xffffffff
je 0x40483e
push 0x206
lea eax, [ebp - 0x21a]
xor edx, edx
push ebx
push eax
mov word [ebp - 0x21c], dx
call fcn.00481000
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x21c]
push ecx
push ebx
push esi
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExW]
test eax, eax
je 0x4047da
lea edx, [ebp - 0x21c]
push edx
lea ecx, [ebp - 0x1046c]
call fcn.00405c80
push 0xfffe
lea ecx, [ebp - 0x1021a]
xor eax, eax
push ebx
push ecx
mov word [ebp - 0x1021c], ax
call fcn.00481000
add esp, 0xc
lea edx, [ebp - 0x1021c]
push edx
mov ecx, esi
call fcn.00404ab0
cmp eax, ebx
jbe 0x40481c
lea eax, [ebp - 0x1021c]
push eax
lea ecx, [ebp - 0x10468]
call fcn.00405c80
mov ecx, dword [ebp - 0x10460]
mov edx, esi
call fcn.00404bc0
push esi
mov dword [ebp - 0x1045c], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov dword [ebp - 0x10454], esi
mov edx, dword [ebp - 0x10474]
lea ecx, [ebp - 0x10470]
push ecx
push edx
call fcn.00405ec0
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x10468]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404876
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x1046c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404898
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebp - 0x10450]
lea ecx, [ebp - 0x10448]
push ecx
push edi
mov dword [ebp - 0x10448], 0x22c
call sub.KERNEL32.dll_Process32NextW
jmp 0x404670
cmp edi, ebx
je 0x4048f0
cmp edi, 0xffffffff
je 0x4048f0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x10450], ebx
mov edi, dword [ebp - 0x10450]
cmp esi, ebx
je 0x404900
cmp esi, 0xffffffff
je 0x404900
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, ebx
je 0x404910
cmp edi, 0xffffffff
je 0x404910
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x1044c]
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.00480aee
mov esp, ebp
pop ebp
ret 4