Function at 0x140001000
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 [0x14000f090]
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 [0x140018fa0], r12d
mov ebx, r12d
mov dword [0x140018f9c], r12d
mov r14, rcx
call fcn.14000b840
call fcn.14000b844
call fcn.14000b848
call fcn.14000b84c
call fcn.14000b850
call fcn.14000b854
mov dword [rsp + 0x60], 0x640000
lea rax, [rbp + 0x10]
mov qword [rsp + 0x68], rax
test r15, r15
je 0x140001359
xorps xmm0, xmm0
mov dword [rbp - 0x48], 0x30
lea r8, [rbp - 0x48]
mov qword [rbp - 0x40], r12
mov edx, 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 0x14000134f
mov edx, 0x74
mov ecx, 1
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov edx, 0x74
mov ecx, 1
mov rsi, rax
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov edx, 0x74
mov ecx, 1
mov qword [0x14000f0e0], rax
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov edx, 0x74
mov ecx, 1
mov rdi, rax
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov r15, qword [0x14000f0e0]
lea rdx, str.ABCD
lea rcx, [rsp + 0x50]
mov rbx, rax
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rdx, [0x14000d3e4]
lea rcx, [rbp - 0x78]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rdx, [0x14000d3e8]
lea rcx, [rbp - 0x68]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rdx, [0x14000d3ec]
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 rdx, [rsp + 0x50]
mov r9, rsi
mov dword [rsp + 0x20], 0x74
mov r8d, 2
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
test eax, eax
jne 0x140001318
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rdx, [rbp - 0x78]
mov r9, r15
mov dword [rsp + 0x20], 0x74
mov r8d, 2
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
test eax, eax
jne 0x140001318
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rdx, [rbp - 0x68]
mov r9, rdi
mov dword [rsp + 0x20], 0x74
mov r8d, 2
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
test eax, eax
jne 0x140001318
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rdx, [rbp - 0x58]
mov r9, rbx
mov dword [rsp + 0x20], 0x74
mov r8d, 2
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
test eax, eax
jne 0x140001318
lea rdx, [rsi + 0xc]
lea rcx, [rsp + 0x78]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rdx, [r15 + 0xc]
lea rcx, [0x140017d20]
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 [0x140018fdc], r12d
jne 0x140001363
lea rax, [rsp + 0x70]
mov r9d, 0x22
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x78]
mov byte [rsp + 0x28], r12b
xor edx, edx
mov rcx, r14
mov dword [rsp + 0x20], r12d
call qword [sym.imp.ntoskrnl.exe_IoCreateDevice]
mov r15d, eax
test eax, eax
jne 0x1400012d0
lea rdx, [rsp + 0x78]
lea rcx, [0x140017d20]
call qword [sym.imp.ntoskrnl.exe_IoCreateSymbolicLink]
mov r15d, eax
test eax, eax
je 0x140001363
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 [0x14000f0e0]
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 0x140001310
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, r15d
jmp 0x140001531
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 0x140001531
mov dword [0x140018fdc], 1
lea rax, [0x1400015f0]
mov qword [r14 + 0x68], rax
lea rcx, [0x140005180]
lea rax, [0x140001590]
mov qword [r14 + 0x70], rax
lea rax, [0x140001560]
mov qword [r14 + 0x80], rax
lea rax, [fcn.140003650]
cmp dword [0x140018fdc], r12d
cmovne rax, rcx
lea rcx, [0x140018a60]
mov qword [r14 + 0xe0], rax
mov byte [0x140018ad8], r12b
call qword [sym.imp.ntoskrnl.exe_ExInitializeResourceLite]
movabs rax, 0xfffff6fffffffff8
mov byte [0x140018ac8], r12b
mov qword [0x140018fc0], rax
movabs rax, 0xfffff6fb7ffffff8
mov qword [0x140018fc8], rax
mov byte [0x140018590], r12b
mov qword [0x140018f90], r12
mov dword [0x140018fd8], 8
mov qword [0x140018fd0], 0x200000
call fcn.140002090
test rsi, rsi
je 0x14000141c
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
test rdi, rdi
je 0x14000142c
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
test rbx, rbx
je 0x14000143c
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140001451
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov qword [rsp + 0x40], r12
xor eax, eax
xor ecx, ecx
cpuid
cmp ebx, 0x756e6547
jne 0x1400014d8
xor ecx, ecx
mov eax, 1
cpuid
mov ecx, eax
mov r8d, eax
mov edx, eax
and ecx, 0xf
mov dword [0x140018fb8], 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 [0x140018fa8], edx
and r8d, 0xf
mov dword [0x140018fa4], ebx
shl edx, 4
add eax, edx
mov dword [0x140018fac], ecx
shl ebx, 4
mov ecx, 1
add r8d, ebx
mov dword [0x140018fb4], eax
mov dword [0x140018fb0], r8d
call fcn.14000a600
call fcn.14000a370
jmp 0x1400014e7
cmp ebx, 0x68747541
jne 0x1400014e7
xor ecx, ecx
call fcn.14000a600
lea rdx, [0x14000d3f0]
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_MmGetSystemRoutineAddress]
lea rdx, str.PsResumeProcess
mov qword [0x14000f728], 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 [0x14000f720], rax
xor eax, eax
mov rcx, qword [rbp + 0x80]
xor rcx, rsp
call fcn.14000c600
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