Function at 0x10005110
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [0x10361e80]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
mov esi, ecx
push 2
mov dword [ebp - 0x240], esi
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
mov dword [ebp - 0x244], ebx
cmp ebx, 0xffffffff
jne 0x10005170
mov edx, str.CreateToolhelp32Snapshot_failed.
mov ecx, 0x1036a678
call fcn.100094e0
push eax
call fcn.10009790
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101465c2
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x238]
mov dword [ebp - 0x238], 0x22c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x100051c0
mov edx, str.Process32First_failed.
mov ecx, 0x1036a678
call fcn.100094e0
push eax
call fcn.10009790
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101465c2
mov esp, ebp
pop ebp
ret
xorps xmm0, xmm0
mov dword [ebp - 0x24c], 0
lea ecx, [ebp - 0x214]
mov dword [ebp - 0x248], 0
movups xmmword [ebp - 0x25c], xmm0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100051e7
sub ecx, edx
lea eax, [ebp - 0x214]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x25c]
call fcn.1000a380
cmp dword [esi + 0x14], 7
mov eax, esi
jbe 0x10005213
mov eax, dword [esi]
mov ecx, dword [ebp - 0x248]
lea edi, [ebp - 0x25c]
mov ebx, dword [ebp - 0x240]
cmp ecx, 7
mov edx, dword [ebp - 0x25c]
mov esi, dword [ebp - 0x24c]
cmova edi, edx
mov dword [ebp - 0x23c], edx
cmp esi, dword [ebx + 0x10]
jne 0x10005280
test esi, esi
je 0x10005270
sub edi, eax
nop dword [eax + eax]
movzx edx, word [edi + eax]
movzx ecx, word [eax]
cmp dx, cx
jne 0x10005274
add eax, 2
sub esi, 1
jne 0x10005250
mov edx, dword [ebp - 0x23c]
mov ecx, dword [ebp - 0x248]
mov bl, 1
jmp 0x10005282
mov edx, dword [ebp - 0x23c]
mov ecx, dword [ebp - 0x248]
xor bl, bl
cmp ecx, 7
jbe 0x100052b6
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x100052ac
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10005378
push ecx
push edx
call fcn.101465d0
add esp, 8
test bl, bl
je 0x100052f8
push dword [ebp - 0x230]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
jne 0x1000531f
mov edx, str.OpenProcess_failed:
mov ecx, 0x1036a678
call fcn.100094e0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.10005a90
push eax
call fcn.10009790
add esp, 4
mov ebx, dword [ebp - 0x244]
lea eax, [ebp - 0x238]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x100051a4
mov esi, dword [ebp - 0x240]
jmp 0x100051c0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x10005354
mov edx, str.TerminateProcess_failed:
mov ecx, 0x1036a678
call fcn.100094e0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.10005a90
push eax
call fcn.10009790
add esp, 4
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call esi
push dword [ebp - 0x244]
call esi
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101465c2
mov esp, ebp
pop ebp
ret
call fcn.1014dd79
int3