Function at 0x1000158bc
Capabilities:
Access the windows event log

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rcx
push rsi
push rdi
push r12
push r13
push r15
sub rsp, 0x90
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov rbx, rdx
mov byte [r11 + 8], 0
xor r13d, r13d
lea rax, [0x1000074f0]
mov qword [r11 - 0x58], rax
and qword [r11 - 0x50], r13
and qword [r11 - 0x60], r13
and qword [r11 - 0x30], r13
and qword [r11 - 0x68], r13
mov ecx, 0x208
call fcn.10001e6e0
mov qword [rsp + 0x40], rax
test rbx, rbx
je 0x100015db2
call sub.MpClient.dll_MpConfigInitialize
mov edi, eax
test eax, eax
js 0x100015933
mov qword [rsp + 0x58], 0x12345678
xor edi, edi
test edi, edi
jns 0x10001597b
lea rsi, [0x10002d220]
mov rcx, qword [0x10002d220]
cmp rcx, rsi
je 0x100015968
test byte [rcx + 0x1c], 1
je 0x100015968
mov edx, 0x30
mov r9d, edi
lea r8, [0x100001a28]
mov rcx, qword [rcx + 0x10]
call fcn.10000f078
mov edx, edi
lea rcx, [0x100006ff0]
call fcn.10000eea8
jmp 0x100015e43
lea r15, [0x1000059e8]
mov rdx, r15
mov rcx, r15
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
jne 0x100015d68
lea rcx, [rsp + 0x50]
call fcn.1000226d4
mov edi, eax
test eax, eax
js 0x100015e43
lea rax, [0x100007048]
mov qword [rsp + 0x28], rax
lea rax, [0x1000062e0]
mov qword [rsp + 0x20], rax
mov r9, rbx
lea r8, [0x100007070]
mov edx, 0x104
mov rcx, qword [rsp + 0x40]
call fcn.100010764
mov edi, eax
test eax, eax
jns 0x100015a25
lea rsi, [0x10002d220]
mov rcx, qword [0x10002d220]
cmp rcx, rsi
je 0x100015a12
test byte [rcx + 0x1c], 1
je 0x100015a12
mov edx, 0x31
mov r9d, eax
lea r8, [0x100001a28]
mov rcx, qword [rcx + 0x10]
call fcn.10000f078
mov edx, edi
lea rcx, [0x100007080]
call fcn.10000eea8
jmp 0x100015e43
mov rdx, r15
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenEventLogW]
mov r13, rax
test rax, rax
jne 0x100015a82
call fcn.10001e9f0
mov edi, eax
lea rsi, [0x10002d220]
mov rcx, qword [0x10002d220]
cmp rcx, rsi
je 0x100015a6f
test byte [rcx + 0x1c], 1
je 0x100015a6f
lea edx, [r13 + 0x33]
mov r9d, eax
lea r8, [0x100001a28]
mov rcx, qword [rcx + 0x10]
call fcn.10000f078
mov edx, edi
lea rcx, [0x100007150]
call fcn.10000eea8
jmp 0x100015df1
lea r8, [rsp + 0x68]
mov rbx, qword [rsp + 0x50]
mov rdx, rbx
mov rcx, r15
call fcn.1000154fc
mov edi, eax
test eax, eax
jns 0x100015ae1
lea rsi, [0x10002d220]
mov rcx, qword [0x10002d220]
cmp rcx, rsi
je 0x100015ace
test byte [rcx + 0x1c], 1
je 0x100015ace
mov edx, 0x34
mov r9d, eax
lea r8, [0x100001a28]
mov rcx, qword [rcx + 0x10]
call fcn.10000f078
mov edx, edi
lea rcx, [0x1000071b0]
call fcn.10000eea8
jmp 0x100015df1
xor edx, edx
mov rcx, qword [rsp + 0x40]
call fcn.10000ef18
mov edi, eax
test eax, eax
setns byte [rsp + 0xc0]
test eax, eax
jns 0x100015b41
lea rsi, [0x10002d220]
mov rcx, qword [0x10002d220]
cmp rcx, rsi
je 0x100015b2e
test byte [rcx + 0x1c], 1
je 0x100015b2e
mov edx, 0x35
mov r9d, eax
lea r8, [0x100001a28]
mov rcx, qword [rcx + 0x10]
call fcn.10000f078
mov edx, edi
lea rcx, [0x100007200]
call fcn.10000eea8
jmp 0x100015df1
lea rdx, [rsp + 0x48]
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_GetOldestEventLogRecord]
test eax, eax
jne 0x100015b9e
call fcn.10001e9f0
mov edi, eax
lea rsi, [0x10002d220]
mov rcx, qword [0x10002d220]
cmp rcx, rsi
je 0x100015b8b
test byte [rcx + 0x1c], 1
je 0x100015b8b
mov edx, 0x36
mov r9d, eax
lea r8, [0x100001a28]
mov rcx, qword [rcx + 0x10]
call fcn.10000f078
mov edx, edi
lea rcx, [0x100007250]
call fcn.10000eea8
jmp 0x100015df1
lea rdx, [rsp + 0xd8]
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_GetNumberOfEventLogRecords]
test eax, eax
jne 0x100015bfe
call fcn.10001e9f0
mov edi, eax
lea rsi, [0x10002d220]
mov rcx, qword [0x10002d220]
cmp rcx, rsi
je 0x100015beb
test byte [rcx + 0x1c], 1
je 0x100015beb
mov edx, 0x37
mov r9d, eax
lea r8, [0x100001a28]
mov rcx, qword [rcx + 0x10]
call fcn.10000f078
mov edx, edi
lea rcx, [0x1000072b0]
call fcn.10000eea8
jmp 0x100015df1
mov edi, dword [rsp + 0xd8]
call sub.MpClient.dll_MpClientUtilExportFunctions
lea r8, [rsp + 0xd0]
mov edx, edi
lea rcx, [0x100007320]
call qword [rax + 0xa0]
mov edi, eax
test eax, eax
jns 0x100015c6b
lea rsi, [0x10002d220]
mov rcx, qword [0x10002d220]
cmp rcx, rsi
je 0x100015c58
test byte [rcx + 0x1c], 1
je 0x100015c58
mov edx, 0x38
mov r9d, eax
lea r8, [0x100001a28]
mov rcx, qword [rcx + 0x10]
call fcn.10000f078
mov edx, edi
lea rcx, [0x100007360]
call fcn.10000eea8
jmp 0x100015df1
lea rsi, [0x10002d220]
mov rcx, qword [0x10002d220]
cmp rcx, rsi
je 0x100015cab
test byte [rcx + 0x1c], 4
je 0x100015cab
mov edx, 0x39
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], rbx
mov r9d, dword [rsp + 0xd0]
lea r8, [0x100001a28]
mov rcx, qword [rcx + 0x10]
call fcn.100013d14
mov ecx, dword [rsp + 0x48]
mov eax, dword [rsp + 0xd8]
lea r12d, [rax + rcx - 1]
cmp r12d, ecx
jb 0x100015df1
mov r9, qword [rsp + 0x68]
mov r8d, r12d
mov rdx, rbx
mov rcx, r13
call fcn.10001408c
mov edi, eax
test eax, eax
jns 0x100015d43
mov rcx, qword [0x10002d220]
cmp rcx, rsi
je 0x100015d1f
test byte [rcx + 0x1c], 1
je 0x100015d1f
mov edx, 0x3a
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], r12d
mov qword [rsp + 0x28], rbx
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9, r15
lea r8, [0x100001a28]
mov rcx, qword [rcx + 0x10]
call fcn.100013b7c
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], r12d
mov r9, rbx
mov r8, qword [rsp + 0x40]
mov rdx, r15
lea rcx, [0x100007400]
call fcn.10000eea8
xor edi, edi
jmp 0x100015d55
test eax, eax
jne 0x100015d55
add dword [rsp + 0xd0], 0xffffffff
je 0x100015df1
dec r12d
cmp r12d, dword [rsp + 0x48]
jae 0x100015cc4
jmp 0x100015df1
mov edi, 0x80070032
lea rsi, [0x10002d220]
mov rcx, qword [0x10002d220]
cmp rcx, rsi
je 0x100015d9e
test byte [rcx + 0x1c], 1
je 0x100015d9e
mov edx, 0x32
mov r9, r15
lea r8, [0x100001a28]
mov rcx, qword [rcx + 0x10]
call fcn.100012638
mov rdx, r15
lea rcx, [0x1000070d0]
call fcn.10000eea8
jmp 0x100015e43
mov edi, 0x80070057
lea rsi, [0x10002d220]
mov rcx, qword [0x10002d220]
cmp rcx, rsi
je 0x100015de5
test byte [rcx + 0x1c], 1
je 0x100015de5
mov edx, 0x2f
lea r8, [0x100001a28]
mov rcx, qword [rcx + 0x10]
call fcn.10000f054
lea rcx, [0x100006f90]
call fcn.10000eea8
test r13, r13
je 0x100015e43
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_CloseEventLog]
test eax, eax
jne 0x100015e43
call fcn.10001e9f0
mov edi, eax
mov rcx, qword [0x10002d220]
cmp rcx, rsi
je 0x100015e34
test byte [rcx + 0x1c], 1
je 0x100015e34
mov edx, 0x3b
mov r9d, eax
lea r8, [0x100001a28]
mov rcx, qword [rcx + 0x10]
call fcn.10000f078
mov edx, edi
lea rcx, [0x100007490]
call fcn.10000eea8
nop
xor ecx, ecx
xchg qword [rsp + 0x40], rcx
test rcx, rcx
je 0x100015e56
call qword [sym.imp.msvcrt.dll_free]
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x100015e66
call sub.MpClient.dll_MpFreeMemory
nop
cmp qword [rsp + 0x58], 0
je 0x100015e74
call sub.MpClient.dll_MpConfigUninitialize
nop
cmp byte [rsp + 0xc0], 0
je 0x100015ed6
and qword [rsp + 0x80], 0
mov rbx, qword [0x10002e0e0]
mov qword [rsp + 0x78], rbx
and qword [0x10002e0e0], 0
test rbx, rbx
je 0x100015ed6
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x100015eaf
call qword [sym.imp.msvcrt.dll_free]
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x100015ebe
call qword [sym.imp.msvcrt.dll_free]
cmp qword [rbx], 0xffffffffffffffff
je 0x100015ecd
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_free]
mov eax, edi
mov rbx, qword [rsp + 0xc8]
add rsp, 0x90
pop r15
pop r13
pop r12
pop rdi
pop rsi
ret