Function at 0x1400a7720
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r14
lea rbp, [rsp - 0x80]
sub rsp, 0x180
mov rax, qword [0x140101078]
xor rax, rsp
mov qword [rbp + 0x70], rax
mov rsi, r8
mov rbx, rdx
mov r14, rcx
xor r12d, r12d
mov dword [rsp + 0x48], r12d
cmp qword [rcx], r12
jne 0x1400a7763
xor al, al
jmp 0x1400a7965
mov dword [rsp + 0x40], r12d
mov dword [rsp + 0x44], 0x400
mov ecx, 0x802
call fcn.1400b84ac
mov rdi, rax
xor edx, edx
mov r8d, 0x802
mov rcx, rax
call qword [sym.imp.VCRUNTIME140.dll_memset]
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x1400a779b
mov rdx, qword [rbx]
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x40]
xor r8d, r8d
mov rcx, qword [r14]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1400a781d
mov rcx, qword [rbx + 0x10]
movabs rax, 0x7ffffffffffffffe
sub rax, rcx
cmp rax, 0x1f
jb 0x1400a7988
cmp qword [rbx + 0x18], 8
jb 0x1400a77e4
mov rbx, qword [rbx]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], 0x1f
lea r9, str.Query_registry_value_with_key:
lea rcx, [rbp + 0x50]
call fcn.140090b48
lea rcx, [rbp + 0x50]
call fcn.14008858c
mov rcx, rdi
call fcn.1400b8460
jmp 0x1400a775c
cmp dword [rsp + 0x40], 4
jne 0x1400a7950
mov ebx, dword [rdi]
lea rax, [0x1400ec988]
mov qword [rsp + 0x50], rax
lea rax, [0x1400ec8d8]
mov qword [rsp + 0x60], rax
lea rcx, [rbp - 0x18]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::constructor_void____ptr64]
nop
mov dword [rsp + 0x48], 2
xor r8d, r8d
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x50]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__::constructor_class_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t______ptr64____ptr64]
nop
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea r14, vtable.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov qword [rsp + rcx + 0x50], r14
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea r8d, [rcx - 0x98]
mov dword [rsp + rcx + 0x4c], r8d
lea rcx, [rsp + 0x68]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::constructor_void____ptr64]
lea rax, vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov qword [rsp + 0x68], rax
mov qword [rbp - 0x30], r12
mov dword [rbp - 0x28], r12d
mov edx, ebx
lea rcx, [rsp + 0x60]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___int____ptr64]
lea rdx, [rbp + 0x50]
lea rcx, [rsp + 0x68]
call fcn.14008f490
lea rax, [rbp + 0x50]
cmp rsi, rax
je 0x1400a7904
mov rcx, rsi
call fcn.14008858c
nop
mov r8d, 0x20
lea rdx, [rbp + 0x50]
mov rcx, rsi
call qword [sym.imp.VCRUNTIME140.dll_memcpy]
nop
mov qword [rbp + 0x60], r12
mov qword [rbp + 0x68], 7
mov word [rbp + 0x50], r12w
lea rcx, [rbp + 0x50]
call fcn.14008858c
nop
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x50], r14
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rsp + rcx + 0x4c], edx
lea rcx, [rsp + 0x68]
call fcn.14008e784
lea rcx, [rsp + 0x70]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__::destructor_void____ptr64]
lea rcx, [rbp - 0x18]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::destructor_void____ptr64]
jmp 0x1400a795b
mov rdx, rdi
mov rcx, rsi
call fcn.1400929a0
mov rcx, rdi
call fcn.1400b8460
mov al, 1
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.1400b8190
mov rbx, qword [rsp + 0x1c8]
add rsp, 0x180
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.140080310
int3