Function at 0x1400016e0
Capabilities:
Create device object
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x90]
sub rsp, 0x190
mov rax, qword [0x140010030]
xor rax, rsp
mov qword [rbp + 0x80], rax
xor r12d, r12d
mov r15, rdx
mov esi, r12d
mov qword [rsp + 0x40], r12
mov edi, r12d
mov dword [0x140019fe0], r12d
mov ebx, r12d
mov dword [0x140019fdc], r12d
mov r14, rcx
call fcn.140001000
call fcn.140001004
call fcn.140001008
call fcn.14000100c
call fcn.140001010
call fcn.140001014
mov dword [rsp + 0x60], 0x640000
lea rax, [rbp + 0x10]
mov qword [rsp + 0x68], rax
test r15, r15
je 0x140001a2a
xorps xmm0, xmm0
mov dword [rbp - 0x48], 0x30
lea r8, [rbp - 0x48]
mov qword [rbp - 0x40], r12
lea edx, [r12 + 1]
mov dword [rbp - 0x30], 0x200
lea rcx, [rsp + 0x40]
mov qword [rbp - 0x38], r15
movdqu xmmword [rbp - 0x28], xmm0
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
test eax, eax
jne 0x140001a20
lea edx, [rax + 0x74]
lea ecx, [rax + 1]
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
lea edx, [r12 + 0x74]
mov rsi, rax
lea ecx, [rdx - 0x73]
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
lea edx, [r12 + 0x74]
mov qword [0x1400100c0], rax
lea ecx, [rdx - 0x73]
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
lea edx, [r12 + 0x74]
mov rdi, rax
lea ecx, [rdx - 0x73]
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov r15, qword [0x1400100c0]
lea rdx, [0x14000d4b0]
lea rcx, [rsp + 0x50]
mov rbx, rax
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rdx, [0x14000d4c0]
lea rcx, [rbp - 0x78]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rdx, [0x14000d4d0]
lea rcx, [rbp - 0x68]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rdx, [0x14000d4e0]
lea rcx, [rbp - 0x58]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea r8d, [r12 + 2]
mov r9, rsi
mov dword [rsp + 0x20], 0x74
lea rdx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
test eax, eax
jne 0x1400019e9
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea r8d, [r12 + 2]
mov r9, r15
mov dword [rsp + 0x20], 0x74
lea rdx, [rbp - 0x78]
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
test eax, eax
jne 0x1400019e9
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea r8d, [r12 + 2]
mov r9, rdi
mov dword [rsp + 0x20], 0x74
lea rdx, [rbp - 0x68]
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
test eax, eax
jne 0x1400019e9
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea r8d, [r12 + 2]
mov r9, rbx
mov dword [rsp + 0x20], 0x74
lea rdx, [rbp - 0x58]
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
test eax, eax
jne 0x1400019e9
lea rdx, [rsi + 0xc]
lea rcx, [rsp + 0x78]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rdx, [r15 + 0xc]
lea rcx, [0x14001a020]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rdx, [rdi + 0xc]
lea rcx, [rbp - 0x18]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rdx, [rbx + 0xc]
lea rcx, [rbp - 8]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
cmp dword [0x14001a01c], r12d
jne 0x140001a34
lea rax, [rsp + 0x70]
xor edx, edx
mov qword [rsp + 0x30], rax
lea r9d, [r12 + 0x22]
mov byte [rsp + 0x28], r12b
lea r8, [rsp + 0x78]
mov rcx, r14
mov dword [rsp + 0x20], r12d
call qword [sym.imp.ntoskrnl.exe_IoCreateDevice]
mov r15d, eax
test eax, eax
jne 0x1400019a1
lea rdx, [rsp + 0x78]
lea rcx, [0x14001a020]
call qword [sym.imp.ntoskrnl.exe_IoCreateSymbolicLink]
mov r15d, eax
test eax, eax
je 0x140001a34
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rcx, qword [0x1400100c0]
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1400019e1
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, r15d
jmp 0x140001c02
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor edx, edx
mov rcx, r15
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, 0xc0000001
jmp 0x140001c02
mov dword [0x14001a01c], 1
lea rax, [0x140001c30]
mov qword [r14 + 0x68], rax
lea rcx, [0x1400057d0]
lea rax, [0x140001680]
mov qword [r14 + 0x70], rax
lea rax, [0x140001650]
mov qword [r14 + 0x80], rax
lea rax, [fcn.140003cd0]
cmp dword [0x14001a01c], r12d
cmovne rax, rcx
lea rcx, [0x140019aa0]
mov qword [r14 + 0xe0], rax
mov byte [0x140019b18], r12b
call qword [sym.imp.ntoskrnl.exe_ExInitializeResourceLite]
movabs rax, 0xfffff6fffffffff8
mov byte [0x140019b08], r12b
mov qword [0x14001a000], rax
movabs rax, 0xfffff6fb7ffffff8
mov qword [0x14001a008], rax
mov byte [0x14001a890], r12b
mov qword [0x140019fd0], r12
mov dword [0x14001a018], 8
mov qword [0x14001a010], 0x200000
call fcn.140002720
test rsi, rsi
je 0x140001aed
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
test rdi, rdi
je 0x140001afd
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
test rbx, rbx
je 0x140001b0d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140001b22
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov qword [rsp + 0x40], r12
xor eax, eax
xor ecx, ecx
cpuid
cmp ebx, 0x756e6547
jne 0x140001ba9
xor ecx, ecx
mov eax, 1
cpuid
mov ecx, eax
mov r8d, eax
mov edx, eax
and ecx, 0xf
mov dword [0x140019ff8], ecx
mov ecx, eax
shr eax, 0x14
movzx ebx, al
mov eax, r8d
shr edx, 0x10
and edx, 0xf
shr eax, 4
shr ecx, 0xc
and eax, 0xf
shr r8d, 8
and ecx, 3
mov dword [0x140019fe8], edx
and r8d, 0xf
mov dword [0x140019fe4], ebx
shl edx, 4
add eax, edx
mov dword [0x140019fec], ecx
shl ebx, 4
mov ecx, 1
add r8d, ebx
mov dword [0x140019ff4], eax
mov dword [0x140019ff0], r8d
call fcn.14000acd0
call fcn.14000a9e0
jmp 0x140001bb8
cmp ebx, 0x68747541
jne 0x140001bb8
xor ecx, ecx
call fcn.14000acd0
lea rdx, [0x14000d4f0]
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_MmGetSystemRoutineAddress]
lea rdx, [0x14000d520]
mov qword [0x1400114a8], rax
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_MmGetSystemRoutineAddress]
mov qword [0x1400114a0], rax
xor eax, eax
mov rcx, qword [rbp + 0x80]
xor rcx, rsp
call fcn.14000cd00
lea r11, [rsp + 0x190]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret