Function at 0x1400ec4e0
Capabilities:
Start service

Disassembly:
push rbp
sub rsp, 0xa0
mov rax, qword [0x1402c0040]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rbp, rcx
mov rcx, qword [rcx + 0x58]
call fcn.1400ec2a0
test eax, eax
jns 0x1400ec511
lfence
jmp 0x1400ec848
mov qword [rsp + 0xb8], rbx
call sym.SystemInformer.exe_PhGetApplicationFileNameWin32
mov rbx, rax
test rax, rax
jne 0x1400ec530
mov eax, 0xc0000229
jmp 0x1400ec840
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 0x1400ec56d
mov rax, qword [rax + 8]
jmp 0x1400ec570
mov rax, r8
mov rdx, qword [rbp + 0x48]
lea rcx, [0x140239898]
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.1401753c0
mov esi, 0xffffffff
lea rcx, [rdi - 0x10]
mov edx, esi
mov r14d, eax
lock xadd dword [rcx + 8], edx
cmp edx, 1
jne 0x1400ec5d6
call fcn.140142200
lea rcx, [rbx - 0x10]
mov eax, esi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1400ec5eb
call fcn.140142200
test r14d, r14d
jns 0x1400ec5fb
lfence
mov eax, r14d
jmp 0x1400ec828
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 0x1400ec639
cmp dword [0x1402c0f40], 0xffffffff
jb 0x1400ec639
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rbx
call fcn.140175a00
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 0x1400ec687
movdqu xmm0, xmmword [rdx]
pcmpeqw xmm0, xmm1
pmovmskb eax, xmm0
shr eax, cl
bsf ecx, eax
mov dword [rsp + 0x50], ecx
je 0x1400ec683
mov edx, ecx
shr rdx, 1
jmp 0x1400ec6c8
add rdx, 0x10
movdqu xmm0, xmmword [rdx]
pcmpeqw xmm0, xmm1
pmovmskb eax, xmm0
bsf ecx, eax
mov dword [rsp + 0x50], ecx
jne 0x1400ec6ba
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 0x1400ec6a0
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 0x1400ec6fd
movdqu xmm0, xmmword [rdi]
pcmpeqw xmm0, xmm1
pmovmskb eax, xmm0
shr eax, cl
bsf ecx, eax
mov dword [rsp + 0x50], ecx
je 0x1400ec6f9
mov edi, ecx
shr rdi, 1
jmp 0x1400ec73a
add rdi, 0x10
movdqu xmm0, xmmword [rdi]
pcmpeqw xmm0, xmm1
pmovmskb eax, xmm0
bsf ecx, eax
mov dword [rsp + 0x50], ecx
jne 0x1400ec72c
movdqu xmm0, xmmword [rdi + 0x10]
add rdi, 0x10
pcmpeqw xmm0, xmm1
pmovmskb eax, xmm0
bsf ecx, eax
mov dword [rsp + 0x50], ecx
je 0x1400ec712
sub rdi, r15
mov eax, ecx
sar rdi, 1
shr rax, 1
add rdi, rax
mov rdx, qword [0x1402cb8c0]
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.14020be40
mov rcx, qword [r14 + 8]
mov r8, rdi
add rcx, r12
mov rdx, r15
call fcn.14020be40
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.1400a2e40
mov ebx, eax
test eax, eax
jns 0x1400ec7ea
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x50], 0xfffffffffff0bdc0
call fcn.140141060
add edi, 0xffffffff
jne 0x1400ec7c2
lea rcx, [r14 - 0x10]
lock xadd dword [rcx + 8], esi
cmp esi, 1
jne 0x1400ec7fd
call fcn.140142200
nop dword [rax]
test ebx, ebx
js 0x1400ec818
mov rdx, rbp
mov ecx, 0xc
call fcn.1400a31c0
mov ebx, eax
call fcn.1400a3020
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.1401e5e20
add rsp, 0xa0
pop rbp
ret