Function at 0x140001090
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 [0x140018760], r12d
mov ebx, r12d
mov dword [0x14001875c], r12d
mov r14, rcx
call fcn.14000b790
call fcn.14000b794
call fcn.14000b798
call fcn.14000b79c
call fcn.14000b7a0
call fcn.14000b7a4
mov dword [rsp + 0x60], 0x640000
lea rax, [rbp + 0x10]
mov qword [rsp + 0x68], rax
test r15, r15
je 0x1400013da
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 0x1400013d0
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 [0x14000f0e0], 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 [0x14000f0e0]
lea rdx, str.ABCD
lea rcx, [rsp + 0x50]
mov rbx, rax
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rdx, [0x14000d3d4]
lea rcx, [rbp - 0x78]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rdx, [0x14000d3d8]
lea rcx, [rbp - 0x68]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rdx, [0x14000d3dc]
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 0x140001399
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 0x140001399
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 0x140001399
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 0x140001399
lea rdx, [rsi + 0xc]
lea rcx, [rsp + 0x78]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rdx, [r15 + 0xc]
lea rcx, [0x1400187a0]
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 [0x14001879c], r12d
jne 0x1400013e4
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 0x140001351
lea rdx, [rsp + 0x78]
lea rcx, [0x1400187a0]
call qword [sym.imp.ntoskrnl.exe_IoCreateSymbolicLink]
mov r15d, eax
test eax, eax
je 0x1400013e4
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 0x140001391
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, r15d
jmp 0x1400015b2
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 0x1400015b2
mov dword [0x14001879c], 1
lea rax, [0x1400015e0]
mov qword [r14 + 0x68], rax
lea rcx, [0x140005160]
lea rax, [0x140001030]
mov qword [r14 + 0x70], rax
lea rax, section..text
mov qword [r14 + 0x80], rax
lea rax, [fcn.140003660]
cmp dword [0x14001879c], r12d
cmovne rax, rcx
lea rcx, [0x140018220]
mov qword [r14 + 0xe0], rax
mov byte [0x140018298], r12b
call qword [sym.imp.ntoskrnl.exe_ExInitializeResourceLite]
movabs rax, 0xfffff6fffffffff8
mov byte [0x140018288], r12b
mov qword [0x140018780], rax
movabs rax, 0xfffff6fb7ffffff8
mov qword [0x140018788], rax
mov byte [0x140017d50], r12b
mov qword [0x140018750], r12
mov dword [0x140018798], 8
mov qword [0x140018790], 0x200000
call fcn.1400020a0
test rsi, rsi
je 0x14000149d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
test rdi, rdi
je 0x1400014ad
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
test rbx, rbx
je 0x1400014bd
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1400014d2
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov qword [rsp + 0x40], r12
xor eax, eax
xor ecx, ecx
cpuid
cmp ebx, 0x756e6547
jne 0x140001559
xor ecx, ecx
mov eax, 1
cpuid
mov ecx, eax
mov r8d, eax
mov edx, eax
and ecx, 0xf
mov dword [0x140018778], 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 [0x140018768], edx
and r8d, 0xf
mov dword [0x140018764], ebx
shl edx, 4
add eax, edx
mov dword [0x14001876c], ecx
shl ebx, 4
mov ecx, 1
add r8d, ebx
mov dword [0x140018774], eax
mov dword [0x140018770], r8d
call fcn.14000a550
call fcn.14000a2c0
jmp 0x140001568
cmp ebx, 0x68747541
jne 0x140001568
xor ecx, ecx
call fcn.14000a550
lea rdx, [0x14000d3e0]
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.14000c4e0
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