Function at 0x1400010c0
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xc0
mov qword [rsp + 0x40], 0
mov rax, qword [rsp + 0xd0]
mov eax, dword [rax]
lea rdx, [rsp + 0x40]
mov ecx, eax
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jge 0x140001104
lfence
mov eax, dword [rsp + 0x30]
jmp 0x140001373
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_KeAttachProcess]
mov rax, qword [rsp + 0xd0]
add rax, 4
mov rdx, rax
mov rcx, qword [rsp + 0x40]
call fcn.140001830
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x140001142
mov dword [rsp + 0x30], 0xc0000225
jmp 0x14000135e
mov rax, qword [rsp + 0x48]
mov eax, dword [rax + 0x40]
mov rcx, qword [rsp + 0x48]
add rax, qword [rcx + 0x30]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0xd0]
mov eax, dword [rax + 0x204]
mov rcx, qword [rsp + 0x50]
lea rax, [rcx + rax - 1]
mov qword [rsp + 0x68], rax
lea rax, [rsp + 0x88]
mov rdi, rax
xor eax, eax
mov ecx, 0x30
rep stosb byte [rdi], al
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0x30
lea r9, [rsp + 0x88]
xor r8d, r8d
mov rdx, qword [rsp + 0x50]
mov rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwQueryVirtualMemory]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jge 0x1400011c8
jmp 0x14000135e
cmp dword [rsp + 0xa8], 0x10000
jne 0x1400011fc
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x88], rax
jne 0x1400011fc
mov rax, qword [rsp + 0xd0]
mov eax, dword [rax + 0x204]
cmp qword [rsp + 0xa0], rax
jae 0x140001209
mov dword [rsp + 0x30], 0xc0000141
jmp 0x14000135e
mov rax, qword [0x140004140]
mov qword [rsp + 0x70], rax
mov r8d, 1
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x70]
call qword [0x1400030a8]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x14000124a
mov dword [rsp + 0x30], 0xc000009a
jmp 0x14000135e
cmp dword [0x14000400c], 0
jne 0x140001260
lea rcx, section..data
call qword [sym.imp.ntoskrnl.exe_RtlGetVersion]
cmp dword [0x14000400c], 0x47ba
jae 0x1400012a4
mov rax, qword [rsp + 0x38]
add rax, 0x30
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov eax, dword [rax]
and eax, 0xffffff07
or eax, 0x30
mov rcx, qword [rsp + 0x58]
mov dword [rcx], eax
mov rax, qword [rsp + 0x58]
mov eax, dword [rax]
btr eax, 0x1b
mov rcx, qword [rsp + 0x58]
mov dword [rcx], eax
jmp 0x1400012db
mov rax, qword [rsp + 0x38]
add rax, 0x30
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov eax, dword [rax]
and eax, 0xfffff07f
or eax, 0x300
mov rcx, qword [rsp + 0x60]
mov dword [rcx], eax
mov rax, qword [rsp + 0x60]
mov eax, dword [rax]
and eax, 0xfffffff7
mov rcx, qword [rsp + 0x60]
mov dword [rcx], eax
mov rax, qword [0x140004138]
mov qword [rsp + 0x78], rax
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x78]
call qword [0x1400030a8]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jge 0x140001319
lfence
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
jmp 0x14000135e
mov rax, qword [0x140004130]
mov qword [rsp + 0x80], rax
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x80]
call qword [0x1400030a8]
mov rax, qword [rsp + 0x48]
mov eax, dword [rax + 0x40]
mov rcx, qword [rsp + 0xd0]
add eax, dword [rcx + 0x204]
mov rcx, qword [rsp + 0x48]
mov dword [rcx + 0x40], eax
call qword [sym.imp.ntoskrnl.exe_KeDetachProcess]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, dword [rsp + 0x30]
add rsp, 0xc0
pop rdi
ret