Function at 0x140054120
Capabilities:
Modify service

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xe0
mov rax, qword [0x140117280]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov r13, qword [rbp + 0x67]
mov qword [rbp - 0x49], r13
mov r8d, 1
lea rdx, str.ServicesActive
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
mov qword [rbp + 7], rax
test rax, rax
je 0x14005436e
mov rdx, r13
cmp qword [r13 + 0x18], 7
jbe 0x14005418f
mov rdx, qword [r13]
mov r8d, 2
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
mov qword [rbp + 0xf], rax
test rax, rax
je 0x140054397
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x11], xmm1
xor esi, esi
mov qword [rbp - 1], rsi
mov rax, qword [rbp + 0x6f]
mov r12, qword [rax + 8]
mov r15, qword [rax]
mov rdx, qword [rbp - 9]
cmp r15, r12
je 0x14005425b
xor r13d, r13d
mov word [rbp - 0x59], r13w
nop dword [rax]
mov rsi, qword [r15]
mov rax, qword [r15 + 8]
lea r14, [rsi + rax*2]
cmp rsi, r14
je 0x140054223
cmp rdx, qword [rbp - 1]
je 0x14005420a
movzx eax, word [rsi]
mov word [rdx], ax
mov rdx, qword [rbp - 9]
add rdx, 2
mov qword [rbp - 9], rdx
jmp 0x14005421a
mov r8, rsi
lea rcx, [rbp - 0x11]
call fcn.14002e4c0
mov rdx, qword [rbp - 9]
add rsi, 2
cmp rsi, r14
jne 0x1400541f0
cmp rdx, qword [rbp - 1]
je 0x14005423b
mov word [rdx], r13w
mov rdx, qword [rbp - 9]
add rdx, 2
mov qword [rbp - 9], rdx
jmp 0x14005424c
lea r8, [rbp - 0x59]
lea rcx, [rbp - 0x11]
call fcn.14002e4c0
mov rdx, qword [rbp - 9]
add r15, 0x10
cmp r15, r12
jne 0x1400541e0
mov r13, qword [rbp - 0x49]
xor esi, esi
cmp qword [rbp - 0x11], rdx
jne 0x14005428d
mov word [rbp - 0x59], si
cmp rdx, qword [rbp - 1]
je 0x14005427c
mov word [rdx], si
mov rdx, qword [rbp - 9]
add rdx, 2
mov qword [rbp - 9], rdx
jmp 0x14005428d
lea r8, [rbp - 0x59]
lea rcx, [rbp - 0x11]
call fcn.14002e4c0
mov rdx, qword [rbp - 9]
mov word [rbp - 0x59], si
cmp rdx, qword [rbp - 1]
je 0x1400542a1
mov word [rdx], si
add qword [rbp - 9], 2
jmp 0x1400542ae
lea r8, [rbp - 0x59]
lea rcx, [rbp - 0x11]
call fcn.14002e4c0
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], rsi
mov rax, qword [rbp - 0x11]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
mov edx, 0xffffffff
mov r9d, edx
mov r8d, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
je 0x140054331
lea rcx, [rbp - 0x11]
call fcn.14000ae00
nop
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.140081ef0
mov rbx, qword [rsp + 0x130]
add rsp, 0xe0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
lea rcx, str.Unable_to_change_config_of_the_service__
mov qword [rbp - 0x49], rcx
mov qword [rbp - 0x41], 0x2c
mov r9, r13
lea r8, [rbp - 0x49]
mov edx, eax
lea rcx, [rbp - 0x39]
call fcn.14002e730
lea rdx, [0x140114190]
lea rcx, [rbp - 0x39]
call fcn.140084768
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea r8, str.Unable_to_open_the_service_control_manager_
lea rcx, [rbp - 0x39]
call fcn.14006ebf0
lea rdx, [0x140114190]
lea rcx, [rbp - 0x39]
call fcn.140084768
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Unable_to_open_the_service__
mov qword [rbp - 0x49], rcx
mov qword [rbp - 0x41], 0x20
mov r9, r13
lea r8, [rbp - 0x49]
mov edx, eax
lea rcx, [rbp - 0x39]
call fcn.14002e730
lea rdx, [0x140114190]
lea rcx, [rbp - 0x39]
call fcn.140084768
int3