Function at 0x14001153c
Capabilities:
Set registry value

Disassembly:
jmp 0x140024260
push rbp
push rdi
sub rsp, 0x248
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x56
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x140038040]
xor rax, rbp
mov qword [rbp + 0x208], rax
lea rcx, [0x1400413ff]
call fcn.140011c17
nop
lea rax, str.SOFTWAREMicrosoftCryptography
mov qword [rbp + 0x28], rax
lea rax, str.MachineGuid
mov qword [rbp + 0x48], rax
lea rax, [rbp + 8]
mov qword [rsp + 0x20], rax
mov r9d, 2
xor r8d, r8d
mov rdx, qword [rbp + 0x28]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [rbp + 0x64], eax
cmp dword [rbp + 0x64], 0
je 0x14002432d
lea rdx, str.Failed_to_open_registry
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.14001114f
mov qword [rbp + 0x1f8], rax
mov edx, dword [rbp + 0x64]
mov rcx, qword [rbp + 0x1f8]
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___long_int____ptr64]
mov qword [rbp + 0x200], rax
lea rdx, [0x14001107d]
mov rcx, qword [rbp + 0x200]
call qword [sym.imp.MSVCP140D.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
xor al, al
jmp 0x1400244df
lea rcx, [rbp + 0x88]
call qword [sym.imp.ole32.dll_CoCreateGuid]
mov dword [rbp + 0x64], eax
cmp dword [rbp + 0x64], 0
je 0x14002439b
lea rdx, str.Failed_to_spoof_GUID
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.14001114f
mov qword [rbp + 0x1f8], rax
mov edx, dword [rbp + 0x64]
mov rcx, qword [rbp + 0x1f8]
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___long_int____ptr64]
mov qword [rbp + 0x200], rax
lea rdx, [0x14001107d]
mov rcx, qword [rbp + 0x200]
call qword [sym.imp.MSVCP140D.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 rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
xor al, al
jmp 0x1400244df
mov r8d, 0x27
lea rdx, [rbp + 0xc0]
lea rcx, [rbp + 0x88]
call qword [sym.imp.ole32.dll_StringFromGUID2]
mov dword [rbp + 0x124], eax
cmp dword [rbp + 0x124], 0
jne 0x140024405
lea rdx, str.Failed_to_save_the_GUID_as_in_an_string
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.14001114f
mov qword [rbp + 0x1f8], rax
lea rdx, [0x14001107d]
mov rcx, qword [rbp + 0x1f8]
call qword [sym.imp.MSVCP140D.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 rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
xor al, al
jmp 0x1400244df
movsxd rax, dword [rbp + 0x124]
shl rax, 1
mov dword [rsp + 0x28], eax
lea rax, [rbp + 0xc0]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
mov rdx, qword [rbp + 0x48]
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [rbp + 0x64], eax
cmp dword [rbp + 0x64], 0
je 0x140024494
lea rdx, str.Failed_to_spoof_registry_value
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.14001114f
mov qword [rbp + 0x1f8], rax
mov edx, dword [rbp + 0x64]
mov rcx, qword [rbp + 0x1f8]
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___long_int____ptr64]
mov qword [rbp + 0x200], rax
lea rdx, [0x14001107d]
mov rcx, qword [rbp + 0x200]
call qword [sym.imp.MSVCP140D.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 rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
xor al, al
jmp 0x1400244df
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rdx, str.new_guid:
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.140011640
lea rdx, [rbp + 0xc0]
mov rcx, rax
call fcn.140011640
mov qword [rbp + 0x1f8], rax
lea rdx, [0x1400115e6]
mov rcx, qword [rbp + 0x1f8]
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 al, 1
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x140032830]
call fcn.140011a28
mov rax, rdi
mov rcx, qword [rbp + 0x208]
xor rcx, rbp
call fcn.1400115d2
lea rsp, [rbp + 0x218]
pop rdi
pop rbp
ret