Function at 0x14000f560
Capabilities:
Modify service

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xc0
mov rsi, rcx
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x19], xmm0
xor ebx, ebx
mov qword [rbp - 9], rbx
mov dword [rbp + 0x6f], ebx
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov r15, rax
lea rdx, [rsi + 0x68]
mov r8d, 0xf003f
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov r14, rax
lea r9, [rbp + 0x6f]
xor edx, edx
lea r8d, [rbx + 0x40]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
mov r12d, 0x80004005
test eax, eax
jne 0x14000f745
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14000f745
mov eax, dword [rbp + 0x6f]
lea edi, [rax + 0x40]
mov edx, eax
test eax, eax
je 0x14000f607
lfence
lea r8, [rbp + 0x67]
lea rcx, [rbp - 0x19]
call fcn.140010070
lea r9, [rbp + 0x6f]
mov r8d, edi
mov rdi, qword [rbp - 0x19]
mov rdx, rdi
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test rdi, rdi
je 0x14000f749
movzx edx, byte [rsi + 0x299]
movzx ecx, byte [rsi + 0x298]
call fcn.140019570
mov rsi, rax
test rax, rax
je 0x14000f656
mov rcx, rax
call fcn.140019aa0
test al, al
jne 0x14000f656
mov rcx, rsi
call fcn.14001a250
cmp dword [rdi + 4], 2
je 0x14000f6a5
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], rbx
lea rax, [0x140037548]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
mov edx, 0xffffffff
mov r9d, edx
mov r8d, 2
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
je 0x14000f749
lea rcx, [rbp - 0x29]
call fcn.140002d80
mov qword [rbp + 0x27], rbx
mov dword [rbp + 0x1b], 1
mov dword [rbp + 0x17], 1
lea rax, [0x140037538]
mov qword [rbp + 0x1f], rax
mov qword [rbp + 0x2f], rbx
mov qword [rbp - 1], 1
lea rax, [rbp + 0x17]
mov qword [rbp + 7], rax
mov qword [rbp + 0xf], rbx
lea r8, [rbp - 1]
mov edx, 8
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
mov rsi, qword [rbp - 0x21]
test eax, eax
jne 0x14000f700
mov ebx, r12d
test rsi, rsi
je 0x14000f74c
mov edi, 0xffffffff
mov eax, edi
lock xadd dword [rsi + 8], eax
cmp eax, 1
jne 0x14000f73f
mov rax, qword [rsi]
mov rcx, rsi
mov rax, qword [rax]
call qword [0x140036608]
lock xadd dword [rsi + 0xc], edi
cmp edi, 1
jne 0x14000f73f
mov rax, qword [rsi]
mov rcx, rsi
mov rax, qword [rax + 8]
call qword [0x140036608]
mov rdi, qword [rbp - 0x19]
jmp 0x14000f74c
mov rdi, qword [rbp - 0x19]
mov ebx, r12d
test r14, r14
je 0x14000f760
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
cmove ebx, r12d
test r15, r15
je 0x14000f774
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
cmove ebx, r12d
test rdi, rdi
je 0x14000f7ad
mov rdx, qword [rbp - 9]
sub rdx, rdi
and rdx, 0xfffffffffffffffc
mov rax, rdi
cmp rdx, 0x1000
jb 0x14000f7a5
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000f7cb
mov rcx, rdi
call fcn.14001ebec
mov eax, ebx
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
call fcn.140026134
int3