Function at 0x140003b08
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
lea rbp, [rsp - 0x7e0]
sub rsp, 0x8e0
mov rax, qword [0x14001f080]
xor rax, rsp
mov qword [rbp + 0x7d0], rax
mov r8d, 0x27
lea rdx, [rbp + 0x780]
lea rcx, [0x140017448]
call qword [sym.imp.ole32.dll_StringFromGUID2]
xor esi, esi
test eax, eax
je 0x140003dd1
mov ebx, 0x400
lea r8, str.CLSID_
lea rax, [rbp - 0x80]
mov edx, ebx
sub r8, rax
lea rcx, [rbp - 0x80]
lea rax, [rdx + 0x7ffffbfe]
test rax, rax
je 0x140003b93
movzx eax, word [r8 + rcx]
test ax, ax
je 0x140003b93
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x140003b70
test rdx, rdx
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], si
je 0x140003dd1
lea r8, [rbp + 0x780]
mov rdx, rbx
lea rcx, [rbp - 0x80]
call fcn.140004124
test eax, eax
js 0x140003dd1
lea r8, [rbp - 0x80]
mov qword [rsp + 0x50], rsi
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x58], rsi
call fcn.14000406c
test eax, eax
jne 0x140003db8
mov rcx, qword [rsp + 0x48]
lea rax, str.Visual_Studio_Standard_Collector_Service
mov dword [rsp + 0x28], 0x52
lea rdx, [0x140016394]
mov r9d, 1
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x140003db8
lea rcx, [rbp + 0x780]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], si
jne 0x140003c29
mov rcx, qword [rsp + 0x48]
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
lea rdx, str.AppID
lea rax, [rbp + 0x780]
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x140003db8
lea r8, str.AppID_
mov rdx, rbx
lea rcx, [rbp - 0x80]
call fcn.1400041f4
test eax, eax
js 0x140003db8
lea r8, [rbp + 0x780]
mov rdx, rbx
lea rcx, [rbp - 0x80]
call fcn.140004124
test eax, eax
js 0x140003db8
lea r8, [rbp - 0x80]
mov qword [rsp + 0x68], rsi
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x70], rsi
call fcn.14000406c
mov rbx, qword [rsp + 0x60]
test eax, eax
jne 0x140003da3
lea rax, str.VsStandardCollectorService170
mov dword [rsp + 0x28], 0x3c
mov r9d, 1
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.LocalService
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x140003da3
lea rax, [0x14001f100]
mov dword [rsp + 0x28], DllRegisterServer
mov r9d, 3
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.AccessPermission
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x140003da3
lea rax, [0x14001f190]
mov dword [rsp + 0x28], DllRegisterServer
mov r9d, 3
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.LaunchPermission
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x140003da3
lea r9d, [rax + 4]
mov dword [rsp + 0x40], 2
lea rax, [rsp + 0x40]
mov dword [rsp + 0x28], r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.AuthenticationLevel
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x140003da3
lea rcx, str.SUCCESS:_The_service_was_installed_successfully_n
call fcn.140002268
jmp 0x140003da8
call fcn.140003dfc
test rbx, rbx
je 0x140003dbd
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140003dbd
call fcn.140003dfc
cmp qword [rsp + 0x48], rsi
je 0x140003dd6
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140003dd6
call fcn.140003dfc
mov rcx, qword [rbp + 0x7d0]
xor rcx, rsp
call fcn.140012650
lea r11, [rsp + 0x8e0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret