Function at 0x140008600
Capabilities:
Attach user process memory
Create thread
Find process by pid

Disassembly:
push rbx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x98
mov rax, qword [0x14000f090]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov edi, r9d
mov r9, r8
mov r15d, edx
mov r14d, ecx
mov eax, 0x14
xor ecx, ecx
cpuid
test cl, 2
jne 0x140008647
mov dword [0x14000f164], 1
mov esi, dword [rsp + 0xf8]
mov dword [0x14000f168], esi
mov eax, dword [rsp + 0x108]
mov dword [0x14000f6d4], eax
mov eax, dword [rsp + 0x100]
mov dword [0x14000f6d0], eax
movzx ecx, word [r8]
xor r12d, r12d
mov eax, r12d
test cx, cx
setne al
mov dword [0x1400123c8], eax
test cx, cx
je 0x1400086a7
mov r8d, 0xc7
mov rdx, r9
lea rcx, [0x14000f500]
call qword [sym.imp.ntoskrnl.exe_wcsncpy]
mov word [0x14000f68e], r12w
test edi, edi
je 0x140008727
mov rcx, qword [0x14000f158]
test rcx, rcx
je 0x1400086c6
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov qword [0x14000f158], r12
movsxd rax, edi
lea rdx, [rax + rax*2]
shl rdx, 3
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov qword [0x14000f158], rax
test edi, edi
jle 0x14000872a
mov rax, r12
mov rdx, rdi
mov rbx, qword [rsp + 0xf0]
nop dword [rax]
nop word [rax + rax]
mov rcx, qword [0x14000f158]
movups xmm0, xmmword [rax + rbx]
movups xmmword [rax + rcx], xmm0
movsd xmm1, qword [rax + rbx + 0x10]
movsd qword [rax + rcx + 0x10], xmm1
lea rax, [rax + 0x18]
sub rdx, 1
jne 0x140008700
jmp 0x14000872a
mov edi, r12d
mov dword [0x14000f4f0], edi
test r14d, r14d
je 0x1400087ca
mov rcx, r14
lea rdx, [0x14000f6c8]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jne 0x140008b88
call fcn.140001b90
test rax, 0xfff
je 0x140008788
mov rcx, qword [0x14000f6c8]
mov rax, qword [rcx + 0x278]
mov qword [0x14000f6c0], rax
test rax, 0xfffffffffffff000
jne 0x1400087d8
mov rax, qword [rcx + 0x28]
mov qword [0x14000f6c0], rax
jmp 0x1400087d8
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
lea rdx, [rsp + 0x50]
mov rcx, qword [0x14000f6c8]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
call fcn.140001b90
mov qword [0x14000f6c0], rax
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
jmp 0x1400087d8
mov qword [0x14000f6c8], r12
mov qword [0x14000f6c0], r12
cmp qword [0x14000f728], 0
je 0x140008b88
cmp qword [0x14000f720], 0
je 0x140008b88
xor r8d, r8d
lea rdx, [0x1400085d0]
lea rcx, [0x14000f6e0]
call qword [sym.imp.ntoskrnl.exe_KeInitializeDpc]
xor r8d, r8d
mov edx, 1
lea rcx, [0x14000f6a0]
call qword [sym.imp.ntoskrnl.exe_KeInitializeEvent]
xor r8d, r8d
mov edx, 1
lea rcx, [0x14000f480]
call qword [sym.imp.ntoskrnl.exe_KeInitializeEvent]
xor edx, edx
lea rcx, [0x14000f4a0]
call qword [sym.imp.ntoskrnl.exe_KeInitializeMutex]
call qword [sym.imp.ntoskrnl.exe_KeQueryMaximumProcessorCount]
mov dword [0x14000f4d8], eax
movsxd rdx, eax
shl rdx, 3
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov qword [0x14000f4e0], rax
movsxd rdx, dword [0x14000f4d8]
shl rdx, 3
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov qword [0x14000f4e8], rax
cmp qword [0x14000f4e0], 0
je 0x140008b88
test rax, rax
je 0x140008b88
mov edi, r12d
cmp dword [0x14000f4d8], r12d
jle 0x140008a75
nop word [rax + rax]
movsxd rax, edi
lea rbx, [rax*8]
mov edx, 0x140
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov rcx, qword [0x14000f4e0]
mov qword [rbx + rcx], rax
mov rcx, qword [0x14000f4e0]
mov rcx, qword [rbx + rcx]
xor edx, edx
mov r8d, 0x140
call fcn.14000c6c0
mov rax, qword [0x14000f4e0]
mov rcx, qword [rbx + rax]
add rcx, 0x58
xor r8d, r8d
mov edx, 1
call qword [sym.imp.ntoskrnl.exe_KeInitializeEvent]
mov rax, qword [0x14000f4e0]
mov rcx, qword [rbx + rax]
add rcx, 0x40
mov r8b, 1
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_KeInitializeEvent]
mov rax, qword [0x14000f4e0]
mov r9, qword [rbx + rax]
add r9, 0x30
mov rax, qword [0x14000f4e0]
mov r8, qword [rbx + rax]
add r8, 0x20
mov rax, qword [0x14000f4e0]
mov rdx, qword [rbx + rax]
add rdx, 0x10
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], r15d
mov rcx, qword [0x14000f4e0]
mov rcx, qword [rbx + rcx]
call fcn.140009440
mov rax, qword [0x14000f4e0]
mov r9, qword [rbx + rax]
add r9, 0x38
mov rax, qword [0x14000f4e0]
mov r8, qword [rbx + rax]
add r8, 0x28
mov rax, qword [0x14000f4e0]
mov rdx, qword [rbx + rax]
add rdx, 0x18
mov rax, qword [0x14000f4e0]
mov rcx, qword [rbx + rax]
add rcx, 8
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], r15d
call fcn.140009440
mov rax, qword [0x14000f4e0]
mov rcx, qword [rbx + rax]
add rcx, 0x70
xor r8d, r8d
mov edx, 1
call qword [sym.imp.ntoskrnl.exe_KeInitializeEvent]
mov rax, qword [0x14000f4e0]
mov rcx, qword [rbx + rax]
add rcx, 0x88
xor r8d, r8d
mov edx, 1
call qword [sym.imp.ntoskrnl.exe_KeInitializeEvent]
mov rax, qword [0x14000f4e0]
mov rcx, qword [rbx + rax]
add rcx, 0x118
mov r8b, 1
mov edx, 1
call qword [sym.imp.ntoskrnl.exe_KeInitializeEvent]
mov rax, qword [0x14000f4e0]
mov rcx, qword [rbx + rax]
add rcx, 0x70
mov rax, qword [0x14000f4e8]
mov qword [rbx + rax], rcx
mov rax, qword [0x14000f4e0]
mov rcx, qword [rbx + rax]
add rcx, 0xc8
xor r8d, r8d
lea rdx, [0x140008bb0]
call qword [sym.imp.ntoskrnl.exe_KeInitializeDpc]
mov rax, qword [0x14000f4e0]
mov rcx, qword [rbx + rax]
add rcx, 0xc8
movzx edx, dil
call qword [sym.imp.ntoskrnl.exe_KeSetTargetProcessorDpc]
inc edi
cmp edi, dword [0x14000f4d8]
jl 0x1400088b0
mov byte [0x14000f150], 1
mov dword [0x14000f160], 1
mov qword [rsp + 0x30], r12
lea rax, [0x1400098e0]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [0x14000f470]
call qword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
mov qword [rsp + 0x30], r12
lea rax, [0x140009090]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [0x14000f6b8]
call qword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
mov ebx, r12d
cmp dword [0x14000f4d8], r12d
jle 0x140008b2c
lea rdi, [0x140008df0]
nop
movsxd rdx, ebx
mov rax, qword [0x14000f4e0]
mov rcx, qword [rax + rdx*8]
add rcx, 0x108
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], r12
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
inc ebx
cmp ebx, dword [0x14000f4d8]
jl 0x140008af0
test esi, esi
jne 0x140008b6f
cmp dword [0x14000f468], esi
jne 0x140008b6f
lea rax, [0x140008070]
mov qword [0x14000f018], rax
lea r8, [0x14000f018]
mov edx, 8
mov ecx, 1
mov rax, qword [sym.imp.ntoskrnl.exe_HalDispatchTable]
call qword [rax + 0x10]
test eax, eax
jne 0x140008b6f
mov dword [0x14000f468], 1
mov qword [rsp + 0x20], r12
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [0x140009f60]
call fcn.140001800
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14000c600
add rsp, 0x98
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
ret