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

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x1f0
mov rax, qword [0x140016030]
xor rax, rsp
mov qword [rsp + 0x1e0], rax
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x48], 0
mov dword [0x140020c00], 0
mov dword [0x140020bfc], 0
call fcn.140001350
mov word [rsp + 0x70], ax
call fcn.140001354
mov word [rsp + 0x74], ax
call fcn.140001358
mov word [rsp + 0x78], ax
call fcn.14000135c
mov word [rsp + 0x7c], ax
call fcn.140001360
mov word [rsp + 0x80], ax
call fcn.140001364
mov word [rsp + 0x84], ax
lea rax, [rsp + 0x170]
mov qword [rsp + 0xb0], rax
xor eax, eax
mov word [rsp + 0xa8], ax
mov eax, 0x64
mov word [rsp + 0xaa], ax
cmp qword [rsp + 0x208], 0
je 0x140001e6c
mov dword [rsp + 0xd0], 0x30
mov qword [rsp + 0xd8], 0
mov dword [rsp + 0xe8], 0x200
mov rax, qword [rsp + 0x208]
mov qword [rsp + 0xe0], rax
mov qword [rsp + 0xf0], 0
mov qword [rsp + 0xf8], 0
lea r8, [rsp + 0xd0]
mov edx, 1
lea rcx, [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jne 0x140001e60
mov edx, 0x74
mov ecx, 1
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov qword [rsp + 0x58], rax
mov edx, 0x74
mov ecx, 1
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov qword [0x1400160c0], rax
mov edx, 0x74
mov ecx, 1
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov qword [rsp + 0x60], rax
mov edx, 0x74
mov ecx, 1
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x88], rax
mov rax, qword [0x1400160c0]
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0xa0], rax
lea rdx, [0x140012af0]
lea rcx, [rsp + 0x100]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rdx, [0x140012b00]
lea rcx, [rsp + 0x110]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rdx, [0x140012b10]
lea rcx, [rsp + 0x120]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rdx, [0x140012b20]
lea rcx, [rsp + 0x130]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
cmp dword [rsp + 0x40], 0
jne 0x140001cd3
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x74
mov r9, qword [rsp + 0x88]
mov r8d, 2
lea rdx, [rsp + 0x100]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jne 0x140001d11
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x74
mov r9, qword [rsp + 0x90]
mov r8d, 2
lea rdx, [rsp + 0x110]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jne 0x140001d4f
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x74
mov r9, qword [rsp + 0x98]
mov r8d, 2
lea rdx, [rsp + 0x120]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jne 0x140001d8d
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x74
mov r9, qword [rsp + 0xa0]
mov r8d, 2
lea rdx, [rsp + 0x130]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jne 0x140001e09
mov rax, qword [rsp + 0x88]
add rax, 0xc
mov rdx, rax
lea rcx, [rsp + 0xc0]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov rax, qword [rsp + 0x90]
add rax, 0xc
mov rdx, rax
lea rcx, [0x14001f980]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov rax, qword [rsp + 0x98]
add rax, 0xc
mov rdx, rax
lea rcx, [rsp + 0x140]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov rax, qword [rsp + 0xa0]
add rax, 0xc
mov rdx, rax
lea rcx, [rsp + 0x150]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
jmp 0x140001e5e
xor edx, edx
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor edx, edx
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor edx, edx
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor edx, edx
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, 0xc0000001
jmp 0x140002291
jmp 0x140001e6a
mov eax, 0xc0000001
jmp 0x140002291
jmp 0x140001e76
mov dword [0x140020c3c], 1
mov dword [rsp + 0x40], 0
cmp dword [0x140020c3c], 0
jne 0x140001fa0
lea rax, [rsp + 0xb8]
mov qword [rsp + 0x30], rax
mov byte [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0x22
lea r8, [rsp + 0xc0]
xor edx, edx
mov rcx, qword [rsp + 0x200]
call qword [sym.imp.ntoskrnl.exe_IoCreateDevice]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
je 0x140001f20
xor edx, edx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor edx, edx
mov rcx, qword [0x1400160c0]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor edx, edx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor edx, edx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
cmp qword [rsp + 0x48], 0
je 0x140001f17
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, dword [rsp + 0x40]
jmp 0x140002291
lea rdx, [rsp + 0xc0]
lea rcx, [0x14001f980]
call qword [sym.imp.ntoskrnl.exe_IoCreateSymbolicLink]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
je 0x140001fa0
mov rcx, qword [rsp + 0xb8]
call qword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
xor edx, edx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor edx, edx
mov rcx, qword [0x1400160c0]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor edx, edx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor edx, edx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
cmp qword [rsp + 0x48], 0
je 0x140001f97
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, dword [rsp + 0x40]
jmp 0x140002291
mov rax, qword [rsp + 0x200]
lea rcx, [0x1400022b0]
mov qword [rax + 0x68], rcx
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x200]
lea rdx, [0x1400019f0]
mov qword [rcx + rax + 0x70], rdx
mov eax, 8
imul rax, rax, 2
mov rcx, qword [rsp + 0x200]
lea rdx, [0x1400019a0]
mov qword [rcx + rax + 0x70], rdx
cmp dword [0x140020c3c], 0
je 0x140002015
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x200]
lea rdx, [0x1400088e0]
mov qword [rcx + rax + 0x70], rdx
jmp 0x140002032
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x200]
lea rdx, [fcn.140005c50]
mov qword [rcx + rax + 0x70], rdx
mov byte [0x140020738], 0
lea rcx, [0x1400206c0]
call qword [sym.imp.ntoskrnl.exe_ExInitializeResourceLite]
mov byte [0x140020728], 0
mov byte [0x1400201f0], 0
mov qword [0x140020bf0], 0
mov dword [0x140020c38], 8
mov qword [0x140020c30], 0x200000
movabs rax, 0xfffff6fffffffff8
mov qword [0x140020c20], rax
movabs rax, 0xfffff6fb7ffffff8
mov qword [0x140020c28], rax
call fcn.140003410
cmp qword [rsp + 0x58], 0
je 0x1400020b9
xor edx, edx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov qword [rsp + 0x58], 0
cmp qword [rsp + 0x60], 0
je 0x1400020d7
xor edx, edx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov qword [rsp + 0x60], 0
cmp qword [rsp + 0x68], 0
je 0x1400020f5
xor edx, edx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov qword [rsp + 0x68], 0
cmp qword [rsp + 0x48], 0
je 0x140002111
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov qword [rsp + 0x48], 0
xor eax, eax
xor ecx, ecx
cpuid
lea r8, [rsp + 0x160]
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, 1
cmp dword [rsp + rax + 0x160], 0x756e6547
jne 0x14000221e
mov eax, 1
xor ecx, ecx
cpuid
lea r8, [rsp + 0x160]
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, 0
mov eax, dword [rsp + rax + 0x160]
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x44]
and eax, 0xf
mov dword [0x140020c18], eax
mov eax, dword [rsp + 0x44]
shr eax, 4
and eax, 0xf
mov dword [0x140020c14], eax
mov eax, dword [rsp + 0x44]
shr eax, 8
and eax, 0xf
mov dword [0x140020c10], eax
mov eax, dword [rsp + 0x44]
shr eax, 0xc
and eax, 3
mov dword [0x140020c0c], eax
mov eax, dword [rsp + 0x44]
shr eax, 0x10
and eax, 0xf
mov dword [0x140020c08], eax
mov eax, dword [rsp + 0x44]
shr eax, 0x14
and eax, 0xff
mov dword [0x140020c04], eax
mov eax, dword [0x140020c08]
shl eax, 4
mov ecx, dword [0x140020c14]
add ecx, eax
mov eax, ecx
mov dword [0x140020c14], eax
mov eax, dword [0x140020c04]
shl eax, 4
mov ecx, dword [0x140020c10]
add ecx, eax
mov eax, ecx
mov dword [0x140020c10], eax
mov ecx, 1
call fcn.14000fed0
call fcn.14000fb80
jmp 0x14000223b
mov eax, 4
imul rax, rax, 1
cmp dword [rsp + rax + 0x160], 0x68747541
jne 0x14000223b
xor ecx, ecx
call fcn.14000fed0
lea rdx, [0x140012b30]
lea rcx, [rsp + 0xa8]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rcx, [rsp + 0xa8]
call qword [sym.imp.ntoskrnl.exe_MmGetSystemRoutineAddress]
mov qword [0x140017388], rax
lea rdx, [0x140012b60]
lea rcx, [rsp + 0xa8]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rcx, [rsp + 0xa8]
call qword [sym.imp.ntoskrnl.exe_MmGetSystemRoutineAddress]
mov qword [0x140017380], rax
xor eax, eax
mov rcx, qword [rsp + 0x1e0]
xor rcx, rsp
call fcn.1400128c0
add rsp, 0x1f0
pop rbx
ret