Function at 0x40b250
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4545d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x234
push ebx
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
lea eax, [ebp - 0x240]
push eax
push ebx
mov dword [ebp - 0x240], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x40b2b1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
push esi
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.00401560
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
mov esi, dword [eax - 0xc]
test esi, esi
jns 0x40b2d8
push 0x80070057
call fcn.004018e0
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, esi
or ecx, edx
jge 0x40b2f5
push esi
lea ecx, [ebp - 0x10]
call fcn.00401740
mov eax, dword [ebp - 0x10]
lea ecx, [esi + 1]
push ecx
push eax
call fcn.0043e869
mov eax, dword [ebp - 0x10]
add esp, 8
cmp esi, dword [eax - 8]
jg 0x40b2ce
mov dword [eax - 0xc], esi
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov word [eax + esi*2], cx
lea eax, [ebp - 0x240]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
or esi, 0xffffffff
test eax, eax
je 0x40b4b5
push edi
lea edi, [ebp - 0x21c]
shr edi, 0x10
mov dword [ebp - 0x14], edi
lea esp, [esp]
mov eax, dword [section..data]
mov ecx, section..data
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp + 8], esi
mov byte [ebp - 4], 1
test edi, edi
jne 0x40b37b
lea eax, [ebp - 0x21c]
movzx edi, ax
mov ecx, edi
call fcn.00401300
test eax, eax
je 0x40b3a6
push edi
push eax
lea ecx, [ebp + 8]
call fcn.00401490
jmp 0x40b3a3
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b384
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp + 8]
call fcn.004017b0
mov esi, dword [ebp + 8]
mov byte [ebp - 4], 2
mov edi, dword [esi - 0xc]
test edi, edi
js 0x40b2ce
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x40b3d2
push edi
lea ecx, [ebp + 8]
call fcn.00401740
mov esi, dword [ebp + 8]
lea eax, [edi + 1]
push eax
push esi
call fcn.0043e869
add esp, 8
cmp edi, dword [esi - 8]
jg 0x40b2ce
xor eax, eax
mov dword [esi - 0xc], edi
mov word [esi + edi*2], ax
mov eax, dword [ebp - 0x10]
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x40b522
mov ecx, esi
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x40b42b
test dx, dx
je 0x40b427
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x40b42b
add ecx, 4
add eax, 4
test dx, dx
jne 0x40b405
xor eax, eax
jmp 0x40b430
sbb eax, eax
or eax, 1
test eax, eax
jne 0x40b455
push dword [ebp - 0x238]
push eax
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esi - 8]
push esi
call fcn.0043e3ad
add esp, 8
test eax, eax
js 0x40b2ce
cmp eax, dword [esi - 8]
jg 0x40b2ce
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
add esi, 0xfffffff0
mov byte [ebp - 4], cl
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40b498
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x240]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
mov edi, dword [ebp - 0x14]
test eax, eax
jne 0x40b340
or esi, 0xffffffff
pop edi
mov eax, dword [ebp - 0x10]
push dword [eax - 8]
push eax
call fcn.0043e3ad
mov edx, eax
add esp, 8
test edx, edx
js 0x40b2ce
mov ecx, dword [ebp - 0x10]
cmp edx, dword [ecx - 8]
jg 0x40b2ce
mov dword [ecx - 0xc], edx
mov eax, dword [ebp - 0x10]
xor ecx, ecx
push ebx
mov word [eax + edx*2], cx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
pop esi
jg 0x40b50f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov al, 1
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.004018e0
int3