Function at 0x47f820
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6173dd
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x270
mov eax, dword [0x6ae280]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
mov dword [ebp - 0x27c], esi
cmp esi, 0xffffffff
jne 0x47f89a
mov edx, str.Error_creating_process_snapshot
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.0044fc70
push 0x44fe50
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
jmp 0x47fae0
lea eax, [ebp - 0x260]
mov dword [ebp - 0x260], 0x22c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x47f8d0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, str.Error_getting_first_process
jmp 0x47f87d
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x23c]
mov dword [ebp - 0x18], 0
movups xmmword [ebp - 0x2c], xmm0
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47f8f0
sub ecx, edx
lea eax, [ebp - 0x23c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.00456e90
mov eax, dword [ebx + 8]
mov edx, eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x268], eax
cmp dword [eax + 0x14], 7
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x264], ecx
jbe 0x47f938
mov edx, dword [eax]
mov dword [ebp - 0x268], edx
cmp dword [ebp - 0x18], 7
lea esi, [ebp - 0x2c]
mov eax, dword [ebp - 0x1c]
cmova esi, dword [ebp - 0x2c]
mov dword [ebp - 0x278], esi
cmp ecx, eax
ja 0x47fa80
sub eax, ecx
test ecx, ecx
je 0x47fa0b
inc eax
lea edi, [esi + eax*2]
mov eax, esi
movzx esi, word [edx]
mov dword [ebp - 0x274], edi
mov dword [ebp - 0x270], esi
mov edx, edi
mov edi, 0
sub edx, eax
sar edx, 1
je 0x47f9a2
movzx ecx, word [eax]
cmp cx, si
je 0x47f99a
cmp edx, 1
je 0x47f99c
movzx ecx, word [eax + 2]
add eax, 2
dec edx
cmp cx, si
jne 0x47f988
mov edi, eax
mov ecx, dword [ebp - 0x264]
mov eax, edi
test eax, eax
je 0x47fa80
mov edx, dword [ebp - 0x268]
mov edi, ecx
mov esi, edx
test ecx, ecx
je 0x47f9fa
mov ecx, eax
sub ecx, edx
mov dword [ebp - 0x26c], ecx
movzx edx, word [ecx + esi]
movzx ecx, word [esi]
cmp dx, cx
jne 0x47f9e0
add esi, 2
sub edi, 1
je 0x47f9fa
mov ecx, dword [ebp - 0x26c]
jmp 0x47f9c4
mov esi, dword [ebp - 0x270]
add eax, 2
mov ecx, dword [ebp - 0x264]
mov edi, dword [ebp - 0x274]
jmp 0x47f973
sub eax, dword [ebp - 0x278]
sar eax, 1
cmp eax, 0xffffffff
je 0x47fa80
push dword [ebp - 0x258]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x47fa80
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
mov edx, str.Killed_process_with_name
call fcn.00458fc0
cmp dword [ebp - 0x18], 7
lea edx, [ebp - 0x2c]
push dword [ebp - 0x1c]
cmova edx, dword [ebp - 0x2c]
mov ecx, eax
call fcn.0047fb10
add esp, 4
mov edx, str._and_PID
mov ecx, eax
call fcn.00458fc0
push dword [ebp - 0x258]
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___unsigned_long_int_]
push 0x4591f0
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_______cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_____]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
cmp eax, 7
jbe 0x47fabd
mov edx, dword [ebp - 0x2c]
lea ecx, [eax*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x47fab3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47fb00
push ecx
push edx
call fcn.0061428a
add esp, 8
mov esi, dword [ebp - 0x27c]
lea eax, [ebp - 0x260]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x47f8d0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00614242
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3