Function at 0x40cb90
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov eax, dword [0x401800]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
mov edi, ecx
push 2
mov dword [ebp - 0x19c], edi
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x1a0], eax
cmp eax, 0xffffffff
je 0x40ce11
lea ecx, [ebp - 0x198]
mov dword [ebp - 0x198], 0x128
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_Process32First]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, eax
test ebx, ebx
je 0x40cdf8
nop
lea eax, [ebp - 0x174]
mov ecx, edi
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x40cc18
test dl, dl
je 0x40cc14
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x40cc18
add ecx, 2
add eax, 2
test dl, dl
jne 0x40cbf8
xor eax, eax
jmp 0x40cc1d
sbb eax, eax
or eax, 1
test eax, eax
jne 0x40cddb
push dword [ebp - 0x190]
push eax
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x40cd58
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
xor ecx, ecx
test eax, eax
je 0x40ccd8
call fcn.0040c4f0
mov esi, eax
test esi, esi
je 0x40cd44
cmp dword [esi], 1
ja 0x40cd44
lea eax, [ebp - 0x70]
push eax
call fcn.0041d99f
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.0041d55d
lea eax, [ebp - 0x4c]
push eax
push 0x40954c
lea eax, [ebp - 0x18]
push 0x14
push eax
call fcn.0041d982
movzx eax, word [ebp - 0x68]
add esp, 0x1c
push dword [ebp - 0x19c]
push 0x4096e0
push eax
lea eax, [ebp - 0x18]
push eax
push 0x40953c
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0x4096fc
push esi
call fcn.0040c600
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 0x20
push edi
call esi
mov edi, dword [ebp - 0x19c]
jmp 0x40cddb
call fcn.0040c4f0
mov esi, eax
test esi, esi
je 0x40cd44
cmp dword [esi], 3
ja 0x40cd44
lea eax, [ebp - 0x60]
push eax
call fcn.0041d99f
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.0041d55d
lea eax, [ebp - 0x4c]
push eax
push 0x40954c
lea eax, [ebp - 0x18]
push 0x14
push eax
call fcn.0041d982
movzx eax, word [ebp - 0x58]
add esp, 0x1c
push ebx
push dword [ebp - 0x19c]
push 0x4096e0
push eax
lea eax, [ebp - 0x18]
push eax
push 0x409544
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0x4096a4
push esi
call fcn.0040c600
add esp, 0x24
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call esi
mov edi, dword [ebp - 0x19c]
jmp 0x40cddb
xor ecx, ecx
call fcn.0040c4f0
mov esi, eax
test esi, esi
je 0x40cdcf
cmp dword [esi], 3
ja 0x40cdcf
lea eax, [ebp - 0x28]
push eax
call fcn.0041d99f
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.0041d55d
lea eax, [ebp - 0x4c]
push eax
push 0x40954c
lea eax, [ebp - 0x18]
push 0x14
push eax
call fcn.0041d982
add esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [ebp - 0x19c]
push eax
movzx eax, word [ebp - 0x20]
push edi
push 0x4096e0
push eax
lea eax, [ebp - 0x18]
push eax
push 0x409544
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0x409730
push esi
call fcn.0040c600
add esp, 0x24
jmp 0x40cdd5
mov edi, dword [ebp - 0x19c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x198]
push eax
push dword [ebp - 0x1a0]
call dword [sym.imp.KERNEL32.dll_Process32Next]
mov ebx, eax
test ebx, ebx
jne 0x40cbf0
push dword [ebp - 0x1a0]
call esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041c3ed
mov esp, ebp
pop ebp
ret
xor ecx, ecx
call fcn.0040c4f0
mov esi, eax
test esi, esi
je 0x40ce80
cmp dword [esi], 3
ja 0x40ce80
lea eax, [ebp - 0x28]
push eax
call fcn.0041d99f
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.0041d55d
lea eax, [ebp - 0x4c]
push eax
push 0x40954c
lea eax, [ebp - 0x18]
push 0x14
push eax
call fcn.0041d982
add esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
movzx eax, word [ebp - 0x20]
push edi
push 0x4096e0
push eax
lea eax, [ebp - 0x18]
push eax
push 0x409544
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0x409778
push esi
call fcn.0040c600
add esp, 0x24
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041c3ed
mov esp, ebp
pop ebp
ret