Function at 0x140174140
Capabilities:
Delete service

Disassembly:
mov r11, rsp
push rsi
sub rsp, 0x120
mov rax, qword [0x1402ba040]
xor rax, rsp
mov qword [rsp + 0x110], rax
lea rax, [0x1402c86f0]
mov rsi, rcx
test al, 0xf
jne 0x140174490
mov qword [r11 + 0x18], rbp
xorps xmm0, xmm0
movaps xmmword [0x1402c86f0], xmm0
lea rbp, [0x1402c1370]
mov dword [0x1402c8704], 0x10
mov qword [0x1402c8708], 0x1000
mov qword [r11 + 0x20], rdi
xor edi, edi
mov dword [0x1402c8700], edi
mov rax, qword [rcx + 0x18]
mov rdx, qword [rcx + 0x30]
test rax, rax
cmovne rbp, rax
mov rcx, rbp
call fcn.1401914c0
mov edx, 0x80000000
lea ecx, [rax + rdx]
test edx, ecx
jne 0x140174445
cmp eax, 0xc0000510
je 0x140174445
nop word [rax + rax]
cmp byte [rsi + 0x38], dil
jne 0x14017446e
cmp byte [rsi + 0x39], dil
jne 0x14017446e
mov qword [rsp + 0x138], rbx
lfence
mov rax, qword [rsi + 8]
lea rbx, [0x1402332cc]
test rax, rax
je 0x140174215
mov r8, qword [rax + 8]
jmp 0x140174218
mov r8, rbx
mov edx, 0x10
lea rcx, [rsp + 0x50]
call sym.SystemInformer.exe_QiOpenService
test eax, eax
js 0x140174265
mov rcx, qword [rsp + 0x50]
call fcn.140172540
mov rcx, qword ds:[rsp + 0x50]
mov edi, eax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test edi, edi
js 0x14017443b
lfence
mov rdx, qword [rsi + 0x30]
mov rcx, rbp
call fcn.1401914c0
mov edi, eax
jmp 0x14017443b
mov rax, qword [rsi]
test rax, rax
je 0x140174273
mov rcx, qword [rax + 8]
jmp 0x140174276
mov rcx, rbx
call sym.SystemInformer.exe_QiDoesFileExistWin32
test al, al
jne 0x140174289
mov edi, 0xc000000f
jmp 0x14017443b
mov rax, qword [rsi + 0x10]
test rax, rax
je 0x140174298
mov rdx, qword [rax + 8]
jmp 0x14017429b
mov rdx, rbx
mov rax, qword ds:[rsi]
test rax, rax
je 0x1401742ab
mov rcx, qword [rax + 8]
jmp 0x1401742ae
mov rcx, rbx
mov rax, qword [rsi + 8]
test rax, rax
je 0x1401742c2
mov r8, qword ds:[rax + 8]
mov rbx, r8
jmp 0x1401742c5
mov r8, rbx
mov qword [rsp + 0x48], rdi
mov r9d, 0xf01ff
mov qword [rsp + 0x40], rdx
mov rdx, rbx
mov qword [rsp + 0x38], rcx
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 1
call fcn.140172040
mov edi, eax
test eax, eax
js 0x14017443b
call fcn.140185b00
mov edx, 1
lea rcx, [rsp + 0x60]
mov rdi, rax
movzx ebx, byte [rax + 1]
call qword [sym.imp.ntdll.dll_RtlCreateSecurityDescriptor]
lea edx, ds:[rbx*4 + 0x4c]
mov r8d, 2
lea rcx, [rsp + 0x88]
call qword [sym.imp.ntdll.dll_RtlCreateAcl]
lea r9, [0x140241ee0]
mov edx, 2
mov r8d, 0xf01ff
lea rcx, [rsp + 0x88]
call qword [sym.imp.ntdll.dll_RtlAddAccessAllowedAce]
mov r9, rdi
lea rcx, [rsp + 0x88]
mov edx, 2
mov r8d, 0xf01ff
call qword [sym.imp.ntdll.dll_RtlAddAccessAllowedAce]
lea r9, [0x140241ea0]
mov edx, 2
mov r8d, 0x100b5
lea rcx, [rsp + 0x88]
call qword [sym.imp.ntdll.dll_RtlAddAccessAllowedAce]
xor r9d, r9d
lea r8, [rsp + 0x88]
mov dl, 1
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntdll.dll_RtlSetDaclSecurityDescriptor]
mov rbx, qword [rsp + 0x50]
lea r8, [rsp + 0x60]
mov rcx, rbx
mov edx, 4
call qword [sym.imp.ADVAPI32.dll_SetServiceObjectSecurity]
test eax, eax
jne 0x1401743e6
nop word [rax + rax]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rsi
call fcn.1401744a0
mov edi, eax
test eax, eax
js 0x14017441a
mov rcx, rbx
call fcn.140172540
mov edi, eax
test eax, eax
js 0x14017441a
lfence
mov rdx, qword [rsi + 0x30]
mov rcx, rbp
call fcn.1401914c0
mov rbx, qword [rsp + 0x50]
mov edi, eax
test rbx, rbx
je 0x14017443b
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x140174432
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rbx, qword [rsp + 0x138]
mov eax, edi
mov rbp, qword [rsp + 0x140]
mov rdi, qword [rsp + 0x148]
mov rcx, qword [rsp + 0x110]
xor rcx, rsp
call fcn.1401e0100
add rsp, 0x120
pop rsi
ret
lfence
mov dl, 1
mov rcx, rsi
call fcn.140174840
test eax, eax
js 0x140174445
lfence
mov rdx, qword [rsi + 0x30]
mov rcx, rbp
call fcn.1401914c0
jmp 0x140174445
mov ecx, 0x80000002
call qword [sym.imp.ntdll.dll_RtlRaiseStatus]
int3