Function at 0x140001180
Capabilities:
Access the windows event log
Clear windows event logs

Disassembly:
push rsi
mov eax, 0x1060
call fcn.1400027e0
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x1050], rax
cmp qword [rcx + 0x18], 7
jbe 0x1400011ab
mov rcx, qword [rcx]
mov rdx, rcx
mov qword [rsp + 0x1078], rbx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenEventLogW]
mov rsi, rax
test rax, rax
jne 0x140001201
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
lea rdx, str.Failed_to_open_event_log._Error:
mov ebx, eax
call fcn.140001620
mov rcx, rax
mov edx, ebx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___unsigned_long_int____ptr64]
mov rcx, rax
lea rdx, [0x140001800]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
jmp 0x1400013af
lea rax, [rsp + 0x44]
mov dword [rsp + 0x40], 0
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x50]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov edx, 5
mov dword [rsp + 0x20], 0x1000
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_ReadEventLogW]
test eax, eax
je 0x14000130b
mov qword [rsp + 0x1080], rdi
mov ecx, dword [rsp + 0x40]
xor ebx, ebx
test ecx, ecx
je 0x1400012c9
nop dword [rax]
mov eax, ebx
lea rdi, [rsp + 0x50]
add rdi, rax
cmp dword [rdi + 0x14], 0x3e8
jne 0x1400012c3
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
lea rdx, str.Event_ID
call fcn.140001620
mov rcx, rax
mov edx, 0x3e8
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___unsigned_long_int____ptr64]
mov rcx, rax
lea rdx, str._found._Record_number:
call fcn.140001620
mov edx, dword [rdi + 8]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___unsigned_long_int____ptr64]
mov rcx, rax
lea rdx, [0x140001800]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
mov ecx, dword [rsp + 0x40]
add ebx, dword [rdi]
cmp ebx, ecx
jb 0x140001260
lea rax, [rsp + 0x44]
xor r8d, r8d
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x50]
lea rax, [rsp + 0x40]
mov edx, 5
mov qword [rsp + 0x28], rax
mov rcx, rsi
mov dword [rsp + 0x20], 0x1000
call qword [sym.imp.ADVAPI32.dll_ReadEventLogW]
test eax, eax
jne 0x140001253
mov rdi, qword [rsp + 0x1080]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x26
je 0x14000134c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
lea rdx, str.Failed_to_read_event_log._Error:
mov ebx, eax
call fcn.140001620
mov rcx, rax
mov edx, ebx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___unsigned_long_int____ptr64]
mov rcx, rax
lea rdx, [0x140001800]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_ClearEventLogW]
test eax, eax
je 0x140001370
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
lea rdx, str.Event_log_cleared_successfully.
call fcn.140001620
jmp 0x140001396
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
lea rdx, str.EXECUTE_ADM._Error:
mov ebx, eax
call fcn.140001620
mov rcx, rax
mov edx, ebx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___unsigned_long_int____ptr64]
lea rdx, [0x140001800]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseEventLog]
mov rbx, qword [rsp + 0x1078]
mov rcx, qword [rsp + 0x1050]
xor rcx, rsp
call fcn.140001850
add rsp, 0x1060
pop rsi
ret