Function at 0x14002db50
Capabilities:
Access the windows event log
Set registry value

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xd8
mov r14, r9
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x1400ab080]
xor rax, rsp
mov qword [rsp + 0xd0], rax
xor eax, eax
mov qword [rsp + 0xb0], rax
mov qword [rsp + 0xc0], rax
mov qword [rsp + 0xc8], 7
mov word [rsp + 0xb0], 0
mov rcx, rdx
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
mov r15, rax
lea rcx, [rsp + 0xb0]
cmp rax, 7
ja 0x14002decb
mov qword [rcx + 0x10], r15
mov r8, r15
add r8, r15
mov rdx, rdi
call sub.VCRUNTIME140.dll_memcpy
mov word [rsp + r15*2 + 0xb0], 0
movups xmm0, xmmword [rsp + 0xb0]
movups xmm1, xmmword [rsp + 0xc0]
movaps xmmword [rsp + 0xa0], xmm1
movaps xmmword [rsp + 0x90], xmm0
lea rdi, [rsp + 0x70]
mov rcx, rdi
mov rdx, r14
call fcn.140030930
xor eax, eax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], 7
mov word [rsp + 0x50], 0
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 0
mov ecx, 0xfde9
xor edx, edx
mov r8, rbx
mov r9d, 0xffffffff
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x14002dedb
mov ebp, eax
mov eax, eax
add rax, rax
test ebp, ebp
mov r15, 0xffffffffffffffff
cmovns r15, rax
mov rcx, r15
call fcn.140056c40
mov r14, rax
mov rcx, rax
xor edx, edx
mov r8, r15
call sub.VCRUNTIME140.dll_memset
cmp ebp, 0xffffffff
je 0x14002e1f9
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], r14
mov ecx, 0xfde9
xor edx, edx
mov r8, rbx
mov r9d, 0xffffffff
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x14002e0d4
xor eax, eax
mov qword [rsp + 0xb0], rax
mov qword [rsp + 0xc0], rax
mov qword [rsp + 0xc8], 7
mov word [rsp + 0xb0], 0
mov rcx, r14
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
mov rbx, rax
lea rcx, [rsp + 0xb0]
cmp rax, 7
ja 0x14002e1e1
mov qword [rcx + 0x10], rbx
mov r8, rbx
add r8, rbx
mov rdx, r14
call sub.VCRUNTIME140.dll_memcpy
mov word [rsp + rbx*2 + 0xb0], 0
mov r13, qword [rsp + 0xb0]
mov r12, qword [rsp + 0xb8]
mov r15, qword [rsp + 0xc0]
mov rbp, qword [rsp + 0xc8]
xor ebx, ebx
mov rcx, r14
call fcn.140056c84
test ebx, ebx
jne 0x14002ddc1
mov rcx, qword [rsp + 0x88]
lea rax, [rsp + 0x50]
mov qword [rax], r13
mov qword [rax + 8], r12
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], rbp
cmp rbp, 8
cmovae rax, r13
cmp qword [rsp + 0xa8], 8
jb 0x14002dd7e
mov r8, qword [rsp + 0x90]
jmp 0x14002dd86
lea r8, [rsp + 0x90]
lea edx, [r15 + r15]
add edx, 2
cmp rcx, 8
jb 0x14002dd98
mov rdi, qword [rsp + 0x70]
mov dword [rsp + 0x28], edx
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000001
mov rdx, rdi
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
xor ebx, ebx
test eax, eax
jne 0x14002dfdd
mov dword [rsi], ebx
mov rax, qword [rsp + 0x68]
cmp rax, 8
jb 0x14002de0b
mov rcx, qword [rsp + 0x50]
lea rdx, [rax + rax]
add rdx, 2
cmp rdx, 0x1000
jb 0x14002de06
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x14002e204
add rax, rax
add rax, 0x29
mov rdx, rax
mov rcx, r8
call fcn.140056c84
mov rax, qword [rsp + 0x88]
cmp rax, 8
jb 0x14002de56
mov rcx, qword [rsp + 0x70]
lea rdx, [rax + rax]
add rdx, 2
cmp rdx, 0x1000
jb 0x14002de51
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x14002e204
add rax, rax
add rax, 0x29
mov rdx, rax
mov rcx, r8
call fcn.140056c84
mov rax, qword [rsp + 0xa8]
cmp rax, 8
jb 0x14002dea4
mov rcx, qword [rsp + 0x90]
lea rdx, [rax + rax]
add rdx, 2
cmp rdx, 0x1000
jb 0x14002de9f
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x14002e204
add rax, rax
add rax, 0x29
mov rdx, rax
mov rcx, r8
call fcn.140056c84
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.140057bf0
mov rax, rsi
add rsp, 0xd8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rdx, r15
mov r9, rdi
call fcn.14005ab20
jmp 0x14002dbe3
call qword [sym.imp.KERNEL32.dll_GetLastError]
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 r8, str.Utf8ToUtf16
mov edx, ebx
mov r9d, 0x29
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
xor r13d, r13d
mov rcx, rax
xor edx, edx
mov r8, r12
call sub.VCRUNTIME140.dll_memset
lea rax, str.Utf8ToUtf16
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ebx
mov dword [rsp + 0x30], 0x29
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 0x14002e1f1
mov r15, rax
lea rax, [rsp + 0xb0]
mov qword [rax], r14
xor r12d, r12d
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x20], r12
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]
jmp 0x14002e1d4
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov r14, qword [sym.default_browser_agent.exe_gWinEventLogSourceName]
lea r15, str.0x_X_in__S:_d
lea r12, str.RegistrySetValueString
mov rcx, r15
mov edx, ebx
mov r8, r12
mov r9d, 0x7a
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 rdi, rax
mov rcx, rax
xor edx, edx
mov r8, rbp
call sub.VCRUNTIME140.dll_memset
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], ebx
mov dword [rsp + 0x30], 0x7a
mov rcx, rdi
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 0x14002e0c7
mov r14, rax
lea rax, [rsp + 0xb0]
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, r14
mov dx, 1
xor r8d, r8d
mov r9d, ebx
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov rcx, rdi
call fcn.140056c84
jmp 0x14002ddc1
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov r12, qword [sym.default_browser_agent.exe_gWinEventLogSourceName]
lea rcx, str.0x_X_in__S:_d
lea r8, str.Utf8ToUtf16
mov edx, ebx
mov r9d, 0x32
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 r15, rax
mov rcx, rax
xor edx, edx
mov r8, rbp
call sub.VCRUNTIME140.dll_memset
lea rax, str.Utf8ToUtf16
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ebx
mov dword [rsp + 0x30], 0x32
mov rcx, r15
mov rdx, r13
mov r8, 0xffffffffffffffff
lea r9, str.0x_X_in__S:_d
call fcn.140059ac0
xor ecx, ecx
mov rdx, r12
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
test rax, rax
je 0x14002e1c9
mov r12, rax
lea rax, [rsp + 0xb0]
mov qword [rax], r15
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, r12
mov dx, 1
xor r8d, r8d
mov r9d, ebx
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov rcx, r15
call fcn.140056c84
xor r12d, r12d
xor r15d, r15d
xor r13d, r13d
xor ebp, ebp
jmp 0x14002dd39
mov rdx, rbx
mov r9, r14
call fcn.14005ab20
jmp 0x14002dd17
xor r12d, r12d
xor r15d, r15d
jmp 0x14002e1da
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3