Function at 0x180036be0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x4c8
mov qword [rsp + 0x188], 0xfffffffffffffffe
mov eax, dword [rsp + 0x4f0]
and eax, 0x300
test eax, eax
jne 0x180036c29
mov eax, dword [rsp + 0x4f0]
bts eax, 9
mov dword [rsp + 0x4f0], eax
mov dword [rsp + 0x4c], 0x208
mov dword [rsp + 0x60], 0
mov dword [rsp + 0x40], 0
movzx eax, byte [rsp + 0x4f8]
test eax, eax
je 0x18003702e
jmp 0x180036c65
mov dword [rsp + 0x4c], 0x208
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x4c]
lea r8, [rsp + 0x2b0]
mov edx, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x4e8]
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
je 0x180036d43
cmp dword [rsp + 0x50], 0x103
je 0x180036d3e
mov rax, qword [rsp + 0x4d0]
mov ecx, dword [rsp + 0x50]
mov dword [rax + 0x77c], ecx
mov rax, qword [rsp + 0x4d0]
mov r9d, dword [rax + 0x77c]
lea r8, [0x1803af7e8]
mov rdx, qword [0x1803b0cb8]
lea rcx, [rsp + 0x270]
call fcn.1801e9200
mov qword [rsp + 0x150], rax
mov rax, qword [rsp + 0x4d0]
add rax, 0xb0
mov rdx, qword [rsp + 0x150]
mov rcx, rax
call fcn.1800732b0
lea rcx, [rsp + 0x270]
call fcn.180073360
xor eax, eax
test eax, eax
jne 0x180036cc2
xor al, al
jmp 0x18003747f
jmp 0x18003702e
movzx eax, byte [rsp + 0x4f8]
test eax, eax
je 0x180036f57
lea rcx, [rsp + 0x68]
call fcn.1800014f0
nop
mov r8, 0xffffffffffffffff
lea rdx, [rsp + 0x2b0]
lea rcx, [rsp + 0x1d0]
call fcn.1801eb5b0
mov qword [rsp + 0x148], rax
mov rax, qword [rsp + 0x148]
mov qword [rsp + 0xc0], rax
mov rcx, qword [rsp + 0xc0]
call fcn.180073860
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x4e8]
lea r8, [rsp + 0x68]
mov rdx, qword [rsp + 0x4d8]
mov rcx, qword [rsp + 0x4d0]
call fcn.180034eb0
mov byte [rsp + 0x44], al
lea rcx, [rsp + 0x1d0]
call fcn.180073360
movzx eax, byte [rsp + 0x44]
test eax, eax
je 0x180036e83
mov rcx, qword [rsp + 0x4e0]
call fcn.1800038e0
mov qword [rsp + 0x80], rax
mov r8, 0xffffffffffffffff
lea rdx, [rsp + 0x2b0]
lea rcx, [rsp + 0x250]
call fcn.1801eb5b0
mov qword [rsp + 0x168], rax
mov rax, qword [rsp + 0x168]
mov qword [rsp + 0xd0], rax
mov rax, qword [rsp + 0x80]
mov rax, qword [rax]
mov dword [rsp + 0x20], 7
lea r9, [rsp + 0x68]
mov r8, qword [rsp + 0xd0]
lea rdx, [rsp + 0x158]
mov rcx, qword [rsp + 0x80]
call qword [rax + 0x148]
lea rcx, [rsp + 0x158]
call fcn.1800043f0
nop
lea rcx, [rsp + 0x250]
call fcn.180073360
jmp 0x180036f48
mov rcx, qword [rsp + 0x4e0]
call fcn.1800038e0
mov qword [rsp + 0x98], rax
mov r8, 0xffffffffffffffff
lea rdx, [rsp + 0x2b0]
lea rcx, [rsp + 0x210]
call fcn.1801eb5b0
mov qword [rsp + 0xe0], rax
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0x138], rax
mov rcx, qword [rsp + 0x4d8]
call fcn.180076160
movzx edx, byte [0x1803ba84f]
mov rcx, rax
call fcn.180084260
mov rcx, qword [rsp + 0x98]
mov rcx, qword [rcx]
mov qword [rsp + 0xf0], rcx
mov dword [rsp + 0x20], 7
mov r9, rax
mov r8, qword [rsp + 0x138]
lea rdx, [rsp + 0x140]
mov rcx, qword [rsp + 0x98]
mov rax, qword [rsp + 0xf0]
call qword [rax + 0x148]
lea rcx, [rsp + 0x140]
call fcn.1800043f0
nop
lea rcx, [rsp + 0x210]
call fcn.180073360
nop
lea rcx, [rsp + 0x68]
call fcn.180004090
jmp 0x180037029
cmp dword [rsp + 0x500], 0
jl 0x180037029
mov rcx, qword [rsp + 0x4e0]
call fcn.1800038e0
mov qword [rsp + 0x88], rax
mov r8, 0xffffffffffffffff
lea rdx, [rsp + 0x2b0]
lea rcx, [rsp + 0x190]
call fcn.1801eb5b0
mov qword [rsp + 0x100], rax
mov rax, qword [rsp + 0x100]
mov qword [rsp + 0xa8], rax
mov rcx, qword [rsp + 0x4d8]
call fcn.180076160
movzx edx, byte [0x1803ba84f]
mov rcx, rax
call fcn.180084260
mov rcx, qword [rsp + 0x88]
mov rcx, qword [rcx]
mov qword [rsp + 0x110], rcx
mov dword [rsp + 0x20], 7
mov r9, rax
mov r8, qword [rsp + 0xa8]
lea rdx, [rsp + 0x160]
mov rcx, qword [rsp + 0x88]
mov rax, qword [rsp + 0x110]
call qword [rax + 0x148]
lea rcx, [rsp + 0x160]
call fcn.1800043f0
nop
lea rcx, [rsp + 0x190]
call fcn.180073360
jmp 0x180036c53
movzx eax, byte [rsp + 0x4f8]
test eax, eax
je 0x18003704b
cmp dword [rsp + 0x500], 0
jge 0x18003704b
mov al, 1
jmp 0x18003747f
mov dword [rsp + 0x40], 0
jmp 0x180037067
mov dword [rsp + 0x4c], 0x208
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x4c]
lea r8, [rsp + 0x2b0]
mov edx, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x4e8]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0
je 0x180037144
cmp dword [rsp + 0x48], 0x103
je 0x18003713f
mov rax, qword [rsp + 0x4d0]
mov ecx, dword [rsp + 0x48]
mov dword [rax + 0x77c], ecx
mov rax, qword [rsp + 0x4d0]
mov r9d, dword [rax + 0x77c]
lea r8, [0x1803af7f8]
mov rdx, qword [0x1803b0cb8]
lea rcx, [rsp + 0x1b0]
call fcn.1801e9200
mov qword [rsp + 0x120], rax
mov rax, qword [rsp + 0x4d0]
add rax, 0xb0
mov rdx, qword [rsp + 0x120]
mov rcx, rax
call fcn.1800732b0
lea rcx, [rsp + 0x1b0]
call fcn.180073360
xor eax, eax
test eax, eax
jne 0x1800370c3
xor al, al
jmp 0x18003747f
jmp 0x18003747d
cmp dword [rsp + 0x500], 0
jl 0x1800373c4
cmp dword [rsp + 0x500], 6
jge 0x1800372fb
mov eax, dword [rsp + 0x4f0]
and eax, 0x300
or eax, 0x20019
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x20], rcx
mov r9d, eax
xor r8d, r8d
lea rdx, [rsp + 0x2b0]
mov rcx, qword [rsp + 0x4e8]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0
jne 0x1800372f6
mov eax, dword [rsp + 0x58]
and eax, 0x80000000
test eax, eax
jne 0x1800372f6
mov rcx, qword [rsp + 0x4d8]
call fcn.180076160
movzx r8d, byte [0x1803ba84e]
lea rdx, [rsp + 0x78]
mov rcx, rax
call fcn.180083860
nop
mov eax, dword [rsp + 0x500]
inc eax
mov dword [rsp + 0x30], eax
movzx eax, byte [rsp + 0x4f8]
mov byte [rsp + 0x28], al
mov eax, dword [rsp + 0x4f0]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x58]
lea r8, [rsp + 0x78]
mov rdx, qword [rsp + 0x4d8]
mov rcx, qword [rsp + 0x4d0]
call fcn.180036be0
movzx eax, al
test eax, eax
je 0x1800372c2
mov rcx, qword [rsp + 0x4e0]
call fcn.1800038e0
mov qword [rsp + 0x90], rax
mov r8, 0xffffffffffffffff
lea rdx, [rsp + 0x2b0]
lea rcx, [rsp + 0x1f0]
call fcn.1801eb5b0
mov qword [rsp + 0x170], rax
mov rax, qword [rsp + 0x170]
mov qword [rsp + 0x130], rax
mov rax, qword [rsp + 0x90]
mov rax, qword [rax]
mov dword [rsp + 0x20], 7
lea r9, [rsp + 0x78]
mov r8, qword [rsp + 0x130]
lea rdx, [rsp + 0x180]
mov rcx, qword [rsp + 0x90]
call qword [rax + 0x148]
lea rcx, [rsp + 0x180]
call fcn.1800043f0
nop
lea rcx, [rsp + 0x1f0]
call fcn.180073360
cmp qword [0x1803cb4d8], 0
je 0x1800372dd
mov rcx, qword [rsp + 0x58]
call qword [0x1803cb4d8]
mov dword [rsp + 0x70], eax
jmp 0x1800372ec
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rsp + 0x70], eax
lea rcx, [rsp + 0x78]
call fcn.180004090
jmp 0x1800373bf
mov rcx, qword [rsp + 0x4e0]
call fcn.1800038e0
mov qword [rsp + 0xa0], rax
mov r8, 0xffffffffffffffff
lea rdx, [rsp + 0x2b0]
lea rcx, [rsp + 0x230]
call fcn.1801eb5b0
mov qword [rsp + 0x178], rax
mov rax, qword [rsp + 0x178]
mov qword [rsp + 0xb0], rax
mov rcx, qword [rsp + 0x4d8]
call fcn.180076160
movzx edx, byte [0x1803ba84f]
mov rcx, rax
call fcn.180084260
mov rcx, qword [rsp + 0xa0]
mov rcx, qword [rcx]
mov qword [rsp + 0xb8], rcx
mov dword [rsp + 0x20], 7
mov r9, rax
mov r8, qword [rsp + 0xb0]
lea rdx, [rsp + 0xc8]
mov rcx, qword [rsp + 0xa0]
mov rax, qword [rsp + 0xb8]
call qword [rax + 0x148]
lea rcx, [rsp + 0xc8]
call fcn.1800043f0
nop
lea rcx, [rsp + 0x230]
call fcn.180073360
jmp 0x180037478
lea rax, [rsp + 0x290]
mov qword [rsp + 0xd8], rax
mov r8, 0xffffffffffffffff
lea rdx, [rsp + 0x2b0]
mov rcx, qword [rsp + 0xd8]
call fcn.1801eb5b0
mov qword [rsp + 0xe8], rax
mov rax, qword [rsp + 0xe8]
mov qword [rsp + 0xf8], rax
mov rcx, qword [rsp + 0x4d8]
call fcn.180076160
nop
mov r8, qword [rsp + 0xf8]
lea rdx, [rsp + 0x128]
mov rcx, rax
call fcn.1800838b0
mov qword [rsp + 0x108], rax
mov rax, qword [rsp + 0x108]
mov qword [rsp + 0x118], rax
mov rcx, qword [rsp + 0x4e0]
call fcn.1800038e0
mov r9b, 1
mov r8, qword [rsp + 0x118]
mov edx, dword [rsp + 0x40]
mov rcx, rax
call fcn.1801d7d20
nop
lea rcx, [rsp + 0x128]
call fcn.180004090
jmp 0x180037055
mov al, 1
add rsp, 0x4c8
ret