Function at 0x14000b850
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 [0x14001f040]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov rdi, r8
mov r14, rdx
cmp qword [rdx + 0x18], 7
jbe 0x14000b881
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 0x14000b935
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.1400071f0
mov rbx, rax
mov rdx, r14
lea rcx, [rbp - 0x39]
call fcn.140011f20
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 0xf
jbe 0x14000b8d2
mov rax, qword [rax]
mov rdx, rax
mov rcx, rbx
call fcn.1400085c0
lea rdx, [0x1400073d0]
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 0x14000bf3a
inc rdx
mov rcx, qword [rbp - 0x39]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000b92b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000b92b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140013d44
jmp 0x14000bf3a
xor ebx, ebx
mov dword [rbp + 0xf], ebx
mov rdx, rdi
cmp qword [rdi + 0x18], 7
jbe 0x14000b947
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 0x14000be1e
mov eax, dword [rbp + 0xf]
test eax, eax
je 0x14000be1e
xorps xmm0, xmm0
mov esi, eax
movdqu xmmword [rbp + 0x17], xmm0
mov qword [rbp + 0x27], rbx
cmp rax, 0x1000
jb 0x14000b9ba
lea rcx, [rax + 0x27]
cmp rcx, rax
jbe 0x14000bf56
call fcn.1400139f0
mov rcx, rax
test rax, rax
je 0x14000be0a
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x14000b9c2
mov rcx, rsi
call fcn.1400139f0
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 0x14000b9ec
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 0x14000bb2f
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.1400071f0
mov rbx, rax
mov rdx, r14
lea rcx, [rbp - 0x19]
call fcn.140011f20
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 0xf
jbe 0x14000ba47
mov rax, qword [rax]
mov rdx, rax
mov rcx, rbx
call fcn.1400085c0
lea rdx, [0x1400181fc]
mov rcx, rax
call fcn.1400071f0
mov rbx, rax
mov rdx, rdi
lea rcx, [rbp - 0x39]
call fcn.140011f20
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 0xf
jbe 0x14000ba7f
mov rax, qword [rax]
mov rdx, rax
mov rcx, rbx
call fcn.1400085c0
lea rdx, [0x1400073d0]
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 0x14000bad9
inc rdx
mov rcx, qword [rbp - 0x39]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000bad4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000bad4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140013d44
movdqa xmm0, xmmword [0x1400196a0]
movdqu xmmword [rbp - 0x29], xmm0
mov byte [rbp - 0x39], 0
mov rdx, qword [rbp - 1]
cmp rdx, 0xf
jbe 0x14000bcaa
inc rdx
mov rcx, qword [rbp - 0x19]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000bca5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000bca5
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 0x14000bb64
nop dword [rax]
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
and eax, 0x800000ff
jge 0x14000bb56
dec eax
or eax, 0xffffff00
inc eax
mov byte [rbx], al
inc rbx
cmp rbx, rsi
jne 0x14000bb40
mov rbx, qword [rbp + 0x17]
mov rdx, rdi
cmp qword [rdi + 0x18], 7
jbe 0x14000bb71
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 0x14000bcbb
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.1400071f0
mov rbx, rax
mov rdx, r14
lea rcx, [rbp - 0x19]
call fcn.140011f20
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 0xf
jbe 0x14000bbc9
mov rax, qword [rax]
mov rdx, rax
mov rcx, rbx
call fcn.1400085c0
lea rdx, [0x1400181fc]
mov rcx, rax
call fcn.1400071f0
mov rbx, rax
mov rdx, rdi
lea rcx, [rbp - 0x39]
call fcn.140011f20
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 0xf
jbe 0x14000bc01
mov rax, qword [rax]
mov rdx, rax
mov rcx, rbx
call fcn.1400085c0
lea rdx, [0x1400073d0]
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 0x14000bc5b
inc rdx
mov rcx, qword [rbp - 0x39]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000bc56
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000bc56
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140013d44
movdqa xmm0, xmmword [0x1400196a0]
movdqu xmmword [rbp - 0x29], xmm0
mov byte [rbp - 0x39], 0
mov rdx, qword [rbp - 1]
cmp rdx, 0xf
jbe 0x14000bcaa
inc rdx
mov rcx, qword [rbp - 0x19]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000bca5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000bca5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140013d44
mov rcx, qword [rbp + 7]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor bl, bl
jmp 0x14000bdd9
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.1400071f0
mov rbx, rax
mov rdx, r14
lea rcx, [rbp - 0x19]
call fcn.140011f20
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 0xf
jbe 0x14000bcec
mov rax, qword [rax]
mov rdx, rax
mov rcx, rbx
call fcn.1400085c0
lea rdx, [0x1400181fc]
mov rcx, rax
call fcn.1400071f0
mov rbx, rax
mov rdx, rdi
lea rcx, [rbp - 0x39]
call fcn.140011f20
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 0xf
jbe 0x14000bd24
mov rax, qword [rax]
mov rdx, rax
mov rcx, rbx
call fcn.1400085c0
lea rdx, [0x1400073d0]
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 0x14000bd7e
inc rdx
mov rcx, qword [rbp - 0x39]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000bd79
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000bd79
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140013d44
movdqa xmm0, xmmword [0x1400196a0]
movdqu xmmword [rbp - 0x29], xmm0
mov byte [rbp - 0x39], 0
mov rdx, qword [rbp - 1]
cmp rdx, 0xf
jbe 0x14000bdcd
inc rdx
mov rcx, qword [rbp - 0x19]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000bdc8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000bdc8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140013d44
mov rcx, qword [rbp + 7]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov bl, 1
mov rcx, qword [rbp + 0x17]
test rcx, rcx
je 0x14000be16
mov rdx, qword [rbp + 0x27]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000be11
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000be11
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140013d44
movzx eax, bl
jmp 0x14000bf3c
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.1400071f0
mov rbx, rax
mov rdx, r14
lea rcx, [rbp - 0x19]
call fcn.140011f20
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 0xf
jbe 0x14000be4f
mov rax, qword [rax]
mov rdx, rax
mov rcx, rbx
call fcn.1400085c0
lea rdx, [0x1400181fc]
mov rcx, rax
call fcn.1400071f0
mov rbx, rax
mov rdx, rdi
lea rcx, [rbp - 0x39]
call fcn.140011f20
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 0xf
jbe 0x14000be87
mov rax, qword [rax]
mov rdx, rax
mov rcx, rbx
call fcn.1400085c0
lea rdx, [0x1400073d0]
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 0x14000bee1
inc rdx
mov rcx, qword [rbp - 0x39]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000bedc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000bedc
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140013d44
movdqa xmm0, xmmword [0x1400196a0]
movdqu xmmword [rbp - 0x29], xmm0
mov byte [rbp - 0x39], 0
mov rdx, qword [rbp - 1]
cmp rdx, 0xf
jbe 0x14000bf30
inc rdx
mov rcx, qword [rbp - 0x19]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000bf2b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000bf2b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140013d44
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.1400139d0
add rsp, 0xa0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.1400028c0
int3