Function at 0x404760
Capabilities:
Enumerate processes
Print debug messages
Terminate process
Terminate process by name

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x405be8
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
push edi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
push 0x128
mov edi, eax
call sub.MFC42.DLL_operatornew
add esp, 4
mov esi, eax
push esi
push edi
mov dword [esi], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x4048a2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x4047db
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
lea ebx, [esi + 0x24]
lea ecx, [esp + 0x10]
push ebx
call sub.MFC42.DLL_CString::CString_2
mov ebp, dword [esp + 0x28]
mov eax, dword [esp + 0x10]
push ebp
push eax
mov dword [esp + 0x28], 0
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
test eax, eax
jne 0x40485e
mov ecx, dword [esi + 8]
push ecx
push eax
push 0x100001
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
push edi
jne 0x4049a8
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
push esi
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x404891
push ebx
lea ecx, [esp + 0x14]
call fcn.00405402
mov edx, dword [esp + 0x10]
push ebp
push edx
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
test eax, eax
je 0x4048ca
push esi
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x404869
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 0xffffffff
call sub.MFC42.DLL_CString::CString
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
mov eax, dword [esi + 8]
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [esp + 0x14], eax
test eax, eax
jne 0x404927
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::CString_1
mov byte [esp + 0x20], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebp
lea ecx, [esp + 0x30]
push str.Open__s_failed__code:_lu
push ecx
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x38]
add esp, 0x10
push edx
call ebx
lea ecx, [esp + 0x28]
mov byte [esp + 0x20], 0
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x14]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x4049a7
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::CString_1
mov byte [esp + 0x20], 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebp
lea eax, [esp + 0x30]
push str.Kill__s_failed__code:_lu
push eax
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x38]
add esp, 0x10
push ecx
call ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x28]
mov byte [esp + 0x20], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 0xffffffff
call sub.MFC42.DLL_CString::CString
jmp 0x4048b2