Function at 0x4228c0
Capabilities:
Enumerate processes via ntquerysysteminformation
Get system information on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x463590
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x88
push ebx
push esi
push edi
jmp 0x4228f3
xor ecx, ecx
call fcn.004224b0
add eax, 0xc
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax]
add ecx, 1
mov edx, dword [ebp - 0x2c]
mov dword [edx], ecx
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x422922
mov ecx, 7
call fcn.00409180
nop
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x1c], 0
mov eax, 1
test eax, eax
je 0x4229e3
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x10]
push eax
push 5
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xc0000004
jne 0x4229b6
mov ecx, dword [ebp - 0x1c]
add ecx, 0x9b0
mov dword [ebp - 0x1c], ecx
cmp dword [ebp - 0x10], 0
je 0x42298e
push 0x8000
push 0
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov dword [ebp - 0x10], 0
push 4
push 0x3000
mov eax, dword [ebp - 0x1c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4229b2
or eax, 0xffffffff
jmp 0x422c65
jmp 0x422937
cmp dword [ebp - 0x24], 0
jge 0x4229dc
cmp dword [ebp - 0x10], 0
je 0x4229d4
push 0x8000
push 0
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
nop
or eax, 0xffffffff
jmp 0x422c65
jmp 0x4229e3
cmp dword [ebp - 0x10], 0
jne 0x4229f1
or eax, 0xffffffff
jmp 0x422c65
xor ecx, ecx
call fcn.004224b0
add eax, 0xc
mov dword [ebp - 0x30], eax
mov edx, dword [ebp - 0x30]
mov eax, dword [edx]
add eax, 1
mov ecx, dword [ebp - 0x30]
mov dword [ecx], eax
mov dword [ebp - 0x28], 0
mov edx, dword [ebp - 0x10]
cmp dword [edx], 0
je 0x422c1b
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x44]
mov dword [ebp - 0x20], ecx
cmp dword [ebp - 0x20], 0
je 0x422c0b
call fcn.00409140
mov edx, dword [ebp - 0x20]
cmp edx, dword [eax + 0xc]
je 0x422c0b
call fcn.00409140
mov ecx, dword [ebp - 0x20]
cmp ecx, dword [eax + 8]
je 0x422c0b
xor ecx, ecx
call fcn.004224b0
add eax, 0xc
mov dword [ebp - 0x34], eax
mov edx, dword [ebp - 0x34]
mov eax, dword [edx]
add eax, 1
mov ecx, dword [ebp - 0x34]
mov dword [ecx], eax
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x3c]
push eax
lea ecx, [ebp - 0x94]
call fcn.004046c0
mov dword [ebp - 4], 0
mov byte [ebp - 0x11], 0
call fcn.00404a30
mov dword [ebp - 0x44], eax
lea ecx, [ebp - 0x6c]
push ecx
mov ecx, dword [ebp - 0x44]
call fcn.00403f30
mov edx, dword [eax]
mov dword [ebp - 0x48], edx
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x58], eax
call fcn.00404a30
mov dword [ebp - 0x4c], eax
lea ecx, [ebp - 0x70]
push ecx
mov ecx, dword [ebp - 0x4c]
call fcn.00403f40
mov edx, dword [eax]
mov dword [ebp - 0x50], edx
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x5c], eax
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x74], esp
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x54], edx
lea eax, [ebp - 0x94]
push eax
mov ecx, dword [ebp - 0x54]
call fcn.004048f0
nop
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x78], ecx
mov edx, dword [ebp - 0x58]
push edx
mov eax, dword [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00422c90
add esp, 0x20
call fcn.00404a30
mov dword [ebp - 0x60], eax
lea ecx, [ebp - 0x7c]
push ecx
mov ecx, dword [ebp - 0x60]
call fcn.00403f30
push eax
lea ecx, [ebp - 0x3c]
call fcn.00403f10
movzx edx, al
test edx, edx
jne 0x422b6e
mov ecx, 5
call fcn.00409180
lea ecx, [ebp - 0x94]
call fcn.00422c80
mov dword [ebp - 0x64], eax
lea ecx, [ebp - 0x3c]
call fcn.00410ac0
mov ecx, eax
call fcn.00422c80
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x64]
push eax
mov ecx, dword [ebp - 0x68]
push ecx
push str.ScanProcesses::Check
push str._X___s_Detected_process_path__ls___ls_n
call fcn.00404c70
add esp, 0x10
mov byte [ebp - 0x11], 1
mov edx, dword [ebp - 0x20]
push edx
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x422baf
cmp dword [ebp - 0x18], 0xffffffff
je 0x422baf
mov eax, dword [ebp - 0x28]
add eax, 1
mov dword [ebp - 0x28], eax
movzx ecx, byte [ebp - 0x11]
test ecx, ecx
je 0x422baf
push 9
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ntdll.dll_NtTerminateProcess]
mov dword [ebp - 0x18], 0
xor ecx, ecx
call fcn.004224b0
add eax, 0xc
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax]
sub ecx, 1
mov edx, dword [ebp - 0x40]
mov dword [edx], ecx
movzx eax, byte [ebp - 0x11]
test eax, eax
jne 0x422be1
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x20]
push edx
call fcn.004224f0
add esp, 8
cmp dword [ebp - 0x18], 0
je 0x422bf8
cmp dword [ebp - 0x18], 0xffffffff
je 0x422bf8
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.004039d0
nop
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x10]
add edx, dword [ecx]
mov dword [ebp - 0x10], edx
jmp 0x422a12
push 0x8000
push 0
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
nop
cmp dword [ebp - 0x28], 0
jne 0x422c4f
mov ecx, 9
call fcn.00409180
push str.ScanProcesses::Check
push str._X___s_not_open_handle__possible_hook_openprocess__n
call fcn.00404c70
add esp, 8
xor eax, eax
jmp 0x422c65
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret