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

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x378
call fcn.00016210
movzx eax, al
cmp eax, 1
jle 0x241bc
call fcn.00016210
movzx eax, al
mov edx, eax
lea rcx, [0x00011090]
call sub.ntoskrnl.exe_DbgPrint
xor r9d, r9d
mov r8d, 0xa7b
lea rdx, [0x00011ef0]
lea rcx, [0x000110e4]
call qword [sym.imp.ntoskrnl.exe_RtlAssert]
mov rax, qword [rsp + 0x380]
mov rax, qword [rax + 0x40]
mov qword [rsp + 0x90], rax
mov rcx, qword [rsp + 0x90]
call fcn.000188f0
mov dword [rsp + 0x4c], 0
lea rdx, str.RegistryMACHINESystemCurrentControlSetlvshao
lea rcx, [rsp + 0x128]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov dword [rsp + 0xc8], 0x30
mov qword [rsp + 0xd0], 0
mov dword [rsp + 0xe0], 0x240
lea rax, [rsp + 0x128]
mov qword [rsp + 0xd8], rax
mov qword [rsp + 0xe8], 0
mov qword [rsp + 0xf0], 0
lea r8, [rsp + 0xc8]
mov edx, 0x20019
lea rcx, [rsp + 0x88]
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
mov dword [rsp + 0x98], eax
cmp dword [rsp + 0x98], 0
jl 0x24916
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 2
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ntoskrnl.exe_ZwQueryKey]
cmp dword [rsp + 0x40], 0x1000
jae 0x242ab
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x78], eax
jmp 0x242b3
mov dword [rsp + 0x78], 0x1000
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x40]
mov r8d, 0x4d525356
mov edx, eax
mov ecx, 1
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov qword [rsp + 0xa8], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x40]
mov r8, qword [rsp + 0xa8]
mov edx, 2
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ntoskrnl.exe_ZwQueryKey]
mov dword [rsp + 0x5c], 0
jmp 0x24318
mov eax, dword [rsp + 0x5c]
inc eax
mov dword [rsp + 0x5c], eax
mov rax, qword [rsp + 0xa8]
mov eax, dword [rax + 0x14]
cmp dword [rsp + 0x5c], eax
jae 0x248e7
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, dword [rsp + 0x5c]
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ntoskrnl.exe_ZwEnumerateKey]
cmp dword [rsp + 0x40], 0x1000
jae 0x2436b
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x7c], eax
jmp 0x24373
mov dword [rsp + 0x7c], 0x1000
mov eax, dword [rsp + 0x7c]
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x40]
mov r8d, 0x4d525356
mov edx, eax
mov ecx, 1
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x50]
xor r8d, r8d
mov edx, dword [rsp + 0x5c]
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ntoskrnl.exe_ZwEnumerateKey]
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x60], 1
mov rax, qword [rsp + 0x50]
mov edx, dword [rax + 0xc]
lea rcx, [0x00012f98]
call sub.ntoskrnl.exe_DbgPrint
mov dword [rsp + 0x44], 0
jmp 0x243fb
mov eax, dword [rsp + 0x44]
inc eax
mov dword [rsp + 0x44], eax
xor edx, edx
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0xc]
mov ecx, 2
div ecx
cmp eax, 8
jbe 0x2441e
mov dword [rsp + 0x80], 8
jmp 0x24436
xor edx, edx
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0xc]
mov ecx, 2
div ecx
mov dword [rsp + 0x80], eax
mov eax, dword [rsp + 0x80]
cmp dword [rsp + 0x44], eax
jae 0x24528
mov eax, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x50]
movzx eax, word [rcx + rax*2 + 0x10]
cmp eax, 0x30
jl 0x2448f
mov eax, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x50]
movzx eax, word [rcx + rax*2 + 0x10]
cmp eax, 0x39
jg 0x2448f
mov eax, dword [rsp + 0x48]
shl eax, 4
mov ecx, dword [rsp + 0x44]
mov rdx, qword [rsp + 0x50]
movzx ecx, word [rdx + rcx*2 + 0x10]
lea eax, [rax + rcx - 0x30]
mov dword [rsp + 0x48], eax
jmp 0x24523
mov eax, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x50]
movzx eax, word [rcx + rax*2 + 0x10]
cmp eax, 0x41
jl 0x244d4
mov eax, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x50]
movzx eax, word [rcx + rax*2 + 0x10]
cmp eax, 0x46
jg 0x244d4
mov eax, dword [rsp + 0x48]
shl eax, 4
mov ecx, dword [rsp + 0x44]
mov rdx, qword [rsp + 0x50]
movzx ecx, word [rdx + rcx*2 + 0x10]
lea eax, [rax + rcx - 0x37]
mov dword [rsp + 0x48], eax
jmp 0x24523
mov eax, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x50]
movzx eax, word [rcx + rax*2 + 0x10]
cmp eax, 0x61
jl 0x24519
mov eax, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x50]
movzx eax, word [rcx + rax*2 + 0x10]
cmp eax, 0x66
jg 0x24519
mov eax, dword [rsp + 0x48]
shl eax, 4
mov ecx, dword [rsp + 0x44]
mov rdx, qword [rsp + 0x50]
movzx ecx, word [rdx + rcx*2 + 0x10]
lea eax, [rax + rcx - 0x57]
mov dword [rsp + 0x48], eax
jmp 0x24523
mov dword [rsp + 0x60], 0
jmp 0x24528
jmp 0x243f1
mov rax, qword [rsp + 0x50]
cmp dword [rax + 0xc], 0x12
jbe 0x2453b
mov dword [rsp + 0x60], 0
mov r8d, dword [rsp + 0x60]
mov edx, dword [rsp + 0x48]
lea rcx, [0x00012fb8]
call sub.ntoskrnl.exe_DbgPrint
cmp dword [rsp + 0x60], 0
je 0x248d5
xor eax, eax
cmp eax, 1
je 0x248d5
mov dword [rsp + 0x58], 0
mov r8d, 0x28
xor edx, edx
lea rcx, [rsp + 0x148]
call fcn.000139e0
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0xc]
mov rcx, qword [rsp + 0x50]
add rcx, 0x10
mov r8d, eax
mov rdx, rcx
lea rcx, [rsp + 0x148]
call fcn.00013690
mov r8d, 0x100
xor edx, edx
lea rcx, [rsp + 0x170]
call fcn.000139e0
lea rax, [rsp + 0x148]
mov qword [rsp + 0x38], rax
lea rax, str.RegistryMACHINESystemCurrentControlSetlvshao
mov qword [rsp + 0x30], rax
lea rax, [0x00011ee0]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x800
xor r9d, r9d
xor r8d, r8d
mov edx, 0x100
lea rcx, [rsp + 0x170]
call fcn.00016280
lea rdx, [rsp + 0x170]
lea rcx, [0x00012290]
call sub.ntoskrnl.exe_DbgPrint
lea rdx, [rsp + 0x170]
lea rcx, [rsp + 0x138]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov dword [rsp + 0xf8], 0x30
mov qword [rsp + 0x100], 0
mov dword [rsp + 0x110], 0x40
lea rax, [rsp + 0x138]
mov qword [rsp + 0x108], rax
mov qword [rsp + 0x118], 0
mov qword [rsp + 0x120], 0
lea r8, [rsp + 0xf8]
mov edx, 0x20019
lea rcx, [rsp + 0xb0]
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
mov dword [rsp + 0x9c], eax
cmp dword [rsp + 0x9c], 0
jl 0x246de
mov r9d, 4
lea r8, [rsp + 0x58]
lea rdx, [0x00012fd8]
mov rcx, qword [rsp + 0xb0]
call fcn.00018600
mov edx, dword [rsp + 0x58]
lea rcx, [0x00012ff0]
call sub.ntoskrnl.exe_DbgPrint
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
cmp dword [rsp + 0x58], 0
jbe 0x247df
cmp dword [rsp + 0x58], 2
ja 0x247df
mov edx, dword [rsp + 0x48]
lea rcx, [0x00013008]
call sub.ntoskrnl.exe_DbgPrint
lea rax, [rsp + 0x270]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov dword [rax], 0x34
mov eax, dword [rsp + 0x4c]
inc eax
mov dword [rsp + 0x4c], eax
mov rax, qword [rsp + 0x68]
mov ecx, dword [rsp + 0x4c]
mov dword [rax + 4], ecx
mov rax, qword [rsp + 0x68]
mov ecx, dword [rsp + 0x48]
mov dword [rax + 8], ecx
mov rax, qword [rsp + 0x68]
add rax, 0xc
mov r8d, 0x28
xor edx, edx
mov rcx, rax
call fcn.000139e0
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0xc]
mov rcx, qword [rsp + 0x50]
add rcx, 0x10
mov rdx, qword [rsp + 0x68]
add rdx, 0xc
mov qword [rsp + 0xb8], rdx
mov r8d, eax
mov rdx, rcx
mov rax, qword [rsp + 0xb8]
mov rcx, rax
call fcn.00013690
mov rax, qword [rsp + 0x68]
add rax, 0x34
mov r8d, 0x42
lea rdx, [0x00013030]
mov rcx, rax
call fcn.00013690
mov r8, qword [rsp + 0x90]
mov edx, 0x76
mov rcx, qword [rsp + 0x68]
call fcn.00021840
mov dword [rsp + 0xa0], eax
cmp dword [rsp + 0xa0], 0
jge 0x247df
mov eax, dword [rsp + 0x4c]
dec eax
mov dword [rsp + 0x4c], eax
cmp dword [rsp + 0x58], 3
jne 0x248d5
mov edx, dword [rsp + 0x48]
lea rcx, [0x00013078]
call sub.ntoskrnl.exe_DbgPrint
lea rax, [rsp + 0x2f0]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
mov dword [rax], 0x34
mov eax, dword [rsp + 0x4c]
inc eax
mov dword [rsp + 0x4c], eax
mov rax, qword [rsp + 0x70]
mov ecx, dword [rsp + 0x4c]
mov dword [rax + 4], ecx
mov rax, qword [rsp + 0x70]
mov ecx, dword [rsp + 0x48]
mov dword [rax + 8], ecx
mov rax, qword [rsp + 0x70]
add rax, 0xc
mov r8d, 0x28
xor edx, edx
mov rcx, rax
call fcn.000139e0
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0xc]
mov rcx, qword [rsp + 0x50]
add rcx, 0x10
mov rdx, qword [rsp + 0x70]
add rdx, 0xc
mov qword [rsp + 0xc0], rdx
mov r8d, eax
mov rdx, rcx
mov rax, qword [rsp + 0xc0]
mov rcx, rax
call fcn.00013690
mov rax, qword [rsp + 0x70]
add rax, 0x34
mov r8d, 0x42
lea rdx, [0x000130a0]
mov rcx, rax
call fcn.00013690
mov r8, qword [rsp + 0x90]
mov edx, 0x76
mov rcx, qword [rsp + 0x70]
call fcn.00021840
mov dword [rsp + 0xa4], eax
cmp dword [rsp + 0xa4], 0
jge 0x248d5
mov eax, dword [rsp + 0x4c]
dec eax
mov dword [rsp + 0x4c], eax
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
jmp 0x2430e
xor edx, edx
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov rcx, qword [rsp + 0x90]
call fcn.000187e0
xor eax, eax
jmp 0x24918
xor eax, eax
add rsp, 0x378
ret