Function at 0x100067b6c
Capabilities:
Delete service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
mov eax, 0x1050
call fcn.10014f340
sub rsp, rax
mov rax, qword [0x100165138]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov esi, 0xf003f
xor edx, edx
xor ecx, ecx
mov r8d, esi
xor edi, edi
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
lea r12d, [rdi + 1]
mov rbx, rax
test rax, rax
je 0x100067e6f
lea r13, [0x1001667c8]
mov r8d, r12d
mov rcx, rax
mov rdx, r13
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
test rax, rax
je 0x100067bea
mov rcx, rax
mov edi, r12d
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test edi, edi
je 0x100067e6f
mov r8d, esi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rsi, rax
test rax, rax
jne 0x100067c96
mov edi, 0x400
lea rdx, [rsp + 0x40]
mov ecx, 0xd80a
mov r8d, edi
call fcn.1000680d4
test eax, eax
jne 0x100067c7c
lea r8, [0x1000075b0]
lea rcx, [rsp + 0x40]
mov rdx, rdi
call sub.msvcrt.dll_wcscpy_s
test eax, eax
je 0x100067c7c
cmp eax, 0xc
je 0x100067c71
cmp eax, 0x16
je 0x100067c66
cmp eax, 0x22
je 0x100067c66
cmp eax, 0x50
je 0x100067c7c
mov ecx, 0x80004005
call fcn.1000196c8
int3
mov ecx, 0x80070057
call fcn.1000196c8
int3
mov ecx, 0x8007000e
call fcn.1000196c8
int3
lea rdx, [rsp + 0x40]
mov r8, r13
xor r9d, r9d
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
jmp 0x100067e72
mov r8d, 0x10020
mov rdx, r13
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbp, rax
test rax, rax
jne 0x100067d25
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, 0x400
lea rdx, [rsp + 0x40]
mov r8d, edi
mov ecx, 0xd80c
call fcn.1000680d4
test eax, eax
jne 0x100067c7c
lea r8, [0x100007630]
lea rcx, [rsp + 0x40]
mov rdx, rdi
call sub.msvcrt.dll_wcscpy_s
test eax, eax
je 0x100067c7c
cmp eax, 0xc
je 0x100067d1a
cmp eax, 0x16
je 0x100067d0f
cmp eax, 0x22
je 0x100067d0f
cmp eax, 0x50
je 0x100067c7c
mov ecx, 0x80004005
call fcn.1000196c8
int3
mov ecx, 0x80070057
call fcn.1000196c8
int3
mov ecx, 0x8007000e
call fcn.1000196c8
int3
lea r8, [rsp + 0x20]
mov edx, r12d
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ControlService]
mov edi, 0x400
test eax, eax
jne 0x100067dd8
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x426
je 0x100067dd8
cmp eax, 0x425
jne 0x100067d62
cmp dword [rsp + 0x24], 3
je 0x100067dd8
lea rdx, [rsp + 0x40]
mov r8d, edi
mov ecx, 0xd80e
call fcn.1000680d4
test eax, eax
jne 0x100067dc5
lea r8, [0x100007660]
lea rcx, [rsp + 0x40]
mov rdx, rdi
call sub.msvcrt.dll_wcscpy_s
test eax, eax
je 0x100067dc5
cmp eax, 0xc
je 0x100067dba
cmp eax, 0x16
je 0x100067daf
cmp eax, 0x22
je 0x100067daf
cmp eax, 0x50
je 0x100067dc5
mov ecx, 0x80004005
call fcn.1000196c8
int3
mov ecx, 0x80070057
call fcn.1000196c8
int3
mov ecx, 0x8007000e
call fcn.1000196c8
int3
lea rdx, [rsp + 0x40]
xor r9d, r9d
mov r8, r13
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov rcx, rbp
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test ebx, ebx
jne 0x100067e6f
lea rdx, [rsp + 0x840]
mov r8d, edi
mov ecx, 0xd80d
call fcn.1000680d4
test eax, eax
jne 0x100067e62
lea r8, [0x100007690]
lea rcx, [rsp + 0x840]
mov rdx, rdi
call sub.msvcrt.dll_wcscpy_s
test eax, eax
je 0x100067e62
cmp eax, 0xc
je 0x100067e57
cmp eax, 0x16
je 0x100067e4c
cmp eax, 0x22
je 0x100067e4c
cmp eax, 0x50
je 0x100067e62
mov ecx, 0x80004005
call fcn.1000196c8
int3
mov ecx, 0x80070057
call fcn.1000196c8
int3
mov ecx, 0x8007000e
call fcn.1000196c8
int3
lea rdx, [rsp + 0x840]
jmp 0x100067c81
mov eax, r12d
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.10014e600
lea r11, [rsp + 0x1050]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r13
pop r12
pop rdi
ret