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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x37]
sub rsp, 0xa0
mov rax, qword [0x140025040]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov rdi, r8
mov r14, rdx
cmp qword [rdx + 0x18], 7
jbe 0x14000d361
mov rdx, qword [rdx]
lea rax, [rbp + 7]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14000d415
lea rdx, str.Failed_to_open_reg_key:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400071d0
mov rbx, rax
mov rdx, r14
lea rcx, [rbp - 0x39]
call fcn.140009900
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 0xf
jbe 0x14000d3b2
mov rax, qword [rax]
mov rdx, rax
mov rcx, rbx
call fcn.1400085a0
lea rdx, [0x1400073b0]
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 [rbp - 0x21]
cmp rdx, 0xf
jbe 0x14000da1a
inc rdx
mov rcx, qword [rbp - 0x39]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000d40b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000d40b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400176d4
jmp 0x14000da1a
xor ebx, ebx
mov dword [rbp + 0xf], ebx
mov rdx, rdi
cmp qword [rdi + 0x18], 7
jbe 0x14000d427
mov rdx, qword [rdi]
lea rax, [rbp + 0xf]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rbp + 7]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000d8fe
mov eax, dword [rbp + 0xf]
test eax, eax
je 0x14000d8fe
xorps xmm0, xmm0
mov esi, eax
movdqu xmmword [rbp + 0x17], xmm0
mov qword [rbp + 0x27], rbx
cmp rax, 0x1000
jb 0x14000d49a
lea rcx, [rax + 0x27]
cmp rcx, rax
jbe 0x14000da36
call fcn.140017380
mov rcx, rax
test rax, rax
je 0x14000d8ea
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x14000d4a2
mov rcx, rsi
call fcn.140017380
mov qword [rbp + 0x17], rax
lea rbx, [rax + rsi]
mov qword [rbp + 0x27], rbx
mov r8, rsi
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov qword [rbp + 0x1f], rbx
mov rdx, rdi
cmp qword [rdi + 0x18], 7
jbe 0x14000d4cc
mov rdx, qword [rdi]
lea rax, [rbp + 0xf]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp + 0x17]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rbp + 7]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x14000d60f
lea rdx, str.Failed_to_read_reg_value:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400071d0
mov rbx, rax
mov rdx, r14
lea rcx, [rbp - 0x19]
call fcn.140009900
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 0xf
jbe 0x14000d527
mov rax, qword [rax]
mov rdx, rax
mov rcx, rbx
call fcn.1400085a0
lea rdx, [0x14001c3dc]
mov rcx, rax
call fcn.1400071d0
mov rbx, rax
mov rdx, rdi
lea rcx, [rbp - 0x39]
call fcn.140009900
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 0xf
jbe 0x14000d55f
mov rax, qword [rax]
mov rdx, rax
mov rcx, rbx
call fcn.1400085a0
lea rdx, [0x1400073b0]
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 [rbp - 0x21]
cmp rdx, 0xf
jbe 0x14000d5b9
inc rdx
mov rcx, qword [rbp - 0x39]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000d5b4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000d5b4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400176d4
movdqa xmm0, xmmword [0x14001d9b0]
movdqu xmmword [rbp - 0x29], xmm0
mov byte [rbp - 0x39], 0
mov rdx, qword [rbp - 1]
cmp rdx, 0xf
jbe 0x14000d78a
inc rdx
mov rcx, qword [rbp - 0x19]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000d785
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000d785
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rsi, qword [rbp + 0x1f]
mov rbx, qword [rbp + 0x17]
cmp rbx, rsi
je 0x14000d644
nop dword [rax]
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
and eax, 0x800000ff
jge 0x14000d636
dec eax
or eax, 0xffffff00
inc eax
mov byte [rbx], al
inc rbx
cmp rbx, rsi
jne 0x14000d620
mov rbx, qword [rbp + 0x17]
mov rdx, rdi
cmp qword [rdi + 0x18], 7
jbe 0x14000d651
mov rdx, qword [rdi]
mov eax, dword [rbp + 0xf]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
mov r9d, 3
xor r8d, r8d
mov rcx, qword [rbp + 7]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x14000d79b
lea rdx, str.Failed_to_set_reg_value:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400071d0
mov rbx, rax
mov rdx, r14
lea rcx, [rbp - 0x19]
call fcn.140009900
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 0xf
jbe 0x14000d6a9
mov rax, qword [rax]
mov rdx, rax
mov rcx, rbx
call fcn.1400085a0
lea rdx, [0x14001c3dc]
mov rcx, rax
call fcn.1400071d0
mov rbx, rax
mov rdx, rdi
lea rcx, [rbp - 0x39]
call fcn.140009900
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 0xf
jbe 0x14000d6e1
mov rax, qword [rax]
mov rdx, rax
mov rcx, rbx
call fcn.1400085a0
lea rdx, [0x1400073b0]
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 [rbp - 0x21]
cmp rdx, 0xf
jbe 0x14000d73b
inc rdx
mov rcx, qword [rbp - 0x39]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000d736
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000d736
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400176d4
movdqa xmm0, xmmword [0x14001d9b0]
movdqu xmmword [rbp - 0x29], xmm0
mov byte [rbp - 0x39], 0
mov rdx, qword [rbp - 1]
cmp rdx, 0xf
jbe 0x14000d78a
inc rdx
mov rcx, qword [rbp - 0x19]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000d785
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000d785
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400176d4
mov rcx, qword [rbp + 7]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor bl, bl
jmp 0x14000d8b9
lea rdx, str.spoofed___
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400071d0
mov rbx, rax
mov rdx, r14
lea rcx, [rbp - 0x19]
call fcn.140009900
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 0xf
jbe 0x14000d7cc
mov rax, qword [rax]
mov rdx, rax
mov rcx, rbx
call fcn.1400085a0
lea rdx, [0x14001c3dc]
mov rcx, rax
call fcn.1400071d0
mov rbx, rax
mov rdx, rdi
lea rcx, [rbp - 0x39]
call fcn.140009900
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 0xf
jbe 0x14000d804
mov rax, qword [rax]
mov rdx, rax
mov rcx, rbx
call fcn.1400085a0
lea rdx, [0x1400073b0]
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 [rbp - 0x21]
cmp rdx, 0xf
jbe 0x14000d85e
inc rdx
mov rcx, qword [rbp - 0x39]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000d859
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000d859
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400176d4
movdqa xmm0, xmmword [0x14001d9b0]
movdqu xmmword [rbp - 0x29], xmm0
mov byte [rbp - 0x39], 0
mov rdx, qword [rbp - 1]
cmp rdx, 0xf
jbe 0x14000d8ad
inc rdx
mov rcx, qword [rbp - 0x19]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000d8a8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000d8a8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400176d4
mov rcx, qword [rbp + 7]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov bl, 1
mov rcx, qword [rbp + 0x17]
test rcx, rcx
je 0x14000d8f6
mov rdx, qword [rbp + 0x27]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000d8f1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000d8f1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400176d4
movzx eax, bl
jmp 0x14000da1c
lea rdx, str.Failed_to_query_reg_value:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400071d0
mov rbx, rax
mov rdx, r14
lea rcx, [rbp - 0x19]
call fcn.140009900
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 0xf
jbe 0x14000d92f
mov rax, qword [rax]
mov rdx, rax
mov rcx, rbx
call fcn.1400085a0
lea rdx, [0x14001c3dc]
mov rcx, rax
call fcn.1400071d0
mov rbx, rax
mov rdx, rdi
lea rcx, [rbp - 0x39]
call fcn.140009900
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 0xf
jbe 0x14000d967
mov rax, qword [rax]
mov rdx, rax
mov rcx, rbx
call fcn.1400085a0
lea rdx, [0x1400073b0]
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 [rbp - 0x21]
cmp rdx, 0xf
jbe 0x14000d9c1
inc rdx
mov rcx, qword [rbp - 0x39]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000d9bc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000d9bc
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400176d4
movdqa xmm0, xmmword [0x14001d9b0]
movdqu xmmword [rbp - 0x29], xmm0
mov byte [rbp - 0x39], 0
mov rdx, qword [rbp - 1]
cmp rdx, 0xf
jbe 0x14000da10
inc rdx
mov rcx, qword [rbp - 0x19]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000da0b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000da0b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400176d4
mov rcx, qword [rbp + 7]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.140017360
add rsp, 0xa0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.1400028d0
int3