Function at 0x140035470
Capabilities:
Access the windows event log
Delete registry key
Set registry value

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xe8
mov r14, r8
mov rbx, rdx
mov rdi, rcx
mov rax, qword [0x1400ab080]
xor rax, rsp
mov qword [rsp + 0xe0], rax
lea rsi, [rsp + 0xb8]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetSystemTime]
movups xmm0, xmmword [rsi]
lea rax, [rsp + 0xa0]
movaps xmmword [rax], xmm0
mov qword [rsp + 0x20], rax
lea rsi, [rsp + 0xb0]
mov rcx, rsi
mov rdx, rdi
mov r8, rbx
mov r9, r14
call fcn.140059fd0
cmp qword [rsi], 0
je 0x14003581a
lea rsi, [rsp + 0x90]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetSystemTime]
lea rdx, [rsp + 0xc8]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
test eax, eax
je 0x1400357f8
lea rcx, [rsp + 0xc8]
add qword [rcx], 0xf4240
lea rdx, [rsp + 0xd0]
call qword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x1400357f8
lea rsi, [rsp + 0xd0]
movups xmm0, xmmword [rsi]
movaps xmmword [rsp + 0x90], xmm0
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x80], rax
mov eax, dword [rsp + 0x98]
mov dword [rsp + 0x88], eax
mov rax, qword [rsp + 0xb8]
lea rcx, [rsp + 0x70]
mov qword [rcx], rax
mov eax, dword [rsp + 0xc0]
mov dword [rcx + 8], eax
xor eax, eax
mov dword [rcx + 0xc], eax
mov dword [rsp + 0x8c], eax
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
test eax, eax
je 0x1400355d6
lea rcx, [rsp + 0x80]
lea rdx, [rsp + 0xc8]
call qword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
test eax, eax
je 0x1400355d6
mov eax, dword [rsp + 0xd0]
cmp eax, dword [rsp + 0xc8]
jne 0x1400355d6
mov eax, dword [rsp + 0xcc]
cmp dword [rsp + 0xd4], eax
je 0x14003568f
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, 0x77
call fcn.14002cba0
mov ecx, 0xc8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea r15, [rsp + 0xb8]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GetSystemTime]
movups xmm0, xmmword [r15]
lea rax, [rsp + 0x60]
movaps xmmword [rax], xmm0
mov qword [rsp + 0x20], rax
lea r15, [rsp + 0xd0]
mov rcx, r15
mov rdx, rdi
mov r8, rbx
mov r9, r14
call fcn.140059fd0
mov rax, qword [r15]
mov qword [r15], 0
mov rcx, qword [rsp + 0xb0]
mov qword [rsp + 0xb0], rax
test rcx, rcx
je 0x140035686
call fcn.140056c84
mov rcx, qword [rsp + 0xd0]
mov qword [rsp + 0xd0], 0
test rcx, rcx
je 0x14003567e
call fcn.140056c84
mov rax, qword [rsp + 0xb0]
test rax, rax
je 0x1400357f8
lea rbx, [rsp + 0xc8]
mov rcx, rbx
mov rdx, rdi
call fcn.140059f30
mov rdx, qword [rbx]
test rdx, rdx
je 0x1400357f8
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000001
xor r8d, r8d
mov r9d, 0x2001f
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140035842
mov rdi, qword [rsp + 0x58]
lea rdx, [0x1400a3d82]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x140035938
xor eax, eax
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], 0
lea rdx, [0x1400a3d82]
mov rcx, rdi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1400359b2
mov rbx, qword [rsp + 0x50]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
add eax, 2
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r14
lea rdx, str.ProgID
mov rcx, rbx
xor r8d, r8d
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x140035aa9
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
add eax, 2
mov rcx, qword [rsp + 0xb0]
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]
mov bpl, 1
test eax, eax
jne 0x140035b27
test rbx, rbx
je 0x1400357ca
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test rdi, rdi
je 0x1400357d8
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0xc8]
mov qword [rsp + 0xc8], 0
test rcx, rcx
je 0x1400357fa
call fcn.140056c84
jmp 0x1400357fa
xor ebp, ebp
mov rcx, qword [rsp + 0xb0]
mov qword [rsp + 0xb0], 0
test rcx, rcx
je 0x14003581c
call fcn.140056c84
jmp 0x14003581c
xor ebp, ebp
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.140057bf0
mov eax, ebp
add rsp, 0xe8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov r14, qword [sym.default_browser_agent.exe_gWinEventLogSourceName]
lea r15, str.0x_X_in__S:_d
lea r12, str.SetUserChoice
mov rcx, r15
mov edx, edi
mov r8, r12
mov r9d, 0x8c
call fcn.140059a40
cdqe
lea r13, [rax + 1]
lea rbp, [rax + rax]
add rbp, 2
cmp eax, 0xffffffff
mov rax, 0xffffffffffffffff
cmovl rbp, rax
mov rcx, rbp
call fcn.140056c40
mov rbx, rax
mov rcx, rax
xor edx, edx
mov r8, rbp
call sub.VCRUNTIME140.dll_memset
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], edi
mov dword [rsp + 0x30], 0x8c
mov rcx, rbx
mov rdx, r13
mov r8, 0xffffffffffffffff
mov r9, r15
call fcn.140059ac0
xor ecx, ecx
mov rdx, r14
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
test rax, rax
je 0x140035929
mov r14, rax
mov qword [rsp + 0xd0], rbx
xor eax, eax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x30], 0
mov word [rsp + 0x28], 1
mov rcx, r14
mov dx, 1
xor r8d, r8d
mov r9d, edi
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov rcx, rbx
call fcn.140056c84
xor ebp, ebp
jmp 0x1400357d8
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov r15, qword [sym.default_browser_agent.exe_gWinEventLogSourceName]
lea rcx, str.0x_X_in__S:_d
lea r13, str.SetUserChoice
mov edx, ebx
mov r8, r13
mov r9d, 0x96
call fcn.140059a40
cdqe
lea rbp, [rax + 1]
lea r12, [rax + rax]
add r12, 2
cmp eax, 0xffffffff
mov rax, 0xffffffffffffffff
cmovl r12, rax
mov rcx, r12
call fcn.140056c40
mov r14, rax
mov rcx, rax
xor edx, edx
mov r8, r12
call sub.VCRUNTIME140.dll_memset
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x20], ebx
mov dword [rsp + 0x30], 0x96
jmp 0x140035a2a
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov r15, qword [sym.default_browser_agent.exe_gWinEventLogSourceName]
lea rcx, str.0x_X_in__S:_d
lea r13, str.SetUserChoice
mov edx, ebx
mov r8, r13
mov r9d, 0xa0
call fcn.140059a40
cdqe
lea rbp, [rax + 1]
lea r12, [rax + rax]
add r12, 2
cmp eax, 0xffffffff
mov rax, 0xffffffffffffffff
cmovl r12, rax
mov rcx, r12
call fcn.140056c40
mov r14, rax
mov rcx, rax
xor edx, edx
mov r8, r12
call sub.VCRUNTIME140.dll_memset
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x20], ebx
mov dword [rsp + 0x30], 0xa0
mov rcx, r14
mov rdx, rbp
mov r8, 0xffffffffffffffff
lea r9, str.0x_X_in__S:_d
call fcn.140059ac0
xor ecx, ecx
mov rdx, r15
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
test rax, rax
je 0x140035a9a
mov r15, rax
mov qword [rsp + 0xd0], r14
xor eax, eax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x30], 0
mov word [rsp + 0x28], 1
mov rcx, r15
mov dx, 1
xor r8d, r8d
mov r9d, ebx
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov rcx, r14
call fcn.140056c84
xor ebp, ebp
jmp 0x1400357ca
movzx ebp, ax
or ebp, 0x80070000
test eax, eax
cmovle ebp, eax
mov r15, qword [sym.default_browser_agent.exe_gWinEventLogSourceName]
lea rcx, str.0x_X_in__S:_d
lea r8, str.SetUserChoice
mov edx, ebp
mov r9d, 0xaa
call fcn.140059a40
cdqe
lea r12, [rax + 1]
lea r13, [rax + rax]
add r13, 2
cmp eax, 0xffffffff
mov rax, 0xffffffffffffffff
cmovl r13, rax
mov rcx, r13
call fcn.140056c40
mov r14, rax
mov rcx, rax
xor edx, edx
mov r8, r13
call sub.VCRUNTIME140.dll_memset
lea rax, str.SetUserChoice
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ebp
mov dword [rsp + 0x30], 0xaa
jmp 0x140035ba3
movzx ebp, ax
or ebp, 0x80070000
test eax, eax
cmovle ebp, eax
mov r15, qword [sym.default_browser_agent.exe_gWinEventLogSourceName]
lea rcx, str.0x_X_in__S:_d
lea r8, str.SetUserChoice
mov edx, ebp
mov r9d, 0xb3
call fcn.140059a40
cdqe
lea r12, [rax + 1]
lea r13, [rax + rax]
add r13, 2
cmp eax, 0xffffffff
mov rax, 0xffffffffffffffff
cmovl r13, rax
mov rcx, r13
call fcn.140056c40
mov r14, rax
mov rcx, rax
xor edx, edx
mov r8, r13
call sub.VCRUNTIME140.dll_memset
lea rax, str.SetUserChoice
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ebp
mov dword [rsp + 0x30], 0xb3
mov rcx, r14
mov rdx, r12
mov r8, 0xffffffffffffffff
lea r9, str.0x_X_in__S:_d
call fcn.140059ac0
xor ecx, ecx
mov rdx, r15
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
test rax, rax
je 0x140035c13
mov r15, rax
mov qword [rsp + 0xd0], r14
xor eax, eax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x30], 0
mov word [rsp + 0x28], 1
mov rcx, r15
mov dx, 1
xor r8d, r8d
mov r9d, ebp
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov rcx, r14
call fcn.140056c84
xor ebp, ebp
jmp 0x1400357bc