Function at 0x140035a50
Capabilities:
Delete registry key
Set registry value

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0xe0
mov r15, r8
mov rbx, rdx
mov rdi, rcx
mov rax, qword [0x1400aa050]
xor rax, rsp
mov qword [rsp + 0xd8], rax
lea rsi, [rsp + 0xb0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetSystemTime]
movups xmm0, xmmword [rsi]
lea rax, [rsp + 0x90]
movaps xmmword [rax], xmm0
mov qword [rsp + 0x20], rax
lea rsi, [rsp + 0xa8]
mov rcx, rsi
mov rdx, rdi
mov r8, rbx
mov r9, r15
call fcn.14005ac50
cmp qword [rsi], 0
je 0x140035ce3
lea rsi, [rsp + 0x80]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetSystemTime]
lea rdx, [rsp + 0xd0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
test eax, eax
je 0x140035cc1
lea r14, [rsp + 0xd0]
add qword [r14], 0xf4240
lea rdx, [rsp + 0xc0]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x140035cc1
lea rdx, [rsp + 0xc0]
movups xmm0, xmmword [rdx]
movaps xmmword [rsp + 0x80], xmm0
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x70], rax
mov eax, dword [rsp + 0x88]
mov dword [rsp + 0x78], eax
mov rax, qword [rsp + 0xb0]
lea rcx, [rsp + 0x60]
mov qword [rcx], rax
mov eax, dword [rsp + 0xb8]
mov dword [rcx + 8], eax
xor eax, eax
mov dword [rcx + 0xc], eax
mov dword [rsp + 0x7c], eax
call qword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
test eax, eax
je 0x140035ba5
lea rcx, [rsp + 0x70]
lea rdx, [rsp + 0xd0]
call qword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
test eax, eax
je 0x140035ba5
mov eax, dword [rsp + 0xc0]
cmp eax, dword [rsp + 0xd0]
jne 0x140035ba5
mov eax, dword [rsp + 0xd4]
cmp dword [rsp + 0xc4], eax
je 0x140035c59
mov rcx, qword [sym.default_browser_agent.exe_gWinEventLogSourceName]
lea rdx, str.Hash_is_too_close_to_expiration__sleeping_until_next_hash.
lea r8, str.SetUserChoice
mov r9d, 0x61
call fcn.14002d330
mov ecx, 0xc8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rsi, [rsp + 0xb0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetSystemTime]
movups xmm0, xmmword [rsi]
lea rax, [rsp + 0x50]
movaps xmmword [rax], xmm0
mov qword [rsp + 0x20], rax
lea rsi, [rsp + 0xc0]
mov rcx, rsi
mov rdx, rdi
mov r8, rbx
mov r9, r15
call fcn.14005ac50
mov rax, qword [rsi]
mov qword [rsi], 0
mov rcx, qword [rsp + 0xa8]
mov qword [rsp + 0xa8], rax
test rcx, rcx
je 0x140035c54
call fcn.140057960
mov rcx, qword [rsp + 0xc0]
mov qword [rsp + 0xc0], 0
test rcx, rcx
je 0x140035c4c
call fcn.140057960
mov rax, qword [rsp + 0xa8]
test rax, rax
je 0x140035cc1
lea rsi, [rsp + 0xc0]
mov rcx, rsi
mov rdx, rdi
call fcn.14005abc0
mov rdx, qword [rsi]
test rdx, rdx
je 0x140035cc1
mov qword [rsp + 0x20], r14
mov rcx, 0xffffffff80000001
xor r8d, r8d
mov r9d, 0x2001f
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140035d06
movzx edx, ax
or edx, 0x80070000
test eax, eax
cmovle edx, eax
mov rcx, qword [sym.default_browser_agent.exe_gWinEventLogSourceName]
lea r8, str.SetUserChoice
mov r9d, 0x76
call fcn.14002d220
xor esi, esi
jmp 0x140035dbd
xor esi, esi
mov rcx, qword [rsp + 0xa8]
mov qword [rsp + 0xa8], 0
test rcx, rcx
je 0x140035ce5
call fcn.140057960
jmp 0x140035ce5
xor esi, esi
mov rcx, qword [rsp + 0xd8]
xor rcx, rsp
call fcn.140058a80
mov eax, esi
add rsp, 0xe0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov rdi, qword [rsp + 0xd0]
lea rdx, [0x1400a294a]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x140035d46
movzx edx, ax
or edx, 0x80070000
test eax, eax
cmovle edx, eax
mov rcx, qword [sym.default_browser_agent.exe_gWinEventLogSourceName]
lea r8, str.SetUserChoice
mov r9d, 0x80
jmp 0x140035da8
xor eax, eax
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], 0
lea rdx, [0x1400a294a]
mov rcx, rdi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x140035de4
movzx edx, ax
or edx, 0x80070000
test eax, eax
cmovle edx, eax
mov rcx, qword [sym.default_browser_agent.exe_gWinEventLogSourceName]
lea r8, str.SetUserChoice
mov r9d, 0x8a
call fcn.14002d220
xor esi, esi
test rdi, rdi
je 0x140035dbd
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0xc0]
mov qword [rsp + 0xc0], 0
test rcx, rcx
je 0x140035cc3
call fcn.140057960
jmp 0x140035cc3
mov rbx, qword [rsp + 0x48]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
add eax, 2
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r15
lea rdx, str.ProgID
mov rcx, rbx
xor r8d, r8d
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x140035e25
mov r9d, 0x94
jmp 0x140035e6c
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
add eax, 2
mov rcx, qword [rsp + 0xa8]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
lea rdx, str.Hash
mov rcx, rbx
xor r8d, r8d
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x140035ea6
mov r9d, 0x9d
movzx edx, ax
or edx, 0x80070000
test eax, eax
cmovle edx, eax
mov rcx, qword [sym.default_browser_agent.exe_gWinEventLogSourceName]
lea r8, str.SetUserChoice
call fcn.14002d220
xor esi, esi
test rbx, rbx
je 0x140035daf
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140035daf
mov sil, 1
jmp 0x140035e8f