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

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x130
mov dword [rsp + 0x68], 0
mov qword [rsp + 0x50], 0
mov word [rsp + 0x58], 0
lea rax, [rsp + 0x5a]
mov rdi, rax
xor eax, eax
mov ecx, 0xe
rep stosb byte [rdi], al
mov qword [rsp + 0x70], 0
lea rax, [rsp + 0x78]
mov rdi, rax
xor eax, eax
mov ecx, 0x50
rep stosb byte [rdi], al
lea rdx, [rsp + 0x50]
mov rax, qword [rsp + 0x140]
mov rcx, qword [rax]
call sub.ntoskrnl.exe_PsLookupProcessByProcessId
mov dword [rsp + 0x68], eax
cmp dword [rsp + 0x68], 0
jl 0x417da2
mov rcx, qword [rsp + 0x50]
call sub.ntoskrnl.exe_MmIsAddressValid
movzx eax, al
test eax, eax
je 0x417da2
mov qword [rsp + 0xd8], 0
mov rax, qword [rsp + 0x140]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x118], rax
mov rax, qword [rsp + 0x140]
mov eax, dword [rax + 0x38]
mov dword [rsp + 0xd0], eax
mov rax, qword [rsp + 0x140]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x110], rax
mov rax, qword [rsp + 0x140]
cmp qword [rax + 0x20], 0
je 0x417ca7
cmp qword [rsp + 0x118], 0x3e8
jbe 0x417ca7
mov rax, qword [rsp + 0x140]
cmp qword [rax + 0x18], 0
je 0x417c40
xor eax, eax
test rax, rax
je 0x417bef
call sub.ntoskrnl.exe_ExRaiseDatatypeMisalignment
mov rax, qword [rsp + 0x140]
mov rax, qword [rax + 0x20]
mov rcx, qword [rsp + 0x140]
add rax, qword [rcx + 0x18]
cmp rax, qword [sym.imp.ntoskrnl.exe_MmUserProbeAddress]
ja 0x417c36
mov rax, qword [rsp + 0x140]
mov rax, qword [rax + 0x20]
mov rcx, qword [rsp + 0x140]
add rax, qword [rcx + 0x18]
mov rcx, qword [rsp + 0x140]
cmp rax, qword [rcx + 0x20]
jae 0x417c40
mov rax, qword [sym.imp.ntoskrnl.exe_MmUserProbeAddress]
mov byte [rax], 0
mov r8d, 0x486e7367
mov rax, qword [rsp + 0x140]
mov rdx, qword [rax + 0x18]
mov ecx, 1
call sub.ntoskrnl.exe_ExAllocatePoolWithTag
mov qword [rsp + 0xd8], rax
mov rax, qword [rsp + 0x140]
mov r8, qword [rax + 0x18]
mov rax, qword [rsp + 0x140]
mov rdx, qword [rax + 0x20]
mov rcx, qword [rsp + 0xd8]
call fcn.004319d0
jmp 0x417ca7
mov rax, qword [rsp + 0x140]
mov rax, qword [rax + 0x28]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x140]
mov rcx, qword [rax + 0x28]
call sub.ntoskrnl.exe_strlen
mov word [rsp + 0x5a], ax
movzx eax, word [rsp + 0x5a]
mov word [rsp + 0x58], ax
mov r8b, 1
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x120]
call sub.ntoskrnl.exe_RtlAnsiStringToUnicodeString
mov rax, qword [rsp + 0x140]
cmp qword [rax + 0x28], 0
jne 0x417d22
mov rax, qword [rsp + 0x140]
cmp qword [rax + 0x20], 0
jne 0x417d22
mov rax, qword [rsp + 0x140]
cmp qword [rax + 0x18], 0x3e8
jae 0x417d22
jmp 0x417da2
lea rdx, [rsp + 0xe0]
mov rcx, qword [rsp + 0x50]
call sub.ntoskrnl.exe_KeStackAttachProcess
nop
lea rax, [rsp + 0x70]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x110]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov eax, dword [rsp + 0xd0]
mov dword [rsp + 0x28], eax
mov byte [rsp + 0x20], 1
mov r9, qword [rsp + 0x118]
mov r8, qword [rsp + 0xd8]
lea rdx, [rsp + 0x120]
mov rcx, qword [rsp + 0x50]
call fcn.00416da0
mov dword [rsp + 0x68], eax
jmp 0x417d95
lea rcx, [rsp + 0xe0]
call sub.ntoskrnl.exe_KeUnstackDetachProcess
cmp qword [rsp + 0x50], 0
je 0x417db4
mov rcx, qword [rsp + 0x50]
call sub.ntoskrnl.exe_ObfDereferenceObject
mov eax, dword [rsp + 0x68]
add rsp, 0x130
pop rdi
ret