Function at 0x497f70
Capabilities:
Enumerate process modules
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x464
mov eax, dword [0x5c4680]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x438], 0x22c
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x448], eax
cmp dword [ebp - 0x448], 0xffffffff
jne 0x497fca
push 0x485f00
push 0x580410
push 0x5cc210
call fcn.00485150
add esp, 8
mov ecx, eax
call fcn.00486820
xor al, al
jmp 0x49823c
lea eax, [ebp - 0x438]
push eax
mov ecx, dword [ebp - 0x448]
push ecx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x49822d
mov edx, dword [ebp - 0x430]
push edx
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x444], eax
cmp dword [ebp - 0x444], 0
je 0x498212
mov dword [ebp - 0x440], 0x400
xor ecx, ecx
mov eax, dword [ebp - 0x440]
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0053143c
add esp, 4
mov dword [ebp - 0x458], eax
mov eax, dword [ebp - 0x458]
mov dword [ebp - 0x43c], eax
mov dword [ebp - 0x450], 0
lea ecx, [ebp - 0x454]
push ecx
mov edx, dword [ebp - 0x440]
shl edx, 2
push edx
mov eax, dword [ebp - 0x43c]
push eax
mov ecx, dword [ebp - 0x444]
push ecx
call sub.KERNEL32.dll_K32EnumProcessModules
test eax, eax
je 0x498134
mov dword [ebp - 0x44c], 0
jmp 0x498098
mov edx, dword [ebp - 0x44c]
add edx, 1
mov dword [ebp - 0x44c], edx
mov eax, dword [ebp - 0x454]
shr eax, 2
cmp dword [ebp - 0x44c], eax
jae 0x49812f
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
mov edx, dword [ebp - 0x44c]
mov eax, dword [ebp - 0x43c]
mov ecx, dword [eax + edx*4]
push ecx
mov edx, dword [ebp - 0x444]
push edx
call sub.KERNEL32.dll_K32GetModuleFileNameExW
test eax, eax
je 0x49812a
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x20c]
push ecx
call fcn.0054a20d
add esp, 8
test eax, eax
jne 0x49812a
movzx edx, byte [ebp + 0xc]
test edx, edx
je 0x498109
push 0
mov eax, dword [ebp - 0x444]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x49812a
mov ecx, dword [ebp - 0x448]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x444]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x49823c
jmp 0x498089
jmp 0x4981c1
mov eax, dword [ebp - 0x440]
shl eax, 2
cmp dword [ebp - 0x454], eax
jae 0x4981c1
cmp dword [ebp - 0x43c], 0
je 0x4981b2
mov ecx, dword [ebp - 0x43c]
mov dword [ebp - 0x45c], ecx
mov edx, dword [ebp - 0x45c]
push edx
call fcn.00531445
add esp, 4
mov dword [ebp - 0x43c], 0
mov eax, dword [ebp - 0x440]
shl eax, 1
mov dword [ebp - 0x440], eax
xor ecx, ecx
mov eax, dword [ebp - 0x440]
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0053143c
add esp, 4
mov dword [ebp - 0x460], eax
mov eax, dword [ebp - 0x460]
mov dword [ebp - 0x43c], eax
mov ecx, dword [ebp - 0x450]
add ecx, 1
mov dword [ebp - 0x450], ecx
cmp dword [ebp - 0x450], 0
je 0x4981d7
cmp dword [ebp - 0x450], 4
jl 0x498051
cmp dword [ebp - 0x43c], 0
je 0x498205
mov edx, dword [ebp - 0x43c]
mov dword [ebp - 0x464], edx
mov eax, dword [ebp - 0x464]
push eax
call fcn.00531445
add esp, 4
mov dword [ebp - 0x43c], 0
mov ecx, dword [ebp - 0x444]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [ebp - 0x438]
push edx
mov eax, dword [ebp - 0x448]
push eax
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x497fe5
mov ecx, dword [ebp - 0x448]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005313f0
mov esp, ebp
pop ebp
ret