Function at 0x1400bddf4
Capabilities:
Query or enumerate registry key

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
lea rbp, [rax - 0x1b8]
sub rsp, 0x2a0
mov qword [rbp - 0x80], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x14014d030]
xor rax, rsp
mov qword [rbp + 0x190], rax
mov rsi, rdx
mov rdi, rcx
lea rdx, [0x14014dd40]
mov eax, 5
mov rcx, qword [0x14014dd40]
cmp rcx, rdx
je 0x1400bde69
test byte [rcx + 0x1c], 1
je 0x1400bde69
cmp byte [rcx + 0x19], al
jb 0x1400bde69
lea edx, [rax + 0x54]
mov qword [rsp + 0x20], rsi
mov r9, qword [rdi]
lea r8, [0x140127468]
mov rcx, qword [rcx + 0x10]
call fcn.14000b548
mov ebx, 1
and dword [rsp + 0x48], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_IsWow64Process]
cmp dword [rsp + 0x48], 0
je 0x1400be027
lea rcx, str.advapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rsp + 0x78], rax
test rax, rax
je 0x1400be034
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x68], rax
xor ecx, ecx
test rax, rax
je 0x1400be01a
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x40], rcx
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]
mov ebx, eax
mov rcx, qword [rsp + 0x50]
test eax, eax
jne 0x1400bdf22
test rcx, rcx
je 0x1400bdf18
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, eax
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x50], rcx
mov rdx, qword [0x14014dd40]
lea rax, [0x14014dd40]
cmp rdx, rax
je 0x1400bdf72
mov r8d, 2
test byte [rdx + 0x1c], r8b
je 0x1400bdf72
test ebx, ebx
lea eax, [r8 + 3]
cmove r8d, eax
movzx eax, byte [rdx + 0x19]
cmp eax, r8d
jl 0x1400bdf72
mov qword [rsp + 0x28], rsi
mov rax, qword [rdi]
mov qword [rsp + 0x20], rax
mov r9d, ebx
mov rcx, qword [rdx + 0x10]
call fcn.1400bc0bc
mov rcx, qword [rsp + 0x50]
test ebx, ebx
jne 0x1400be00f
jmp 0x1400bdf95
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x50]
call fcn.1400bddf4
mov ebx, eax
test eax, eax
jne 0x1400bdfce
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
mov dword [rsp + 0x40], pe_nt_image_headers64
lea r9, [rsp + 0x40]
lea r8, [rbp - 0x70]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x1400bdf7c
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400bdfe5
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov qword [rsp + 0x50], rcx
test ebx, ebx
jne 0x1400be00f
mov rbx, qword [rsp + 0x68]
mov rcx, rbx
call qword [fcn.140009050]
xor r9d, r9d
mov r8d, pe_nt_image_headers64
mov rdx, rsi
mov rcx, qword [rdi]
call rbx
mov ebx, eax
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400be01a
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x1400be034
mov rdx, rsi
mov rcx, rdi
call fcn.1400be8fc
mov ebx, eax
mov rcx, qword [0x14014dd40]
lea rax, [0x14014dd40]
cmp rcx, rax
je 0x1400be07b
test byte [rcx + 0x1c], 1
je 0x1400be07b
movzx r9d, byte [rcx + 0x19]
mov eax, ebx
neg eax
sbb edx, edx
and edx, 0xfffffffd
add edx, 5
cmp r9d, edx
jl 0x1400be07b
mov edx, 0x5b
mov r9d, ebx
lea r8, [0x140127468]
mov rcx, qword [rcx + 0x10]
call fcn.1400036d4
mov eax, ebx
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.140106ed0
mov rbx, qword [rsp + 0x2d0]
add rsp, 0x2a0
pop rdi
pop rsi
pop rbp
ret