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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x850]
sub rsp, 0x950
mov rax, qword [0x140008040]
xor rax, rsp
mov qword [rbp + 0x840], rax
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x20], xmm0
mov qword [rbp + 0x30], rax
lea rdx, str.matcha.exe
lea rcx, [rbp - 0x80]
call fcn.140001d20
nop
lea rdx, str.solara.exe
lea rcx, [rbp - 0x60]
call fcn.140001d20
nop
lea rdx, str.santo.exe
lea rcx, [rbp - 0x40]
call fcn.140001d20
nop
lea rdx, str.wave.exe
lea rcx, [rbp - 0x20]
call fcn.140001d20
nop
lea rdi, [rbp - 0x80]
lea rbx, [rbp]
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x20], xmm0
xor r12d, r12d
mov qword [rbp + 0x30], r12
mov ecx, 0x80
call fcn.140002e20
mov qword [rbp + 0x20], rax
mov qword [rbp + 0x28], rax
lea r8, [rax + 0x80]
mov qword [rbp + 0x30], r8
lea r8, [rbp + 0x20]
mov qword [rbp + 8], r8
lea r9, [rbp + 0x20]
mov r8, rax
mov rdx, rbx
mov rcx, rdi
call fcn.140002be0
mov qword [rbp + 0x28], rax
lea r9, [0x140001cb0]
mov edx, 0x20
mov r8d, 4
lea rcx, [rbp - 0x80]
call fcn.140002e5c
lea rax, [rbp]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetServices_bamStateUserSettings
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1400017a8
lea rdx, str.Failed_to_open_registry_key.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400023c0
lea rdx, [0x1400025a0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
jmp 0x140001b7c
mov r15d, r12d
mov dword [rbp + 0x18], pe_nt_image_headers64
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
lea r9, [rbp + 0x18]
lea r8, [rbp + 0x40]
xor edx, edx
mov rcx, qword [rbp]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x140001b71
movabs rdi, 0x7fffffffffffffff
movabs r13, 0x7ffffffffffffffe
nop word [rax + rax]
lea rax, [rbp + 8]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [rbp + 0x40]
mov rcx, qword [rbp]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140001944
mov ebx, r12d
mov dword [rbp + 0x14], pe_nt_image_headers64
mov dword [rbp + 0x10], 0x400
lea rax, [rbp + 0x10]
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0x440]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x38]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
lea r9, [rbp + 0x14]
lea r8, [rbp + 0x240]
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x140001935
nop dword [rax + rax]
lea rdx, [rbp + 0x240]
lea rcx, [rsp + 0x60]
call fcn.140001d20
nop
lea rdx, [rbp + 0x20]
lea rcx, [rsp + 0x60]
call fcn.140001450
nop
mov rdx, qword [rsp + 0x78]
cmp rdx, 7
jbe 0x1400018e3
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400018de
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001bc5
call fcn.140002f34
inc ebx
mov dword [rbp + 0x14], pe_nt_image_headers64
mov dword [rbp + 0x10], 0x400
lea rax, [rbp + 0x10]
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0x440]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x38]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
lea r9, [rbp + 0x14]
lea r8, [rbp + 0x240]
mov edx, ebx
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x140001880
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140001b36
lea rdx, str.Failed_to_open_subkey:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400023c0
mov r14, rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x58], r12
lea rax, [rbp + 0x40]
mov rbx, 0xffffffffffffffff
nop word [rax + rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x140001980
cmp rbx, r13
ja 0x140001c0f
cmp rbx, 7
ja 0x1400019c6
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], 7
add rbx, rbx
mov r8, rbx
lea rdx, [rbp + 0x40]
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memcpy
mov word [rsp + rbx + 0x40], r12w
jmp 0x140001a6a
mov rsi, rbx
or rsi, 7
cmp rsi, r13
jbe 0x140001a0e
mov rsi, r13
lea rcx, [rdi + rdi]
cmp rcx, 0x1000
jb 0x140001a32
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140001c15
mov rcx, rax
call fcn.140002e20
test rax, rax
je 0x140001bd3
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x140001a3a
cmp rsi, 0xa
mov eax, 0xa
cmovb rsi, rax
lea rcx, [rsi + 1]
cmp rcx, rdi
ja 0x140001c15
add rcx, rcx
jne 0x1400019d9
mov rdi, r12
jmp 0x140001a3a
call fcn.140002e20
mov rdi, rax
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rsi
add rbx, rbx
mov r8, rbx
lea rdx, [rbp + 0x40]
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
mov word [rdi + rbx], r12w
movabs rdi, 0x7fffffffffffffff
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x60]
call fcn.140001290
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 0xf
jbe 0x140001a88
mov rax, qword [rax]
mov rdx, rax
mov rcx, r14
call fcn.140002a20
lea rdx, [0x1400025a0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
nop
mov rdx, qword [rsp + 0x78]
cmp rdx, 0xf
jbe 0x140001ae1
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001adc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001bcc
call fcn.140002f34
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x78], 0xf
mov byte [rsp + 0x60], 0
mov rdx, qword [rsp + 0x58]
cmp rdx, 7
jbe 0x140001b36
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001b31
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001bd3
call fcn.140002f34
inc r15d
mov dword [rbp + 0x18], pe_nt_image_headers64
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
lea r9, [rbp + 0x18]
lea r8, [rbp + 0x40]
mov edx, r15d
mov rcx, qword [rbp]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x140001800
mov rcx, qword [rbp]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rcx, qword [rbp + 0x20]
test rcx, rcx
je 0x140001bdf
mov rdx, qword [rbp + 0x28]
call fcn.1400025e0
mov rdx, qword [rbp + 0x30]
mov rcx, qword [rbp + 0x20]
sub rdx, rcx
and rdx, 0xffffffffffffffe0
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001bda
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001bda
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.140002f34
mov rcx, qword [rbp + 0x840]
xor rcx, rsp
call fcn.140002e00
lea r11, [rsp + 0x950]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.1400011b0
nop
call fcn.140001110
int3