Function at 0x140001db4
Capabilities:
Attach user process memory

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0x100
mov rax, qword [0x140006010]
xor rax, rsp
mov qword [rbp + 0x1f], rax
mov rsi, rdx
mov qword [rsp + 0x48], rcx
call sub.ntoskrnl.exe_PsGetProcessPeb
mov rcx, rsi
mov rbx, rax
call sub.ntoskrnl.exe_PsGetProcessPeb
xor r12d, r12d
mov rdi, rax
test rax, rax
je 0x1400022b2
test rbx, rbx
je 0x1400022b2
xorps xmm0, xmm0
lea rdx, [rbp - 0x41]
xorps xmm1, xmm1
mov rcx, rsi
movups xmmword [rbp - 0x11], xmm0
movups xmmword [rbp - 1], xmm0
movups xmmword [rbp + 0xf], xmm0
movups xmmword [rbp - 0x41], xmm1
movups xmmword [rbp - 0x31], xmm1
movups xmmword [rbp - 0x21], xmm1
movups xmmword [rsp + 0x58], xmm0
movups xmmword [rbp - 0x61], xmm1
movups xmmword [rbp - 0x51], xmm0
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x30], rax
lea r14d, [r12 + 1]
mov byte [rsp + 0x28], r14b
mov r9, rdi
mov r8, rsi
mov qword [rsp + 0x20], r14
mov rdx, rdi
mov rcx, rsi
call sub.ntoskrnl.exe_MmCopyVirtualMemory
mov rdx, qword [rdi + 0x20]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
mov r9, rdx
mov byte [rsp + 0x28], r14b
mov r8, rsi
mov rcx, rsi
mov qword [rsp + 0x20], r14
call sub.ntoskrnl.exe_MmCopyVirtualMemory
mov rax, qword [rdi + 0x20]
cmp word [rax + 0x60], r12w
je 0x140001ed9
movzx edx, word [rax + 0x62]
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov rdx, qword [rdi + 0x20]
mov rcx, rax
mov r13, rax
movzx r8d, word [rdx + 0x60]
mov rdx, qword [rdx + 0x68]
call fcn.140004040
mov rax, qword [rdi + 0x20]
movzx r15d, word [rax + 0x60]
movzx ecx, word [rax + 0x62]
jmp 0x140001ee7
mov r13, qword [rbp - 0x79]
movzx ecx, word [rbp - 0x7f]
movzx r15d, word [rsp + 0x58]
mov word [rsp + 0x40], cx
cmp word [rax + 0x70], r12w
je 0x140001f2d
movzx edx, word [rax + 0x72]
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov rdx, qword [rdi + 0x20]
mov rcx, rax
mov qword [rsp + 0x58], rax
movzx r8d, word [rdx + 0x70]
mov rdx, qword [rdx + 0x78]
call fcn.140004040
mov rax, qword [rdi + 0x20]
movzx ecx, word [rax + 0x72]
movzx r14d, word [rax + 0x70]
mov word [rsp + 0x42], cx
jmp 0x140001f44
mov rcx, qword [rbp - 0x59]
movzx edx, word [rbp - 0x5f]
movzx r14d, word [rbp - 0x61]
mov qword [rsp + 0x58], rcx
mov word [rsp + 0x42], dx
cmp word [rax + 0xb0], r12w
je 0x140001f8f
movzx edx, word [rax + 0xb2]
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov rdx, qword [rdi + 0x20]
mov rcx, rax
mov r12, rax
movzx r8d, word [rdx + 0xb0]
mov rdx, qword [rdx + 0xb8]
call fcn.140004040
mov rax, qword [rdi + 0x20]
movzx edi, word [rax + 0xb0]
movzx eax, word [rax + 0xb2]
jmp 0x140001f9b
mov r12, qword [rbp - 0x49]
movzx eax, word [rbp - 0x4f]
movzx edi, word [rbp - 0x51]
lea rcx, [rbp - 0x41]
mov word [rsp + 0x44], ax
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rsi, qword [rsp + 0x48]
lea rdx, [rbp - 0x11]
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
lea rax, [rsp + 0x50]
mov r9, rbx
mov qword [rsp + 0x30], rax
mov r8, rsi
mov byte [rsp + 0x28], 1
mov rdx, rbx
mov rcx, rsi
mov qword [rsp + 0x20], 1
call sub.ntoskrnl.exe_MmCopyVirtualMemory
mov rdx, qword [rbx + 0x20]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
mov r9, rdx
mov byte [rsp + 0x28], 1
mov r8, rsi
mov rcx, rsi
mov qword [rsp + 0x20], 1
call sub.ntoskrnl.exe_MmCopyVirtualMemory
mov eax, 0x1000
mov dword [rsp + 0x28], 4
xor esi, esi
mov qword [rbp - 0x69], rax
lea r9, [rbp - 0x69]
mov dword [rsp + 0x20], eax
xor r8d, r8d
mov qword [rbp - 0x71], rsi
lea rdx, [rbp - 0x71]
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwAllocateVirtualMemory]
mov rcx, qword [rbx + 0x20]
xor r8d, r8d
mov rsi, qword [rbp - 0x71]
mov edx, eax
mov dword [rsp + 0x48], eax
movzx eax, word [rcx + 0x60]
test ax, ax
je 0x1400020fe
test r15w, r15w
je 0x1400020fe
cmp ax, r15w
jb 0x14000209c
movzx r8d, word [rcx + 0x62]
xor edx, edx
mov rcx, qword [rcx + 0x68]
call fcn.140004300
mov rcx, qword [rbx + 0x20]
mov rdx, r13
movzx r8d, r15w
mov rcx, qword [rcx + 0x68]
call fcn.140004040
mov rax, qword [rbx + 0x20]
mov word [rax + 0x60], r15w
jmp 0x1400020f7
test edx, edx
jns 0x1400020c7
movzx r8d, word [rcx + 0x62]
xor edx, edx
mov rcx, qword [rcx + 0x68]
call fcn.140004300
mov rax, qword [rbx + 0x20]
xor r8d, r8d
mov word [rax + 0x60], r8w
mov rax, qword [rbx + 0x20]
mov word [rax + 0x62], r8w
jmp 0x1400020fa
movzx r8d, r15w
mov rdx, r13
mov rcx, rsi
call fcn.140004040
mov rax, qword [rbx + 0x20]
movzx ecx, word [rsp + 0x40]
mov word [rax + 0x60], r15w
mov rax, qword [rbx + 0x20]
mov word [rax + 0x62], cx
mov rax, qword [rbx + 0x20]
mov qword [rax + 0x68], rsi
add rsi, rcx
xor r8d, r8d
mov edx, dword [rsp + 0x48]
mov rcx, qword [rbx + 0x20]
movzx eax, word [rcx + 0x70]
test ax, ax
je 0x1400021b0
test r14w, r14w
je 0x1400021b0
cmp ax, r14w
jb 0x140002150
movzx r8d, word [rcx + 0x72]
xor edx, edx
mov rcx, qword [rcx + 0x78]
call fcn.140004300
mov rcx, qword [rbx + 0x20]
mov rdx, qword [rsp + 0x58]
movzx r8d, r14w
mov rcx, qword [rcx + 0x78]
call fcn.140004040
mov rax, qword [rbx + 0x20]
mov word [rax + 0x70], r14w
jmp 0x1400021ad
test edx, edx
jns 0x14000217b
movzx r8d, word [rcx + 0x72]
xor edx, edx
mov rcx, qword [rcx + 0x78]
call fcn.140004300
mov rax, qword [rbx + 0x20]
xor r8d, r8d
mov word [rax + 0x70], r8w
mov rax, qword [rbx + 0x20]
mov word [rax + 0x72], r8w
jmp 0x1400021b0
mov rdx, qword [rsp + 0x58]
mov rcx, rsi
movzx r8d, r14w
call fcn.140004040
mov rax, qword [rbx + 0x20]
movzx ecx, word [rsp + 0x42]
mov word [rax + 0x70], r14w
mov rax, qword [rbx + 0x20]
mov word [rax + 0x72], cx
mov rax, qword [rbx + 0x20]
mov qword [rax + 0x78], rsi
add rsi, rcx
xor r8d, r8d
mov rcx, qword [rbx + 0x20]
movzx eax, word [rcx + 0xb0]
test ax, ax
je 0x140002246
test di, di
je 0x140002246
cmp ax, di
jb 0x140002208
movzx r8d, word [rcx + 0xb2]
xor edx, edx
mov rcx, qword [rcx + 0xb8]
call fcn.140004300
mov rcx, qword [rbx + 0x20]
mov rdx, r12
movzx r8d, di
mov rcx, qword [rcx + 0xb8]
call fcn.140004040
mov rax, qword [rbx + 0x20]
mov word [rax + 0xb0], di
jmp 0x140002274
cmp dword [rsp + 0x48], r8d
jl 0x140002246
movzx r8d, di
mov rdx, r12
mov rcx, rsi
call fcn.140004040
mov rax, qword [rbx + 0x20]
movzx ecx, word [rsp + 0x44]
mov word [rax + 0xb0], di
mov rax, qword [rbx + 0x20]
mov word [rax + 0xb2], cx
mov rax, qword [rbx + 0x20]
mov qword [rax + 0xb8], rsi
jmp 0x140002274
movzx r8d, word [rcx + 0xb2]
xor edx, edx
mov rcx, qword [rcx + 0xb8]
call fcn.140004300
mov rax, qword [rbx + 0x20]
xor esi, esi
mov word [rax + 0xb0], si
mov rax, qword [rbx + 0x20]
mov word [rax + 0xb2], si
lea rcx, [rbp - 0x11]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
test r15w, r15w
je 0x14000228f
xor edx, edx
mov rcx, r13
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
test r14w, r14w
je 0x1400022a2
mov rcx, qword [rsp + 0x58]
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
test di, di
je 0x1400022b2
xor edx, edx
mov rcx, r12
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.140003dc0
mov rbx, qword [rsp + 0x150]
add rsp, 0x100
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret