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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x464
mov eax, dword [0x599680]
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 0x471a5a
push 0x45f9d0
push 0x558320
push 0x5a11d0
call fcn.0045ec10
add esp, 8
mov ecx, eax
call fcn.00460320
xor al, al
jmp 0x471ccc
lea eax, [ebp - 0x438]
push eax
mov ecx, dword [ebp - 0x448]
push ecx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x471cbd
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 0x471ca2
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.00509fac
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 0x471bc4
mov dword [ebp - 0x44c], 0
jmp 0x471b28
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 0x471bbf
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 0x471bba
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x20c]
push ecx
call fcn.00522d8d
add esp, 8
test eax, eax
jne 0x471bba
movzx edx, byte [ebp + 0xc]
test edx, edx
je 0x471b99
push 0
mov eax, dword [ebp - 0x444]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x471bba
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 0x471ccc
jmp 0x471b19
jmp 0x471c51
mov eax, dword [ebp - 0x440]
shl eax, 2
cmp dword [ebp - 0x454], eax
jae 0x471c51
cmp dword [ebp - 0x43c], 0
je 0x471c42
mov ecx, dword [ebp - 0x43c]
mov dword [ebp - 0x45c], ecx
mov edx, dword [ebp - 0x45c]
push edx
call fcn.00509fb5
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.00509fac
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 0x471c67
cmp dword [ebp - 0x450], 4
jl 0x471ae1
cmp dword [ebp - 0x43c], 0
je 0x471c95
mov edx, dword [ebp - 0x43c]
mov dword [ebp - 0x464], edx
mov eax, dword [ebp - 0x464]
push eax
call fcn.00509fb5
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 0x471a75
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.00509f60
mov esp, ebp
pop ebp
ret