Function at 0x1400ca890
Capabilities:
Modify service

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x1b0
mov r14, rdx
mov rbx, rcx
mov rax, qword [0x1402ef038]
xor rax, rsp
mov qword [rsp + 0x1a8], rax
xor ecx, ecx
xor edx, edx
mov r8d, 1
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
test rax, rax
je 0x1400ca97e
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call fcn.14019f500
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp byte [rbx + 0x17], 0
mov rdx, rbx
jns 0x1400ca8f2
mov rdx, qword [rbx]
mov rcx, rsi
mov r8d, 0xf01ff
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
test rax, rax
je 0x1400ca994
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.14019f500
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, rdi
call fcn.1400ed610
test al, al
jne 0x1400cab2d
mov ecx, 2
call fcn.14019eda0
test al, al
jne 0x1400ca9aa
xor ebx, ebx
call fcn.14019f500
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call fcn.14019f500
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x1a8]
xor rcx, rsp
call fcn.1401d5680
mov eax, ebx
add rsp, 0x1b0
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
mov ecx, 2
call fcn.14019eda0
test al, al
jne 0x1400caa17
xor ebx, ebx
jmp 0x1400ca95e
mov ecx, 2
call fcn.14019eda0
test al, al
jne 0x1400caaa2
xor ebx, ebx
jmp 0x1400ca950
lea rdx, str....._bravecomponents_brave_vpn_browserconnectionikev2win_brave_vpn_helper_vpn_utils.cc
lea rbx, [rsp + 0x28]
mov rcx, rbx
mov r8d, 0x146
mov r9d, 2
call fcn.140108830
lea rcx, [rsp + 0x38]
lea rdx, str.SetServiceFailureActions_failed:
mov r8d, 0x20
call fcn.140213790
mov r14, rax
mov rax, qword [rax]
movsxd rax, dword [rax + 4]
mov ecx, dword [r14 + rax + 8]
and ecx, 0xffffffb5
or ecx, 8
mov dword [r14 + rax + 8], ecx
call fcn.1400ed5e0
mov rcx, r14
mov edx, eax
call fcn.1400c6030
mov rcx, rbx
call fcn.140108d60
jmp 0x1400ca940
lea rdx, str....._bravecomponents_brave_vpn_browserconnectionikev2win_brave_vpn_helper_vpn_utils.cc
lea rsi, [rsp + 0x28]
mov rcx, rsi
mov r8d, 0x139
mov r9d, 2
call fcn.140108830
lea rcx, [rsp + 0x38]
lea rdx, str.::OpenSCManager_failed._service_name:
mov r8d, 0x26
call fcn.140213790
mov rcx, rax
mov rdx, rbx
call fcn.140103030
lea rdx, str.__error:
mov r8d, 9
mov rcx, rax
call fcn.140213790
mov rdi, rax
mov rax, qword [rax]
movsxd rax, dword [rax + 4]
mov ecx, dword [rdi + rax + 8]
and ecx, 0xffffffb5
or ecx, 8
mov dword [rdi + rax + 8], ecx
call fcn.1400ed5e0
mov rcx, rdi
mov edx, eax
call fcn.1400c6030
mov rcx, rsi
call fcn.140108d60
jmp 0x1400ca990
lea rdx, str....._bravecomponents_brave_vpn_browserconnectionikev2win_brave_vpn_helper_vpn_utils.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x140
mov r9d, 2
call fcn.140108830
lea rcx, [rsp + 0x38]
lea rdx, str.::OpenService_failed._service_name:
mov r8d, 0x24
call fcn.140213790
mov rcx, rax
mov rdx, rbx
call fcn.140103030
lea rdx, str.__error:
mov r8d, 9
mov rcx, rax
call fcn.140213790
mov rbx, rax
mov rax, qword [rax]
movsxd rax, dword [rax + 4]
mov ecx, dword [rbx + rax + 8]
and ecx, 0xffffffb5
or ecx, 8
mov dword [rbx + rax + 8], ecx
call fcn.1400ed5e0
mov rcx, rbx
mov edx, eax
call fcn.1400c6030
mov rcx, rdi
call fcn.140108d60
jmp 0x1400ca9a6
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x1a0], rax
movaps xmm0, xmmword [0x1402bb8f0]
movaps xmmword [rsp + 0x190], xmm0
cmp byte [r14 + 0x17], 0
js 0x1400cab6f
mov rax, qword [r14 + 0x10]
mov qword [rsp + 0x1a0], rax
movups xmm0, xmmword [r14]
movaps xmmword [rsp + 0x190], xmm0
jmp 0x1400cab83
mov rdx, qword [r14]
mov r8, qword [r14 + 8]
lea rcx, [rsp + 0x190]
call fcn.1400f7fc0
xor r14d, r14d
lea rbx, [rsp + 0x190]
mov rcx, rbx
xor edx, edx
call fcn.140189190
mov dword [rsp + 0x180], 2
movzx eax, byte [rbx + 0x17]
test al, al
js 0x1400cabb0
and eax, 0x7f
jmp 0x1400cabbf
mov eax, dword [rsp + 0x198]
mov rbx, qword [rsp + 0x190]
add eax, eax
lea rcx, [rsp + 0x180]
mov dword [rcx + 4], eax
mov qword [rcx + 8], rbx
lea rax, [rsp + 0x28]
mov qword [rax + 0x10], r14
movabs rdx, 0x100000014
mov qword [rax], rdx
lea rdx, [0x1402c28b0]
mov qword [rax + 8], rdx
mov edx, 1
mov dword [rax + 0x10], edx
mov qword [rax + 0x18], rcx
xorps xmm0, xmm0
lea r8, [rsp + 0x160]
movaps xmmword [r8], xmm0
mov qword [r8 + 0x10], r14
mov dword [r8], edx
mov qword [r8 + 8], rax
mov rcx, rdi
mov edx, 8
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
mov ebp, eax
cmp byte [rsp + 0x1a7], 0
jns 0x1400cac3e
mov rcx, qword [rsp + 0x190]
call fcn.1401d40d8
mov bl, 1
test ebp, ebp
jne 0x1400ca942
mov ecx, 2
call fcn.14019eda0
test al, al
je 0x1400ca940
lea rdx, str....._bravecomponents_brave_vpn_browserconnectionikev2win_brave_vpn_helper_vpn_utils.cc
lea rbx, [rsp + 0x28]
mov rcx, rbx
mov r8d, 0x14b
mov r9d, 2
call fcn.140108830
lea rcx, [rsp + 0x38]
lea rdx, str.SetServiceTriggerForVPNConnection_failed:
mov r8d, 0x29
jmp 0x1400ca9dc