Function at 0x1b6c0
Capabilities:
Print debug messages
Query or enumerate registry key

Disassembly:
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x248
mov rax, qword [0x00015208]
mov qword [rsp + 0x230], rax
call fcn.00011010
movzx eax, al
cmp eax, 1
jle 0x1b71d
call fcn.00011010
movzx eax, al
mov edx, eax
lea rcx, [0x0001c650]
call sub.ntoskrnl.exe_DbgPrint
xor r9d, r9d
mov r8d, 0x3cb
lea rdx, [0x0001cde0]
lea rcx, [0x0001c620]
call qword [sym.imp.ntoskrnl.exe_RtlAssert]
mov rax, qword [rsp + 0x260]
mov rax, qword [rax + 0x40]
mov qword [rsp + 0x38], rax
mov rcx, qword [rsp + 0x38]
call fcn.00011020
mov dword [rsp + 0x80], 0
lea rdx, str.RegistryMACHINESystemCurrentControlSetNEWHASPServicesEmulatorHASPDump
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov dword [rsp + 0x50], 0x30
mov qword [rsp + 0x58], 0
mov dword [rsp + 0x68], 0x40
lea rax, [rsp + 0x40]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x78], 0
lea r8, [rsp + 0x50]
mov edx, 0x20019
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
mov dword [rsp + 0x84], eax
cmp dword [rsp + 0x84], 0
jl 0x1bbcb
lea rax, [rsp + 0x1a0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 2
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ZwQueryKey]
cmp dword [rsp + 0x1a0], 0x1000
jae 0x1b7f4
mov eax, dword [rsp + 0x1a0]
mov dword [rsp + 0x224], eax
jmp 0x1b7ff
mov dword [rsp + 0x224], 0x1000
mov eax, dword [rsp + 0x224]
mov dword [rsp + 0x1a0], eax
mov eax, dword [rsp + 0x1a0]
mov r8d, 0x206b6444
mov rdx, rax
mov ecx, 1
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov qword [rsp + 0x198], rax
lea rax, [rsp + 0x1a0]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x1a0]
mov r8, qword [rsp + 0x198]
mov edx, 2
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ZwQueryKey]
mov dword [rsp + 0x190], 0
jmp 0x1b87a
mov eax, dword [rsp + 0x190]
inc eax
mov dword [rsp + 0x190], eax
mov rax, qword [rsp + 0x198]
mov eax, dword [rax + 0x14]
cmp dword [rsp + 0x190], eax
jae 0x1bba2
lea rax, [rsp + 0x1a0]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, dword [rsp + 0x190]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ZwEnumerateKey]
cmp dword [rsp + 0x1a0], 0x1000
jae 0x1b8dc
mov eax, dword [rsp + 0x1a0]
mov dword [rsp + 0x228], eax
jmp 0x1b8e7
mov dword [rsp + 0x228], 0x1000
mov eax, dword [rsp + 0x228]
mov dword [rsp + 0x1a0], eax
mov eax, dword [rsp + 0x1a0]
mov r8d, 0x206b6444
mov rdx, rax
mov ecx, 1
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov qword [rsp + 0x1a8], rax
lea rax, [rsp + 0x1a0]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x1a0]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x1a8]
xor r8d, r8d
mov edx, dword [rsp + 0x190]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ZwEnumerateKey]
mov dword [rsp + 0x1b0], 0
mov dword [rsp + 0x1b8], 1
mov dword [rsp + 0x1b4], 0
jmp 0x1b980
mov eax, dword [rsp + 0x1b4]
inc eax
mov dword [rsp + 0x1b4], eax
xor edx, edx
mov rax, qword [rsp + 0x1a8]
mov eax, dword [rax + 0xc]
mov ecx, 2
div ecx
cmp dword [rsp + 0x1b4], eax
jae 0x1bacd
mov eax, dword [rsp + 0x1b4]
mov rcx, qword [rsp + 0x1a8]
movzx eax, word [rcx + rax*2 + 0x10]
cmp eax, 0x30
jl 0x1ba01
mov eax, dword [rsp + 0x1b4]
mov rcx, qword [rsp + 0x1a8]
movzx eax, word [rcx + rax*2 + 0x10]
cmp eax, 0x39
jg 0x1ba01
mov eax, dword [rsp + 0x1b0]
shl eax, 4
mov ecx, dword [rsp + 0x1b4]
mov rdx, qword [rsp + 0x1a8]
movzx ecx, word [rdx + rcx*2 + 0x10]
lea eax, [rax + rcx - 0x30]
mov dword [rsp + 0x1b0], eax
jmp 0x1bac8
mov eax, dword [rsp + 0x1b4]
mov rcx, qword [rsp + 0x1a8]
movzx eax, word [rcx + rax*2 + 0x10]
cmp eax, 0x41
jl 0x1ba5e
mov eax, dword [rsp + 0x1b4]
mov rcx, qword [rsp + 0x1a8]
movzx eax, word [rcx + rax*2 + 0x10]
cmp eax, 0x46
jg 0x1ba5e
mov eax, dword [rsp + 0x1b0]
shl eax, 4
mov ecx, dword [rsp + 0x1b4]
mov rdx, qword [rsp + 0x1a8]
movzx ecx, word [rdx + rcx*2 + 0x10]
lea eax, [rax + rcx - 0x37]
mov dword [rsp + 0x1b0], eax
jmp 0x1bac8
mov eax, dword [rsp + 0x1b4]
mov rcx, qword [rsp + 0x1a8]
movzx eax, word [rcx + rax*2 + 0x10]
cmp eax, 0x61
jl 0x1babb
mov eax, dword [rsp + 0x1b4]
mov rcx, qword [rsp + 0x1a8]
movzx eax, word [rcx + rax*2 + 0x10]
cmp eax, 0x66
jg 0x1babb
mov eax, dword [rsp + 0x1b0]
shl eax, 4
mov ecx, dword [rsp + 0x1b4]
mov rdx, qword [rsp + 0x1a8]
movzx ecx, word [rdx + rcx*2 + 0x10]
lea eax, [rax + rcx - 0x57]
mov dword [rsp + 0x1b0], eax
jmp 0x1bac8
mov dword [rsp + 0x1b8], 0
jmp 0x1bacd
jmp 0x1b970
cmp dword [rsp + 0x1b8], 0
je 0x1bb8d
xor eax, eax
cmp eax, 1
je 0x1bb8d
lea rax, [rsp + 0x1d0]
mov qword [rsp + 0x1c0], rax
mov rax, qword [rsp + 0x1c0]
mov dword [rax], 0xc
mov eax, dword [rsp + 0x80]
inc eax
mov dword [rsp + 0x80], eax
mov rax, qword [rsp + 0x1c0]
mov ecx, dword [rsp + 0x80]
mov dword [rax + 4], ecx
mov rax, qword [rsp + 0x1c0]
mov ecx, dword [rsp + 0x1b0]
mov dword [rax + 8], ecx
mov rax, qword [rsp + 0x1c0]
lea rcx, [0x0001ce00]
lea rdi, [rax + 0xc]
mov rsi, rcx
mov ecx, 0x42
rep movsb byte [rdi], byte [rsi]
mov r8, qword [rsp + 0x38]
mov edx, 0x4e
mov rcx, qword [rsp + 0x1c0]
call fcn.00018bf0
mov dword [rsp + 0x220], eax
cmp dword [rsp + 0x220], 0
jge 0x1bb8d
mov eax, dword [rsp + 0x80]
dec eax
mov dword [rsp + 0x80], eax
xor edx, edx
mov rcx, qword [rsp + 0x1a8]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
jmp 0x1b86a
xor edx, edx
mov rcx, qword [rsp + 0x198]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov rcx, qword [rsp + 0x38]
call fcn.000110b0
xor eax, eax
jmp 0x1bbcd
xor eax, eax
mov rcx, qword [rsp + 0x230]
call fcn.00012990
add rsp, 0x248
pop rdi
pop rsi
ret