Function at 0x140021aa0
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
xor r14d, r14d
mov rdi, rcx
mov r15b, r14b
cmp byte [rcx + 0xb2], r14b
jne 0x140021d26
mov rcx, qword [rcx + 0x10]
lea rdx, [0x14002db00]
xor r9d, r9d
xor r8d, r8d
call fcn.140003ff0
test al, al
jne 0x140021d26
mov rcx, qword [rdi]
lea rdx, [rsp + 0x80]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jns 0x140021b2c
lfence
mov rdx, qword [rdi + 0x10]
xor r9d, r9d
mov rcx, qword [rdi]
mov r8d, eax
mov qword [rsp + 0x28], rcx
mov ecx, dword [rdx + 0x54]
lea edx, [r14 + 0x37]
mov dword [rsp + 0x20], ecx
mov ecx, 0xc10204c6
call fcn.140014bd4
jmp 0x140021d21
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ntoskrnl.exe_PsReferencePrimaryToken]
mov rcx, qword [rdi + 0x10]
mov rsi, rax
test rax, rax
jne 0x140021b70
mov rax, qword [rdi]
lea edx, [rsi + 0x31]
mov qword [rsp + 0x28], rax
xor r9d, r9d
mov eax, dword [rcx + 0x54]
mov r8d, 0xc000007c
mov ecx, 0xc10204c6
mov dword [rsp + 0x20], eax
call fcn.140014bd4
jmp 0x140021d13
xor r9d, r9d
lea rdx, [0x14002db20]
xor r8d, r8d
call fcn.140003ff0
test al, al
jne 0x140021bb8
mov al, byte [rdi + 0xa9]
mov rcx, rsi
neg al
mov rax, qword [rdi + 0x10]
sbb edx, edx
mov r8d, dword [rax + 0x54]
call fcn.140021538
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.ntoskrnl.exe_PsDereferencePrimaryToken]
mov rsi, rbx
test rbx, rbx
je 0x140021d13
lea rbx, [rdi + 0x38]
mov r9, rdi
mov r8, rbx
mov edx, 3
mov rcx, rsi
call fcn.140021e4c
mov rbp, rax
test rax, rax
je 0x140021d0a
mov rcx, qword [rdi + 0x10]
lea rdx, [0x14002dd90]
xor r9d, r9d
xor r8d, r8d
call fcn.140003ff0
test al, al
jne 0x140021c4a
mov rcx, qword [rdi + 0x10]
lea rdx, [0x14002dd60]
xor r9d, r9d
xor r8d, r8d
call fcn.140003ff0
test al, al
jne 0x140021c4a
mov rcx, qword [rdi + 0x10]
lea rdx, [0x14002ddd0]
mov r9b, 1
xor r8d, r8d
call fcn.140003ff0
test al, al
je 0x140021c4a
cmp dword [0x140052048], 6
jb 0x140021c4a
mov qword [rsp + 0x88], 0x3e6
mov rax, qword [rsp + 0x88]
mov qword [rbp + 0x18], rax
mov rax, qword [rdi + 0x10]
xor r9d, r9d
mov r13, qword [rsp + 0x80]
xor r8d, r8d
mov edx, 0x200
mov rcx, rbp
mov r12d, dword [rax + 0x54]
lea rax, [rsp + 0x88]
mov qword [rsp + 0x30], rax
mov byte [rsp + 0x28], r14b
mov qword [rsp + 0x20], r14
call qword [sym.imp.ntoskrnl.exe_ObOpenObjectByPointer]
mov r14d, eax
test eax, eax
js 0x140021ce0
mov rdx, qword [rsp + 0x88]
mov r8d, r12d
mov rcx, r13
call fcn.140020be4
mov rcx, qword [rsp + 0x88]
mov r14d, eax
call qword [sym.imp.ntoskrnl.exe_ZwClose]
test r14d, r14d
js 0x140021ce0
mov qword [rdi + 0x48], rsi
xor esi, esi
cmp byte [rdi + 0xa9], sil
je 0x140021cdb
mov eax, dword [rbx]
cmp eax, dword [str.sboxS]
je 0x140021cdb
cmp eax, 0x3000
jb 0x140021cdb
mov dword [rbx], 0x2000
mov r15b, 1
jmp 0x140021cfc
lfence
xor r9d, r9d
mov dword [rsp + 0x20], r12d
mov r8d, r14d
mov ecx, 0xc10204c6
lea edx, [r9 + 0x36]
call fcn.140014c50
mov rcx, rbp
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
test rsi, rsi
je 0x140021d13
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov al, r15b
jmp 0x140021d28
mov al, 1
mov rbx, qword [rsp + 0x90]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret