Function at 0x140008c10
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 [0x140010030]
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 0x140008c67
mov dword [0x140010144], 1
mov esi, dword [rsp + 0xf8]
mov dword [0x140010148], esi
mov eax, dword [rsp + 0x108]
mov dword [0x140011454], eax
mov eax, dword [rsp + 0x100]
mov dword [0x140011450], eax
movzx ecx, word [r8]
xor r12d, r12d
mov eax, r12d
test cx, cx
setne al
mov dword [0x140014148], eax
test cx, cx
je 0x140008cc6
mov r8d, 0xc7
mov rdx, r9
lea rcx, [0x140011280]
call fcn.14000c1c0
mov word [0x14001140e], r12w
test edi, edi
je 0x140008d38
mov rcx, qword [0x140010138]
test rcx, rcx
je 0x140008ce5
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov qword [0x140010138], r12
movsxd rax, edi
lea rdx, [rax + rax*2]
shl rdx, 3
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov qword [0x140010138], rax
test edi, edi
jle 0x140008d3b
mov rax, r12
mov rdx, rdi
mov rbx, qword [rsp + 0xf0]
mov rcx, qword [0x140010138]
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 0x140008d11
jmp 0x140008d3b
mov edi, r12d
mov dword [0x140011270], edi
test r14d, r14d
je 0x140008ddb
mov rcx, r14
lea rdx, [0x140011448]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jne 0x14000919b
call fcn.140002210
test rax, 0xfff
je 0x140008d99
mov rcx, qword [0x140011448]
mov rax, qword [rcx + 0x278]
mov qword [0x140011440], rax
test rax, 0xfffffffffffff000
jne 0x140008de9
mov rax, qword [rcx + 0x28]
mov qword [0x140011440], rax
jmp 0x140008de9
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 [0x140011448]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
call fcn.140002210
mov qword [0x140011440], rax
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
jmp 0x140008de9
mov qword [0x140011448], r12
mov qword [0x140011440], r12
cmp qword [0x1400114a8], 0
je 0x14000919b
cmp qword [0x1400114a0], 0
je 0x14000919b
xor r8d, r8d
lea rdx, [0x140008be0]
lea rcx, [0x140011460]
call qword [sym.imp.ntoskrnl.exe_KeInitializeDpc]
xor r8d, r8d
lea edx, [r8 + 1]
lea rcx, [0x140011420]
call qword [sym.imp.ntoskrnl.exe_KeInitializeEvent]
xor r8d, r8d
lea edx, [r8 + 1]
lea rcx, [0x140011200]
call qword [sym.imp.ntoskrnl.exe_KeInitializeEvent]
xor edx, edx
lea rcx, [0x140011220]
call qword [sym.imp.ntoskrnl.exe_KeInitializeMutex]
call qword [sym.imp.ntoskrnl.exe_KeQueryMaximumProcessorCount]
mov dword [0x140011258], eax
movsxd rdx, eax
shl rdx, 3
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov qword [0x140011260], rax
movsxd rdx, dword [0x140011258]
shl rdx, 3
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov qword [0x140011268], rax
cmp qword [0x140011260], 0
je 0x14000919b
test rax, rax
je 0x14000919b
mov edi, r12d
cmp dword [0x140011258], r12d
jle 0x140009082
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 [0x140011260]
mov qword [rbx + rcx], rax
mov rcx, qword [0x140011260]
mov rcx, qword [rbx + rcx]
xor edx, edx
mov r8d, 0x140
call fcn.14000d100
mov rax, qword [0x140011260]
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 [0x140011260]
mov rcx, qword [rbx + rax]
add rcx, 0x40
mov r8b, 1
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_KeInitializeEvent]
mov rax, qword [0x140011260]
mov r9, qword [rbx + rax]
add r9, 0x30
mov rax, qword [0x140011260]
mov r8, qword [rbx + rax]
add r8, 0x20
mov rax, qword [0x140011260]
mov rdx, qword [rbx + rax]
add rdx, 0x10
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], r15d
mov rcx, qword [0x140011260]
mov rcx, qword [rbx + rcx]
call fcn.140009a80
mov rax, qword [0x140011260]
mov r9, qword [rbx + rax]
add r9, 0x38
mov rax, qword [0x140011260]
mov r8, qword [rbx + rax]
add r8, 0x28
mov rax, qword [0x140011260]
mov rdx, qword [rbx + rax]
add rdx, 0x18
mov rax, qword [0x140011260]
mov rcx, qword [rbx + rax]
add rcx, 8
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], r15d
call fcn.140009a80
mov rax, qword [0x140011260]
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 [0x140011260]
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 [0x140011260]
mov rcx, qword [rbx + rax]
add rcx, 0x118
mov r8b, 1
mov edx, 1
call qword [sym.imp.ntoskrnl.exe_KeInitializeEvent]
mov rax, qword [0x140011260]
mov rcx, qword [rbx + rax]
add rcx, 0x70
mov rax, qword [0x140011268]
mov qword [rbx + rax], rcx
mov rax, qword [0x140011260]
mov rcx, qword [rbx + rax]
add rcx, 0xc8
xor r8d, r8d
lea rdx, [0x1400091c0]
call qword [sym.imp.ntoskrnl.exe_KeInitializeDpc]
mov rax, qword [0x140011260]
mov rcx, qword [rbx + rax]
add rcx, 0xc8
movzx edx, dil
call qword [sym.imp.ntoskrnl.exe_KeSetTargetProcessorDpc]
inc edi
cmp edi, dword [0x140011258]
jl 0x140008ec0
mov byte [0x140010130], 1
mov dword [0x140010140], 1
mov qword [rsp + 0x30], r12
lea rax, [0x140009f40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [0x1400111e0]
call qword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
mov qword [rsp + 0x30], r12
lea rax, [0x1400096b0]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [0x140011438]
call qword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
mov ebx, r12d
cmp dword [0x140011258], ebx
jle 0x14000913c
lea rdi, [0x140009410]
nop dword [rax + rax]
movsxd rdx, ebx
mov rax, qword [0x140011260]
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 [0x140011258]
jl 0x140009100
test esi, esi
jne 0x140009182
cmp dword [0x1400111d8], esi
jne 0x140009182
lea rax, [0x140008680]
mov qword [0x140010018], rax
mov rax, qword [sym.imp.ntoskrnl.exe_HalDispatchTable]
mov rax, qword [rax + 0x10]
lea r8, [0x140010018]
lea edx, [rsi + 8]
lea ecx, [rsi + 1]
call qword [0x14000e3a8]
test eax, eax
jne 0x140009182
mov dword [0x1400111d8], 1
mov qword [rsp + 0x20], r12
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [0x14000a5e0]
call fcn.140001e50
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14000cd00
add rsp, 0x98
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
ret