Function at 0x42df70
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [0x551764]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov edi, edx
mov dword [ebp - 0x248], ecx
mov dword [ebp - 0x240], edi
call fcn.0042a550
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x244], eax
cmp eax, 0xffffffff
je 0x42e1cb
lea ecx, [ebp - 0x238]
mov dword [ebp - 0x238], 0x22c
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
mov ecx, eax
mov dword [ebp - 0x23c], ecx
test ecx, ecx
je 0x42e1bf
nop
test ebx, ebx
jne 0x42e1bf
mov ecx, dword [ebp - 0x230]
call fcn.0042db60
mov dword [esi + 8], eax
test eax, eax
je 0x42e184
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x230]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0x220]
mov dword [esi + 0x14], eax
mov eax, dword [ebp - 0x248]
test eax, eax
je 0x42e02c
push esi
call eax
add esp, 4
mov ebx, eax
test edi, edi
je 0x42e0d4
test bl, 9
jne 0x42e0d4
mov ecx, dword [esi + 0x18]
sub ecx, 1
je 0x42e0c9
sub ecx, 1
jne 0x42e0d4
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 1
push 1
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x42e0d4
lea edx, [ebp - 0x258]
mov ecx, edi
call fcn.0042ac30
mov edx, dword [ebp - 0x258]
mov dword [esi + 0x1c], eax
lea ecx, [eax + edx]
mov dword [esi + 0x20], ecx
test eax, eax
je 0x42e0b2
cmp dword [ebp - 0x254], ebx
jne 0x42e0a9
cmp edx, 0x3000000
jae 0x42e0a9
push esi
call dword [ebp - 0x240]
add esp, 4
mov ebx, eax
push dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push edi
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x42e0d4
mov edx, esi
mov ecx, edi
call fcn.0042dea0
mov ebx, eax
test bl, 2
je 0x42e10f
push dword [ebp - 0x230]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
jne 0x42e0fb
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x42e10f
jmp 0x42e10b
push 3
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [esi + 0x48], 1
test bl, 4
je 0x42e152
mov eax, dword [esi + 8]
xor edi, edi
mov dword [ebp - 0x24c], eax
nop
mov ecx, eax
call fcn.0042ab10
test eax, eax
je 0x42e14e
cmp eax, 5
je 0x42e135
cmp eax, 0x20
jne 0x42e152
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x24c]
inc edi
cmp edi, 0xa
jb 0x42e120
jmp 0x42e152
or dword [esi + 0x48], 2
push dword [esi + 8]
push 0
push dword [0x576b44]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
and ebx, 1
jne 0x42e1ab
lea eax, [ebp - 0x238]
mov dword [ebp - 0x238], 0x22c
push eax
push dword [ebp - 0x244]
call dword [sym.imp.KERNEL32.dll_Process32NextW]
mov ecx, eax
mov dword [ebp - 0x23c], ecx
jmp 0x42e1b1
mov ecx, dword [ebp - 0x23c]
mov edi, dword [ebp - 0x240]
test ecx, ecx
jne 0x42dfe0
push dword [ebp - 0x244]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004c715a
mov esp, ebp
pop ebp
ret