Function at 0x1400033c0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push rbx
push rdi
sub rsp, 0x1a8
mov rax, qword [0x14000b040]
xor rax, rsp
mov qword [rsp + 0x190], rax
mov rbx, rcx
lea rax, [rsp + 0x70]
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], rax
mov r9d, 3
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionExplorerUser_Shell_Folders
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, eax
test eax, eax
je 0x140003441
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Failed_to_open_or_create_registry_key:
call fcn.140001e70
mov rcx, rax
mov edx, edi
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___long_int____ptr64]
mov rcx, rax
lea rdx, [0x140002050]
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]
xor al, al
jmp 0x1400036cb
mov rcx, qword [rsp + 0x70]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x28], rax
lea rdx, str.ShellFolders
lea rax, [rsp + 0x80]
mov qword [rsp + 0x1c8], rbp
mov qword [rsp + 0x1d0], rsi
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x1a0], r14
mov dword [rsp + 0x78], 0x104
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14000358e
xorps xmm0, xmm0
lea rax, [rsp + 0x80]
xorps xmm1, xmm1
mov r8, 0xffffffffffffffff
movups xmmword [rsp + 0x50], xmm0
movdqu xmmword [rsp + 0x60], xmm1
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x1400034c0
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x50]
call fcn.140001410
cmp qword [rbx + 0x18], 0xf
mov rdx, rbx
jbe 0x1400034e9
mov rdx, qword [rbx]
mov r14, qword [rsp + 0x68]
lea rcx, [rsp + 0x50]
mov rdi, qword [rsp + 0x50]
cmp r14, 0xf
mov r8, qword [rsp + 0x60]
cmova rcx, rdi
cmp r8, qword [rbx + 0x10]
jne 0x140003519
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x140003519
mov bpl, 1
jmp 0x14000351c
xor bpl, bpl
cmp r14, 0xf
jbe 0x140003556
lea rdx, [r14 + 1]
mov rax, rdi
cmp rdx, 0x1000
jb 0x14000354e
mov rdi, qword [rdi - 8]
add rdx, 0x27
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000354e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rdi
call fcn.140004f18
test bpl, bpl
je 0x14000358e
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.Registry_key_already_set_correctly.
call fcn.140001e70
mov rcx, rax
lea rdx, [0x140002050]
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]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1400036b1
lea rax, [rsp + 0x7c]
xor r9d, r9d
mov qword [rsp + 0x40], rax
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionExplorerUser_Shell_Folders
lea rax, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov rcx, 0xffffffff80000001
xor eax, eax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], eax
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov edi, eax
test eax, eax
je 0x14000360a
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Failed_to_create_or_open_registry_key:
call fcn.140001e70
mov rcx, rax
mov edx, edi
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___long_int____ptr64]
mov rcx, rax
lea rdx, [0x140002050]
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]
xor al, al
jmp 0x1400036b3
cmp qword [rbx + 0x18], 0xf
mov rcx, rbx
jbe 0x140003617
mov rcx, qword [rbx]
mov eax, dword [rbx + 0x10]
lea rdx, str.ShellFolders
inc eax
mov r9d, 1
mov dword [rsp + 0x28], eax
xor r8d, r8d
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebx, eax
test eax, eax
je 0x140003683
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Failed_to_set_or_update_registry_value:
call fcn.140001e70
mov rcx, rax
mov edx, ebx
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___long_int____ptr64]
mov rcx, rax
lea rdx, [0x140002050]
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]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x1400036b3
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.Registry_startup_key_set_or_updated_successfully.
call fcn.140001e70
mov rcx, rax
lea rdx, [0x140002050]
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]
mov al, 1
mov rsi, qword [rsp + 0x1d0]
mov rbp, qword [rsp + 0x1c8]
mov r14, qword [rsp + 0x1a0]
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.140004d40
add rsp, 0x1a8
pop rdi
pop rbx
ret