Function at 0x140008550
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 [0x14000f050]
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
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x44], ebx
mov dword [rsp + 0x48], ecx
mov dword [rsp + 0x4c], edx
test cl, 2
jne 0x1400085a7
mov dword [0x14000f124], 1
mov esi, dword [rsp + 0xf8]
mov dword [0x14000f128], esi
mov eax, dword [rsp + 0x108]
mov dword [0x14000f694], eax
mov eax, dword [rsp + 0x100]
mov dword [0x14000f690], eax
movzx ecx, word [r8]
xor r12d, r12d
mov eax, r12d
test cx, cx
setne al
mov dword [0x140012388], eax
test cx, cx
je 0x140008607
mov r8d, 0xc7
mov rdx, r9
lea rcx, [0x14000f4c0]
call qword [sym.imp.ntoskrnl.exe_wcsncpy]
mov word [0x14000f64e], r12w
test edi, edi
je 0x140008687
mov rcx, qword [0x14000f118]
test rcx, rcx
je 0x140008626
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov qword [0x14000f118], r12
movsxd rax, edi
lea rdx, [rax + rax*2]
shl rdx, 3
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov qword [0x14000f118], rax
test edi, edi
jle 0x14000868a
mov rax, r12
mov rdx, rdi
mov rbx, qword [rsp + 0xf0]
nop dword [rax]
nop word [rax + rax]
mov rcx, qword [0x14000f118]
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 0x140008660
jmp 0x14000868a
mov edi, r12d
mov dword [0x14000f4b0], edi
test r14d, r14d
je 0x14000872a
mov rcx, r14
lea rdx, [0x14000f688]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jne 0x140008ae4
call fcn.140001b90
test rax, 0xfff
je 0x1400086e8
mov rcx, qword [0x14000f688]
mov rax, qword [rcx + 0x278]
mov qword [0x14000f680], rax
test rax, 0xfffffffffffff000
jne 0x140008738
mov rax, qword [rcx + 0x28]
mov qword [0x14000f680], rax
jmp 0x140008738
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 [0x14000f688]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
call fcn.140001b90
mov qword [0x14000f680], rax
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
jmp 0x140008738
mov qword [0x14000f688], r12
mov qword [0x14000f680], r12
cmp qword [0x14000f6e8], 0
je 0x140008ae4
cmp qword [0x14000f6e0], 0
je 0x140008ae4
xor r8d, r8d
lea rdx, [0x140008520]
lea rcx, [0x14000f6a0]
call qword [sym.imp.ntoskrnl.exe_KeInitializeDpc]
xor r8d, r8d
lea edx, [r8 + 1]
lea rcx, [0x14000f660]
call qword [sym.imp.ntoskrnl.exe_KeInitializeEvent]
xor r8d, r8d
lea edx, [r8 + 1]
lea rcx, [0x14000f440]
call qword [sym.imp.ntoskrnl.exe_KeInitializeEvent]
xor edx, edx
lea rcx, [0x14000f460]
call qword [sym.imp.ntoskrnl.exe_KeInitializeMutex]
call qword [sym.imp.ntoskrnl.exe_KeQueryMaximumProcessorCount]
mov dword [0x14000f498], eax
movsxd rdx, eax
shl rdx, 3
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov qword [0x14000f4a0], rax
movsxd rdx, dword [0x14000f498]
shl rdx, 3
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov qword [0x14000f4a8], rax
cmp qword [0x14000f4a0], 0
je 0x140008ae4
test rax, rax
je 0x140008ae4
mov edi, r12d
cmp dword [0x14000f498], r12d
jle 0x1400089d2
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 [0x14000f4a0]
mov qword [rbx + rcx], rax
mov rcx, qword [0x14000f4a0]
mov rcx, qword [rbx + rcx]
xor edx, edx
mov r8d, 0x140
call fcn.14000c480
mov rax, qword [0x14000f4a0]
mov rcx, qword [rbx + rax]
add rcx, 0x58
xor r8d, r8d
lea edx, [r8 + 1]
call qword [sym.imp.ntoskrnl.exe_KeInitializeEvent]
mov rax, qword [0x14000f4a0]
mov rcx, qword [rbx + rax]
add rcx, 0x40
mov r8b, 1
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_KeInitializeEvent]
mov rax, qword [0x14000f4a0]
mov r9, qword [rbx + rax]
add r9, 0x30
mov rax, qword [0x14000f4a0]
mov r8, qword [rbx + rax]
add r8, 0x20
mov rax, qword [0x14000f4a0]
mov rdx, qword [rbx + rax]
add rdx, 0x10
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], r15d
mov rcx, qword [0x14000f4a0]
mov rcx, qword [rbx + rcx]
call fcn.140009390
mov rax, qword [0x14000f4a0]
mov r9, qword [rbx + rax]
add r9, 0x38
mov rax, qword [0x14000f4a0]
mov r8, qword [rbx + rax]
add r8, 0x28
mov rax, qword [0x14000f4a0]
mov rdx, qword [rbx + rax]
add rdx, 0x18
mov rax, qword [0x14000f4a0]
mov rcx, qword [rbx + rax]
add rcx, 8
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], r15d
call fcn.140009390
mov rax, qword [0x14000f4a0]
mov rcx, qword [rbx + rax]
add rcx, 0x70
xor r8d, r8d
lea edx, [r8 + 1]
call qword [sym.imp.ntoskrnl.exe_KeInitializeEvent]
mov rax, qword [0x14000f4a0]
mov rcx, qword [rbx + rax]
add rcx, 0x88
xor r8d, r8d
lea edx, [r8 + 1]
call qword [sym.imp.ntoskrnl.exe_KeInitializeEvent]
mov rax, qword [0x14000f4a0]
mov rcx, qword [rbx + rax]
add rcx, 0x118
mov r8b, 1
mov edx, 1
call qword [sym.imp.ntoskrnl.exe_KeInitializeEvent]
mov rax, qword [0x14000f4a0]
mov rcx, qword [rbx + rax]
add rcx, 0x70
mov rax, qword [0x14000f4a8]
mov qword [rbx + rax], rcx
mov rax, qword [0x14000f4a0]
mov rcx, qword [rbx + rax]
add rcx, 0xc8
xor r8d, r8d
lea rdx, [0x140008b10]
call qword [sym.imp.ntoskrnl.exe_KeInitializeDpc]
mov rax, qword [0x14000f4a0]
mov rcx, qword [rbx + rax]
add rcx, 0xc8
movzx edx, dil
call qword [sym.imp.ntoskrnl.exe_KeSetTargetProcessorDpc]
inc edi
cmp edi, dword [0x14000f498]
jl 0x140008810
mov byte [0x14000f110], 1
mov dword [0x14000f120], 1
mov qword [rsp + 0x30], r12
lea rax, [0x140009850]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [0x14000f430]
call qword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
mov qword [rsp + 0x30], r12
lea rax, [0x140008fe0]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [0x14000f678]
call qword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
mov ebx, r12d
cmp dword [0x14000f498], ebx
jle 0x140008a8c
lea rdi, [0x140008d40]
nop dword [rax + rax]
movsxd rdx, ebx
mov rax, qword [0x14000f4a0]
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 [0x14000f498]
jl 0x140008a50
test esi, esi
jne 0x140008acb
cmp dword [0x14000f428], esi
jne 0x140008acb
lea rax, [0x140007fc0]
mov qword [0x14000f018], rax
lea r8, [0x14000f018]
lea edx, [rsi + 8]
lea ecx, [rsi + 1]
mov rax, qword [sym.imp.ntoskrnl.exe_HalDispatchTable]
call qword [rax + 0x10]
test eax, eax
jne 0x140008acb
mov dword [0x14000f428], 1
mov qword [rsp + 0x20], r12
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [0x140009ed0]
call fcn.1400017f0
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14000c410
add rsp, 0x98
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
ret