Function at 0x1400ec5c0
Capabilities:
Start service

Disassembly:
push rbp
sub rsp, 0xa0
mov rax, qword [0x1402bf040]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rbp, rcx
mov rcx, qword [rcx + 0x58]
call fcn.1400ec380
test eax, eax
jns 0x1400ec5f1
lfence
jmp 0x1400ec928
mov qword [rsp + 0xb8], rbx
call sym.SystemInformer.exe_PhGetApplicationFileNameWin32
mov rbx, rax
test rax, rax
jne 0x1400ec610
mov eax, 0xc0000229
jmp 0x1400ec920
mov r8, qword [rbp + 0x48]
lea rcx, str.__s___ras___s_
mov rdx, qword [rax + 8]
mov qword [rsp + 0xc0], rsi
mov qword [rsp + 0xc8], rdi
mov qword [rsp + 0x88], r14
call sym.SystemInformer.exe_PhFormatString
xor r8d, r8d
mov rdi, rax
test rax, rax
je 0x1400ec64d
mov rax, qword [rax + 8]
jmp 0x1400ec650
mov rax, r8
mov rdx, qword [rbp + 0x48]
lea rcx, [0x1402386c8]
mov qword [rsp + 0x48], rcx
mov r9d, 0xf01ff
lea rcx, str.LocalSystem
mov qword [rsp + 0x40], rcx
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], r8d
mov r8, rdx
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 0x10
call fcn.140173ec0
mov esi, 0xffffffff
lea rcx, [rdi - 0x10]
mov edx, esi
mov r14d, eax
lock xadd dword [rcx + 8], edx
cmp edx, 1
jne 0x1400ec6b6
call fcn.140141ca0
lea rcx, [rbx - 0x10]
mov eax, esi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1400ec6cb
call fcn.140141ca0
test r14d, r14d
jns 0x1400ec6db
lfence
mov eax, r14d
jmp 0x1400ec908
mov rbx, qword [rsp + 0x58]
xor r8d, r8d
mov qword [rsp + 0x98], r12
mov rcx, rbx
mov qword [rsp + 0x90], r13
xor edx, edx
mov qword [rsp + 0x80], r15
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x1400ec719
cmp dword [0x1402bff40], 0xffffffff
jb 0x1400ec719
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rbx
call fcn.140174500
mov r15, qword ss:[rbp + 0x48]
lea r13, str.BaseNamedObjects_
mov rdx, r13
mov rcx, r13
and rdx, 0xfffffffffffffff1
xorps xmm1, xmm1
and ecx, 0xf
je 0x1400ec767
movdqu xmm0, xmmword [rdx]
pcmpeqw xmm0, xmm1
pmovmskb eax, xmm0
shr eax, cl
bsf ecx, eax
mov dword [rsp + 0x50], ecx
je 0x1400ec763
mov edx, ecx
shr rdx, 1
jmp 0x1400ec7a8
add rdx, 0x10
movdqu xmm0, xmmword [rdx]
pcmpeqw xmm0, xmm1
pmovmskb eax, xmm0
bsf ecx, eax
mov dword [rsp + 0x50], ecx
jne 0x1400ec79a
nop dword [rax]
movdqu xmm0, xmmword [rdx + 0x10]
add rdx, 0x10
pcmpeqw xmm0, xmm1
pmovmskb eax, xmm0
bsf ecx, eax
mov dword [rsp + 0x50], ecx
je 0x1400ec780
sub rdx, r13
mov eax, ecx
sar rdx, 1
shr rax, 1
add rdx, rax
mov rdi, r15
lea r12, [rdx + rdx]
and rdi, 0xfffffffffffffff1
mov ecx, r15d
and ecx, 0xf
je 0x1400ec7dd
movdqu xmm0, xmmword [rdi]
pcmpeqw xmm0, xmm1
pmovmskb eax, xmm0
shr eax, cl
bsf ecx, eax
mov dword [rsp + 0x50], ecx
je 0x1400ec7d9
mov edi, ecx
shr rdi, 1
jmp 0x1400ec81a
add rdi, 0x10
movdqu xmm0, xmmword [rdi]
pcmpeqw xmm0, xmm1
pmovmskb eax, xmm0
bsf ecx, eax
mov dword [rsp + 0x50], ecx
jne 0x1400ec80c
movdqu xmm0, xmmword [rdi + 0x10]
add rdi, 0x10
pcmpeqw xmm0, xmm1
pmovmskb eax, xmm0
bsf ecx, eax
mov dword [rsp + 0x50], ecx
je 0x1400ec7f2
sub rdi, r15
mov eax, ecx
sar rdi, 1
shr rax, 1
add rdi, rax
mov rdx, qword [0x1402ca978]
add rdi, rdi
lea rbx, [rdi + r12]
lea rcx, [rbx + 0x12]
call sym.SystemInformer.exe_PhCreateObject
mov r14, rax
mov r8, r12
mov rdx, r13
lea rcx, [rax + 0x10]
mov qword [rax], rbx
mov qword [rax + 8], rcx
xor eax, eax
mov word [rcx + rbx], ax
mov rcx, qword [r14 + 8]
call fcn.14020a640
mov rcx, qword [r14 + 8]
mov r8, rdi
add rcx, r12
mov rdx, r15
call fcn.14020a640
movzx eax, word [r14]
mov edi, 0x32
mov r15, qword [rsp + 0x80]
mov r13, qword [rsp + 0x90]
mov r12, qword [rsp + 0x98]
mov word [rsp + 0x60], ax
movzx eax, word [r14]
add ax, 2
mov word [rsp + 0x62], ax
mov rax, qword [r14 + 8]
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x60]
call fcn.1400a2fe0
mov ebx, eax
test eax, eax
jns 0x1400ec8ca
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x50], 0xfffffffffff0bdc0
call fcn.140140b00
add edi, 0xffffffff
jne 0x1400ec8a2
lea rcx, [r14 - 0x10]
lock xadd dword [rcx + 8], esi
cmp esi, 1
jne 0x1400ec8dd
call fcn.140141ca0
nop dword [rax]
test ebx, ebx
js 0x1400ec8f8
mov rdx, rbp
mov ecx, 0xc
call fcn.1400a3360
mov ebx, eax
call fcn.1400a31c0
mov rcx, qword ds:[rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, ebx
mov rdi, qword [rsp + 0xc8]
mov rsi, qword [rsp + 0xc0]
mov r14, qword [rsp + 0x88]
mov rbx, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1401e4160
add rsp, 0xa0
pop rbp
ret