Function at 0x140082010
Capabilities:
Modify service

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0xe0]
sub rsp, 0x1e0
mov rax, qword [0x14049f3c0]
xor rax, rsp
mov qword [rbp + 0xd8], rax
mov edi, edx
mov rbx, rcx
xor esi, esi
mov dword [rsp + 0x60], esi
mov qword [rbp + 0x70], rsi
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov qword [rbp + 0x70], rax
test rax, rax
jne 0x1400821a1
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov edx, eax
lea rcx, [rbp + 8]
call fcn.140072e20
mov ebx, 1
mov dword [rsp + 0x60], ebx
lea r9d, [rsi + 0x2f]
lea r8, str.Could_not_open_Service_Control_Manager__Error:
xor edx, edx
lea rcx, [rbp + 8]
call fcn.140021030
xorps xmm0, xmm0
movups xmmword [rsp + 0x68], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x78], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x68], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x78], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], 7
mov word [rax], si
or ebx, 2
mov dword [rsp + 0x60], ebx
lea r8, [0x140424568]
lea rdx, [rsp + 0x68]
lea rcx, [rbp + 0x78]
call fcn.14001f710
nop
and ebx, 0xfffffffd
mov dword [rsp + 0x60], ebx
lea rcx, [rsp + 0x68]
call fcn.1400166f0
and ebx, 0xfffffffe
mov dword [rsp + 0x60], ebx
lea rcx, [rbp + 8]
call fcn.1400166f0
lea rcx, [rbp - 0x18]
call fcn.1400098d0
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 0xf
jbe 0x14008211c
mov rax, qword [rax]
mov rdx, rax
lea rcx, [0x1404b5d00]
call fcn.140035a10
mov rbx, rax
lea rdx, [rbp + 0x78]
lea rcx, [rbp - 0x38]
call fcn.1400a3bc0
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 0xf
jbe 0x14008214a
mov rax, qword [rax]
mov rdx, rax
mov rcx, rbx
call fcn.140035a10
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
mov dl, 0xa
call fcn.140035dd0
movzx edx, al
mov rcx, rbx
call fcn.140035860
mov rcx, rbx
call fcn.14002eff0
nop
lea rcx, [rbp - 0x38]
call fcn.140016400
nop
lea rcx, [rbp - 0x18]
call fcn.140016400
nop
lea rcx, [rbp + 0x78]
call fcn.1400166f0
xor bl, bl
jmp 0x140082499
mov qword [rbp + 0x68], rsi
cmp qword [rbx + 0x18], 7
jbe 0x1400821af
mov rbx, qword [rbx]
mov r8d, 3
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov qword [rbp + 0x68], rax
test rax, rax
jne 0x14008230e
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov edx, eax
lea rcx, [rbp + 0x28]
call fcn.140072e20
mov ebx, 8
mov dword [rsp + 0x60], ebx
lea r9d, [rbx + 0x17]
lea r8, str.Could_not_open_service__Error:
xor edx, edx
lea rcx, [rbp + 0x28]
call fcn.140021030
xorps xmm0, xmm0
movups xmmword [rbp - 0x78], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x68], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x78], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x68], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], 7
mov word [rax], si
or ebx, 0x10
mov dword [rsp + 0x60], ebx
lea r8, [0x140424568]
lea rdx, [rbp - 0x78]
lea rcx, [rbp + 0x98]
call fcn.14001f710
nop
and ebx, 0xffffffef
mov dword [rsp + 0x60], ebx
lea rcx, [rbp - 0x78]
call fcn.1400166f0
and ebx, 0xfffffff7
mov dword [rsp + 0x60], ebx
lea rcx, [rbp + 0x28]
call fcn.1400166f0
lea rcx, [rbp - 0x38]
call fcn.1400098d0
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 0xf
jbe 0x140082283
mov rax, qword [rax]
mov rdx, rax
lea rcx, [0x1404b5d00]
call fcn.140035a10
mov rbx, rax
lea rdx, [rbp + 0x98]
lea rcx, [rbp - 0x18]
call fcn.1400a3bc0
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 0xf
jbe 0x1400822b4
mov rax, qword [rax]
mov rdx, rax
mov rcx, rbx
call fcn.140035a10
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
mov dl, 0xa
call fcn.140035dd0
movzx edx, al
mov rcx, rbx
call fcn.140035860
mov rcx, rbx
call fcn.14002eff0
nop
lea rcx, [rbp - 0x18]
call fcn.140016400
nop
lea rcx, [rbp - 0x38]
call fcn.140016400
nop
lea rcx, [rbp + 0x98]
call fcn.1400166f0
xor bl, bl
jmp 0x14008248f
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
mov r9d, 0xffffffff
mov r8d, edi
mov edx, r9d
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
test eax, eax
jne 0x14008248d
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov edx, eax
lea rcx, [rbp + 0x48]
call fcn.140072e20
mov ebx, 0x40
mov dword [rsp + 0x60], ebx
lea r9d, [rbx - 0x39]
lea r8, str.Error:
xor edx, edx
lea rcx, [rbp + 0x48]
call fcn.140021030
xorps xmm0, xmm0
movups xmmword [rbp - 0x58], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x48], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x58], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x48], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], 7
mov word [rax], si
bts ebx, 7
mov dword [rsp + 0x60], ebx
lea r8, str._calling_ChangeServiceConfig
lea rdx, [rbp - 0x58]
lea rcx, [rbp + 0xb8]
call fcn.14001f710
nop
btr ebx, 7
mov dword [rsp + 0x60], ebx
lea rcx, [rbp - 0x58]
call fcn.1400166f0
and ebx, 0xffffffbf
mov dword [rsp + 0x60], ebx
lea rcx, [rbp + 0x48]
call fcn.1400166f0
lea rcx, [rbp - 0x38]
call fcn.1400098d0
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 0xf
jbe 0x140082405
mov rax, qword [rax]
mov rdx, rax
lea rcx, [0x1404b5d00]
call fcn.140035a10
mov rbx, rax
lea rdx, [rbp + 0xb8]
lea rcx, [rbp - 0x18]
call fcn.1400a3bc0
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 0xf
jbe 0x140082436
mov rax, qword [rax]
mov rdx, rax
mov rcx, rbx
call fcn.140035a10
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
mov dl, 0xa
call fcn.140035dd0
movzx edx, al
mov rcx, rbx
call fcn.140035860
mov rcx, rbx
call fcn.14002eff0
nop
lea rcx, [rbp - 0x18]
call fcn.140016400
nop
lea rcx, [rbp - 0x38]
call fcn.140016400
nop
lea rcx, [rbp + 0xb8]
call fcn.1400166f0
xor bl, bl
jmp 0x14008248f
mov bl, 1
lea rcx, [rbp + 0x68]
call fcn.1400e9a10
nop
lea rcx, [rbp + 0x70]
call fcn.1400e9a10
movzx eax, bl
mov rcx, qword [rbp + 0xd8]
xor rcx, rsp
call fcn.1402ba9b0
mov rbx, qword [rsp + 0x210]
add rsp, 0x1e0
pop rdi
pop rsi
pop rbp
ret