Function at 0x140080050
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 [0x1404953c0]
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 0x1400801e1
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov edx, eax
lea rcx, [rbp + 8]
call fcn.140070e60
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.14001fe10
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, [0x14041bf78]
lea rdx, [rsp + 0x68]
lea rcx, [rbp + 0x78]
call fcn.14001e4f0
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 0x14008015c
mov rax, qword [rax]
mov rdx, rax
lea rcx, [0x1404abb40]
call fcn.1400347d0
mov rbx, rax
lea rdx, [rbp + 0x78]
lea rcx, [rbp - 0x38]
call fcn.14009c1c0
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 0xf
jbe 0x14008018a
mov rax, qword [rax]
mov rdx, rax
mov rcx, rbx
call fcn.1400347d0
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
mov dl, 0xa
call fcn.140034b90
movzx edx, al
mov rcx, rbx
call fcn.140034620
mov rcx, rbx
call fcn.14002ddd0
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 0x1400804d9
mov qword [rbp + 0x68], rsi
cmp qword [rbx + 0x18], 7
jbe 0x1400801ef
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 0x14008034e
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov edx, eax
lea rcx, [rbp + 0x28]
call fcn.140070e60
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.14001fe10
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, [0x14041bf78]
lea rdx, [rbp - 0x78]
lea rcx, [rbp + 0x98]
call fcn.14001e4f0
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 0x1400802c3
mov rax, qword [rax]
mov rdx, rax
lea rcx, [0x1404abb40]
call fcn.1400347d0
mov rbx, rax
lea rdx, [rbp + 0x98]
lea rcx, [rbp - 0x18]
call fcn.14009c1c0
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 0xf
jbe 0x1400802f4
mov rax, qword [rax]
mov rdx, rax
mov rcx, rbx
call fcn.1400347d0
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
mov dl, 0xa
call fcn.140034b90
movzx edx, al
mov rcx, rbx
call fcn.140034620
mov rcx, rbx
call fcn.14002ddd0
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 0x1400804cf
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 0x1400804cd
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov edx, eax
lea rcx, [rbp + 0x48]
call fcn.140070e60
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.14001fe10
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.14001e4f0
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 0x140080445
mov rax, qword [rax]
mov rdx, rax
lea rcx, [0x1404abb40]
call fcn.1400347d0
mov rbx, rax
lea rdx, [rbp + 0xb8]
lea rcx, [rbp - 0x18]
call fcn.14009c1c0
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 0xf
jbe 0x140080476
mov rax, qword [rax]
mov rdx, rax
mov rcx, rbx
call fcn.1400347d0
mov rbx, rax
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
mov dl, 0xa
call fcn.140034b90
movzx edx, al
mov rcx, rbx
call fcn.140034620
mov rcx, rbx
call fcn.14002ddd0
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 0x1400804cf
mov bl, 1
lea rcx, [rbp + 0x68]
call fcn.1400e25a0
nop
lea rcx, [rbp + 0x70]
call fcn.1400e25a0
movzx eax, bl
mov rcx, qword [rbp + 0xd8]
xor rcx, rsp
call fcn.1402b5c00
mov rbx, qword [rsp + 0x210]
add rsp, 0x1e0
pop rdi
pop rsi
pop rbp
ret