Function at 0x1400ec580
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.1400ec340
test eax, eax
jns 0x1400ec5b1
lfence
jmp 0x1400ec8e8
mov qword [rsp + 0xb8], rbx
call sym.SystemInformer.exe_PhGetApplicationFileNameWin32
mov rbx, rax
test rax, rax
jne 0x1400ec5d0
mov eax, 0xc0000229
jmp 0x1400ec8e0
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 0x1400ec60d
mov rax, qword [rax + 8]
jmp 0x1400ec610
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.140174740
mov esi, 0xffffffff
lea rcx, [rdi - 0x10]
mov edx, esi
mov r14d, eax
lock xadd dword [rcx + 8], edx
cmp edx, 1
jne 0x1400ec676
call fcn.140141ea0
lea rcx, [rbx - 0x10]
mov eax, esi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1400ec68b
call fcn.140141ea0
test r14d, r14d
jns 0x1400ec69b
lfence
mov eax, r14d
jmp 0x1400ec8c8
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 0x1400ec6d9
cmp dword [0x1402bff40], 0xffffffff
jb 0x1400ec6d9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rbx
call fcn.140174d80
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 0x1400ec727
movdqu xmm0, xmmword [rdx]
pcmpeqw xmm0, xmm1
pmovmskb eax, xmm0
shr eax, cl
bsf ecx, eax
mov dword [rsp + 0x50], ecx
je 0x1400ec723
mov edx, ecx
shr rdx, 1
jmp 0x1400ec768
add rdx, 0x10
movdqu xmm0, xmmword [rdx]
pcmpeqw xmm0, xmm1
pmovmskb eax, xmm0
bsf ecx, eax
mov dword [rsp + 0x50], ecx
jne 0x1400ec75a
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 0x1400ec740
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 0x1400ec79d
movdqu xmm0, xmmword [rdi]
pcmpeqw xmm0, xmm1
pmovmskb eax, xmm0
shr eax, cl
bsf ecx, eax
mov dword [rsp + 0x50], ecx
je 0x1400ec799
mov edi, ecx
shr rdi, 1
jmp 0x1400ec7da
add rdi, 0x10
movdqu xmm0, xmmword [rdi]
pcmpeqw xmm0, xmm1
pmovmskb eax, xmm0
bsf ecx, eax
mov dword [rsp + 0x50], ecx
jne 0x1400ec7cc
movdqu xmm0, xmmword [rdi + 0x10]
add rdi, 0x10
pcmpeqw xmm0, xmm1
pmovmskb eax, xmm0
bsf ecx, eax
mov dword [rsp + 0x50], ecx
je 0x1400ec7b2
sub rdi, r15
mov eax, ecx
sar rdi, 1
shr rax, 1
add rdi, rax
mov rdx, qword [0x1402ca998]
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.14020af00
mov rcx, qword [r14 + 8]
mov r8, rdi
add rcx, r12
mov rdx, r15
call fcn.14020af00
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.1400a3000
mov ebx, eax
test eax, eax
jns 0x1400ec88a
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x50], 0xfffffffffff0bdc0
call fcn.140140d00
add edi, 0xffffffff
jne 0x1400ec862
lea rcx, [r14 - 0x10]
lock xadd dword [rcx + 8], esi
cmp esi, 1
jne 0x1400ec89d
call fcn.140141ea0
nop dword [rax]
test ebx, ebx
js 0x1400ec8b8
mov rdx, rbp
mov ecx, 0xc
call fcn.1400a3380
mov ebx, eax
call fcn.1400a31e0
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.1401e4a20
add rsp, 0xa0
pop rbp
ret