Function at 0x140035690
Capabilities:
Access the windows event log

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x158
mov rax, qword [0x1400ac070]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov edi, 0x80070057
test rcx, rcx
je 0x140035824
mov r14, rcx
cmp word [rcx], 0
je 0x140035824
mov ebx, edx
lea rax, [rsp + 0x110]
mov qword [rax], 0
mov qword [rsp + 0x20], rax
lea rcx, [0x140066030]
lea r9, [0x140066020]
xor edx, edx
mov r8d, 1
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x14003584a
mov rcx, qword [rsp + 0x110]
xorps xmm0, xmm0
lea r10, [rsp + 0xf0]
movaps xmmword [r10], xmm0
xor eax, eax
mov qword [r10 + 0x10], rax
lea r9, [rsp + 0xd0]
movaps xmmword [r9], xmm0
mov qword [r9 + 0x10], rax
lea r8, [rsp + 0xb0]
movaps xmmword [r8], xmm0
mov qword [r8 + 0x10], rax
lea rdx, [rsp + 0x90]
movaps xmmword [rdx], xmm0
mov qword [rdx + 0x10], rax
mov rax, qword [rcx]
mov rax, qword [rax + 0x50]
mov qword [rsp + 0x20], r10
call qword [0x1400b0010]
test eax, eax
js 0x1400358ad
xor r15d, r15d
mov qword [rsp + 0x88], r15
lea rcx, [0x1400a450e]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rsi, rax
mov rdi, qword [rsp + 0x110]
mov rcx, qword [rsp + 0x88]
mov qword [rsp + 0x88], r15
test rcx, rcx
je 0x1400357b5
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x1400b0010]
mov rax, qword [rdi]
mov rax, qword [rax + 0x38]
lea r8, [rsp + 0x88]
mov rcx, rdi
mov rdx, rsi
call qword [0x1400b0010]
test eax, eax
jns 0x140035983
xor edi, edi
cmp eax, 0x80070002
cmovne edi, eax
test rsi, rsi
je 0x1400357f0
mov rcx, rsi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, qword [rsp + 0x88]
test rcx, rcx
je 0x14003580a
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x1400b0010]
mov rcx, qword [rsp + 0x110]
test rcx, rcx
je 0x140035824
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x1400b0010]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140056980
mov eax, edi
add rsp, 0x158
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov edi, eax
mov rbx, qword [sym.default_browser_agent.exe_gWinEventLogSourceName]
lea r14, str.0x_X_in__S:_d
lea r15, str.RemoveTasks
mov rcx, r14
mov edx, eax
mov r8, r15
mov r9d, 0x148
call fcn.140058910
cdqe
lea r12, [rax + 1]
lea r13, [rax + rax]
add r13, 2
mov rcx, r13
call fcn.140055a0c
mov rsi, rax
mov rcx, rax
xor edx, edx
mov r8, r13
call sub.VCRUNTIME140.dll_memset
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], edi
mov dword [rsp + 0x30], 0x148
jmp 0x14003590e
mov edi, eax
mov rbx, qword [sym.default_browser_agent.exe_gWinEventLogSourceName]
lea r14, str.0x_X_in__S:_d
lea r15, str.RemoveTasks
mov rcx, r14
mov edx, eax
mov r8, r15
mov r9d, 0x14a
call fcn.140058910
cdqe
lea r12, [rax + 1]
lea r13, [rax + rax]
add r13, 2
mov rcx, r13
call fcn.140055a0c
mov rsi, rax
mov rcx, rax
xor edx, edx
mov r8, r13
call sub.VCRUNTIME140.dll_memset
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], edi
mov dword [rsp + 0x30], 0x14a
mov rcx, rsi
mov rdx, r12
mov r9, r14
call fcn.140058990
xor ecx, ecx
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
test rax, rax
je 0x140035976
mov rbx, rax
lea rax, [rsp + 0x130]
mov qword [rax], rsi
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, edi
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov rcx, rsi
call fcn.140055a14
jmp 0x14003580a
mov rcx, qword [rsp + 0x88]
lea r8, [rsp + 0x80]
mov qword [r8], 0
mov rax, qword [rcx]
mov rax, qword [rax + 0x70]
mov edx, 1
call qword [0x1400b0010]
test eax, eax
jns 0x140035a16
mov edi, eax
mov r14, qword [sym.default_browser_agent.exe_gWinEventLogSourceName]
lea r15, str.0x_X_in__S:_d
lea r12, str.RemoveTasks
mov rcx, r15
mov edx, eax
mov r8, r12
mov r9d, 0x15b
call fcn.140058910
cdqe
lea r13, [rax + 1]
lea rbp, [rax + rax]
add rbp, 2
mov rcx, rbp
call fcn.140055a0c
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], 0x15b
jmp 0x140035a9f
lea rdx, [rsp + 0x7c]
mov dword [rdx], 0
mov rcx, qword [rsp + 0x80]
mov rax, qword [rcx]
mov rax, qword [rax + 0x38]
call qword [0x1400b0010]
test eax, eax
jns 0x140035b32
mov edi, eax
mov r14, qword [sym.default_browser_agent.exe_gWinEventLogSourceName]
lea r15, str.0x_X_in__S:_d
lea r12, str.RemoveTasks
mov rcx, r15
mov edx, eax
mov r8, r12
mov r9d, 0x15e
call fcn.140058910
cdqe
lea r13, [rax + 1]
lea rbp, [rax + rax]
add rbp, 2
mov rcx, rbp
call fcn.140055a0c
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], 0x15e
mov rcx, rbx
mov rdx, r13
mov r9, r15
call fcn.140058990
xor ecx, ecx
mov rdx, r14
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
test rax, rax
je 0x140035b07
mov r14, rax
lea rax, [rsp + 0x130]
mov qword [rax], rbx
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, edi
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov rcx, rbx
call fcn.140055a14
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x1400357e2
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x1400b0010]
jmp 0x1400357e2
xor eax, eax
lea rdi, [rsp + 0x130]
mov qword [rdi], rax
mov qword [rdi + 0x10], rax
mov qword [rdi + 0x18], 7
mov word [rdi], 0
lea r8, [0x1400a50fe]
mov edx, 0x1e
mov rcx, rdi
call fcn.140059cf0
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
mov rcx, qword [rdi + 0x10]
mov rdx, qword [rdi + 0x18]
mov r8, rdx
sub r8, rcx
cmp r8, rax
jb 0x140035eeb
lea r15, [rcx + rax]
mov qword [rsp + 0x140], r15
cmp rdx, 8
jb 0x140035b9e
mov rdi, qword [rsp + 0x130]
lea rcx, [rdi + rcx*2]
add rax, rax
mov rdx, r14
mov r8, rax
call sub.VCRUNTIME140.dll_memmove
mov word [rdi + r15*2], 0
cmp dword [rsp + 0x7c], 0
jle 0x140035dbf
xor edi, edi
lea r13, [rsp + 0x50]
lea r15, [rsp + 0x70]
lea r12, [rsp + 0x118]
mov dword [rsp + 0x4c], 0
mov dword [rsp + 0x48], 0
mov rcx, qword [rsp + 0x80]
mov qword [rsp + 0x70], 0
inc edi
mov word [rsp + 0x118], 3
mov dword [rsp + 0x120], edi
mov rax, qword [rsp + 0x128]
mov qword [rsp + 0x60], rax
movzx eax, word [rsp + 0x118]
mov word [rsp + 0x50], ax
mov eax, dword [rsp + 0x11a]
mov dword [rsp + 0x52], eax
movzx eax, word [rsp + 0x11e]
mov word [rsp + 0x56], ax
mov eax, dword [rsp + 0x120]
mov dword [rsp + 0x58], eax
mov eax, dword [rsp + 0x124]
mov dword [rsp + 0x5c], eax
mov rax, qword [rcx]
mov rax, qword [rax + 0x40]
mov rdx, r13
mov r8, r15
call qword [0x1400b0010]
mov ebp, eax
mov rcx, r12
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
test ebp, ebp
js 0x140035ce7
mov rcx, qword [rsp + 0x70]
mov rax, qword [rcx]
mov rax, qword [rax + 0x38]
mov rdx, r12
call qword [0x1400b0010]
test eax, eax
js 0x140035cf0
mov r15, r13
mov r13, qword [rsp + 0x118]
mov rcx, r13
test ebx, ebx
je 0x140035cf9
mov r12, qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
call r12
mov rbp, rax
mov rcx, r14
call r12
cmp rax, rbp
ja 0x140035d78
lea rcx, [rbp*2]
add rcx, r13
add rax, rax
sub rcx, rax
mov rdx, r14
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscmp]
test eax, eax
jne 0x140035d78
mov rdx, qword [rsp + 0x118]
jmp 0x140035d51
mov dword [rsp + 0x48], ebp
jmp 0x140035d9c
mov dword [rsp + 0x48], eax
jmp 0x140035d9c
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
mov rcx, qword [rsp + 0x140]
cmp rax, rcx
mov rdx, rcx
cmovb rdx, rax
test rdx, rdx
je 0x140035d49
cmp qword [rsp + 0x148], 8
lea r8, [rsp + 0x130]
jb 0x140035d31
mov r8, qword [rsp + 0x130]
xor r9d, r9d
movzx r10d, word [r8 + r9*2]
cmp r10w, word [r13 + r9*2]
jne 0x140035d78
inc r9
cmp rdx, r9
jne 0x140035d34
mov rdx, r13
cmp rax, rcx
jne 0x140035d78
mov rcx, qword [rsp + 0x88]
mov rax, qword [rcx]
mov rax, qword [rax + 0x78]
xor r8d, r8d
call qword [0x1400b0010]
test eax, eax
mov ecx, dword [rsp + 0x48]
cmovs ecx, eax
mov dword [rsp + 0x48], ecx
jmp 0x140035d7e
mov al, 1
mov dword [rsp + 0x4c], eax
test r13, r13
je 0x140035d8c
mov rcx, r13
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov r13, r15
lea r15, [rsp + 0x70]
lea r12, [rsp + 0x118]
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140035db3
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x1400b0010]
cmp edi, dword [rsp + 0x7c]
jl 0x140035be6
jmp 0x140035dcf
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x4c], 0
test byte [rsp + 0x4c], 1
mov r15d, dword [rsp + 0x48]
jne 0x140035e91
test r15d, r15d
js 0x140035e91
xor r14d, r14d
mov qword [rsp + 0x70], r14
lea rcx, [0x1400a456a]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rbx, rax
mov rdi, qword [rsp + 0x110]
mov rcx, qword [rsp + 0x70]
mov qword [rsp + 0x70], r14
test rcx, rcx
je 0x140035e24
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x1400b0010]
mov rax, qword [rdi]
mov rax, qword [rax + 0x38]
lea r8, [rsp + 0x70]
mov rcx, rdi
mov rdx, rbx
call qword [0x1400b0010]
test eax, eax
js 0x140035f06
mov rcx, qword [rsp + 0x70]
mov rax, qword [rcx]
mov rax, qword [rax + 0x60]
mov rdx, rsi
xor r8d, r8d
call qword [0x1400b0010]
test eax, eax
js 0x140035f66
mov bpl, 1
test rbx, rbx
je 0x140035e75
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140035e8c
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x1400b0010]
test bpl, bpl
je 0x140035e94
mov edi, r15d
mov rax, qword [rsp + 0x148]
cmp rax, 8
jb 0x140035b0f
mov rcx, qword [rsp + 0x130]
lea rdx, [rax + rax]
add rdx, 2
cmp rdx, 0x1000
jb 0x140035ee1
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x140036044
add rax, rax
add rax, 0x29
mov rdx, rax
mov rcx, r8
call fcn.140055a14
jmp 0x140035b0f
lea rcx, [rsp + 0x130]
mov rdx, rax
mov r8, r14
mov r9, rax
call fcn.14005a1d0
jmp 0x140035bb7
mov edi, eax
mov r15, qword [sym.default_browser_agent.exe_gWinEventLogSourceName]
lea rcx, str.0x_X_in__S:_d
lea r13, str.RemoveTasks
mov edx, eax
mov r8, r13
mov r9d, 0x194
call fcn.140058910
cdqe
lea rbp, [rax + 1]
lea r12, [rax + rax]
add r12, 2
mov rcx, r12
call fcn.140055a0c
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], edi
mov dword [rsp + 0x30], 0x194
jmp 0x140035fc4
mov edi, eax
mov r15, qword [sym.default_browser_agent.exe_gWinEventLogSourceName]
lea rcx, str.0x_X_in__S:_d
lea r13, str.RemoveTasks
mov edx, eax
mov r8, r13
mov r9d, 0x195
call fcn.140058910
cdqe
lea rbp, [rax + 1]
lea r12, [rax + rax]
add r12, 2
mov rcx, r12
call fcn.140055a0c
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], edi
mov dword [rsp + 0x30], 0x195
mov rcx, r14
mov rdx, rbp
lea r9, str.0x_X_in__S:_d
call fcn.140058990
xor ecx, ecx
mov rdx, r15
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
test rax, rax
je 0x140036030
mov r15, rax
lea rax, [rsp + 0x118]
mov qword [rax], r14
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, r15
mov dx, 1
xor r8d, r8d
mov r9d, edi
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov r15d, dword [rsp + 0x48]
mov rcx, r14
call fcn.140055a14
xor ebp, ebp
jmp 0x140035e67
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3