Function at 0x14006e6e0
Capabilities:
Modify service
Query service status
Start service

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push rbp
push r13
push r15
lea rbp, [rax - 0x2028]
mov eax, 0x2110
call fcn.1400ad950
sub rsp, rax
mov rax, qword [0x1400e6870]
xor rax, rsp
mov qword [rbp + 0x2000], rax
cmp dword [0x1400df280], 5
lea r13, str.TimeServiceAssessment
movabs r12, 0x400000000000
jbe 0x14006e775
test qword [0x1400df290], r12
je 0x14006e775
mov rax, qword [0x1400df298]
and rax, r12
cmp rax, qword [0x1400df298]
jne 0x14006e775
lea rax, [rsp + 0x68]
mov qword [rsp + 0x68], r13
lea rdx, [0x1400d219d]
mov qword [rsp + 0x20], rax
lea rcx, [0x1400df280]
call fcn.1400019e0
and qword [rsp + 0x68], 0
lea rcx, [rsp + 0x68]
call fcn.14001bb58
mov ebx, eax
test eax, eax
jns 0x14006e7c9
mov rcx, qword [0x1400df278]
lea rax, [0x1400df278]
cmp rcx, rax
je 0x14006e8d5
test byte [rcx + 0x1c], 1
je 0x14006e8d5
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400be6f0]
mov edx, 0x1c
mov r9d, ebx
call fcn.14000a9b0
jmp 0x14006e8d5
and qword [rsp + 0x70], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
nop dword [rax + rax]
xor r8d, r8d
lea r9, [rsp + 0x70]
mov rcx, rax
lea edx, [r8 + 8]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_OpenThreadToken]
nop dword [rax + rax]
mov r15d, 0x80070000
test eax, eax
jne 0x14006e843
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, r15d
test eax, eax
cmovle ebx, eax
test ebx, ebx
jns 0x14006e843
mov rcx, qword [0x1400df278]
lea rax, [0x1400df278]
cmp rcx, rax
je 0x14006e8bf
test byte [rcx + 0x1c], 1
je 0x14006e8bf
mov edx, 0x1d
jmp 0x14006e8ac
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x60]
call fcn.1400a7210
mov ebx, eax
test eax, eax
jns 0x14006e878
mov rcx, qword [0x1400df278]
lea rax, [0x1400df278]
cmp rcx, rax
je 0x14006e8bf
test byte [rcx + 0x1c], 1
je 0x14006e8bf
mov edx, 0x1e
jmp 0x14006e8ac
mov cl, byte [rsp + 0x60]
mov al, cl
neg al
sbb ebx, ebx
not ebx
and ebx, 0x80070005
test cl, cl
jne 0x14006e900
mov rcx, qword [0x1400df278]
lea rax, [0x1400df278]
cmp rcx, rax
je 0x14006e8bf
test byte [rcx + 0x1c], 1
je 0x14006e8bf
mov edx, 0x1f
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400be6f0]
mov r9d, ebx
call fcn.14000a9b0
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x14006e8d5
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14006e8f9
mov rdx, qword [rcx]
movsxd rdx, dword [rdx + 4]
add rdx, rcx
mov rcx, qword [rdx]
mov rax, qword [rcx + 8]
mov rcx, rdx
call qword [case.0x1400ad4ce.0]
mov eax, ebx
jmp 0x14006ede5
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x14006e916
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov rax, qword [rsp + 0x68]
test rax, rax
je 0x14006e937
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1400ad4ce.0]
mov r8d, 5
lea rdx, str.ServicesActive
xor ecx, ecx
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenSCManagerW]
nop dword [rax + rax]
mov qword [rbp - 0x80], rax
mov rdi, rax
test rax, rax
jne 0x14006e9b5
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx esi, ax
or esi, r15d
test eax, eax
cmovle esi, eax
test esi, esi
jns 0x14006e9b5
mov rcx, qword [0x1400df278]
lea rax, [0x1400df278]
cmp rcx, rax
je 0x14006edcf
test byte [rcx + 0x1c], 1
je 0x14006edcf
mov rcx, qword [rcx + 0x10]
lea edx, [rdi + 0x20]
mov r9d, esi
lea r8, [0x1400be6f0]
call fcn.14000a9b0
jmp 0x14006edcf
mov r8d, SafeArrayPutElement
lea rdx, str.w32time
mov rcx, rdi
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenServiceW]
nop dword [rax + rax]
mov qword [rbp - 0x78], rax
mov rbx, rax
test rax, rax
jne 0x14006ea21
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx esi, ax
or esi, r15d
test eax, eax
cmovle esi, eax
test esi, esi
jns 0x14006ea21
mov rcx, qword [0x1400df278]
lea rax, [0x1400df278]
cmp rcx, rax
je 0x14006edbb
test byte [rcx + 0x1c], 1
je 0x14006edbb
lea edx, [rbx + 0x21]
jmp 0x14006ed4f
mov esi, 0x2000
lea rcx, [rbp]
mov r8d, esi
xor edx, edx
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
and dword [rsp + 0x78], 0
lea r9, [rsp + 0x78]
mov r8d, esi
lea rdx, [rbp]
mov rcx, rbx
call qword [sym.imp.api_ms_win_service_management_l2_1_0.dll_QueryServiceConfigW]
nop dword [rax + rax]
test eax, eax
jne 0x14006ea9e
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx esi, ax
or esi, r15d
test eax, eax
cmovle esi, eax
test esi, esi
jns 0x14006ea9e
mov rcx, qword [0x1400df278]
lea rax, [0x1400df278]
cmp rcx, rax
je 0x14006edbb
test byte [rcx + 0x1c], 1
je 0x14006edbb
mov edx, 0x22
jmp 0x14006ed4f
cmp dword [rbp + 4], 4
jne 0x14006eb37
and qword [rsp + 0x50], 0
or edx, 0xffffffff
and qword [rsp + 0x48], 0
mov r9d, edx
and qword [rsp + 0x40], 0
mov r8d, 3
and qword [rsp + 0x38], 0
mov rcx, rbx
and qword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
call qword [sym.imp.api_ms_win_service_management_l2_1_0.dll_ChangeServiceConfigW]
nop dword [rax + rax]
test eax, eax
jne 0x14006eb37
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx esi, ax
or esi, r15d
test eax, eax
cmovle esi, eax
test esi, esi
jns 0x14006eb37
mov rcx, qword [0x1400df278]
lea rax, [0x1400df278]
cmp rcx, rax
je 0x14006edbb
test byte [rcx + 0x1c], 1
je 0x14006edbb
mov edx, 0x23
jmp 0x14006ed4f
xor eax, eax
lea rdx, [rbp - 0x20]
xorps xmm0, xmm0
mov qword [rbp - 0x10], rax
mov rcx, rbx
mov dword [rbp - 8], eax
movups xmmword [rbp - 0x20], xmm0
call qword [sym.imp.api_ms_win_service_winsvc_l1_1_0.dll_QueryServiceStatus]
nop dword [rax + rax]
test eax, eax
je 0x14006ebf5
xor esi, esi
mov eax, dword [rbp - 0x1c]
add eax, 0xfffffffe
test eax, 0xfffffffd
je 0x14006ed64
xor edx, edx
lea rcx, [rbp - 0x70]
lea r8d, [rdx + 0x50]
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
and qword [rbp - 0x60], 0
lea rax, [method.wistd::__function::__func_class__lambda_8db0ce862824541f40dfb767113f1e28___bool____cdecl___void____ptr64__unsigned_long_long_unsigned___int64___void____ptr64__unsigned_long_long_unsigned___int64___unsigned_int__.virtual_24]
lea r8, [rbp - 0x70]
mov qword [rbp - 0x68], rax
mov edx, 8
mov dword [rbp - 0x70], 2
mov rcx, rbx
call qword [sym.imp.api_ms_win_service_management_l2_1_0.dll_NotifyServiceStatusChangeW]
nop dword [rax + rax]
test eax, eax
je 0x14006ec3f
movzx esi, ax
or esi, r15d
test eax, eax
cmovle esi, eax
test esi, esi
jns 0x14006ec3f
mov rcx, qword [0x1400df278]
lea rax, [0x1400df278]
cmp rcx, rax
je 0x14006edbb
test byte [rcx + 0x1c], 1
je 0x14006edbb
mov edx, 0x25
jmp 0x14006ed4f
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx esi, ax
or esi, r15d
test eax, eax
cmovle esi, eax
test esi, esi
jns 0x14006eb64
mov rcx, qword [0x1400df278]
lea rax, [0x1400df278]
cmp rcx, rax
je 0x14006edbb
test byte [rcx + 0x1c], 1
je 0x14006edbb
mov edx, 0x24
jmp 0x14006ed4f
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_StartServiceW]
nop dword [rax + rax]
test eax, eax
jne 0x14006ec9d
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx esi, ax
or esi, r15d
test eax, eax
cmovle esi, eax
test esi, esi
jns 0x14006ec9d
mov rcx, qword [0x1400df278]
lea rax, [0x1400df278]
cmp rcx, rax
je 0x14006edbb
test byte [rcx + 0x1c], 1
je 0x14006edbb
mov edx, 0x26
jmp 0x14006ed4f
mov edx, 1
mov ecx, 0x1388
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SleepEx]
nop dword [rax + rax]
test eax, eax
jne 0x14006ece4
mov esi, 0x800705b4
mov rcx, qword [0x1400df278]
lea rax, [0x1400df278]
cmp rcx, rax
je 0x14006edbb
test byte [rcx + 0x1c], 1
je 0x14006edbb
mov edx, 0x27
jmp 0x14006ed4f
mov ecx, dword [rbp - 0x58]
mov edx, 0x80004005
mov eax, ecx
neg eax
sbb esi, esi
and esi, edx
test ecx, ecx
je 0x14006ed20
mov rcx, qword [0x1400df278]
lea rax, [0x1400df278]
cmp rcx, rax
je 0x14006edbb
test byte [rcx + 0x1c], 1
je 0x14006edbb
mov edx, 0x28
jmp 0x14006ed4f
mov ecx, dword [rbp - 0x50]
lea eax, [rcx - 4]
neg eax
sbb esi, esi
and esi, edx
cmp ecx, 4
je 0x14006ed64
mov rcx, qword [0x1400df278]
lea rax, [0x1400df278]
cmp rcx, rax
je 0x14006edbb
test byte [rcx + 0x1c], 1
je 0x14006edbb
mov edx, 0x29
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400be6f0]
mov r9d, esi
call fcn.14000a9b0
jmp 0x14006edbb
cmp dword [0x1400df280], 5
jbe 0x14006edb9
test qword [0x1400df290], r12
je 0x14006edb9
mov rax, qword [0x1400df298]
and rax, r12
cmp rax, qword [0x1400df298]
jne 0x14006edb9
lea rax, [rsp + 0x70]
mov dword [rsp + 0x70], esi
mov qword [rsp + 0x28], rax
lea rdx, [0x1400d215b]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x68], r13
lea rcx, [0x1400df280]
mov qword [rsp + 0x20], rax
call fcn.1400023e4
xor esi, esi
test rbx, rbx
je 0x14006edcf
mov rcx, rbx
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
nop dword [rax + rax]
test rdi, rdi
je 0x14006ede3
mov rcx, rdi
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
nop dword [rax + rax]
mov eax, esi
mov rcx, qword [rbp + 0x2000]
xor rcx, rsp
call fcn.1400abb00
lea r11, [rsp + 0x2110]
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 r13
pop rbp
ret