Function at 0x100401fd0
Capabilities:
Access the windows event log

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1e48]
mov eax, 0x1f48
call fcn.10046b370
sub rsp, rax
mov qword [rbp - 0x80], 0xfffffffffffffffe
mov rax, qword [0x100499010]
xor rax, rsp
mov qword [rbp + 0x1e30], rax
mov qword [rsp + 0x58], r9
mov r15, r8
mov r12, rdx
mov r13, rcx
xor edx, edx
mov r8d, 0x400
lea rcx, [rbp + 0x1a30]
call sub.VCRUNTIME140.dll_memset
xor edx, edx
mov r8d, 0x100
lea rcx, [rbp + 0x1930]
call sub.VCRUNTIME140.dll_memset
xor edx, edx
mov r8d, 0x100
lea rcx, [rbp + 0x1830]
call sub.VCRUNTIME140.dll_memset
xor r14d, r14d
mov qword [rsp + 0x48], r14
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop word [rax + rax]
mov rdi, qword [r15]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r14d
lea r9, [rsp + 0x50]
xor r8d, r8d
lea edx, [r8 + 5]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_ReadEventLogW]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
jne 0x100402370
cmp eax, 0x7a
jne 0x100402370
lea r8d, [rbx + 0x64]
lea rdx, str.AllocateAndReadEventLogData
mov ecx, dword [rsp + 0x40]
call fcn.10043acf0
mov rbx, rax
test rax, rax
je 0x100402380
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
mov edx, dword [rsp + 0x40]
mov dword [rsp + 0x20], edx
mov r9, rbx
xor r8d, r8d
lea edx, [r8 + 5]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_ReadEventLogW]
test eax, eax
je 0x100402373
xor edx, edx
mov r8d, 0x450
lea rcx, [rbp - 0x70]
call sub.VCRUNTIME140.dll_memset
mov rsi, r14
mov qword [rsp + 0x48], r14
movzx eax, word [rbx + 0x1a]
test ax, ax
je 0x100402157
movzx ecx, ax
shl ecx, 3
mov r8d, 0x21c
lea rdx, str.AlertProcessEventLogEvents
call fcn.10043acf0
mov rsi, rax
test rax, rax
je 0x100402373
lea rdx, [0x1004a8f40]
lea rcx, [rbx + 0x38]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x10040233e
cmp word [rbx + 0x1c], 8
je 0x10040233e
mov ecx, dword [rbx + 0x34]
add rcx, rbx
lea r9, [rbp - 0x70]
mov r8d, dword [rbx + 0x14]
mov edx, dword [rbx + 0x30]
call fcn.100408ce0
test eax, eax
je 0x10040233e
movzx edx, word [rbx + 0x1a]
mov r8, rsi
mov ecx, dword [rbx + 0x24]
add rcx, rbx
test edx, edx
je 0x1004021dd
nop word [rax + rax]
dec edx
mov rax, rcx
cmp word [rcx], 0
je 0x1004021ca
nop dword [rax + rax]
add rax, 2
cmp word [rax], 0
jne 0x1004021c0
mov qword [r8], rcx
add r8, 8
lea rcx, [rax + 2]
test edx, edx
jne 0x1004021b0
movzx edx, word [rbx + 0x1a]
lea r9, [rsp + 0x48]
movzx r8d, dx
mov rdx, rsi
mov ecx, dword [rbx + 0x14]
call fcn.1004086e0
xor edx, edx
mov r8d, 0x1450
lea rcx, [rbp + 0x3e0]
call sub.VCRUNTIME140.dll_memset
call fcn.1004342d0
movzx edi, al
lea rcx, [0x1004a9048]
mov rax, qword [0x1004a90d0]
call qword [case.0x10044bd0b.0]
test eax, eax
jne 0x100402252
cmp dword [0x1004a8ebc], eax
je 0x100402245
test dil, dil
je 0x100402245
lea rdx, str.AlertProcessEventLogEvents
lea rcx, str.__s_____Waiting_for_CritSec__n
call fcn.10043bdc0
lea rcx, [0x1004a9048]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x1004a8ebc], 0
je 0x100402273
test dil, dil
je 0x100402273
lea rdx, str.AlertProcessEventLogEvents
lea rcx, str.__s_____Enters_CritSec__n
call fcn.10043bdc0
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x70]
lea r8, [rbx + 0x38]
mov rdx, rbx
mov rcx, r12
call fcn.100402a70
test rax, rax
je 0x1004022aa
mov r8d, 0x1450
mov rdx, rax
lea rcx, [rbp + 0x3e0]
call sub.VCRUNTIME140.dll_memcpy
call fcn.1004342d0
movzx edi, al
lea rcx, [0x1004a9048]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [0x1004a8ebc], 0
je 0x1004022e0
test dil, dil
je 0x1004022e0
lea rdx, str.AlertProcessEventLogEvents
lea rcx, str.__s_____Leaves_CritSec__n
call fcn.10043bdc0
cmp dword [rbp + 0x3e0], 0
je 0x10040233e
lea rax, [rbp + 0x1830]
mov qword [rsp + 0x20], rax
lea r8, [rbp + 0x1930]
mov ecx, dword [rbx + 0x10]
call fcn.100407a70
xor r14d, r14d
mov qword [rsp + 0x30], r14
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x1830]
lea r8, [rbp + 0x1930]
lea rdx, [rbp + 0x3e0]
mov rcx, r13
call fcn.1004034b0
jmp 0x100402341
xor r14d, r14d
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x100402356
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rsp + 0x48], r14
test rsi, rsi
je 0x100402363
mov rcx, rsi
call fcn.10043b3b0
mov rcx, rbx
call fcn.10043b3b0
jmp 0x100402070
mov rbx, r14
test rbx, rbx
je 0x100402380
mov rcx, rbx
call fcn.10043b3b0
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x78], 7
mov word [rsp + 0x60], r14w
mov r8d, reloc.ODBC32.dll_SQLFreeStmt
lea rdx, str.EventlogSweeping
lea rcx, [rsp + 0x60]
call fcn.10040da90
nop
call fcn.10044da70
mov rcx, rax
lea rdx, [rsp + 0x60]
call fcn.10040a150
movzx edi, al
mov esi, 1
lea r14d, [rsi + 1]
cmp ebx, 0x26
je 0x100402428
cmp ebx, 0x7a
je 0x100402428
mov r8d, 0x400
lea rdx, [rbp + 0x1a30]
mov ecx, ebx
call fcn.10044bfe0
movzx ecx, dil
neg cl
sbb ecx, ecx
add ecx, 3
lea rax, [rbp + 0x1a30]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r14d
mov r9d, r14d
mov r8d, 0xc000013e
movzx edx, si
call fcn.100431c20
sub ebx, 6
je 0x10040243e
sub ebx, 0x5d6
je 0x10040243e
cmp ebx, 3
jne 0x100402544
neg dil
sbb edi, edi
mov eax, 4
xor r9d, r9d
mov r8d, 0x40000137
movzx edx, ax
lea ecx, [rdi + 3]
call fcn.100431c20
mov rcx, qword [r15]
call qword [sym.imp.ADVAPI32.dll_CloseEventLog]
lea rdx, [0x1004a8c80]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenEventLogW]
mov rbx, rax
test rax, rax
je 0x1004024a4
mov rdx, qword [0x1004a90e8]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_NotifyChangeEventLog]
test eax, eax
jne 0x1004024a4
xor r9d, r9d
mov r8d, 0x80000130
movzx edx, si
lea ecx, [rax + 3]
call fcn.100431c20
mov qword [r15], rbx
test rbx, rbx
je 0x100402526
xor esi, esi
mov dword [rsp + 0x40], esi
mov dword [rsp + 0x44], esi
lea rdx, [rsp + 0x44]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_GetOldestEventLogRecord]
test eax, eax
je 0x10040250f
lea rdx, [rsp + 0x40]
mov rcx, qword [r15]
call qword [sym.imp.ADVAPI32.dll_GetNumberOfEventLogRecords]
test eax, eax
je 0x10040250f
mov edx, dword [rsp + 0x40]
test edx, edx
je 0x10040250f
mov qword [rsp + 0x50], rsi
lea r8d, [rdx - 1]
add r8d, dword [rsp + 0x44]
lea r9, [rsp + 0x50]
lea edx, [rsi + 6]
mov rcx, qword [r15]
call fcn.100401080
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x10040250f
call fcn.10043b3b0
xor r9d, r9d
mov r8d, 0x80000138
movzx edx, r14w
lea ecx, [rdi + 3]
call fcn.100431c20
jmp 0x100402544
xor r9d, r9d
mov r8d, 0xc0000139
movzx edx, si
lea ecx, [r9 + 3]
call fcn.100431c20
mov rax, qword [rsp + 0x58]
xor esi, esi
mov dword [rax], esi
mov rcx, qword [rbp + 0x1e30]
xor rcx, rsp
call fcn.100469360
add rsp, 0x1f48
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret