Function at 0x140008350
Capabilities:
Access the windows event log

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x102c0
call fcn.140012c30
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x102b0], rax
mov r13d, r9d
mov r14, rdx
mov rbx, rcx
mov esi, dword [rsp + 0x10310]
mov rdi, qword [rsp + 0x10318]
xor edx, edx
mov r8d, 0x1fe
lea rcx, [rsp + 0xb0]
call sub.VCRUNTIME140.dll_memset
xor r15d, r15d
mov qword [rsp + 0x80], r15
mov word [rsp + 0x60], r15w
mov qword [rsp + 0x88], r15
xor edx, edx
mov r8d, 0x10000
lea rcx, [rsp + 0x2b0]
call sub.VCRUNTIME140.dll_memset
nop
mov qword [rsp + 0x78], rbx
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x90], xmm0
mov qword [rsp + 0xa0], rax
mov word [rsp + 0xa8], ax
mov byte [rsp + 0xaa], al
imul rbx, r13, 0xc50
mov r8, qword [rdi + 0x48]
add r8, 0x28
add r8, rbx
lea edx, [rax + 0x1a]
lea rcx, [rsp + 0x90]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__ctime64_s]
lea edx, [r15 + 0x1b]
lea rcx, [rsp + 0x90]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strnlen]
mov qword [rsp + 0x70], rax
cmp rax, 1
jbe 0x14000845b
lea rcx, [rax - 1]
cmp rcx, 0x1a
jae 0x140008463
mov byte [rsp + rax + 0x8f], r15b
jmp 0x140008463
mov byte [rsp + 0xaa], 0
mov rcx, qword [rdi + 0x48]
add rcx, 0x50
add rcx, rbx
jne 0x140008475
mov rax, r15
jmp 0x140008480
mov edx, 0x9f6
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strnlen]
mov qword [rsp + 0x70], rax
mov edx, eax
mov qword [rsp + 0x68], rdx
mov eax, eax
mov r8d, edx
mov rcx, rdx
test rax, rax
je 0x1400084cc
cmp rdx, 0x9f6
jae 0x1400084cc
lea rcx, [rbx + r8]
mov rax, qword [rdi + 0x48]
movzx r8d, byte [rcx + rax + 0x50]
cmp r8b, 0x5c
je 0x1400084cc
cmp r8b, 0x2f
je 0x1400084cc
dec rdx
mov r8, rdx
mov rax, rdx
mov qword [rsp + 0x68], rdx
jmp 0x140008491
inc rdx
mov qword [rsp + 0x68], rdx
cmp r13d, dword [rdi + 0x38]
lfence
jae 0x140008528
mov rdx, qword [rdi + 0x48]
mov eax, dword [rdi + 0x6c]
cmp dword [rbx + rdx + 0x44], eax
jae 0x140008502
lfence
mov rdx, qword [rdi + 0x48]
mov ecx, dword [rdx + rbx + 0x44]
mov rax, qword [rdi + 0x88]
mov r8, qword [rax + rcx*8]
jmp 0x140008509
lea r8, str.ERROR_WRONG_ERROR_INDEX
lea rax, [rbx + rdx]
lea r9, str.Error___3u_...:___s__0x_x_._nOccurred......:___s_._nIn_file.......:___s_._nAt_line.......:___d_._n____________________________________________________________n
mov edx, dword [rax + 4]
mov r10d, dword [rax + 0xa48]
mov r12, qword [rsp + 0x68]
add rax, r12
jmp 0x140008550
mov rcx, qword [rdi + 0x48]
add rcx, rbx
lea r9, [0x14001aad0]
lea r8, [0x14001a688]
mov edx, dword [rcx + 4]
mov r10d, dword [rcx + 0xa48]
mov r12, qword [rsp + 0x68]
lea rax, [rcx + r12]
add rax, 0x50
mov dword [rsp + 0x48], r10d
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x90]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], edx
mov qword [rsp + 0x28], r8
mov dword [rsp + 0x20], esi
mov edx, 0x1fe
mov r8, 0xffffffffffffffff
lea rcx, [rsp + 0xb0]
call fcn.140001030
mov edx, 0x1fe
lea rcx, [rsp + 0xb0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strnlen]
mov rsi, rax
test rax, rax
je 0x14000881d
xor edx, edx
mov r8d, 0x9f6
mov rcx, r14
call sub.VCRUNTIME140.dll_memset
mov r9d, 0x9f6
lea r8, [rsp + 0xb0]
mov edx, r9d
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy_s]
mov byte [r14 + 0x9f5], 0
cmp rsi, 0x9f6
jb 0x1400085f5
mov ebx, 1
jmp 0x140008819
mov r15, qword [rsp + 0x78]
cmp dword [r15 + 0x128d8], 0
jne 0x1400087c2
cmp dword [r15 + 0x8b0], 0
jne 0x1400087c2
cmp dword [r15 + 0x8b4], 1
jne 0x1400087c2
cmp qword [rdi + 0x20], 0
je 0x1400087c2
mov rsi, qword [rdi + 0x48]
add rsi, rbx
movsxd rax, dword [rsi + 0x4c]
cmp eax, 5
ja case.0x140008650.0
lea rdx, [0x140000000]
mov ecx, dword [rdx + rax*4 + 0x8854]
add rcx, rdx
jmp rcx
mov r14d, 2
jmp 0x14000866b
mov ebx, 1
movzx r14d, bx
jmp 0x140008670
mov r14d, 4
mov ebx, 1
xor edx, edx
mov r8d, 0x1fe
lea rcx, [rsp + 0xb0]
call sub.VCRUNTIME140.dll_memset
mov r9d, dword [rsi + 0xa48]
mov r10d, dword [rsi + 4]
mov r8d, dword [rsi + 0x44]
mov r11, qword [rdi + 0x88]
lea rax, [rsi + 0x50]
add rax, r12
cmp dword [rsi + 0xa4c], 1
jne 0x14000870f
lea rcx, [rsi + 0xb4f]
lea rdx, [rsi + 0xa50]
mov dword [rsp + 0x58], r9d
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x90]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], r10d
mov rax, qword [r11 + r8*8]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r13d
lea r9, str.Error___u_:___s__0x_x_._nProblem:___s_._nSolution:___s_._nOccurred:___s_._nIn_file:___s_._nAt_line:___d_.
mov edx, 0x1fe
mov r8, 0xffffffffffffffff
lea rcx, [rsp + 0xb0]
call fcn.140001030
jmp 0x140008759
mov dword [rsp + 0x48], r9d
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x90]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], r10d
mov rax, qword [r11 + r8*8]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r13d
lea r9, str.Error___u_:___s__0x_x_._nOccurred:___s_._nIn_file:___s_._nAt_line:___d_.
mov edx, 0x1fe
mov r8, 0xffffffffffffffff
lea rcx, [rsp + 0xb0]
call fcn.140001030
mov byte [rsp + 0x2ad], 0
mov edx, 0x1fe
lea rcx, [rsp + 0xb0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strnlen]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x20], 0xffffffffffffffff
lea r9, [rsp + 0xb0]
mov r8d, 0x8000
lea rdx, [rsp + 0x2b0]
lea rcx, [rsp + 0x80]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_mbstowcs_s]
xor edx, edx
mov word [rsp + 0x102ae], dx
lea rax, [rsp + 0x2b0]
mov qword [rsp + 0x88], rax
jmp 0x1400087cf
mov ebx, 1
movzx r14d, word [rsp + 0x60]
xor edx, edx
cmp dword [r15 + 0x128d8], 0
jne 0x14000881d
mov rcx, qword [rdi + 0x20]
test rcx, rcx
je 0x14000881d
mov r8d, ebx
mov qword [rsp + 0x40], rdx
lea rax, [rsp + 0x88]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], edx
mov word [rsp + 0x28], bx
mov qword [rsp + 0x20], rdx
mov r9d, 0x40000002
movzx edx, r14w
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
test eax, eax
jne 0x14000881d
mov eax, ebx
jmp 0x140008826
xor eax, eax
jmp 0x140008826
mov rcx, qword [rsp + 0x102b0]
xor rcx, rsp
call fcn.1400011f0
lea r11, [rsp + 0x102c0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret