Function at 0x10019878
Capabilities:
Enumerate processes
Terminate process

Disassembly:
mov eax, 0x100cc93c
call fcn.10030644
sub esp, 0x260
push ebx
push esi
push edi
push 0x10109648
lea eax, [ebp - 0x28]
push 0x100fc4b0
mov dword [ebp - 0x2c], ecx
push eax
call fcn.1001fa5c
add esp, 0xc
mov eax, dword [eax]
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 4], ebx
je 0x100198b3
mov eax, dword [eax]
jmp 0x100198b5
xor eax, eax
push eax
lea ecx, [ebp - 0x24]
call fcn.100c10db
mov ecx, dword [ebp - 0x28]
mov byte [ebp - 4], 2
cmp ecx, ebx
je 0x100198d1
call fcn.10002801
mov dword [ebp - 0x28], ebx
lea ecx, [ebp - 0x24]
call fcn.100c1596
lea ecx, [ebp - 0x40]
call fcn.100bc518
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 3
push eax
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push 0x100fc4ac
call fcn.100c1130
push ecx
lea eax, [ebp - 0x24]
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
mov byte [ebp - 4], 4
call fcn.100c0dd4
mov byte [ebp - 4], 3
call fcn.10059909
add esp, 0xc
cmp dword [ebp - 0x38], ebx
je 0x10019b14
mov ecx, 0x8a
xor eax, eax
lea edi, [ebp - 0x268]
mov dword [ebp - 0x26c], ebx
push ebx
push 2
rep stosd dword es:[edi], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
je 0x10019b14
lea ecx, [ebp - 0x26c]
mov dword [ebp - 0x26c], 0x22c
push ecx
push eax
call sub.KERNEL32.dll_Process32FirstW
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x10019a2d
lea eax, [ebp - 0x248]
lea ecx, [ebp - 0x18]
push eax
call fcn.100c10db
push 0x5c
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 5
call fcn.100bac09
inc eax
lea ecx, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.100baa5c
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 6
call fcn.100c11ae
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 5
call fcn.100c1067
lea ecx, [ebp - 0x18]
call fcn.100c1596
xor edi, edi
cmp dword [ebp - 0x38], ebx
jle 0x10019a04
mov eax, dword [ebp - 0x3c]
push dword [ebp - 0x18]
push dword [eax + edi*4]
lea eax, [eax + edi*4]
call fcn.10030823
pop ecx
cmp eax, ebx
pop ecx
je 0x100199e1
inc edi
cmp edi, dword [ebp - 0x38]
jl 0x100199c2
jmp 0x10019a04
push dword [ebp - 0x264]
push ebx
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
cmp edi, ebx
je 0x10019a01
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
call esi
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.100c1067
lea eax, [ebp - 0x26c]
push eax
push dword [ebp - 0x14]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x1001996f
mov byte [ebp - 0xe], 1
jmp 0x10019a30
mov byte [ebp - 0xe], bl
push dword [ebp - 0x14]
call esi
push str.killprocessdone
lea ecx, [ebp - 0x20]
call fcn.10002736
push ecx
lea eax, [ebp - 0x20]
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
mov byte [ebp - 4], 7
call fcn.10002717
mov ecx, dword [0x10109928]
lea eax, [ebp - 0x1c]
push eax
call fcn.100274d9
cmp dword [eax], ebx
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 4], 7
setne byte [ebp - 0xd]
cmp eax, ebx
je 0x10019a7b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp byte [ebp - 0xd], bl
je 0x10019abe
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push 0x10109650
call fcn.10002736
sub esp, 0x10
lea eax, [ebp - 0xd]
mov esi, esp
mov dword [ebp - 0x14], esp
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 9
call fcn.1000885f
push eax
mov ecx, esi
call fcn.10003536
mov ecx, dword [ebp - 0x2c]
mov byte [ebp - 4], 7
call fcn.100163d7
jmp 0x10019b02
push ebx
push ebx
sub esp, 0x10
lea eax, [ebp - 0xd]
mov ecx, esp
mov dword [ebp - 0x2c], esp
push eax
push 0x100fc490
call fcn.10003536
lea eax, [ebp - 0x14]
push eax
call fcn.10020042
add esp, 0x14
mov ecx, eax
mov byte [ebp - 4], 0xa
call fcn.10003ab9
push eax
call fcn.100c5aaa
mov ecx, dword [ebp - 0x14]
cmp ecx, ebx
je 0x10019b02
call fcn.10002801
mov dword [ebp - 0x14], ebx
mov ecx, dword [ebp - 0x20]
cmp ecx, ebx
je 0x10019b11
call fcn.10002801
mov dword [ebp - 0x20], ebx
mov bl, byte [ebp - 0xe]
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.100bc54b
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.100c1067
mov ecx, dword [ebp - 0xc]
pop edi
mov al, bl
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret