Function at 0x10023260
Capabilities:
Enumerate processes
Resolve function by parsing pe exports
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x27c
mov eax, dword [0x101a49d4]
xor eax, esp
mov dword [esp + 0x278], eax
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x18], esi
push edi
cmp dl, 1
jne 0x100232cd
call fcn.10124c14
cmp dword [esi + 0x14], 8
mov edi, eax
jb 0x10023297
mov esi, dword [esi]
push 0xa
lea eax, [esp + 0x18]
mov dword [edi], 0
push eax
push esi
call fcn.101234f8
add esp, 0xc
mov ebx, eax
cmp esi, dword [esp + 0x14]
je 0x1002357f
cmp dword [edi], 0x22
je 0x10023589
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10023524
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
lea ecx, [esp + 0x50]
mov dword [esp + 0x14], eax
push ecx
push eax
mov dword [esp + 0x58], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x10023478
nop word [eax + eax]
lea eax, [esp + 0x74]
mov dword [esp + 0x20], 0
mov dword [esp + 0x30], 0
lea edx, [eax + 2]
mov dword [esp + 0x34], 7
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10023320
sub eax, edx
lea ecx, [esp + 0x20]
sar eax, 1
push eax
lea eax, [esp + 0x78]
push eax
call fcn.10051fd0
cmp dword [esp + 0x34], 8
lea ecx, [esp + 0x20]
mov esi, dword [esp + 0x20]
lea edx, [esp + 0x20]
mov eax, dword [esp + 0x30]
cmovae ecx, esi
cmovae edx, esi
xor edi, edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x48], edi
lea eax, [ecx + eax*2]
mov ecx, 7
mov dword [esp + 0x4c], ecx
cmp edx, eax
je 0x1002338e
sub eax, edx
lea ecx, [esp + 0x38]
sar eax, 1
push eax
push edx
call fcn.10051fd0
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x38]
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x38]
cmp ecx, 8
mov dword [esp + 0x10], eax
cmovae edx, edi
cmp dword [eax + 0x14], 8
mov ebx, dword [eax + 0x10]
mov dword [esp + 0x18], ebx
mov ebx, dword [esp + 0x34]
jb 0x100233b7
mov eax, dword [eax]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x48]
jne 0x100233da
mov ecx, dword [esp + 0x10]
push eax
call fcn.10056450
add esp, 4
test eax, eax
je 0x10023481
mov ecx, dword [esp + 0x4c]
cmp ecx, 8
jb 0x10023416
lea ecx, [ecx*2 + 2]
mov eax, edi
cmp ecx, 0x1000
jb 0x10023404
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10023593
push ecx
push edi
call fcn.1011a823
mov ebx, dword [esp + 0x3c]
add esp, 8
mov esi, dword [esp + 0x20]
xor eax, eax
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 7
mov word [esp + 0x38], ax
cmp ebx, 8
jb 0x10023461
lea ebx, [ebx*2 + 2]
mov eax, esi
cmp ebx, 0x1000
jb 0x10023457
mov esi, dword [esi - 4]
add ebx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10023593
push ebx
push esi
call fcn.1011a823
add esp, 8
lea eax, [esp + 0x50]
push eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x10023300
mov ebx, dword [esp + 0x18]
jmp 0x10023518
mov eax, dword [esp + 0x58]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x4c]
cmp eax, 8
jb 0x100234c9
lea ecx, [eax*2 + 2]
mov eax, edi
cmp ecx, 0x1000
jb 0x100234b7
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10023593
push ecx
push edi
call fcn.1011a823
mov ebx, dword [esp + 0x3c]
add esp, 8
mov esi, dword [esp + 0x20]
xor eax, eax
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 7
mov word [esp + 0x38], ax
cmp ebx, 8
jb 0x10023514
lea ebx, [ebx*2 + 2]
mov eax, esi
cmp ebx, 0x1000
jb 0x1002350a
mov esi, dword [esi - 4]
add ebx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10023593
push ebx
push esi
call fcn.1011a823
add esp, 8
mov ebx, dword [esp + 0x10]
push dword [esp + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push ebx
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x10023558
push esi
call edi
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x278]
xor ecx, esp
call fcn.1011a2e1
mov esp, ebp
pop ebp
ret
push str._i____Module___Main___Failed_to_terminate_process
call fcn.10020f50
add esp, 4
push esi
call edi
mov ecx, dword [esp + 0x284]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1011a2e1
mov esp, ebp
pop ebp
ret
push str.invalid_stoi_argument
call fcn.101055ca
push str.stoi_argument_out_of_range
call fcn.1010560a
call fcn.10125fc5
int3