Function at 0x4b9fa0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x596a59
mov eax, dword fs:[0]
push eax
sub esp, 0x1ac
mov eax, dword [0x5fae30]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x1b8], eax
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x1b0], eax
cmp eax, ebx
je 0x4b9feb
mov byte [eax], bl
cmp esi, ebx
je 0x4b9ffc
push ebx
push 0x5b8750
mov ecx, esi
call fcn.00402a36
push 0x124
lea ecx, [ebp - 0x1a4]
push ebx
push ecx
mov byte [ebp - 0x1a9], bl
mov dword [ebp - 0x1a8], ebx
call fcn.005409b0
add esp, 0xc
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
mov dword [ebp - 0x1b4], edi
cmp edi, 0xffffffff
jne 0x4ba039
xor al, al
jmp 0x4ba201
lea edx, [ebp - 0x1a8]
push edx
push edi
mov dword [ebp - 0x1a8], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x4ba1f4
mov eax, dword [ebp - 0x1b8]
push eax
lea ecx, [ebp - 0x184]
push ecx
call fcn.00564d4d
add esp, 8
test eax, eax
jne 0x4ba1d9
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [ebp - 0x1a0]
cmp ecx, eax
je 0x4ba1d9
push ecx
push ebx
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
cmp edi, ebx
jne 0x4ba12b
cmp esi, ebx
je 0x4ba111
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [ebp - 0x80]
push edx
call fcn.004080a8
push eax
lea eax, [ebp - 0x2c]
push str.Failed_to_open_process_with_error:
push eax
mov dword [ebp - 4], ebx
call fcn.0040367f
add esp, 0x14
push 0xffffffffffffffff
push ebx
push eax
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.0040373d
mov edi, 0x10
cmp dword [ebp - 0x18], edi
jb 0x4ba0ec
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.0053ed60
add esp, 4
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x6c], edi
jb 0x4ba111
mov edx, dword [ebp - 0x80]
push edx
call fcn.0053ed60
add esp, 4
cmp dword [ebp - 0x1b0], ebx
je 0x4ba1d9
mov eax, dword [ebp - 0x1b0]
mov byte [eax], 1
jmp 0x4ba1d9
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x4ba1cb
cmp esi, ebx
je 0x4ba1bc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x64]
push ecx
call fcn.004080a8
push eax
lea edx, [ebp - 0x48]
push str.Failed_to_terminate_process_with_error:
push edx
mov dword [ebp - 4], 2
call fcn.0040367f
add esp, 0x14
push 0xffffffffffffffff
push ebx
push eax
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.0040373d
cmp dword [ebp - 0x34], 0x10
jb 0x4ba189
mov eax, dword [ebp - 0x48]
push eax
call fcn.0053ed60
add esp, 4
cmp dword [ebp - 0x50], 0x10
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
mov dword [ebp - 4], 0xffffffff
jb 0x4ba1af
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.0053ed60
add esp, 4
mov dword [ebp - 0x50], 0xf
mov dword [ebp - 0x54], ebx
mov byte [ebp - 0x64], bl
mov eax, dword [ebp - 0x1b0]
cmp eax, ebx
je 0x4ba1d2
mov byte [eax], 1
jmp 0x4ba1d2
mov byte [ebp - 0x1a9], 1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x1b4]
lea edx, [ebp - 0x1a8]
push edx
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x4ba058
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 0x1a9]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053fd20
mov esp, ebp
pop ebp
ret