Function at 0x140001818
Capabilities:
Attach user process memory

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0x90
mov rax, qword [0x140006010]
xor rax, rsp
mov qword [rbp + 0x3f], rax
mov rsi, rcx
call sub.ntoskrnl.exe_PsGetProcessWow64Process
xor r15d, r15d
mov rbx, rax
test rax, rax
je 0x140001b1c
mov rcx, rsi
call sub.ntoskrnl.exe_PsGetProcessPeb
mov rdi, rax
test rax, rax
je 0x140001b1c
xorps xmm0, xmm0
lea rdx, [rbp + 0xf]
mov rcx, rsi
movups xmmword [rbp + 0xf], xmm0
movups xmmword [rbp + 0x1f], xmm0
movups xmmword [rbp + 0x2f], xmm0
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
lea rax, [rbp - 9]
mov qword [rbp - 9], r15
mov qword [rsp + 0x30], rax
lea r14d, [r15 + 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, [rbp - 9]
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
lea rax, [rbp - 9]
mov r9, rbx
mov qword [rsp + 0x30], rax
mov r8, rsi
mov byte [rsp + 0x28], r14b
mov rdx, rbx
mov rcx, rsi
mov qword [rsp + 0x20], r14
call sub.ntoskrnl.exe_MmCopyVirtualMemory
mov ebx, dword [rbx + 0x10]
lea rax, [rbp - 9]
mov qword [rsp + 0x30], rax
mov r9d, ebx
mov byte [rsp + 0x28], r14b
mov r8, rsi
mov edx, ebx
mov qword [rsp + 0x20], r14
mov rcx, rsi
call sub.ntoskrnl.exe_MmCopyVirtualMemory
mov eax, 0x1000
mov dword [rsp + 0x28], 4
lea r9, [rbp + 7]
mov qword [rbp + 7], rax
xor r8d, r8d
mov dword [rsp + 0x20], eax
lea rdx, [rbp - 1]
mov qword [rbp - 1], r15
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwAllocateVirtualMemory]
mov rdx, qword [rdi + 0x20]
mov r14d, eax
mov rsi, qword [rbp - 1]
movzx eax, word [rdx + 0x60]
test ax, ax
je 0x1400019e8
cmp word [rbx + 0x38], ax
jb 0x1400019a1
movzx r8d, word [rbx + 0x3a]
xor edx, edx
mov ecx, dword [rbx + 0x3c]
call fcn.140004140
mov rdx, qword [rdi + 0x20]
mov ecx, dword [rbx + 0x3c]
movzx r8d, word [rdx + 0x60]
mov rdx, qword [rdx + 0x68]
call fcn.140003e80
mov rax, qword [rdi + 0x20]
movzx ecx, word [rax + 0x60]
mov word [rbx + 0x38], cx
jmp 0x1400019e8
test r14d, r14d
jns 0x1400019bb
movzx r8d, word [rbx + 0x3a]
xor edx, edx
mov ecx, dword [rbx + 0x3c]
call fcn.140004140
mov dword [rbx + 0x38], r15d
jmp 0x1400019e8
mov rdx, qword [rdx + 0x68]
mov r8, rax
mov rcx, rsi
call fcn.140003e80
mov rax, qword [rdi + 0x20]
movzx ecx, word [rax + 0x60]
mov word [rbx + 0x38], cx
mov rax, qword [rdi + 0x20]
movzx ecx, word [rax + 0x62]
mov dword [rbx + 0x3c], esi
add rsi, rcx
mov word [rbx + 0x3a], cx
mov rdx, qword [rdi + 0x20]
movzx eax, word [rdx + 0x70]
test ax, ax
je 0x140001a74
cmp word [rbx + 0x40], ax
jb 0x140001a2d
movzx r8d, word [rbx + 0x42]
xor edx, edx
mov ecx, dword [rbx + 0x44]
call fcn.140004140
mov rdx, qword [rdi + 0x20]
mov ecx, dword [rbx + 0x44]
movzx r8d, word [rdx + 0x70]
mov rdx, qword [rdx + 0x78]
call fcn.140003e80
mov rax, qword [rdi + 0x20]
movzx ecx, word [rax + 0x70]
mov word [rbx + 0x40], cx
jmp 0x140001a74
test r14d, r14d
jns 0x140001a47
movzx r8d, word [rbx + 0x42]
xor edx, edx
mov ecx, dword [rbx + 0x44]
call fcn.140004140
mov dword [rbx + 0x40], r15d
jmp 0x140001a74
mov rdx, qword [rdx + 0x78]
mov r8, rax
mov rcx, rsi
call fcn.140003e80
mov rax, qword [rdi + 0x20]
movzx ecx, word [rax + 0x70]
mov word [rbx + 0x40], cx
mov rax, qword [rdi + 0x20]
movzx ecx, word [rax + 0x72]
mov dword [rbx + 0x44], esi
add rsi, rcx
mov word [rbx + 0x42], cx
mov rdx, qword [rdi + 0x20]
movzx eax, word [rdx + 0xb0]
test ax, ax
je 0x140001aff
cmp word [rbx + 0x70], ax
jb 0x140001ac5
movzx r8d, word [rbx + 0x72]
xor edx, edx
mov ecx, dword [rbx + 0x74]
call fcn.140004140
mov rdx, qword [rdi + 0x20]
mov ecx, dword [rbx + 0x74]
movzx r8d, word [rdx + 0xb0]
mov rdx, qword [rdx + 0xb8]
call fcn.140003e80
mov rax, qword [rdi + 0x20]
movzx ecx, word [rax + 0xb0]
mov word [rbx + 0x70], cx
jmp 0x140001b12
test r14d, r14d
js 0x140001aff
mov rdx, qword [rdx + 0xb8]
mov r8, rax
mov rcx, rsi
call fcn.140003e80
mov rax, qword [rdi + 0x20]
movzx ecx, word [rax + 0xb0]
mov word [rbx + 0x70], cx
mov rax, qword [rdi + 0x20]
movzx ecx, word [rax + 0xb2]
mov word [rbx + 0x72], cx
mov dword [rbx + 0x74], esi
jmp 0x140001b12
movzx r8d, word [rbx + 0x72]
xor edx, edx
mov ecx, dword [rbx + 0x74]
call fcn.140004140
mov dword [rbx + 0x70], r15d
lea rcx, [rbp + 0xf]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.140003bf0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret