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

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
push rbx
push rsi
push rdi
sub rsp, 0xb0
mov rax, qword [0x140016040]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov dword [rsp + 0x44], 0xc0000001
cmp qword [rsp + 0xe0], 0
je 0x14000d563
jmp 0x14000d583
mov eax, 0x14
xor ecx, ecx
cpuid
lea r8, [rsp + 0x90]
mov dword [r8], eax
mov dword [r8 + 4], ebx
mov dword [r8 + 8], ecx
mov dword [r8 + 0xc], edx
mov eax, 4
imul rax, rax, 2
mov eax, dword [rsp + rax + 0x90]
and eax, 2
test eax, eax
jne 0x14000d5a4
mov dword [0x140016204], 1
mov eax, dword [rsp + 0xf8]
mov dword [0x140016208], eax
mov eax, dword [rsp + 0x108]
mov dword [0x1400173f4], eax
mov eax, dword [rsp + 0x100]
mov dword [0x1400173f0], eax
mov eax, 2
imul rax, rax, 0
mov rcx, qword [rsp + 0xe0]
movzx eax, word [rcx + rax]
test eax, eax
je 0x14000d5ee
mov dword [rsp + 0x48], 1
jmp 0x14000d5f6
mov dword [rsp + 0x48], 0
mov eax, dword [rsp + 0x48]
mov dword [0x14001a0e8], eax
cmp dword [0x14001a0e8], 0
je 0x14000d65a
mov r8d, 0xc7
mov rdx, qword [rsp + 0xe0]
lea rcx, [0x140017220]
call fcn.140011f30
nop
mov eax, 2
imul rax, rax, 0xc7
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0x190
jae 0x14000d642
jmp 0x14000d648
call fcn.140012c90
nop
lea rax, [0x140017220]
xor ecx, ecx
mov rdx, qword [rsp + 0x50]
mov word [rax + rdx], cx
cmp dword [rsp + 0xe8], 0
je 0x14000d70c
cmp qword [0x1400161f8], 0
je 0x14000d68c
xor edx, edx
mov rcx, qword [0x1400161f8]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov qword [0x1400161f8], 0
movsxd rax, dword [rsp + 0xe8]
imul rax, rax, 0x18
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov qword [0x1400161f8], rax
mov dword [rsp + 0x40], 0
jmp 0x14000d6be
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0xe8]
cmp dword [rsp + 0x40], eax
jge 0x14000d6fd
movsxd rax, dword [rsp + 0x40]
imul rax, rax, 0x18
movsxd rcx, dword [rsp + 0x40]
imul rcx, rcx, 0x18
mov rdx, qword [0x1400161f8]
mov rbx, qword [rsp + 0xf0]
lea rdi, [rdx + rcx]
lea rsi, [rbx + rax]
mov ecx, 0x18
rep movsb byte [rdi], byte [rsi]
jmp 0x14000d6b4
mov eax, dword [rsp + 0xe8]
mov dword [0x140017210], eax
jmp 0x14000d716
mov dword [0x140017210], 0
cmp dword [rsp + 0xd0], 0
je 0x14000d7d8
mov eax, dword [rsp + 0xd0]
lea rdx, [0x1400173e8]
mov ecx, eax
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
jne 0x14000d7d1
call fcn.140002ab0
and rax, 0xfff
test rax, rax
je 0x14000d78d
mov rax, qword [0x1400173e8]
mov rax, qword [rax + 0x278]
mov qword [0x1400173e0], rax
mov rax, qword [0x1400173e0]
and rax, 0xfffffffffffff000
test rax, rax
jne 0x14000d78b
mov rax, qword [0x1400173e8]
mov rax, qword [rax + 0x28]
mov qword [0x1400173e0], rax
jmp 0x14000d7cf
lea rax, [rsp + 0x60]
mov rdi, rax
xor eax, eax
mov ecx, 0x30
rep stosb byte [rdi], al
lea rdx, [rsp + 0x60]
mov rcx, qword [0x1400173e8]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
call fcn.140002ab0
mov qword [0x1400173e0], rax
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
nop
jmp 0x14000d7cf
jmp 0x14000d7d6
jmp 0x14000dc8c
jmp 0x14000d7ee
mov qword [0x1400173e8], 0
mov qword [0x1400173e0], 0
cmp qword [0x140017448], 0
je 0x14000d802
cmp qword [0x140017440], 0
jne 0x14000d807
jmp 0x14000dc8c
xor r8d, r8d
lea rdx, [0x14000d4d0]
lea rcx, [0x140017400]
call qword [sym.imp.ntoskrnl.exe_KeInitializeDpc]
xor r8d, r8d
mov edx, 1
lea rcx, [0x1400173c0]
call qword [sym.imp.ntoskrnl.exe_KeInitializeEvent]
xor r8d, r8d
mov edx, 1
lea rcx, [0x1400171a0]
call qword [sym.imp.ntoskrnl.exe_KeInitializeEvent]
xor edx, edx
lea rcx, [0x1400171c0]
call qword [sym.imp.ntoskrnl.exe_KeInitializeMutex]
call qword [sym.imp.ntoskrnl.exe_KeQueryMaximumProcessorCount]
mov dword [0x1400171f8], eax
movsxd rax, dword [0x1400171f8]
shl rax, 3
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov qword [0x140017200], rax
movsxd rax, dword [0x1400171f8]
shl rax, 3
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov qword [0x140017208], rax
cmp qword [0x140017200], 0
jne 0x14000d8ac
jmp 0x14000dc8c
cmp qword [0x140017208], 0
jne 0x14000d8bb
jmp 0x14000dc8c
mov dword [rsp + 0x40], 0
jmp 0x14000d8cf
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
mov eax, dword [0x1400171f8]
cmp dword [rsp + 0x40], eax
jge 0x14000db2d
mov edx, 0x140
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
movsxd rcx, dword [rsp + 0x40]
mov rdx, qword [0x140017200]
mov qword [rdx + rcx*8], rax
movsxd rax, dword [rsp + 0x40]
mov rcx, qword [0x140017200]
mov rax, qword [rcx + rax*8]
mov rdi, rax
xor eax, eax
mov ecx, 0x140
rep stosb byte [rdi], al
movsxd rax, dword [rsp + 0x40]
mov rcx, qword [0x140017200]
mov rax, qword [rcx + rax*8]
add rax, 0x58
xor r8d, r8d
mov edx, 1
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_KeInitializeEvent]
movsxd rax, dword [rsp + 0x40]
mov rcx, qword [0x140017200]
mov rax, qword [rcx + rax*8]
add rax, 0x40
mov r8b, 1
xor edx, edx
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_KeInitializeEvent]
movsxd rax, dword [rsp + 0x40]
mov rcx, qword [0x140017200]
mov rax, qword [rcx + rax*8]
add rax, 0x30
movsxd rcx, dword [rsp + 0x40]
mov rdx, qword [0x140017200]
mov rcx, qword [rdx + rcx*8]
add rcx, 0x20
movsxd rdx, dword [rsp + 0x40]
mov rbx, qword [0x140017200]
mov rdx, qword [rbx + rdx*8]
add rdx, 0x10
movsxd rbx, dword [rsp + 0x40]
mov rdi, qword [0x140017200]
mov rbx, qword [rdi + rbx*8]
mov edi, dword [rsp + 0xf8]
mov dword [rsp + 0x28], edi
mov edi, dword [rsp + 0xd8]
mov dword [rsp + 0x20], edi
mov r9, rax
mov r8, rcx
mov rcx, rbx
call fcn.14000e880
movsxd rax, dword [rsp + 0x40]
mov rcx, qword [0x140017200]
mov rax, qword [rcx + rax*8]
add rax, 0x38
movsxd rcx, dword [rsp + 0x40]
mov rdx, qword [0x140017200]
mov rcx, qword [rdx + rcx*8]
add rcx, 0x28
movsxd rdx, dword [rsp + 0x40]
mov rbx, qword [0x140017200]
mov rdx, qword [rbx + rdx*8]
add rdx, 0x18
movsxd rbx, dword [rsp + 0x40]
mov rdi, qword [0x140017200]
mov rbx, qword [rdi + rbx*8]
add rbx, 8
mov edi, dword [rsp + 0xf8]
mov dword [rsp + 0x28], edi
mov edi, dword [rsp + 0xd8]
mov dword [rsp + 0x20], edi
mov r9, rax
mov r8, rcx
mov rcx, rbx
call fcn.14000e880
movsxd rax, dword [rsp + 0x40]
mov rcx, qword [0x140017200]
mov rax, qword [rcx + rax*8]
add rax, 0x70
xor r8d, r8d
mov edx, 1
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_KeInitializeEvent]
movsxd rax, dword [rsp + 0x40]
mov rcx, qword [0x140017200]
mov rax, qword [rcx + rax*8]
add rax, 0x88
xor r8d, r8d
mov edx, 1
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_KeInitializeEvent]
movsxd rax, dword [rsp + 0x40]
mov rcx, qword [0x140017200]
mov rax, qword [rcx + rax*8]
add rax, 0x118
mov r8b, 1
mov edx, 1
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_KeInitializeEvent]
movsxd rax, dword [rsp + 0x40]
mov rcx, qword [0x140017200]
mov rax, qword [rcx + rax*8]
add rax, 0x70
movsxd rcx, dword [rsp + 0x40]
mov rdx, qword [0x140017208]
mov qword [rdx + rcx*8], rax
movsxd rax, dword [rsp + 0x40]
mov rcx, qword [0x140017200]
mov rax, qword [rcx + rax*8]
add rax, 0xc8
xor r8d, r8d
lea rdx, [0x14000dcb0]
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_KeInitializeDpc]
movsxd rax, dword [rsp + 0x40]
mov rcx, qword [0x140017200]
mov rax, qword [rcx + rax*8]
add rax, 0xc8
movzx edx, byte [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_KeSetTargetProcessorDpc]
nop
jmp 0x14000d8c5
mov byte [0x1400161f0], 1
mov dword [0x140016200], 1
mov qword [rsp + 0x30], 0
lea rax, [0x14000f1a0]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [0x140017180]
call qword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
mov qword [rsp + 0x30], 0
lea rax, [0x14000e4d0]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [0x1400173d8]
call qword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
nop
mov dword [rsp + 0x40], 0
jmp 0x14000dbb9
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
mov eax, dword [0x1400171f8]
cmp dword [rsp + 0x40], eax
jge 0x14000dc0c
movsxd rax, dword [rsp + 0x40]
movsxd rcx, dword [rsp + 0x40]
mov rdx, qword [0x140017200]
mov rcx, qword [rdx + rcx*8]
add rcx, 0x108
mov qword [rsp + 0x30], rax
lea rax, [0x14000e130]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
nop
jmp 0x14000dbaf
cmp dword [rsp + 0xf8], 0
jne 0x14000dc6e
cmp dword [0x140017178], 0
jne 0x14000dc6e
lea rax, [0x14000ce40]
mov qword [0x140016018], rax
mov rax, qword [sym.imp.ntoskrnl.exe_HalDispatchTable]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x58], rax
lea r8, [0x140016018]
mov edx, 8
mov ecx, 1
mov rax, qword [rsp + 0x58]
call qword [0x1400143a0]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jne 0x14000dc6e
mov dword [0x140017178], 1
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [0x14000f750]
call fcn.140002510
nop
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.140012d80
add rsp, 0xb0
pop rdi
pop rsi
pop rbx
ret