Function at 0x140010420
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 0x140010605
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140010605
mov eax, dword [rbp + 0x6f]
lea edi, [rax + 0x40]
mov edx, eax
test eax, eax
je 0x1400104c7
lfence
lea r8, [rbp + 0x67]
lea rcx, [rbp - 0x19]
call fcn.140010f30
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 0x140010609
movzx edx, byte [rsi + 0x299]
movzx ecx, byte [rsi + 0x298]
call fcn.14001a3d0
mov rsi, rax
test rax, rax
je 0x140010516
mov rcx, rax
call fcn.14001a900
test al, al
jne 0x140010516
mov rcx, rsi
call fcn.14001b0b0
cmp dword [rdi + 4], 2
je 0x140010565
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], rbx
lea rax, [0x1400382f0]
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 0x140010609
lea rcx, [rbp - 0x29]
call fcn.140003630
mov qword [rbp + 0x27], rbx
mov dword [rbp + 0x1b], 1
mov dword [rbp + 0x17], 1
lea rax, [0x1400382e0]
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 0x1400105c0
mov ebx, r12d
test rsi, rsi
je 0x14001060c
mov edi, 0xffffffff
mov eax, edi
lock xadd dword [rsi + 8], eax
cmp eax, 1
jne 0x1400105ff
mov rax, qword [rsi]
mov rcx, rsi
mov rax, qword [rax]
call qword [0x140037608]
lock xadd dword [rsi + 0xc], edi
cmp edi, 1
jne 0x1400105ff
mov rax, qword [rsi]
mov rcx, rsi
mov rax, qword [rax + 8]
call qword [0x140037608]
mov rdi, qword [rbp - 0x19]
jmp 0x14001060c
mov rdi, qword [rbp - 0x19]
mov ebx, r12d
test r14, r14
je 0x140010620
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
cmove ebx, r12d
test r15, r15
je 0x140010634
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
cmove ebx, r12d
test rdi, rdi
je 0x14001066d
mov rdx, qword [rbp - 9]
sub rdx, rdi
and rdx, 0xfffffffffffffffc
mov rax, rdi
cmp rdx, 0x1000
jb 0x140010665
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001068b
mov rcx, rdi
call fcn.14001fa4c
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.140026fa4
int3