Function at 0x14000fc50
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push r15
lea rbp, [rsp - 0x2ff70]
mov eax, 0x30070
call fcn.14004f660
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x2ff60], rax
xor r15d, r15d
mov esi, 0xffffffff
mov qword [rsp + 0x48], r15
mov ebx, r15d
call fcn.14003d440
cmp qword [0x140094c10], rbx
mov dword [rax], r15d
je 0x14000fca7
xor eax, eax
jmp 0x140010041
lea rax, [rsp + 0x48]
mov word [rsp + 0x60], r15w
mov r9d, 0x20101
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov word [rbp + 0xff60], r15w
lea rdx, str.SOFTWAREOpenSSH
mov word [rbp + 0x1ff60], r15w
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x40], 0x8000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000fdf5
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rdx, str.DefaultShell
lea rax, [rsp + 0x60]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000fdf5
cmp word [rsp + 0x60], bx
je 0x14000fdf5
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rdx, str.DefaultShellCommandOption
lea rax, [rbp + 0xff60]
mov dword [rsp + 0x40], 0x8000
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x50], 4
mov dword [rsp + 0x54], 1
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x14000fd85
mov word [rbp + 0xff60], r15w
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rdx, str.DefaultShellArguments
lea rax, [rbp + 0x1ff60]
mov dword [rsp + 0x40], 0x8000
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x14000fdc7
mov word [rbp + 0x1ff60], r15w
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rdx, str.DefaultShellEscapeArguments
lea rax, [rsp + 0x54]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
jmp 0x14000fe3c
mov edx, 0x8000
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x14000fe1e
call fcn.14003d440
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx], eax
jmp 0x14001003f
lea r8, str.cmd.exe
mov edx, 0x8000
lea rcx, [rsp + 0x60]
call fcn.14003edc8
test eax, eax
jne 0x14001003f
mov qword [rsp + 0x38], r15
lea r8, [rsp + 0x60]
mov qword [rsp + 0x30], r15
mov r9d, esi
mov dword [rsp + 0x28], r15d
xor edx, edx
mov ecx, 0xfde9
mov qword [rsp + 0x20], r15
mov qword [rsp + 0x30098], r14
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd r14, eax
test eax, eax
je 0x140010037
mov rcx, r14
mov qword [rsp + 0x30090], rdi
call fcn.14003d014
mov rdi, rax
test rax, rax
je 0x14001002f
mov qword [rsp + 0x38], r15
lea r8, [rsp + 0x60]
mov qword [rsp + 0x30], r15
mov r9d, esi
mov dword [rsp + 0x28], r14d
xor edx, edx
mov ecx, 0xfde9
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x14001002f
cmp word [rbp + 0xff60], bx
je 0x14000ff4c
mov qword [rsp + 0x38], r15
lea r8, [rbp + 0xff60]
mov qword [rsp + 0x30], r15
mov r9d, esi
mov dword [rsp + 0x28], r15d
xor edx, edx
mov ecx, 0xfde9
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd r14, eax
test eax, eax
je 0x14000ff3f
mov rcx, r14
call fcn.14003d014
mov rbx, rax
test rax, rax
je 0x14000ff3f
mov qword [rsp + 0x38], r15
lea r8, [rbp + 0xff60]
mov qword [rsp + 0x30], r15
mov r9d, esi
mov dword [rsp + 0x28], r14d
xor edx, edx
mov ecx, 0xfde9
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x14000ff4c
mov rcx, rdi
call fcn.14003d000
jmp 0x14001002f
cmp word [rbp + 0x1ff60], r15w
je 0x14000ffdf
mov qword [rsp + 0x38], r15
lea r8, [rbp + 0x1ff60]
mov qword [rsp + 0x30], r15
mov r9d, esi
mov dword [rsp + 0x28], r15d
xor edx, edx
mov ecx, 0xfde9
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd r14, eax
test eax, eax
je 0x14000ffc8
mov rcx, r14
call fcn.14003d014
test rax, rax
je 0x14000ffc8
mov qword [rsp + 0x38], r15
lea r8, [rbp + 0x1ff60]
mov qword [rsp + 0x30], r15
mov r9d, esi
mov dword [rsp + 0x28], r14d
xor edx, edx
mov ecx, 0xfde9
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x14000ffdf
mov rcx, rdi
call fcn.14003d000
test rbx, rbx
je 0x14001002f
mov rcx, rbx
call fcn.14003d000
jmp 0x14001002f
movzx ecx, byte [rdi]
mov rax, rdi
test cl, cl
je 0x140010003
nop dword [rax]
cmp cl, 0x2f
jne 0x14000fff8
mov byte [rax], 0x5c
movzx ecx, byte [rax + 1]
inc rax
test cl, cl
jne 0x14000fff0
movzx eax, byte [rdi]
mov rbx, rdi
test al, al
je 0x140010025
nop dword [rax]
movzx ecx, al
call fcn.14003ed70
mov byte [rbx], al
lea rbx, [rbx + 1]
movzx eax, byte [rbx]
test al, al
jne 0x140010010
mov qword [0x140094c10], rdi
mov esi, r15d
mov rdi, qword [rsp + 0x30090]
mov r14, qword [rsp + 0x30098]
mov eax, esi
mov rcx, qword [rbp + 0x2ff60]
xor rcx, rsp
call fcn.1400313f0
mov rbx, qword [rsp + 0x300a0]
add rsp, 0x30070
pop r15
pop rsi
pop rbp
ret