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

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rsi
push rdi
sub rsp, 0xa8
mov byte [rsp + 0x91], 0
mov dword [rsp + 0x94], 0xc0000001
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x48], 0
mov byte [rsp + 0x90], 0
mov dword [rsp + 0x40], 0
mov eax, dword [rsp + 0xd8]
mov qword [rsp + 0x98], rax
mov ecx, dword [rsp + 0xc0]
lea rdx, [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov dword [rsp + 0x94], eax
cmp dword [rsp + 0x94], 0
jge 0x1800037a8
jmp 0x180003994
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
mov byte [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0x1fffff
xor r8d, r8d
mov edx, 0x200
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_ObOpenObjectByPointer]
mov dword [rsp + 0x94], eax
cmp dword [rsp + 0x94], 0
jge 0x1800037ef
jmp 0x180003994
mov r8d, 0x537973
mov rdx, qword [rsp + 0x98]
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x180003817
jmp 0x180003994
mov r8d, 1
mov rdx, qword [rsp + 0x98]
mov rcx, qword [rsp + 0xd0]
call qword [sym.imp.ntoskrnl.exe_ProbeForRead]
mov rdi, qword [rsp + 0x50]
mov rsi, qword [rsp + 0xd0]
mov rcx, qword [rsp + 0x98]
rep movsb byte [rdi], byte [rsi]
jmp 0x180003857
cmp dword [rsp + 0x94], 0
jge 0x180003866
jmp 0x180003994
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov byte [rsp + 0x90], 1
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x40
lea r8, [rsp + 0x98]
lea rdx, [rsp + 0xc8]
mov rcx, qword [rsp + 0x48]
call fcn.1800035e0
mov dword [rsp + 0x94], eax
cmp dword [rsp + 0x94], 0
jge 0x18000390d
cmp dword [rsp + 0x94], 0xc0000045
jne 0x180003908
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 4
lea r8, [rsp + 0x98]
lea rdx, [rsp + 0xc8]
mov rcx, qword [rsp + 0x48]
call fcn.1800035e0
mov dword [rsp + 0x94], eax
cmp dword [rsp + 0x94], 0
jge 0x180003906
jmp 0x180003994
jmp 0x18000390d
jmp 0x180003994
mov r8d, 1
mov rdx, qword [rsp + 0x98]
mov rcx, qword [rsp + 0xc8]
call qword [sym.imp.ntoskrnl.exe_ProbeForWrite]
mov rdi, qword [rsp + 0xc8]
mov rsi, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x98]
rep movsb byte [rdi], byte [rsi]
jmp 0x18000394d
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x40]
lea r8, [rsp + 0x98]
lea rdx, [rsp + 0xc8]
mov rcx, qword [rsp + 0x48]
call fcn.1800035e0
cmp dword [rsp + 0x94], 0
jge 0x180003982
jmp 0x180003994
mov byte [rsp + 0x91], 1
xor eax, eax
test eax, eax
jne 0x180003780
cmp qword [rsp + 0x50], 0
je 0x1800039b2
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov qword [rsp + 0x50], 0
cmp qword [rsp + 0x58], 0
je 0x1800039ce
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov qword [rsp + 0x58], 0
movzx eax, byte [rsp + 0x90]
test eax, eax
je 0x1800039e5
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov al, byte [rsp + 0x91]
add rsp, 0xa8
pop rdi
pop rsi
ret