Function at 0x140002620
Capabilities:
Enumerate processes via ntquerysysteminformation
Find process by pid
Get system information on windows

Disassembly:
push rbp
push rdi
push r13
lea rbp, [rsp - 0x47]
sub rsp, 0xe0
mov r13, rcx
lea rdx, [rbp - 0x29]
mov ecx, dword [rcx]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov rdi, qword [rbp - 0x29]
test rdi, rdi
jne 0x14000267b
mov eax, dword [r13]
lea r8, [0x1400099b0]
mov r9d, 0x1bc
mov dword [rsp + 0x20], eax
lea rdx, [0x1400099c0]
lea ecx, [rdi + 1]
call fcn.140003c60
xor al, al
add rsp, 0xe0
pop r13
pop rdi
pop rbp
ret
lea rcx, [0x14000df30]
mov qword [rsp + 0xd8], rbx
call qword [sym.imp.ntoskrnl.exe_KeAcquireGuardedMutex]
mov rax, qword [0x14000df68]
lea rcx, [0x14000df68]
cmp rax, rcx
je 0x1400026c4
nop dword [rax]
nop word [rax + rax]
mov rbx, rax
mov rax, qword [rax]
cmp qword [rbx + 0xa8], rdi
je 0x14000270d
cmp rax, rcx
jne 0x1400026b0
mov eax, dword [r13]
lea r8, [0x1400099b0]
mov r9d, 0x219
mov dword [rsp + 0x20], eax
lea rdx, [0x1400099f0]
mov ecx, 1
call fcn.140003c60
lea rcx, [0x14000df30]
call qword [sym.imp.ntoskrnl.exe_KeReleaseGuardedMutex]
xor al, al
mov rbx, qword [rsp + 0xd8]
add rsp, 0xe0
pop r13
pop rdi
pop rbp
ret
movzx eax, byte [r13 + 0x1d]
cmp al, 1
jne 0x140002729
cmp byte [rbx + 0xd9], 0
jne 0x14000273e
mov rcx, rbx
call fcn.140003650
jmp 0x14000273e
test al, al
jne 0x14000273e
cmp byte [rbx + 0xd9], 1
jne 0x14000273e
mov rcx, rbx
call fcn.140003900
cmp byte [r13 + 0x12], 1
jne 0x140002759
cmp byte [rbx + 0xce], 0
jne 0x140002759
lea rax, [rbx + 0x10]
mov qword [rax + 8], rax
mov qword [rax], rax
cmp byte [r13 + 0x24], 1
mov qword [rsp + 0xd0], rsi
mov qword [rsp + 0xc8], r12
mov qword [rsp + 0xc0], r14
mov qword [rsp + 0xb8], r15
jne 0x140002826
cmp byte [rbx + 0xe1], 0
jne 0x140002826
mov r15, qword [rbx + 0xa8]
lea r9, [rbp + 0x67]
xor edx, edx
xor r8d, r8d
lea ecx, [rdx + 5]
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
mov edx, dword [rbp + 0x67]
xor ecx, ecx
mov r8d, 0x64487948
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov r12, rax
test rax, rax
je 0x14000281f
mov ecx, dword [rbp + 0x67]
lea r9, [rbp + 0x67]
mov rdi, rax
mov rdx, r12
xor eax, eax
rep stosb byte [rdi], al
mov r8d, dword [rbp + 0x67]
lea ecx, [rax + 5]
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
test eax, eax
js 0x14000280e
cmp dword [r12], 0
mov rdi, r12
je 0x14000280e
nop
mov rcx, qword [rdi + 0x50]
lea rdx, [rbp - 0x21]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
cmp qword [rbp - 0x21], r15
je 0x140002878
mov eax, dword [rdi]
add rdi, rax
cmp dword [rdi], 0
jne 0x1400027f0
lfence
mov edx, 0x64487948
mov rcx, r12
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov byte [rbx + 0xe1], 1
cmp byte [r13 + 0x25], 1
jne 0x14000297a
cmp byte [rbx + 0xe2], 0
jne 0x14000297a
cmp dword [0x14000df28], 0x47ba
mov rsi, qword [rbx + 0xa8]
jae 0x1400028e8
mov r9d, 0x17d
lea r8, [0x14000a490]
lea rdx, [0x14000a4b0]
mov ecx, 1
call fcn.140003c60
jmp 0x140002973
lfence
xor esi, esi
cmp dword [rdi + 4], esi
jbe 0x140002811
lea r14, [rdi + 0x130]
nop dword [rax]
mov rcx, qword [r14]
lea rdx, [rbp - 0x49]
call qword [sym.imp.ntoskrnl.exe_PsLookupThreadByThreadId]
test eax, eax
js 0x1400028d4
mov eax, dword [0x14000e0d8]
mov rdx, qword [rbp - 0x49]
mov eax, dword [rax + rdx]
test al, 4
je 0x1400028d4
mov rcx, r15
call fcn.140002070
test rax, rax
je 0x1400028c6
mov byte [rax + 0x88], 1
mov ecx, dword [0x14000e0d8]
mov rax, qword [rbp - 0x49]
and dword [rcx + rax], 0xfffffffb
mov eax, dword [rdi + 4]
inc rsi
add r14, 0x50
cmp rsi, rax
jb 0x140002890
jmp 0x140002811
xor edx, edx
lea r9, [rbp + 0x6f]
xor r8d, r8d
lea ecx, [rdx + 5]
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
mov edx, dword [rbp + 0x6f]
xor ecx, ecx
mov r8d, 0x64487948
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov r15, rax
test rax, rax
je 0x140002973
mov ecx, dword [rbp + 0x6f]
lea r9, [rbp + 0x6f]
mov rdi, rax
mov rdx, r15
xor eax, eax
rep stosb byte [rdi], al
mov r8d, dword [rbp + 0x6f]
lea ecx, [rax + 5]
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
test eax, eax
js 0x140002962
cmp dword [r15], 0
mov rdi, r15
je 0x140002962
nop
mov rcx, qword [rdi + 0x50]
lea rdx, [rbp - 0x19]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
cmp qword [rbp - 0x19], rsi
je 0x140002d18
mov eax, dword [rdi]
add rdi, rax
cmp dword [rdi], 0
jne 0x140002940
lfence
mov edx, 0x64487948
mov rcx, r15
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov byte [rbx + 0xe2], 1
cmp byte [r13 + 0x20], 1
jne 0x14000299f
cmp byte [rbx + 0xdd], 0
jne 0x14000299f
mov rcx, qword [rbx + 0xa8]
xor edx, edx
call fcn.140003f10
mov byte [rbx + 0xdd], 1
cmp byte [r13 + 0x21], 1
jne 0x1400029c2
cmp byte [rbx + 0xdf], 0
jne 0x1400029c2
mov rcx, qword [rbx + 0xa8]
call fcn.140004030
mov byte [rbx + 0xdf], 1
cmp byte [r13 + 0x22], 1
jne 0x1400029e5
cmp byte [rbx + 0xde], 0
jne 0x1400029e5
mov rcx, qword [rbx + 0xa8]
call fcn.140001ef0
mov byte [rbx + 0xde], 1
cmp byte [r13 + 0x23], 1
jne 0x140002a0f
cmp byte [rbx + 0xe0], 0
jne 0x140002a0f
mov rax, qword [rbx + 0xf0]
test rax, rax
je 0x140002a0f
mov byte [rax + 0x2d4], 0
mov byte [rbx + 0xe0], 1
cmp byte [r13 + 0x26], 1
jne 0x140002ac7
cmp byte [rbx + 0xe4], 0
jne 0x140002ac7
lea rax, [rbp - 0x51]
xor r9d, r9d
mov qword [rsp + 0x30], rax
xor r8d, r8d
mov rax, qword [sym.imp.ntoskrnl.exe_PsProcessType]
mov edx, 0x200
mov byte [rsp + 0x28], 0
mov rcx, qword [rax]
mov qword [rsp + 0x20], rcx
mov rcx, qword [rbx + 0xa8]
call qword [sym.imp.ntoskrnl.exe_ObOpenObjectByPointer]
test eax, eax
js 0x140002ac0
mov rcx, qword [rbp - 0x51]
lea r8, [rbp + 0x7f]
mov r9d, 4
mov qword [rsp + 0x20], 0
lea edx, [r9 + 0x19]
call qword [sym.imp.ntoskrnl.exe_ZwQueryInformationProcess]
test eax, eax
js 0x140002ab4
movzx eax, byte [rbp + 0x7f]
lea r8, [rbp + 0x7f]
mov rcx, qword [rbp - 0x51]
mov r9d, 4
and al, 1
mov dword [rbp + 0x7f], 0
mov byte [rbx + 0xe8], al
lea edx, [r9 + 0x19]
call qword [sym.imp.ntoskrnl.exe_ZwSetInformationProcess]
test eax, eax
jns 0x140002ac0
mov rcx, qword [rbp - 0x51]
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_ObCloseHandle]
mov byte [rbx + 0xe4], 1
cmp byte [r13 + 0x27], 1
jne 0x140002bc7
cmp byte [rbx + 0xe5], 0
jne 0x140002bc7
mov r15, qword [rbx + 0xa8]
lea r9, [rbp + 0x77]
xor edx, edx
xor r8d, r8d
lea ecx, [rdx + 5]
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
mov edx, dword [rbp + 0x77]
xor ecx, ecx
mov r8d, 0x64487948
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov r12, rax
test rax, rax
je 0x140002bc0
mov ecx, dword [rbp + 0x77]
lea r9, [rbp + 0x77]
mov rdi, rax
mov rdx, r12
xor eax, eax
rep stosb byte [rdi], al
mov r8d, dword [rbp + 0x77]
lea ecx, [rax + 5]
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
test eax, eax
js 0x140002baf
cmp dword [r12], 0
mov rdi, r12
je 0x140002baf
mov rcx, qword [rdi + 0x50]
lea rdx, [rbp - 9]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
cmp qword [rbp - 9], r15
jne 0x140002ba5
xor esi, esi
cmp dword [rdi + 4], esi
jbe 0x140002ba5
lea r14, [rdi + 0x130]
mov rcx, qword [r14]
lea rdx, [rbp - 0x41]
call qword [sym.imp.ntoskrnl.exe_PsLookupThreadByThreadId]
test eax, eax
js 0x140002b96
mov eax, dword [0x14000e0dc]
mov rdx, qword [rbp - 0x41]
mov eax, dword [rax + rdx]
test al, 0x20
je 0x140002b96
mov rcx, r15
call fcn.140002070
test rax, rax
jne 0x140002d66
mov eax, dword [rdi + 4]
inc rsi
add r14, 0x50
cmp rsi, rax
jb 0x140002b63
mov eax, dword [rdi]
add rdi, rax
cmp dword [rdi], 0
jne 0x140002b41
lfence
mov edx, 0x64487948
mov rcx, r12
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov byte [rbx + 0xe5], 1
cmp byte [r13 + 0x28], 1
mov r15, qword [rsp + 0xb8]
mov r14, qword [rsp + 0xc0]
mov r12, qword [rsp + 0xc8]
mov rsi, qword [rsp + 0xd0]
jne 0x140002c8e
cmp byte [rbx + 0xe6], 0
jne 0x140002c8e
lea rax, [rbp - 0x39]
xor r9d, r9d
mov qword [rsp + 0x30], rax
xor r8d, r8d
mov rax, qword [sym.imp.ntoskrnl.exe_PsProcessType]
mov edx, 0x200
mov byte [rsp + 0x28], 0
mov rcx, qword [rax]
mov qword [rsp + 0x20], rcx
mov rcx, qword [rbx + 0xa8]
call qword [sym.imp.ntoskrnl.exe_ObOpenObjectByPointer]
test eax, eax
js 0x140002c87
mov rcx, qword [rbp - 0x39]
lea r8, [rbp - 0x59]
mov r9d, 4
mov qword [rsp + 0x20], 0
lea edx, [r9 + 0x1b]
call qword [sym.imp.ntoskrnl.exe_ZwQueryInformationProcess]
test eax, eax
js 0x140002c7b
mov rcx, qword [rbx + 0xa8]
call qword [sym.imp.ntoskrnl.exe_PsIsProcessBeingDebugged]
test al, al
jne 0x140002c7b
cmp dword [rbp - 0x59], 0
sete al
mov byte [rbx + 0xe9], al
mov rcx, qword [rbp - 0x39]
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_ObCloseHandle]
mov byte [rbx + 0xe6], 1
cmp byte [r13 + 0x29], 1
jne 0x140002da4
cmp byte [rbx + 0xe7], 0
jne 0x140002da4
lea rax, [rbp - 0x31]
xor r9d, r9d
mov qword [rsp + 0x30], rax
xor r8d, r8d
mov rax, qword [sym.imp.ntoskrnl.exe_PsProcessType]
mov edx, 0x200
mov byte [rsp + 0x28], 0
mov rcx, qword [rax]
mov qword [rsp + 0x20], rcx
mov rcx, qword [rbx + 0xa8]
call qword [sym.imp.ntoskrnl.exe_ObOpenObjectByPointer]
test eax, eax
js 0x140002d9d
mov rcx, qword [rbp - 0x31]
lea r8, [rbp - 1]
mov r9d, 0x10
mov qword [rsp + 0x20], 0
xorps xmm0, xmm0
movups xmmword [rbp - 1], xmm0
lea edx, [r9 + 0x10]
call qword [sym.imp.ntoskrnl.exe_ZwQueryInformationProcess]
test eax, eax
jne 0x140002d83
mov byte [rbx + 0xe3], 1
jmp 0x140002d91
lfence
xor esi, esi
cmp dword [rdi + 4], esi
jbe 0x140002965
lea r14, [rdi + 0x130]
nop dword [rax]
mov rcx, qword [r14]
lea rdx, [rbp - 0x11]
call qword [sym.imp.ntoskrnl.exe_PsLookupThreadByThreadId]
test eax, eax
js 0x140002d52
mov ecx, dword [0x14000e0d4]
mov rax, qword [rbp - 0x11]
and dword [rcx + rax], 0xffdfffff
mov eax, dword [rdi + 4]
inc rsi
add r14, 0x50
cmp rsi, rax
jb 0x140002d30
jmp 0x140002965
lfence
mov ecx, dword [0x14000e0dc]
mov byte [rax + 0x89], 1
mov rax, qword [rbp - 0x41]
and dword [rcx + rax], 0xffffffdf
jmp 0x140002bb2
cmp eax, 0xc000000d
jne 0x140002d91
mov byte [rbx + 0xe3], 0
mov rcx, qword [rbp - 0x31]
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_ObCloseHandle]
mov byte [rbx + 0xe7], 1
movups xmm0, xmmword [r13 + 4]
lea rcx, [0x14000df30]
movups xmmword [rbx + 0xc0], xmm0
movsd xmm1, qword [r13 + 0x14]
movsd qword [rbx + 0xd0], xmm1
mov eax, dword [r13 + 0x1c]
mov dword [rbx + 0xd8], eax
call qword [sym.imp.ntoskrnl.exe_KeReleaseGuardedMutex]
mov al, 1
jmp 0x1400026f9