Function at 0x14006a378
Capabilities:
Access the windows event log

Disassembly:
mov dword [rsp + 0x20], r9d
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x268
mov rax, qword [0x1400a3ac8]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov ebp, r8d
mov esi, edx
mov r14d, ecx
xor edx, edx
mov r8d, 0x200
lea rcx, [rsp + 0x50]
call sub.msvcrt.dll_memset
xor r13d, r13d
movzx edi, r13w
movzx ebx, r13w
mov rcx, qword [str._0_n_]
lea rax, str._0_n_
lea r15d, [r13 + 2]
cmp rcx, rax
je 0x14006a40c
test byte [rcx + 0x1c], r15b
je 0x14006a40c
cmp byte [rcx + 0x19], 5
jb 0x14006a40c
mov rcx, qword [rcx + 0x10]
lea edx, [r13 + 0x14]
lea r8, [0x140095588]
call fcn.14000459c
mov rcx, qword [str._0_n_]
lea rax, str._0_n_
cmp ebp, 0x40
jbe 0x14006a429
cmp rcx, rax
je 0x14006a45a
test byte [rcx + 0x1c], r15b
je 0x14006a45a
cmp byte [rcx + 0x19], r15b
jb 0x14006a45a
mov edx, 0x15
jmp 0x14006a44a
cmp qword [0x1400a77c0], r13
jne 0x14006a461
cmp rcx, rax
je 0x14006a45a
test byte [rcx + 0x1c], r15b
je 0x14006a45a
mov eax, 3
cmp byte [rcx + 0x19], al
jb 0x14006a45a
lea edx, [rax + 0x13]
mov rcx, qword [rcx + 0x10]
lea r8, [0x140095588]
call fcn.14000459c
xor eax, eax
jmp 0x14006a682
lea rcx, [0x1400a7790]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop dword [rax + rax]
mov edx, dword [0x1400a77c8]
mov ecx, r13d
mov r12d, 1
test edx, edx
je 0x14006a4ab
mov rax, qword [0x1400a7740]
add rax, 0xc
cmp dword [rax - 4], r14d
jne 0x14006a4a0
cmp esi, dword [rax]
ja 0x14006a542
add ecx, r12d
add rax, 0x10
cmp ecx, edx
jb 0x14006a492
lea r8, [rsp + 0x2d0]
test ebp, ebp
je 0x14006a4e4
add r8, 0xfffffffffffffff8
lea rdx, [rsp + 0x50]
mov r9, rbp
lea r8, [r8 + 8]
mov rcx, qword [r8]
lea rax, [0x1400926f8]
test rcx, rcx
cmovne rax, rcx
mov qword [rdx], rax
lea rdx, [rdx + 8]
sub r9, r12
jne 0x14006a4c3
mov r9d, dword [rsp + 0x2c8]
mov ecx, 4
shr r9d, 0x1e
mov eax, r9d
test r9d, r9d
je 0x14006a573
sub eax, r12d
je 0x14006a573
sub eax, r12d
je 0x14006a566
cmp eax, r12d
je 0x14006a55a
mov rcx, qword [str._0_n_]
lea rsi, str._0_n_
cmp rcx, rsi
je 0x14006a584
test byte [rcx + 0x1c], r15b
je 0x14006a584
cmp byte [rcx + 0x19], r15b
jb 0x14006a584
mov rcx, qword [rcx + 0x10]
lea r8, [0x140095588]
mov edx, 0x17
call fcn.140004994
jmp 0x14006a584
lea rcx, [0x1400a7790]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop dword [rax + rax]
jmp 0x14006a45a
add dword [0x1400a77bc], r12d
mov edi, r12d
jmp 0x14006a57d
add dword [0x1400a77cc], r12d
movzx edi, r15w
jmp 0x14006a57d
add dword [0x1400a77b8], r12d
movzx edi, cx
lea rsi, str._0_n_
lea rcx, [0x1400a7790]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop dword [rax + rax]
mov eax, r14d
sub eax, r12d
je 0x14006a5f4
sub eax, r12d
je 0x14006a5ee
sub eax, r12d
je 0x14006a5e7
cmp eax, r12d
je 0x14006a5e0
mov rcx, qword [str._0_n_]
cmp rcx, rsi
je 0x14006a5f8
test byte [rcx + 0x1c], r15b
je 0x14006a5f8
cmp byte [rcx + 0x19], r15b
jb 0x14006a5f8
mov rcx, qword [rcx + 0x10]
lea r8, [0x140095588]
mov edx, 0x18
mov r9d, r14d
call fcn.140004994
jmp 0x14006a5f8
mov ebx, 4
jmp 0x14006a5f8
mov ebx, 3
jmp 0x14006a5f8
movzx ebx, r15w
jmp 0x14006a5f8
movzx ebx, r12w
mov r9d, dword [rsp + 0x2c8]
lea rax, [rsp + 0x50]
mov rcx, qword [0x1400a77c0]
movzx r8d, bx
mov qword [rsp + 0x40], r13
movzx edx, di
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], r13d
mov word [rsp + 0x28], bp
mov qword [rsp + 0x20], r13
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
nop dword [rax + rax]
test eax, eax
jne 0x14006a67f
mov rcx, qword [str._0_n_]
cmp rcx, rsi
je 0x14006a67f
test byte [rcx + 0x1c], r15b
je 0x14006a67f
cmp byte [rcx + 0x19], r15b
jb 0x14006a67f
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [str._0_n_]
lea r8, [0x140095588]
mov edx, 0x19
mov r9d, eax
mov rcx, qword [rcx + 0x10]
call fcn.140004994
mov eax, r12d
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140001b10
add rsp, 0x268
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret