Function at 0x180038420
Capabilities:
Clear windows event logs
Execute command
Get token membership

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x90
mov rax, qword [0x1800af040]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor ecx, ecx
mov dword [rsp + 0x78], ecx
mov qword [rsp + 0x68], rcx
mov dword [rsp + 0x70], ecx
mov word [rsp + 0x74], 0x500
lea rax, [rsp + 0x68]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], ecx
mov dword [rsp + 0x40], ecx
mov dword [rsp + 0x38], ecx
mov dword [rsp + 0x30], ecx
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], ecx
mov r9d, 0x220
mov r8d, 0x20
mov dl, 2
lea rcx, [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x1800384b1
lea r8, [rsp + 0x78]
mov rdx, qword [rsp + 0x68]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [rsp + 0x78], 0
je 0x1800385dd
lea rdx, str.Clearing_logs_related_to_explorer.exe...
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.18003b5b0
lea rdx, [0x18003b790]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rax, qword [0x1800ce930]
cmp rax, 0x28
jb 0x180038528
lea rdi, [0x1800ce918]
mov rbx, rdi
cmp rax, 0xf
cmova rbx, qword [0x1800ce918]
mov qword [0x1800ce928], 0x28
mov r8d, 0x28
lea rdx, str.Clearing_logs_related_to_explorer.exe...
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + 0x28], 0
jmp 0x180038540
lea r9, str.Clearing_logs_related_to_explorer.exe...
mov edx, 0x28
call fcn.18003c160
lea rdi, [0x1800ce918]
lea rcx, str.wevtutil_cl_Security
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rcx, str.wevtutil_cl_Application
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rcx, str.wevtutil_cl_System
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rdx, str.Logs_cleared_successfully.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.18003b5b0
lea rdx, [0x18003b790]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rax, qword [0x1800ce930]
cmp rax, 0x1a
jb 0x1800385c9
cmp rax, 0xf
cmova rdi, qword [0x1800ce918]
mov qword [0x1800ce928], 0x1a
mov r8d, 0x1a
lea rdx, str.Logs_cleared_successfully.
mov rcx, rdi
call sub.VCRUNTIME140.dll_memmove
mov byte [rdi + 0x1a], 0
jmp 0x1800385db
lea r9, str.Logs_cleared_successfully.
mov edx, 0x1a
call fcn.18003c160
nop
jmp 0x180038657
lea rdx, str.Please_run_this_program_as_an_administrator.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.18003b5b0
lea rdx, [0x18003b790]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rax, qword [0x1800ce930]
cmp rax, 0x2c
jb 0x180038646
lea rdi, [0x1800ce918]
cmp rax, 0xf
cmova rdi, qword [0x1800ce918]
mov qword [0x1800ce928], 0x2c
mov r8d, 0x2c
lea rdx, str.Please_run_this_program_as_an_administrator_
mov rcx, rdi
call sub.VCRUNTIME140.dll_memmove
mov byte [rdi + 0x2c], 0
jmp 0x180038657
lea r9, str.Please_run_this_program_as_an_administrator_
mov edx, 0x2c
call fcn.18003c160
lea rdx, str.Press_any_key_to_continue...
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.18003b5b0
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::basic_istream_char__struct_std::char_traits_char__::get_void____ptr64]
xor al, al
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.18003d610
mov rbx, qword [rsp + 0xa0]
add rsp, 0x90
pop rdi
ret