Function at 0x40ccd0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x461e93
mov eax, dword fs:[0]
push eax
sub esp, 0x460
mov eax, dword [0x47a040]
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 - 4], 0
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
xorps xmm0, xmm0
mov edi, eax
movlpd qword [ebp - 0x224], xmm0
push 0x14
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 0
call fcn.00437bbc
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [ebp - 0x224], eax
mov byte [ebp - 4], 1
test edi, edi
je 0x40cd9f
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x40cd9f
push 0x228
lea eax, [ebp - 0x460]
push 0
push eax
call fcn.00439ab0
add esp, 0xc
mov dword [ebp - 0x464], 0x22c
lea eax, [ebp - 0x464]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x40cdea
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x224]
call fcn.00405c40
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40cdcc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
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.004378e6
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp - 0x224]
call fcn.00405c80
mov ebx, dword [sym.imp.SHLWAPI.dll_StrCmpIW]
nop dword [eax + eax]
push edi
lea eax, [ebp - 0x440]
push eax
call ebx
test eax, eax
jne 0x40ce27
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x224]
call fcn.00405dd0
lea eax, [ebp - 0x464]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x40ce00
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x220], 0
je 0x40cd9f
mov eax, dword [ebp - 0x224]
mov esi, dword [eax]
cmp esi, eax
je 0x40cd9f
mov ebx, dword [sym.imp.KERNEL32.dll_OpenProcess]
push 0x208
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.00439ab0
mov edi, dword [esi + 0x10]
add esp, 0xc
push edi
push 0
push 0x410
call ebx
mov ebx, eax
test ebx, ebx
jne 0x40cea3
push edi
push eax
push 0x1000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x40cfd4
push 0x104
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x468], 1
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_K32GetModuleFileNameExW]
test eax, eax
jne 0x40cf84
mov dword [ebp - 0x22c], 0x104
call fcn.00404660
mov ecx, eax
test ecx, ecx
je 0x40d02d
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x228], eax
push str.llProcessIm
lea eax, [ebp - 0x228]
mov byte [ebp - 4], 2
push str.QueryFu_sageNameW
push eax
call fcn.00405db0
mov edi, dword [ebp - 0x228]
add esp, 0xc
cmp byte [0x47cff8], 0
jne 0x40cf3e
push edi
push str.Kernel32.dll
mov byte [0x47cff8], 1
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x47cff4], eax
jmp 0x40cf43
mov eax, dword [0x47cff4]
test eax, eax
je 0x40cf5e
lea ecx, [ebp - 0x22c]
push ecx
lea ecx, [ebp - 0x21c]
push ecx
push 0
push ebx
call eax
test eax, eax
jne 0x40cf68
mov dword [ebp - 0x468], 0
or eax, 0xffffffff
mov byte [ebp - 4], 1
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x40cf84
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x468], 0
je 0x40cfd4
lea eax, [ebp - 0x21c]
push eax
push dword [ebp + 8]
call fcn.00442342
mov ebx, dword [sym.imp.KERNEL32.dll_OpenProcess]
add esp, 8
test eax, eax
jne 0x40cfda
push dword [esi + 0x10]
push eax
push 1
call ebx
mov edi, eax
test edi, edi
je 0x40cfda
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x40cfda
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40cfda
mov ebx, dword [sym.imp.KERNEL32.dll_OpenProcess]
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
je 0x40d004
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x40d000
nop dword [eax]
cmp esi, dword [eax + 8]
jne 0x40d000
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x40cff0
mov esi, eax
jmp 0x40d01c
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x40d01c
nop
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x40d010
cmp esi, dword [ebp - 0x224]
jne 0x40ce63
jmp 0x40cd9f
push 0x80004005
call fcn.00401920
int3