Function at 0x1400179a0
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x80
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x60], 0
mov rax, qword [rsp + 0x90]
mov eax, dword [rax]
lea rdx, [rsp + 0x60]
mov ecx, eax
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jl 0x140017c4c
cmp dword [0x140011e30], 0
je 0x140017c27
mov eax, dword [0x140011e30]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
cmp dword [0x140011e20], 0x611
jg 0x140017a69
mov rax, qword [rsp + 0x90]
cmp dword [rax + 4], 1
jne 0x140017a44
mov rax, qword [rsp + 0x38]
mov eax, dword [rax]
bts eax, 0xb
mov rcx, qword [rsp + 0x38]
mov dword [rcx], eax
jmp 0x140017a64
mov rax, qword [rsp + 0x90]
cmp dword [rax + 4], 0
jne 0x140017a64
mov rax, qword [rsp + 0x38]
mov eax, dword [rax]
btr eax, 0xb
mov rcx, qword [rsp + 0x38]
mov dword [rcx], eax
jmp 0x140017c25
cmp dword [0x140011e20], 0x620
jne 0x140017a9b
mov rax, qword [rsp + 0x90]
cmp dword [rax + 4], 2
je 0x140017a96
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x90]
movzx ecx, byte [rcx + 4]
mov byte [rax], cl
jmp 0x140017c25
cmp dword [0x140011e20], 0x630
jl 0x140017c1d
mov rax, qword [rsp + 0x90]
cmp dword [rax + 4], 0
jne 0x140017ac3
mov rax, qword [rsp + 0x38]
mov byte [rax], 0
jmp 0x140017b0c
mov rax, qword [rsp + 0x90]
cmp dword [rax + 4], 1
jne 0x140017b0c
lea rax, [rsp + 0x68]
mov rdi, rax
xor eax, eax
mov ecx, 4
rep stosb byte [rdi], al
mov eax, dword [rsp + 0x68]
and eax, 0xffffff0f
or eax, 0x60
mov dword [rsp + 0x68], eax
mov eax, dword [rsp + 0x68]
and eax, 0xfffffff8
or eax, 2
mov dword [rsp + 0x68], eax
mov rax, qword [rsp + 0x38]
movzx ecx, byte [rsp + 0x68]
mov byte [rax], cl
mov rax, qword [rsp + 0x90]
cmp dword [rax + 8], 2
je 0x140017bb3
cmp dword [0x140011e34], 0
je 0x140017bb3
cmp dword [0x140011e20], 0xa03
jl 0x140017b76
mov eax, dword [0x140011e34]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x90]
mov eax, dword [rax + 8]
and eax, 1
shl eax, 8
mov rcx, qword [rsp + 0x40]
mov ecx, dword [rcx]
btr ecx, 8
or ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x40]
mov dword [rcx], eax
jmp 0x140017bb3
mov eax, dword [0x140011e34]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x90]
mov eax, dword [rax + 8]
and eax, 1
shl eax, 0xa
mov rcx, qword [rsp + 0x48]
mov ecx, dword [rcx]
btr ecx, 0xa
or ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x48]
mov dword [rcx], eax
mov rax, qword [rsp + 0x90]
cmp dword [rax + 0xc], 2
je 0x140017c1b
mov eax, dword [0x140011e30]
mov rcx, qword [rsp + 0x60]
lea rax, [rcx + rax - 2]
mov qword [rsp + 0x58], rax
mov eax, dword [0x140011e30]
mov rcx, qword [rsp + 0x60]
lea rax, [rcx + rax - 1]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x90]
cmp dword [rax + 0xc], 1
jne 0x140017c0b
mov rax, qword [rsp + 0x50]
mov byte [rax], 8
mov rax, qword [rsp + 0x58]
mov byte [rax], 8
jmp 0x140017c1b
mov rax, qword [rsp + 0x50]
mov byte [rax], 0
mov rax, qword [rsp + 0x58]
mov byte [rax], 0
jmp 0x140017c25
mov dword [rsp + 0x30], 0xc00000bb
jmp 0x140017c4a
lea r9, [0x14001e090]
lea r8, [0x14001e0a0]
xor edx, edx
mov ecx, 0x4d
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov dword [rsp + 0x30], 0xc0000141
jmp 0x140017c6f
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x20], eax
lea r9, [0x14001e090]
lea r8, [0x14001db10]
xor edx, edx
mov ecx, 0x4d
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
cmp qword [rsp + 0x60], 0
je 0x140017c82
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140001860
add rsp, 0x80
pop rdi
ret