Function at 0x140091164
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x1400cd220]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov rsi, rdx
mov rdi, rcx
lea r13, section..data
mov rcx, qword [section..data]
cmp rcx, r13
je 0x1400911d6
test byte [rcx + 0x1c], 1
je 0x1400911d6
cmp byte [rcx + 0x19], 5
jb 0x1400911d6
mov edx, 0x59
mov qword [rsp + 0x20], rsi
mov r9, qword [rdi]
lea r8, [0x1400bd728]
mov rcx, qword [rcx + 0x10]
call fcn.140019a68
mov ebx, 1
xor r12d, r12d
mov dword [rsp + 0x48], r12d
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
nop dword [rax + rax]
mov rcx, rax
lea rdx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_IsWow64Process]
nop dword [rax + rax]
cmp dword [rsp + 0x48], r12d
je 0x1400913dc
lea rcx, str.advapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
nop dword [rax + rax]
mov r14, rax
test rax, rax
je 0x1400913e9
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
nop dword [rax + rax]
mov r15, rax
test rax, rax
je 0x1400913cb
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x40], r12
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x2011f
xor r8d, r8d
mov rdx, rsi
mov rcx, qword [rdi]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x1400912b5
mov ebx, r12d
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400912a9
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov ebx, eax
mov r10, qword [rsp + 0x40]
mov qword [rsp + 0x50], r10
jmp 0x1400912ba
mov r10, qword [rsp + 0x50]
mov rdx, qword [section..data]
cmp rdx, r13
je 0x1400912fe
mov eax, 2
test byte [rdx + 0x1c], al
je 0x1400912fe
lea ecx, [rax + 3]
test ebx, ebx
cmovne ecx, eax
movzx eax, byte [rdx + 0x19]
cmp eax, ecx
jb 0x1400912fe
mov qword [rsp + 0x28], rsi
mov rax, qword [rdi]
mov qword [rsp + 0x20], rax
mov r9d, ebx
mov rcx, qword [rdx + 0x10]
call fcn.140092afc
mov r10, qword [rsp + 0x50]
test ebx, ebx
jne 0x1400913b7
mov r13d, 0x100
mov rcx, r10
jmp 0x14009132b
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x50]
call fcn.140091164
mov ebx, eax
test eax, eax
jne 0x140091365
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
mov dword [rsp + 0x40], r13d
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x70]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
nop dword [rax + rax]
test eax, eax
je 0x140091311
mov r10, qword [rsp + 0x50]
test r10, r10
je 0x140091386
mov rcx, r10
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov r10, r12
mov qword [rsp + 0x50], r12
test ebx, ebx
jne 0x1400913b0
movabs r10, 0xb8d0af28765bd370
xor r9d, r9d
mov r8d, r13d
mov rdx, rsi
mov rcx, qword [rdi]
mov rax, r15
call qword [case.0x140071786.0]
mov ebx, eax
mov r10, qword [rsp + 0x50]
lea r13, section..data
test r10, r10
je 0x1400913cb
mov rcx, r10
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop dword [rax + rax]
jmp 0x1400913e9
mov rdx, rsi
mov rcx, rdi
call fcn.140091e88
mov ebx, eax
mov rcx, qword [section..data]
cmp rcx, r13
je 0x140091429
test byte [rcx + 0x1c], 1
je 0x140091429
movzx r9d, byte [rcx + 0x19]
mov eax, ebx
neg eax
sbb edx, edx
and edx, 0xfffffffd
add edx, 5
cmp r9d, edx
jb 0x140091429
mov edx, 0x5b
mov r9d, ebx
lea r8, [0x1400bd728]
mov rcx, qword [rcx + 0x10]
call fcn.14000ad20
mov eax, ebx
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.140003680
mov rbx, qword [rsp + 0x2d0]
add rsp, 0x280
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret