Function at 0x14001ebd0
Capabilities:
Modify service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x100]
sub rsp, 0x200
mov rax, qword [0x1400a5038]
xor rax, rsp
mov qword [rbp + 0xf0], rax
lea r13, vtable.LogItem.0
mov qword [rbp - 0x60], r13
xor r12d, r12d
mov qword [rbp - 0x48], r12
mov qword [rbp - 0x40], 7
mov word [rbp - 0x58], r12w
mov qword [rbp - 0x28], r12
mov qword [rbp - 0x20], 7
mov word [rbp - 0x38], r12w
mov dword [rbp - 0x18], 1
mov dword [rbp - 0x14], 1
mov qword [rbp + 0x50], r12
mov ebx, reloc.WS2_32.dll_ntohs
mov qword [rbp + 0x58], rbx
mov byte [rbp + 0x40], r12b
lea r8d, [r12 + 0x20]
lea rdx, str.Applying_service_DACL_workaround
lea rcx, [rbp + 0x40]
call fcn.140024110
nop
lea rdx, [rbp + 0x40]
lea rcx, [rbp - 0x60]
call fcn.14001df20
nop
mov rdx, qword [rbp + 0x58]
cmp rdx, 0x10
jb 0x14001ecba
inc rdx
mov rcx, qword [rbp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001ecb4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001ecb4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400570c4
nop
lea rcx, [rbp - 0x60]
call fcn.14001d880
mov qword [rbp + 0xe0], r12
mov qword [rbp + 0xe8], rbx
mov byte [rbp + 0xd0], 0
lea rcx, [rsp + 0x70]
call fcn.140048130
nop
mov qword [rbp + 0xc0], r12
mov qword [rbp + 0xc8], rbx
mov byte [rbp + 0xb0], 0
lea rdx, [0x1400a9480]
lea rcx, [rbp + 0x40]
call fcn.1400239e0
lea r8, [rbp + 0xb0]
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.140037270
mov r15, qword [rbp + 0xc8]
mov rsi, qword [rbp + 0xb0]
test eax, eax
je 0x14001ed81
mov qword [rbp - 0x60], r13
mov qword [rbp - 0x48], r12
mov qword [rbp - 0x40], 7
mov word [rbp - 0x58], r12w
mov qword [rbp - 0x28], r12
mov qword [rbp - 0x20], 7
mov word [rbp - 0x38], r12w
mov dword [rbp - 0x18], 1
mov dword [rbp - 0x14], 3
lea rdx, str.Failed_to_read_service_name_from_registry
lea rcx, [rbp - 0x60]
call fcn.14001dd30
nop
lea rcx, [rbp - 0x60]
call fcn.14001d880
jmp 0x14001f364
mov qword [rbp + 0x50], r12
mov qword [rbp + 0x58], r12
lea rdi, [rbp + 0xb0]
cmp r15, 0x10
cmovae rdi, rsi
mov r14, qword [rbp + 0xc0]
cmp r14, 0x10
jae 0x14001edae
movups xmm0, xmmword [rdi]
movups xmmword [rbp + 0x40], xmm0
jmp 0x14001ee27
mov rbx, r14
or rbx, 0xf
movabs rax, 0x7fffffffffffffff
cmp rbx, rax
cmova rbx, rax
lea rcx, [rbx + 1]
cmp rcx, 0x1000
jb 0x14001ee05
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x14001f3f7
mov rcx, rax
call fcn.1400570dc
mov rcx, rax
test rax, rax
je 0x14001edfe
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x14001ee14
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test rcx, rcx
je 0x14001ee11
call fcn.1400570dc
jmp 0x14001ee14
mov rax, r12
mov qword [rbp + 0x40], rax
lea r8, [r14 + 1]
mov rdx, rdi
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov qword [rbp + 0x50], r14
mov qword [rbp + 0x58], rbx
lea rdx, [rbp + 0x40]
lea rcx, [rsp + 0x78]
call fcn.14001d2d0
mov rdi, rax
mov qword [rsp + 0x68], rax
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov r14, rax
test rax, rax
jne 0x14001eec7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x60], eax
mov qword [rbp - 0x60], r13
mov qword [rbp - 0x48], r12
mov qword [rbp - 0x40], 7
mov word [rbp - 0x58], r12w
mov qword [rbp - 0x28], r12
mov qword [rbp - 0x20], 7
mov word [rbp - 0x38], r12w
mov dword [rbp - 0x18], 1
mov dword [rbp - 0x14], 3
lea rdx, str.OpenSCManager_failed:_error
lea rcx, [rbp - 0x60]
call fcn.14001dd30
mov rcx, rax
lea rdx, [rsp + 0x60]
call fcn.14001db30
nop
lea rcx, [rbp - 0x60]
call fcn.14001d880
jmp 0x14001ef5e
mov rdx, rdi
cmp qword [rdi + 0x18], 8
jb 0x14001eed4
mov rdx, qword [rdi]
mov r8d, 0xf003f
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
test rax, rax
jne 0x14001efb9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x60], eax
mov qword [rbp - 0x60], r13
mov qword [rbp - 0x48], r12
mov qword [rbp - 0x40], 7
mov word [rbp - 0x58], r12w
mov qword [rbp - 0x28], r12
mov qword [rbp - 0x20], 7
mov word [rbp - 0x38], r12w
mov dword [rbp - 0x18], 1
mov dword [rbp - 0x14], 3
lea rdx, str.OpenService_failed:_error
lea rcx, [rbp - 0x60]
call fcn.14001dd30
mov rcx, rax
lea rdx, [rsp + 0x60]
call fcn.14001db30
nop
lea rcx, [rbp - 0x60]
call fcn.14001d880
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
mov rcx, rdi
call fcn.1400236f0
mov qword [rbp - 0x60], r13
mov qword [rbp - 0x48], r12
mov qword [rbp - 0x40], 7
mov word [rbp - 0x58], r12w
mov qword [rbp - 0x28], r12
mov qword [rbp - 0x20], 7
mov word [rbp - 0x38], r12w
mov dword [rbp - 0x18], 1
mov dword [rbp - 0x14], 3
lea rdx, str.Couldnt_obtain_service_handle
lea rcx, [rbp - 0x60]
call fcn.14001dd30
nop
lea rcx, [rbp - 0x60]
call fcn.14001d880
jmp 0x14001f364
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
mov rcx, rdi
call fcn.1400236f0
lea rdx, [rsp + 0x60]
mov rcx, rbx
call fcn.14001e9e0
test al, al
jne 0x14001f02a
mov qword [rbp - 0x60], r13
mov qword [rbp - 0x48], r12
mov qword [rbp - 0x40], 7
mov word [rbp - 0x58], r12w
mov qword [rbp - 0x28], r12
mov qword [rbp - 0x20], 7
mov word [rbp - 0x38], r12w
mov dword [rbp - 0x18], 1
mov dword [rbp - 0x14], 3
lea rdx, str.Couldnt_obtain_service_start_type
lea rcx, [rbp - 0x60]
call fcn.14001dd30
nop
lea rcx, [rbp - 0x60]
jmp 0x14001f356
cmp dword [rsp + 0x60], 3
je 0x14001f30d
xor r9d, r9d
lea r8, [rsp + 0x68]
lea edx, [r9 + 1]
lea rcx, str.D:_A__CCLCSWRPLO___WD__A__CCLCSWRPWPDTLOCRRC___SY__A__CCDCLCSWRPWPDTLOCRSDRCWDWO___BA__A__CCLCSWLOCRRC___IU__A__CCLCSWLOCRRC___SU_S:_AU_FA_CCDCLCSWRPWPDTLOCRSDRCWDWO___WD_
call qword [sym.imp.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW]
test eax, eax
jne 0x14001f0bc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x60], eax
mov qword [rbp - 0x60], r13
mov qword [rbp - 0x48], r12
mov qword [rbp - 0x40], 7
mov word [rbp - 0x58], r12w
mov qword [rbp - 0x28], r12
mov qword [rbp - 0x20], 7
mov word [rbp - 0x38], r12w
mov dword [rbp - 0x18], 1
mov dword [rbp - 0x14], 3
lea rdx, str.ConvertStringSecurityDescriptorToSecurityDescriptor_failed:_error
lea rcx, [rbp - 0x60]
call fcn.14001dd30
mov rcx, rax
lea rdx, [rsp + 0x60]
call fcn.14001db30
nop
lea rcx, [rbp - 0x60]
call fcn.14001d880
jmp 0x14001f159
mov r8, qword [rsp + 0x68]
mov edx, 4
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_SetServiceObjectSecurity]
test eax, eax
jne 0x14001f1b9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x60], eax
mov qword [rbp + 0x60], r13
mov qword [rbp + 0x78], r12
mov qword [rbp + 0x80], 7
mov word [rbp + 0x68], r12w
mov qword [rbp + 0x98], r12
mov qword [rbp + 0xa0], 7
mov word [rbp + 0x88], r12w
mov dword [rbp + 0xa8], 1
mov dword [rbp + 0xac], 3
lea rdx, str.SetServiceObjectSecurity_failed:_error
lea rcx, [rbp + 0x60]
call fcn.14001dd30
mov rcx, rax
lea rdx, [rsp + 0x60]
call fcn.14001db30
nop
lea rcx, [rbp + 0x60]
call fcn.14001d880
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rbp + 0x60], r13
mov qword [rbp + 0x78], r12
mov qword [rbp + 0x80], 7
mov word [rbp + 0x68], r12w
mov qword [rbp + 0x98], r12
mov qword [rbp + 0xa0], 7
mov word [rbp + 0x88], r12w
mov dword [rbp + 0xa8], 1
mov dword [rbp + 0xac], 3
lea rdx, str.Couldnt_set_service_ACL
lea rcx, [rbp + 0x60]
call fcn.14001dd30
nop
lea rcx, [rbp + 0x60]
jmp 0x14001f356
mov qword [rbp - 0x10], r13
mov qword [rbp + 8], r12
mov qword [rbp + 0x10], 7
mov word [rbp - 8], r12w
mov qword [rbp + 0x28], r12
mov qword [rbp + 0x30], 7
mov word [rbp + 0x18], r12w
mov dword [rbp + 0x38], 1
mov dword [rbp + 0x3c], 1
lea rdx, str.Service_DACL_updated_successfully
lea rcx, [rbp - 0x10]
call fcn.14001dd30
nop
lea rcx, [rbp - 0x10]
call fcn.14001d880
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
mov edx, 0xffffffff
mov r9d, edx
mov r8d, 3
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
jne 0x14001f300
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x60], eax
mov qword [rbp - 0x10], r13
mov qword [rbp + 8], r12
mov qword [rbp + 0x10], 7
mov word [rbp - 8], r12w
mov qword [rbp + 0x28], r12
mov qword [rbp + 0x30], 7
mov word [rbp + 0x18], r12w
mov dword [rbp + 0x38], 1
mov dword [rbp + 0x3c], 3
lea rdx, str.ChangeServiceConfig_failed:_error
lea rcx, [rbp - 0x10]
call fcn.14001dd30
mov rcx, rax
lea rdx, [rsp + 0x60]
call fcn.14001db30
nop
lea rcx, [rbp - 0x10]
call fcn.14001d880
mov qword [rbp - 0x10], r13
mov qword [rbp + 8], r12
mov qword [rbp + 0x10], 7
mov word [rbp - 8], r12w
mov qword [rbp + 0x28], r12
mov qword [rbp + 0x30], 7
mov word [rbp + 0x18], r12w
mov dword [rbp + 0x38], 1
mov dword [rbp + 0x3c], 3
lea rdx, str.Couldnt_set_service_start_type_to_manual
lea rcx, [rbp - 0x10]
call fcn.14001dd30
nop
jmp 0x14001f352
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov bl, 1
jmp 0x14001f366
mov qword [rbp - 0x10], r13
mov qword [rbp + 8], r12
mov qword [rbp + 0x10], 7
mov word [rbp - 8], r12w
mov qword [rbp + 0x28], r12
mov qword [rbp + 0x30], 7
mov word [rbp + 0x18], r12w
mov dword [rbp + 0x38], 1
mov dword [rbp + 0x3c], 1
lea rdx, str.Start_type_is_manual___no_need_to_apply_workaround
lea rcx, [rbp - 0x10]
call fcn.14001dd30
nop
lea rcx, [rbp - 0x10]
call fcn.14001d880
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor bl, bl
cmp r15, 0x10
jb 0x14001f3a1
lea rdx, [r15 + 1]
mov rax, rsi
cmp rdx, 0x1000
jb 0x14001f398
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001f398
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rsi
call fcn.1400570c4
nop
mov edx, 0x80000000
mov rcx, qword [rsp + 0x70]
add rdx, rcx
cmp rdx, 3
jbe 0x14001f3c4
cmp rcx, 0xffffffff80000005
je 0x14001f3c4
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
movzx eax, bl
mov rcx, qword [rbp + 0xf0]
xor rcx, rsp
call fcn.1400570a0
lea r11, [rsp + 0x200]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.14001ca90
nop
int3