Function at 0x4572f0
Capabilities:
Enumerate process modules
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14c
mov eax, dword [0x4b7080]
xor eax, esp
mov dword [esp + 0x148], eax
push ebx
push esi
push edi
push 0x3e8
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Beep]
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, dword [sym.imp.KERNEL32.dll_OpenProcess]
xor esi, esi
mov dword [esp + 0x144], eax
mov dword [esp + 0xc], esi
cmp eax, 0xffffffff
je 0x457462
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], 0x128
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_Process32First]
push dword [esp + 0x20]
push 0
push 0x410
call edi
mov ebx, eax
test ebx, ebx
je 0x457448
push dword [esp + 0x20]
xor esi, esi
push esi
push 0x410
mov dword [esp + 0x1c], esi
call edi
mov edi, eax
test edi, edi
je 0x4573eb
lea eax, [esp + 0x14]
push eax
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_K32EnumProcessModules]
test eax, eax
je 0x4573e0
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4573e0
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x4573dc
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x18]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_K32EnumProcessModules]
test eax, eax
je 0x4573d5
mov eax, dword [esi]
mov dword [esp + 0x10], eax
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
jmp 0x4573f1
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x4b7c80]
lea ecx, [esp + 0x148]
push ecx
push 8
lea ecx, [esp + 0x154]
add eax, esi
push ecx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov esi, dword [esp + 0xc]
test eax, eax
je 0x45743f
cmp dword [esp + 0x148], 8
jne 0x45743f
mov ecx, 0x4b7c84
lea eax, [esp + 0x14c]
mov ax, word [eax]
cmp ax, word [ecx]
cmove esi, dword [esp + 0x20]
mov dword [esp + 0xc], esi
push ebx
call edi
mov edi, dword [sym.imp.KERNEL32.dll_OpenProcess]
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x148]
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x457362
push esi
push 0
push 0x1fffff
mov dword [0x4be910], esi
call edi
mov dword [0x4be878], eax
call fcn.004482d0
push 0
push 4
lea ecx, [esp + 0x14c]
mov dword [0x4be930], eax
push ecx
add eax, 0xf57fb4
push eax
push dword [0x4be878]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
push dword [0x4be910]
push 0
push 0x1fffff
call edi
mov dword [0x4be878], eax
call fcn.004482d0
mov edx, dword [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
mov dword [0x4be930], eax
push 0
push 0
mov eax, dword [edx]
mov ecx, dword [eax + 4]
add ecx, edx
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::clear_int__bool_]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
push 0xa
push 0
push closesocket
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::ignore_long_long___int64___int_]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::basic_istream_char__struct_std::char_traits_char__::get_void_]
mov ecx, dword [esp + 0x154]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00492363
mov esp, ebp
pop ebp
ret