Function at 0x1400304f0
Capabilities:
Access the windows event log

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x80
mov rdi, r8
mov rsi, rcx
mov rax, qword [0x1400ab080]
xor rax, rsp
mov qword [rsp + 0x78], rax
cmp edx, 1
jne 0x140030588
xor eax, eax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], 7
mov word [rsp + 0x58], 0
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
mov rbx, rax
lea rcx, [rsp + 0x58]
cmp rax, 7
ja 0x1400306e0
mov qword [rcx + 0x10], rbx
mov r8, rbx
add r8, rbx
mov rdx, rdi
call sub.VCRUNTIME140.dll_memcpy
mov word [rsp + rbx*2 + 0x58], 0
movups xmm0, xmmword [rsp + 0x58]
movups xmm1, xmmword [rsp + 0x68]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov dword [rsi + 0x20], 0
jmp 0x1400306bd
lea rbx, [rsp + 0x50]
mov rcx, rbx
xor edx, edx
call section..text
mov rcx, qword [rbx]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x1400306f0
mov rbx, qword [rsp + 0x50]
xor eax, eax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], 7
mov word [rsp + 0x58], 0
mov rcx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
mov r14, rax
lea rcx, [rsp + 0x58]
cmp rax, 7
ja 0x1400307f1
mov qword [rcx + 0x10], r14
mov r8, r14
add r8, r14
mov rdx, rbx
call sub.VCRUNTIME140.dll_memmove
mov word [rsp + r14*2 + 0x58], 0
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x70]
cmp rcx, rax
je 0x140030801
lea rdx, [rax + 1]
mov qword [rsp + 0x68], rdx
cmp rcx, 8
jb 0x140030626
mov rcx, qword [rsp + 0x58]
jmp 0x14003062b
lea rcx, [rsp + 0x58]
mov word [rcx + rax*2], 0x7c
mov word [rcx + rax*2 + 2], 0
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
mov rcx, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x70]
mov r8, rdx
sub r8, rcx
cmp r8, rax
jb 0x140030825
lea rbx, [rcx + rax]
mov qword [rsp + 0x68], rbx
cmp rdx, 8
jb 0x14003066f
mov r14, qword [rsp + 0x58]
jmp 0x140030674
lea r14, [rsp + 0x58]
lea rcx, [r14 + rcx*2]
add rax, rax
mov rdx, rdi
mov r8, rax
call sub.VCRUNTIME140.dll_memmove
mov word [r14 + rbx*2], 0
movups xmm0, xmmword [rsp + 0x58]
movups xmm1, xmmword [rsp + 0x68]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov dword [rsi + 0x20], 0
mov rcx, qword [rsp + 0x50]
mov qword [rsp + 0x50], 0
test rcx, rcx
je 0x1400306bd
call fcn.140056c84
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140057bf0
mov rax, rsi
add rsp, 0x80
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rdx, rbx
mov r9, rdi
call fcn.14005ab20
jmp 0x14003056b
mov rbx, qword [sym.default_browser_agent.exe_gWinEventLogSourceName]
lea r14, str.0x_X_in__S:_d
lea r15, str.MaybePrefixRegistryValueName
mov rcx, r14
mov edx, 0x800700a1
mov r8, r15
mov r9d, 0x1e
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 rdi, rax
mov rcx, rax
xor edx, edx
mov r8, r13
call sub.VCRUNTIME140.dll_memset
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x30], 0x1e
mov dword [rsp + 0x20], 0x800700a1
mov rcx, rdi
mov rdx, r12
mov r8, 0xffffffffffffffff
mov r9, r14
call fcn.140059ac0
xor ecx, ecx
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
test rax, rax
je 0x1400307d3
mov rbx, rax
lea rax, [rsp + 0x58]
mov qword [rax], rdi
xor ecx, ecx
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x20], rcx
mov dword [rsp + 0x30], 0
mov word [rsp + 0x28], 1
mov rcx, rbx
mov dx, 1
xor r8d, r8d
mov r9d, 0x800700a1
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov rcx, rdi
call fcn.140056c84
xorps xmm0, xmm0
movups xmmword [rsi + 0x10], xmm0
movups xmmword [rsi], xmm0
mov dword [rsi + 0x20], 0x800700a1
jmp 0x1400306a5
mov rdx, r14
mov r9, rbx
call fcn.14005ab20
jmp 0x1400305fd
mov qword [rsp + 0x20], 1
lea r9, [0x1400a28e8]
lea rcx, [rsp + 0x58]
mov edx, 1
call fcn.14005ac50
jmp 0x140030638
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x58]
mov rdx, rax
mov r9, rdi
call fcn.14005ac50
jmp 0x14003068d