Function at 0x1400b7440
Capabilities:
Modify service

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x1c0
mov r14, rdx
mov rbx, rcx
mov rax, qword [0x14027c038]
xor rax, rsp
mov qword [rsp + 0x1b8], rax
xor ecx, ecx
xor edx, edx
mov r8d, 1
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
test rax, rax
je 0x1400b7633
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call fcn.1401593f0
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp byte [rbx + 0x17], 0
mov rdx, rbx
jns 0x1400b74a2
mov rdx, qword [rbx]
mov rcx, rsi
mov r8d, 0xf01ff
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
test rax, rax
je 0x1400b7649
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.1401593f0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, rdi
call fcn.1400c11a0
test al, al
je 0x1400b765f
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x1b0], rax
movaps xmm0, xmmword [0x14024afc0]
movaps xmmword [rsp + 0x1a0], xmm0
cmp byte [r14 + 0x17], 0
js 0x1400b76af
mov rax, qword [r14 + 0x10]
mov qword [rsp + 0x1b0], rax
movups xmm0, xmmword [r14]
movaps xmmword [rsp + 0x1a0], xmm0
movzx eax, byte [rsp + 0x1b7]
test al, al
jns 0x1400b76c8
movabs rbx, 0x7fffffffffffffff
and rbx, qword [rsp + 0x1b0]
dec rbx
mov rax, qword [rsp + 0x1a8]
cmp rax, rbx
je 0x1400b78a6
mov rcx, qword [rsp + 0x1a0]
lea rdx, [rax + 1]
mov qword [rsp + 0x1a8], rdx
mov dword [rcx + rax*2], 0
lea rbx, [rsp + 0x1a0]
movzx eax, byte [rbx + 0x17]
mov ecx, eax
and ecx, 0x7f
test al, al
cmovs ecx, dword [rbx + 8]
lea rax, [rsp + 0x190]
mov rdx, qword [rbx]
cmovns rdx, rbx
mov dword [rax], 2
add ecx, ecx
mov dword [rax + 4], ecx
mov qword [rax + 8], rdx
xor ecx, ecx
lea rdx, [rsp + 0x38]
mov qword [rdx + 0x10], rcx
movabs r8, 0x100000014
mov qword [rdx], r8
lea r8, [0x140250938]
mov qword [rdx + 8], r8
mov r9d, 1
mov dword [rdx + 0x10], r9d
mov qword [rdx + 0x18], rax
xorps xmm0, xmm0
lea r8, [rsp + 0x170]
movaps xmmword [r8], xmm0
mov qword [r8 + 0x10], rcx
mov dword [r8], r9d
mov qword [r8 + 8], rdx
mov rcx, rdi
mov edx, 8
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
mov ebp, eax
cmp byte [rbx + 0x17], 0
jns 0x1400b761a
mov rcx, qword [rsp + 0x1a0]
call fcn.14018f674
mov bl, 1
test ebp, ebp
jne 0x1400b7673
mov ecx, 2
call fcn.140158c90
test al, al
je 0x1400b7671
jmp 0x1400b786a
mov ecx, 2
call fcn.140158c90
test al, al
jne 0x1400b76e7
xor ebx, ebx
jmp 0x1400b768f
mov ecx, 2
call fcn.140158c90
test al, al
jne 0x1400b77df
xor ebx, ebx
jmp 0x1400b7681
mov ecx, 2
call fcn.140158c90
test al, al
jne 0x1400b7772
xor ebx, ebx
call fcn.1401593f0
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call fcn.1401593f0
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x1b8]
xor rcx, rsp
call fcn.140190b30
mov eax, ebx
add rsp, 0x1c0
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
mov rdx, qword [r14]
mov r8, qword [r14 + 8]
lea rcx, [rsp + 0x1a0]
call fcn.1400ca120
jmp 0x1400b7526
cmp eax, 0xa
je 0x1400b78a1
lea edx, [rax + 1]
and dl, 0x7f
lea rcx, [rsp + 0x1a0]
mov byte [rcx + 0x17], dl
jmp 0x1400b7570
lea rdx, str....._bravecomponents_brave_vpn_browserconnectionikev2win_brave_vpn_helper_vpn_utils.cc
lea rsi, [rsp + 0x38]
mov rcx, rsi
mov r8d, 0x139
mov r9d, 2
call fcn.1400dada0
lea rcx, [rsp + 0x48]
lea rdx, str.::OpenSCManager_failed._service_name:
mov r8d, 0x26
call fcn.1401ca740
mov rcx, rax
mov rdx, rbx
call fcn.1400d5860
lea rdx, str.__error:
mov r8d, 9
mov rcx, rax
call fcn.1401ca740
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.1400c1170
mov rcx, rdi
mov edx, eax
call fcn.1400b2cf0
mov rcx, rsi
call fcn.1400db3f0
jmp 0x1400b7645
lea rdx, str....._bravecomponents_brave_vpn_browserconnectionikev2win_brave_vpn_helper_vpn_utils.cc
lea rbx, [rsp + 0x38]
mov rcx, rbx
mov r8d, 0x146
mov r9d, 2
call fcn.1400dada0
lea rcx, [rsp + 0x48]
lea rdx, str.SetServiceFailureActions_failed:
mov r8d, 0x20
call fcn.1401ca740
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.1400c1170
mov rcx, r14
mov edx, eax
call fcn.1400b2cf0
mov rcx, rbx
call fcn.1400db3f0
jmp 0x1400b7671
lea rdx, str....._bravecomponents_brave_vpn_browserconnectionikev2win_brave_vpn_helper_vpn_utils.cc
lea rdi, [rsp + 0x38]
mov rcx, rdi
mov r8d, 0x140
mov r9d, 2
call fcn.1400dada0
lea rcx, [rsp + 0x48]
lea rdx, str.::OpenService_failed._service_name:
mov r8d, 0x24
call fcn.1401ca740
mov rcx, rax
mov rdx, rbx
call fcn.1400d5860
lea rdx, str.__error:
mov r8d, 9
mov rcx, rax
call fcn.1401ca740
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.1400c1170
mov rcx, rbx
mov edx, eax
call fcn.1400b2cf0
mov rcx, rdi
call fcn.1400db3f0
jmp 0x1400b765b
lea rdx, str....._bravecomponents_brave_vpn_browserconnectionikev2win_brave_vpn_helper_vpn_utils.cc
lea rbx, [rsp + 0x38]
mov rcx, rbx
mov r8d, 0x14b
mov r9d, 2
call fcn.1400dada0
lea rcx, [rsp + 0x48]
lea rdx, str.SetServiceTriggerForVPNConnection_failed:
mov r8d, 0x29
jmp 0x1400b77a4
mov ebx, 0xa
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x20], rbx
lea rcx, [rsp + 0x1a0]
mov r8d, 1
mov rdx, rbx
mov r9, rbx
call fcn.140132a20
mov rax, rbx
jmp 0x1400b755c