Function at 0x140001c90
Capabilities:
Check if file exists
Delete service
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x47]
sub rsp, 0xe0
mov rax, qword [0x14000a010]
xor rax, rsp
mov qword [rbp + 0x3f], rax
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x31], xmm0
mov qword [rbp - 0x21], rax
xor r15d, r15d
mov qword [rbp - 0x51], r15
movdqa xmm0, xmmword [0x140006e60]
movdqu xmmword [rbp - 0x41], xmm0
mov word [rbp - 0x51], r15w
lea r8d, [rax + 0xb]
lea rdx, str.MsMpEng.exe
lea rcx, [rbp - 0x51]
call fcn.1400034f0
nop
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x31], xmm0
mov qword [rbp - 0x21], r15
lea r8, [rbp - 0x31]
lea rdx, [rbp - 0x51]
lea rcx, [rbp - 0x31]
call fcn.140003a60
nop
lea r9, [0x140002f40]
mov r14d, 1
mov r8d, r14d
lea edx, [r15 + 0x20]
lea rcx, [rbp - 0x51]
call fcn.1400044bc
mov qword [rbp - 0x19], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], 7
mov word [rbp - 0x19], r15w
lea r8d, [r15 + 0xd]
lea rdx, [0x140006b08]
lea rcx, [rbp - 0x19]
call fcn.1400034f0
nop
lea rcx, [rbp - 0x19]
cmp qword [rbp - 1], 8
cmovae rcx, qword [rbp - 0x19]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140001eb2
mov qword [rbp + 7], r15
mov qword [rbp + 0x17], r15
mov qword [rbp + 0x1f], 0xf
mov byte [rbp + 7], r15b
lea r8d, [r15 + 0xd]
lea rdx, str.truesight.sys
lea rcx, [rbp + 7]
call fcn.140003670
nop
lea rdx, [rbp + 7]
lea rcx, [rbp - 0x51]
call fcn.140001930
nop
mov rdx, qword [rbp + 0x1f]
cmp rdx, 0x10
jb 0x140001df0
inc rdx
mov rcx, qword [rbp + 7]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001deb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001deb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000458c
mov qword [rbp + 0x17], r15
mov qword [rbp + 0x1f], 0xf
mov byte [rbp + 7], 0
mov r8, qword [rbp - 0x41]
test r8, r8
je 0x140001e74
lea rdx, [rbp - 0x51]
cmp qword [rbp - 0x39], 0x10
cmovae rdx, qword [rbp - 0x51]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140004040
mov rcx, rax
lea rdx, [0x140003a20]
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]
nop
mov rdx, qword [rbp - 0x39]
cmp rdx, 0x10
jb 0x1400021eb
inc rdx
mov rcx, qword [rbp - 0x51]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001e6a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001ea6
call fcn.14000458c
jmp 0x1400021eb
mov rdx, qword [rbp - 0x39]
cmp rdx, 0x10
jb 0x140001eb2
inc rdx
mov rcx, qword [rbp - 0x51]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001ead
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001ead
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000458c
mov edx, r14d
lea rcx, [0x140001290]
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
test eax, eax
jne 0x140001ede
lea rdx, str.____Failed_to_set_CTRLC_handler._Exiting..._n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
call fcn.140003800
jmp 0x1400021eb
movups xmm0, xmmword [str.trueSight]
movups xmmword [rbp + 0x27], xmm0
mov eax, dword [0x140006bb0]
mov dword [rbp + 0x37], eax
lea rcx, [rbp + 0x27]
call fcn.140001680
test eax, eax
je 0x1400021eb
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.NtQuerySystemInformation
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14000a8e0], rax
mov eax, dword [0x14000a044]
test eax, eax
je 0x1400020e6
mov rsi, qword [rbp - 0x29]
mov rbx, qword [rbp - 0x31]
cmp rbx, rsi
je 0x1400020cd
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x140001f53
mov rcx, qword [rbx]
call fcn.1400012d0
mov dword [rbp - 0x59], eax
test eax, eax
je 0x1400020c0
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 3]
lea rcx, str..TrueSight
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
cmp rax, 0xffffffffffffffff
jne 0x140001fd9
lea rdx, str.____CreateFileW_failed_for:
call fcn.140003800
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x140001fb8
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
mov rcx, rax
call fcn.140004200
mov rcx, rax
lea rdx, [0x1400039e0]
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 0x1400020c0
lea rdx, str.___Terminating_PID:
call fcn.140003800
mov rcx, rax
mov edx, dword [rbp - 0x59]
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._for_process
call fcn.140003800
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x14000200d
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
mov rcx, rax
call fcn.140004200
mov rcx, rax
lea rdx, [0x1400039e0]
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 dword [rbp - 0x55], r15d
mov qword [rsp + 0x38], r15
lea rax, [rbp - 0x55]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], r15
mov r9d, 4
lea r8, [rbp - 0x59]
mov edx, 0x22e044
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
test eax, eax
jne 0x140002082
lea rdx, str.____DeviceIoControl_failed_for_PID:
call fcn.140003800
mov rcx, rax
mov edx, dword [rbp - 0x59]
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]
jmp 0x1400020a7
lea rdx, str.___Process_terminated:
call fcn.140003800
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x14000209b
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
mov rcx, rax
call fcn.140004200
lea rdx, [0x1400039e0]
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, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 0x20
cmp rbx, rsi
jne 0x140001f46
mov ecx, 0xc8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x14000a044]
test eax, eax
jne 0x140001f35
lea rdx, str.____Stopping_and_Deleting_trueSight_Service_
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.140003800
mov rcx, rax
lea rdx, [0x1400039e0]
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
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
jne 0x140002149
lea rdx, str.____OpenSCManager_failed
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.140003800
mov rcx, rax
lea rdx, [0x1400039e0]
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 0x1400021e8
mov r8d, 0xf01ff
lea rdx, [rbp + 0x27]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
test rax, rax
jne 0x140002189
lea rdx, str.____OpenService_failed
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.140003800
mov rcx, rax
lea rdx, [0x1400039e0]
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 0x1400021df
lea r8, [rbp + 7]
mov edx, r14d
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x1400021a6
lea rdx, str.____ControlService_failed
jmp 0x1400021ba
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x1400021d6
lea rdx, str.____DeleteService_failed
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.140003800
lea rdx, [0x1400039e0]
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, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov r14d, r15d
mov rdx, qword [rbp - 1]
cmp rdx, 8
jb 0x14000222e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x19]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002229
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002229
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000458c
mov qword [rbp - 9], r15
mov qword [rbp - 1], 7
mov word [rbp - 0x19], r15w
mov rcx, qword [rbp - 0x31]
test rcx, rcx
je 0x14000228d
mov rdx, qword [rbp - 0x29]
call fcn.140003f00
mov rdx, qword [rbp - 0x21]
mov rcx, qword [rbp - 0x31]
sub rdx, rcx
and rdx, 0xffffffffffffffe0
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002288
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002288
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000458c
mov eax, r14d
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.140004460
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret