Function at 0x140002c50
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xb8
mov rax, qword [0x140006090]
xor rax, rsp
mov qword [rsp + 0xa8], rax
mov dword [rsp + 0x24], 0
mov qword [rsp + 0x60], 0
mov dword [rsp + 0x28], 0
cmp qword [rsp + 0xc8], 0
je 0x140002cb9
cmp qword [rsp + 0xc0], 0
je 0x140002cb9
mov rax, qword [rsp + 0xc0]
cmp dword [rax], 0
je 0x140002cb9
mov dword [rsp + 0x38], 0
jmp 0x140002cc1
mov dword [rsp + 0x38], 1
cmp dword [rsp + 0x38], 0
je 0x140002cef
xor r9d, r9d
mov r8d, 0x288
lea rdx, [0x140004360]
lea rcx, [0x1400043b0]
call qword [sym.imp.ntoskrnl.exe_RtlAssert]
mov dword [rsp + 0x48], 0
jmp 0x140002cf7
mov dword [rsp + 0x48], 1
cmp qword [rsp + 0xc8], 0
je 0x140002d1a
cmp qword [rsp + 0xc0], 0
je 0x140002d1a
mov rax, qword [rsp + 0xc0]
cmp dword [rax], 0
jne 0x140002d24
mov eax, 0xc000000d
jmp 0x140002f6b
lea rcx, [rsp + 0x68]
call fcn.140001070
mov rax, qword [rsp + 0xc0]
mov eax, dword [rax]
lea rdx, [rsp + 0x60]
mov ecx, eax
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
jl 0x140002d8b
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov r9b, 1
mov rax, qword [sym.imp.ntoskrnl.exe_MmHighestUserAddress]
mov r8, qword [rax]
mov edx, 0x10000
lea rcx, [rsp + 0x68]
call fcn.140010c30
mov dword [rsp + 0x24], eax
lea rcx, [rsp + 0x78]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
cmp dword [rsp + 0x24], 0
jl 0x140002f1a
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x50], rax
jmp 0x140002db9
mov rax, qword [rsp + 0x50]
mov rax, qword [rax]
mov qword [rsp + 0x50], rax
mov eax, dword [rsp + 0x28]
inc eax
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x68]
cmp qword [rsp + 0x50], rax
je 0x140002dc7
jmp 0x140002da2
mov eax, dword [rsp + 0x28]
mov rcx, qword [rsp + 0xc8]
cmp qword [rcx], rax
jae 0x140002df4
mov eax, dword [rsp + 0x28]
mov rcx, qword [rsp + 0xc8]
mov qword [rcx], rax
mov dword [rsp + 0x24], 0xc0000023
jmp 0x140002f1a
mov dword [rsp + 0x20], 0
mov eax, dword [rsp + 0x28]
mov rcx, qword [rsp + 0xc8]
mov qword [rcx], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x40], rax
jmp 0x140002e2e
mov rax, qword [rsp + 0x40]
mov rax, qword [rax]
mov qword [rsp + 0x40], rax
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
lea rax, [rsp + 0x68]
cmp qword [rsp + 0x40], rax
je 0x140002f1a
mov rax, qword [rsp + 0x40]
add rax, 0x10
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x30
mov rcx, qword [rsp + 0xc8]
mov rdx, qword [rsp + 0x30]
mov rdx, qword [rdx + 8]
mov qword [rcx + rax + 0x10], rdx
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x30
mov rcx, qword [rsp + 0xc8]
mov rdx, qword [rsp + 0x30]
mov edx, dword [rdx + 0x10]
mov dword [rcx + rax + 0x18], edx
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x30
mov rcx, qword [rsp + 0xc8]
mov rdx, qword [rsp + 0x30]
mov rdx, qword [rdx]
mov qword [rcx + rax + 8], rdx
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x30
mov rcx, qword [rsp + 0xc8]
mov rdx, qword [rsp + 0x30]
mov edx, dword [rdx + 0x24]
mov dword [rcx + rax + 0x2c], edx
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x30
mov rcx, qword [rsp + 0xc8]
mov rdx, qword [rsp + 0x30]
mov rdx, qword [rdx + 0x18]
mov qword [rcx + rax + 0x20], rdx
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x30
mov rcx, qword [rsp + 0xc8]
mov rdx, qword [rsp + 0x30]
mov edx, dword [rdx + 0x20]
mov dword [rcx + rax + 0x28], edx
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x30
mov rcx, qword [rsp + 0xc8]
mov rdx, qword [rsp + 0x30]
mov edx, dword [rdx + 0x28]
mov dword [rcx + rax + 0x30], edx
jmp 0x140002e17
lea rcx, [rsp + 0x68]
call fcn.140001e20
movzx eax, al
test eax, eax
jne 0x140002f54
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov rcx, rax
call fcn.140001ed0
mov edx, 0x656e6f42
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
jmp 0x140002f1a
cmp qword [rsp + 0x60], 0
je 0x140002f67
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.140003e80
add rsp, 0xb8
ret