Function at 0x140001ea0
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 [0x140010100]
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 [0x14001acc0], r12d
mov ebx, r12d
mov dword [0x14001acbc], r12d
mov r14, rcx
call fcn.140001350
call fcn.140001354
call fcn.140001358
call fcn.14000135c
call fcn.140001360
call fcn.140001364
mov dword [rsp + 0x60], 0x640000
lea rax, [rbp + 0x10]
mov qword [rsp + 0x68], rax
test r15, r15
je 0x1400021ea
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 0x1400021e0
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 [0x140010180], 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 [0x140010180]
lea rdx, [0x14000d9b0]
lea rcx, [rsp + 0x50]
mov rbx, rax
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rdx, [0x14000d9c0]
lea rcx, [rbp - 0x78]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rdx, [0x14000d9d0]
lea rcx, [rbp - 0x68]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rdx, [0x14000d9e0]
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 0x1400021a9
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 0x1400021a9
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 0x1400021a9
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 0x1400021a9
lea rdx, [rsi + 0xc]
lea rcx, [rsp + 0x78]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rdx, [r15 + 0xc]
lea rcx, [0x140019a40]
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 [0x14001acfc], r12d
jne 0x1400021f4
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 0x140002161
lea rdx, [rsp + 0x78]
lea rcx, [0x140019a40]
call qword [sym.imp.ntoskrnl.exe_IoCreateSymbolicLink]
mov r15d, eax
test eax, eax
je 0x1400021f4
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 [0x140010180]
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 0x1400021a1
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, r15d
jmp 0x1400023c2
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 0x1400023c2
mov dword [0x14001acfc], 1
lea rax, [0x140001e40]
mov qword [r14 + 0x70], rax
lea rcx, [0x140005fa0]
lea rax, [0x140001e10]
mov qword [r14 + 0x80], rax
lea rax, [0x1400023f0]
mov qword [r14 + 0x68], rax
lea rax, [fcn.140004490]
cmp dword [0x14001acfc], r12d
cmovne rax, rcx
lea rcx, [0x14001a780]
mov qword [r14 + 0xe0], rax
mov byte [0x14001a7f8], r12b
call qword [sym.imp.ntoskrnl.exe_ExInitializeResourceLite]
movabs rax, 0xfffff6fffffffff8
mov byte [0x14001a7e8], r12b
mov qword [0x14001ace0], rax
movabs rax, 0xfffff6fb7ffffff8
mov qword [0x14001ace8], rax
mov byte [0x14001a2b0], r12b
mov qword [0x14001acb0], r12
mov dword [0x14001acf8], 8
mov qword [0x14001acf0], 0x200000
call fcn.140002ee0
test rsi, rsi
je 0x1400022ad
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
test rdi, rdi
je 0x1400022bd
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
test rbx, rbx
je 0x1400022cd
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1400022e2
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov qword [rsp + 0x40], r12
xor eax, eax
xor ecx, ecx
cpuid
cmp ebx, 0x756e6547
jne 0x140002369
xor ecx, ecx
mov eax, 1
cpuid
mov ecx, eax
mov r8d, eax
mov edx, eax
and ecx, 0xf
mov dword [0x14001acd8], 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 [0x14001acc8], edx
and r8d, 0xf
mov dword [0x14001acc4], ebx
shl edx, 4
add eax, edx
mov dword [0x14001accc], ecx
shl ebx, 4
mov ecx, 1
add r8d, ebx
mov dword [0x14001acd4], eax
mov dword [0x14001acd0], r8d
call fcn.14000b490
call fcn.14000b1a0
jmp 0x140002378
cmp ebx, 0x68747541
jne 0x140002378
xor ecx, ecx
call fcn.14000b490
lea rdx, [0x14000d9f0]
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_MmGetSystemRoutineAddress]
lea rdx, [0x14000da20]
mov qword [0x140011448], 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 [0x140011440], rax
xor eax, eax
mov rcx, qword [rbp + 0x80]
xor rcx, rsp
call fcn.14000d510
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