Function at 0x140015c5c
Capabilities:
Set registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp - 8], 0xfffffffffffffffe
mov rsi, rcx
xor r14d, r14d
mov qword [rbp - 0x18], r14
mov edi, r14d
mov qword [rbp - 0x10], r14
mov qword [rbp - 0x20], r14
mov qword [rbp - 0x28], r14
mov byte [rbp + 0x30], r14b
lea rax, [rbp - 0x18]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
mov rdx, qword [rcx + 0x20]
mov rcx, qword [rcx + 0x78]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
je 0x140015cd7
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
je 0x140015cd7
mov ecx, ebx
call fcn.14000bbd0
jmp 0x140015fbc
mov rbx, qword [rsi + 0xa0]
test rbx, rbx
jne 0x140015cea
mov ebx, 0x80004004
jmp 0x140015ccb
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 8]
call qword [0x140036880]
mov rdi, rbx
mov qword [rbp - 0x10], rbx
mov rax, qword [rbx]
mov rbx, qword [rax]
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x140015d21
mov qword [rbp - 0x20], r14
mov rdx, qword [rcx]
mov rax, qword [rdx + 0x10]
call qword [0x140036880]
lea r8, [rbp - 0x20]
lea rdx, [0x14003cc90]
mov rcx, rdi
mov rax, rbx
call qword [0x140036880]
mov ebx, eax
test eax, eax
jns 0x140015d42
mov ecx, eax
jmp 0x140015ccd
mov rcx, qword [rbp - 0x20]
mov rax, qword [rcx]
lea rdx, [rbp - 0x28]
mov rax, qword [rax + 0x30]
call qword [0x140036880]
mov ebx, eax
test eax, eax
js 0x140015d3e
mov rcx, qword [rbp - 0x28]
mov rax, qword [rcx]
lea rdx, [rbp + 0x30]
mov rax, qword [rax + 0x38]
call qword [0x140036880]
mov ebx, eax
test eax, eax
js 0x140015d3e
jmp 0x140015f4b
mov qword [rbp + 0x48], r14
mov qword [rbp + 0x38], r14
mov qword [rbp - 0x30], r14
mov qword [rbp + 0x40], r14
mov rcx, qword [rbp - 0x28]
mov rax, qword [rcx]
lea rdx, [rbp + 0x48]
mov rax, qword [rax + 0x30]
call qword [0x140036880]
mov ebx, eax
test eax, eax
js 0x140015f57
mov rbx, qword [rbp + 0x48]
mov rax, qword [rbx]
mov rsi, qword [rax + 0x30]
mov rcx, qword [rbp + 0x38]
call qword [sym.imp.api_ms_win_core_winrt_string_l1_1_0.dll_WindowsDeleteString]
nop dword [rax + rax]
mov qword [rbp + 0x38], r14
lea rdx, [rbp + 0x38]
mov rcx, rbx
mov rax, rsi
call qword [0x140036880]
mov ebx, eax
test eax, eax
js 0x140015f57
mov rcx, qword [rbp + 0x48]
mov rax, qword [rcx]
lea rdx, [rbp - 0x30]
mov rax, qword [rax + 0x38]
call qword [0x140036880]
mov ebx, eax
test eax, eax
js 0x140015f57
mov rbx, qword [rbp - 0x30]
mov rax, qword [rbx]
mov rsi, qword [rax + 0x40]
mov rcx, qword [rbp + 0x40]
call qword [sym.imp.api_ms_win_core_winrt_string_l1_1_0.dll_WindowsDeleteString]
nop dword [rax + rax]
mov qword [rbp + 0x40], r14
lea rdx, [rbp + 0x40]
mov rcx, rbx
mov rax, rsi
call qword [0x140036880]
mov ebx, eax
test eax, eax
js 0x140015f57
xor edx, edx
mov rcx, qword [rbp + 0x40]
call qword [sym.imp.api_ms_win_core_winrt_string_l1_1_0.dll_WindowsGetStringRawBuffer]
nop dword [rax + rax]
mov rbx, rax
xor edx, edx
mov rcx, qword [rbp + 0x38]
call qword [sym.imp.api_ms_win_core_winrt_string_l1_1_0.dll_WindowsGetStringRawBuffer]
nop dword [rax + rax]
mov rdx, rax
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rbx + rcx*2], r14w
jne 0x140015e6b
lea eax, [rcx*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
mov r9d, 1
xor r8d, r8d
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
je 0x140015ed3
xor edx, edx
mov rcx, qword [rbp + 0x38]
call qword [sym.imp.api_ms_win_core_winrt_string_l1_1_0.dll_WindowsGetStringRawBuffer]
nop dword [rax + rax]
movzx ecx, bx
or ecx, 0x80070000
test ebx, ebx
cmovle ecx, ebx
mov r8, rax
lea rdx, str.Failed_to_write__s_to_cache.
call fcn.14000b430
mov rcx, qword [rbp - 0x28]
mov rax, qword [rcx]
lea rdx, [rbp + 0x30]
mov rax, qword [rax + 0x40]
call qword [0x140036880]
mov ebx, eax
test eax, eax
js 0x140015f57
mov rcx, qword [rbp + 0x40]
call qword [sym.imp.api_ms_win_core_winrt_string_l1_1_0.dll_WindowsDeleteString]
nop dword [rax + rax]
mov qword [rbp + 0x40], r14
mov rcx, qword [rbp - 0x30]
test rcx, rcx
je 0x140015f1d
mov qword [rbp - 0x30], r14
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140036880]
nop
mov rcx, qword [rbp + 0x38]
call qword [sym.imp.api_ms_win_core_winrt_string_l1_1_0.dll_WindowsDeleteString]
nop dword [rax + rax]
mov qword [rbp + 0x38], r14
mov rcx, qword [rbp + 0x48]
test rcx, rcx
je 0x140015f4b
mov qword [rbp + 0x48], r14
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140036880]
cmp byte [rbp + 0x30], r14b
jne 0x140015d7d
jmp 0x140015fbc
mov ecx, eax
call fcn.14000bbd0
nop
mov rcx, qword [rbp + 0x40]
call qword [sym.imp.api_ms_win_core_winrt_string_l1_1_0.dll_WindowsDeleteString]
nop dword [rax + rax]
mov qword [rbp + 0x40], r14
mov rcx, qword [rbp - 0x30]
test rcx, rcx
je 0x140015f8e
mov qword [rbp - 0x30], r14
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140036880]
nop
mov rcx, qword [rbp + 0x38]
call qword [sym.imp.api_ms_win_core_winrt_string_l1_1_0.dll_WindowsDeleteString]
nop dword [rax + rax]
mov qword [rbp + 0x38], r14
mov rcx, qword [rbp + 0x48]
test rcx, rcx
je 0x140015fbc
mov qword [rbp + 0x48], r14
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140036880]
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x140015fd1
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov ecx, ebx
call fcn.14000bbf0
nop
mov rcx, qword [rbp - 0x28]
test rcx, rcx
je 0x140015ff4
mov qword [rbp - 0x28], r14
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140036880]
nop
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x14001600f
mov qword [rbp - 0x20], r14
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140036880]
nop
test rdi, rdi
je 0x140016024
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 0x10]
call qword [0x140036880]
mov eax, ebx
add rsp, 0x60
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret