Function at 0x1400106dc
Capabilities:
Access the windows event log

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
push r12
push r15
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x18], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov rbx, rdx
mov byte [rbp + 0x30], 0
xor r12d, r12d
lea rax, vtable.HModule.0
mov qword [rbp - 0x10], rax
and qword [rbp - 8], r12
and qword [rbp - 0x20], r12
mov ecx, 0x208
call fcn.1400346d8
mov qword [rbp - 0x28], rax
test rbx, rbx
je 0x140010b7b
lea r15, str.System
mov rdx, r15
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x140010b31
lea rcx, [rbp - 0x20]
call fcn.140022eb0
mov edi, eax
test eax, eax
js 0x140010c20
lea rax, str.SystemEvents.txt
mov qword [rsp + 0x28], rax
lea rax, [0x1400474dc]
mov qword [rsp + 0x20], rax
mov r9, rbx
lea r8, [0x140047938]
mov edx, 0x104
mov rcx, qword [rbp - 0x28]
call fcn.140008af8
mov edi, eax
test eax, eax
jns 0x1400107d5
lfence
lea rsi, [0x140060048]
mov rcx, qword [0x140060048]
cmp rcx, rsi
je 0x1400107c9
test byte [rcx + 0x1c], 1
je 0x1400107c9
lea edx, [r12 + 0x30]
mov r9d, eax
lea r8, [0x1400492d8]
mov rcx, qword [rcx + 0x10]
call fcn.1400012f0
lea rcx, str.ERROR:_StringCchPrintfW___failed___X__n
jmp 0x140010c18
mov rdx, r15
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenEventLogW]
mov r12, rax
test rax, rax
jne 0x14001082c
call fcn.14002e738
mov edi, eax
lea rsi, [0x140060048]
mov rcx, qword [0x140060048]
cmp rcx, rsi
je 0x140010820
test byte [rcx + 0x1c], 1
je 0x140010820
lea edx, [r12 + 0x32]
mov r9d, eax
lea r8, [0x1400492d8]
mov rcx, qword [rcx + 0x10]
call fcn.1400012f0
lea rcx, str.ERROR:_OpenEventLog_System__failed___X__n
jmp 0x140010c18
lea r8, [rbp - 8]
mov rbx, qword [rbp - 0x20]
mov rdx, rbx
call fcn.140010384
mov edi, eax
test eax, eax
jns 0x140010889
lfence
lea rsi, [0x140060048]
mov rcx, qword [0x140060048]
cmp rcx, rsi
je 0x140010876
test byte [rcx + 0x1c], 1
je 0x140010876
mov edx, 0x33
mov r9d, eax
lea r8, [0x1400492d8]
mov rcx, qword [rcx + 0x10]
call fcn.1400012f0
lea rcx, str.ERROR:_GetMesgFileHandle___failed___X__n
mov edx, edi
call fcn.140003cb0
jmp 0x140010bba
xor edx, edx
mov rcx, qword [rbp - 0x28]
call fcn.140003d34
mov edi, eax
test eax, eax
setns byte [rbp + 0x30]
test eax, eax
jns 0x1400108dd
lfence
lea rsi, [0x140060048]
mov rcx, qword [0x140060048]
cmp rcx, rsi
je 0x1400108d4
test byte [rcx + 0x1c], 1
je 0x1400108d4
mov edx, 0x34
mov r9d, eax
lea r8, [0x1400492d8]
mov rcx, qword [rcx + 0x10]
call fcn.1400012f0
lea rcx, str.ERROR:_Failed_to_open_log_file___X__n
jmp 0x14001087d
lea rdx, [rbp - 0x30]
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_GetOldestEventLogRecord]
test eax, eax
jne 0x140010932
call fcn.14002e738
mov edi, eax
lea rsi, [0x140060048]
mov rcx, qword [0x140060048]
cmp rcx, rsi
je 0x140010926
test byte [rcx + 0x1c], 1
je 0x140010926
mov edx, 0x35
mov r9d, eax
lea r8, [0x1400492d8]
mov rcx, qword [rcx + 0x10]
call fcn.1400012f0
lea rcx, str.ERROR:_GetOldestEventLogRecord___failed___X__n
jmp 0x14001087d
lea rdx, [rbp + 0x48]
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_GetNumberOfEventLogRecords]
test eax, eax
jne 0x140010987
call fcn.14002e738
mov edi, eax
lea rsi, [0x140060048]
mov rcx, qword [0x140060048]
cmp rcx, rsi
je 0x14001097b
test byte [rcx + 0x1c], 1
je 0x14001097b
mov edx, 0x36
mov r9d, eax
lea r8, [0x1400492d8]
mov rcx, qword [rcx + 0x10]
call fcn.1400012f0
lea rcx, str.ERROR:_GetNumberOfEventLogRecords___failed___X__n
jmp 0x14001087d
mov edi, dword [rbp + 0x48]
call qword [sym.imp.mpclient.dll_MpClientUtilExportFunctions]
lea r8, [rbp + 0x40]
mov edx, edi
lea rcx, str.MpSupport_EventLogNumRecsToRead
mov rax, qword [rax + 0xa0]
call qword [0x14003b4b0]
mov edi, eax
test eax, eax
jns 0x1400109f0
lfence
lea rsi, [0x140060048]
mov rcx, qword [0x140060048]
cmp rcx, rsi
je 0x1400109e4
test byte [rcx + 0x1c], 1
je 0x1400109e4
mov edx, 0x37
mov r9d, eax
lea r8, [0x1400492d8]
mov rcx, qword [rcx + 0x10]
call fcn.1400012f0
lea rcx, str.ERROR:_MpConfigGetMiscDwordValue_MpSupport_EventLogRecordNum__failed___X__n
jmp 0x14001087d
lea rsi, [0x140060048]
mov r10, qword [0x140060048]
cmp r10, rsi
je 0x140010a34
test byte [r10 + 0x1c], 4
je 0x140010a34
mov edx, 0x38
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], rbx
mov r9d, dword [rbp + 0x40]
lea r8, [0x1400492d8]
mov rcx, qword [r10 + 0x10]
call fcn.14000efbc
mov r10, qword [0x140060048]
mov eax, dword [rbp + 0x48]
test eax, eax
jne 0x140010a42
xor edi, edi
jmp 0x140010bba
lea r15d, [rax - 1]
add r15d, dword [rbp - 0x30]
cmp r15d, dword [rbp - 0x30]
jb 0x140010aff
mov r9, qword [rbp - 8]
mov r8d, r15d
mov rdx, rbx
mov rcx, r12
call fcn.14000f31c
mov edi, eax
test eax, eax
jns 0x140010adf
lfence
mov rbx, qword [rbp - 0x20]
mov rcx, qword [0x140060048]
cmp rcx, rsi
je 0x140010ab8
test byte [rcx + 0x1c], 1
je 0x140010ab8
mov edx, 0x3a
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], r15d
mov qword [rsp + 0x28], rbx
mov rax, qword [rbp - 0x28]
mov qword [rsp + 0x20], rax
lea r9, str.System
lea r8, [0x1400492d8]
mov rcx, qword [rcx + 0x10]
call fcn.14000ee7c
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], r15d
mov r9, rbx
mov r8, qword [rbp - 0x28]
lea rdx, str.System
lea rcx, str.ERROR:_ReadAndProcessEventLogRecord__ls___ls___ls___ld__failed__X_n
call fcn.140003cb0
xor edi, edi
jmp 0x140010aed
test edi, edi
jne 0x140010aed
add dword [rbp + 0x40], 0xffffffff
je 0x140010bba
dec r15d
cmp r15d, dword [rbp - 0x30]
jae 0x140010a54
jmp 0x140010bba
mov edi, 0x80070216
cmp r10, rsi
je 0x140010b25
test byte [r10 + 0x1c], 1
je 0x140010b25
mov edx, 0x39
lea r8, [0x1400492d8]
mov rcx, qword [r10 + 0x10]
call fcn.1400012d0
lea rcx, str.Event_log_record_number_overflow_n
jmp 0x140010bb5
mov edi, 0x80070032
lea rsi, [0x140060048]
mov rcx, qword [0x140060048]
cmp rcx, rsi
je 0x140010b67
test byte [rcx + 0x1c], 1
je 0x140010b67
mov edx, 0x31
mov r9, r15
lea r8, [0x1400492d8]
mov rcx, qword [rcx + 0x10]
call fcn.140008ba4
mov rdx, r15
lea rcx, str.ERROR:_Unsupported_event_log_name_in_EventLogToFile__ls_
call fcn.140003cb0
jmp 0x140010c20
mov edi, 0x80070057
lea rsi, [0x140060048]
mov rcx, qword [0x140060048]
cmp rcx, rsi
je 0x140010bae
test byte [rcx + 0x1c], 1
je 0x140010bae
mov edx, 0x2f
lea r8, [0x1400492d8]
mov rcx, qword [rcx + 0x10]
call fcn.1400012d0
lea rcx, str.ERROR:_NULL_parameter_in_EventLogToFile_..._
call fcn.140003cb0
mov rcx, qword [rbp - 8]
test rcx, rcx
je 0x140010bce
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
and qword [rbp - 8], 0
test r12, r12
je 0x140010c20
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_CloseEventLog]
test eax, eax
jne 0x140010c20
call fcn.14002e738
mov edi, eax
mov rcx, qword [0x140060048]
cmp rcx, rsi
je 0x140010c11
test byte [rcx + 0x1c], 1
je 0x140010c11
mov edx, 0x3b
mov r9d, eax
lea r8, [0x1400492d8]
mov rcx, qword [rcx + 0x10]
call fcn.1400012f0
lea rcx, str.ERROR:_CloseEventLog___failed___X__n
mov edx, edi
call fcn.140003cb0
nop
xor ecx, ecx
xchg qword [rbp - 0x28], rcx
test rcx, rcx
je 0x140010c31
call fcn.140034674
nop
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x140010c41
call qword [sym.imp.mpclient.dll_MpFreeMemory]
nop
mov rcx, qword [rbp - 8]
test rcx, rcx
je 0x140010c51
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
cmp byte [rbp + 0x30], 0
je 0x140010ca3
mov rbx, qword [0x140063178]
and qword [0x140063178], 0
test rbx, rbx
je 0x140010ca3
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x140010c79
call fcn.140034674
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140010c87
call fcn.140034674
cmp qword [rbx], 0xffffffffffffffff
je 0x140010c96
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 0x28
mov rcx, rbx
call fcn.140034674
mov eax, edi
mov rbx, qword [rsp + 0xa8]
add rsp, 0x70
pop r15
pop r12
pop rdi
pop rsi
pop rbp
ret