Function at 0x1400c5460
Capabilities:
Create process on windows
Get common file path
Set registry value

Disassembly:
push rbp
push rdi
push r14
lea rbp, [rsp - 0x30]
sub rsp, 0x130
mov r8, qword [0x14018dc60]
mov rdi, rdx
mov word [rsp + 0x48], r8w
mov r14, rcx
lea eax, [r8 + 2]
mov word [rsp + 0x4a], ax
mov rax, qword [str.SoftwareMicrosoftWindowsCurrentVersionAppletsRegedit]
mov qword [rsp + 0x50], rax
cmp r8, 0xfffe
ja 0x1400c573e
xor r8d, r8d
lea rax, [rsp + 0x40]
lea r9, [rbp - 0x10]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x48]
lea rcx, [r8 - 9]
call fcn.1400da6c0
test eax, eax
js 0x1400c573e
mov qword [rsp + 0x150], rbx
lea r8, [rbp - 0x10]
mov qword [rsp + 0x128], r12
lea rcx, [rbp + 0x68]
xor r12d, r12d
xor r9d, r9d
mov qword [rsp + 0x30], r12
mov edx, 0x20006
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
call qword [sym.imp.ntdll.dll_NtCreateKey]
mov rcx, qword [rsp + 0x40]
mov ebx, eax
test rcx, rcx
je 0x1400c5517
call qword [sym.imp.ntdll.dll_NtClose]
test ebx, ebx
js 0x1400c572e
lea rax, str.LastKey
mov qword [rsp + 0x158], rsi
mov rcx, rdi
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x120], r15
mov dword [rsp + 0x58], 0x10000e
call fcn.1400c52a0
mov r9d, 1
lea rdx, [rsp + 0x58]
xor r8d, r8d
mov rbx, rax
mov ecx, dword [rax]
add ecx, 2
mov dword [rsp + 0x28], ecx
mov rcx, qword [rax + 8]
mov qword [rsp + 0x20], rcx
mov rcx, qword [rbp + 0x68]
call qword [sym.imp.ntdll.dll_NtSetValueKey]
or esi, 0xffffffff
lea rcx, [rbx - 0x10]
mov eax, esi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1400c5590
call fcn.1400c8bc0
mov rcx, qword [rbp + 0x68]
call qword [sym.imp.ntdll.dll_NtClose]
lea rcx, str._regedit.exe
call sym.ProcessHacker.exe_PhCountStringZ
mov rdx, qword [0x140196800]
mov r15, rax
add r15, r15
lea rbx, [r15 + 0x208]
lea rcx, [rbx + 0x12]
call sym.ProcessHacker.exe_PhCreateObject
xor r9d, r9d
xor r8d, r8d
mov rdi, rax
lea rcx, [rax + 0x10]
mov qword [rax], rbx
mov qword [rax + 8], rcx
lea edx, [r9 + 0x24]
mov word [rcx + rbx], r12w
mov rcx, qword [rax + 8]
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x1400c5624
mov rcx, qword [rdi + 8]
call sym.ProcessHacker.exe_PhCountStringZ
mov rcx, qword [rdi + 8]
lea r8, [r15 + 2]
add rax, rax
lea rdx, str._regedit.exe
mov qword [rdi], rax
shr rax, 1
lea rcx, [rcx + rax*2]
call fcn.14010e700
add qword [rdi], r15
jmp 0x1400c5683
lea rcx, [rdi - 0x10]
mov eax, esi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1400c5639
call fcn.1400c8bc0
mov rdx, qword [0x140196800]
mov ecx, 0x28
call sym.ProcessHacker.exe_PhCreateObject
mov rdi, rax
mov qword [rax], 0x16
add rax, 0x10
mov qword [rdi + 8], rax
mov word [rax + 0x16], r12w
mov rcx, qword [rdi + 8]
movups xmm0, xmmword [str.regedit.exe]
movups xmmword [rcx], xmm0
mov eax, dword [0x140169088]
mov dword [rcx + 0x10], eax
movzx eax, word [0x14016908c]
mov word [rcx + 0x14], ax
lea rcx, [rbp - 0x20]
call sym.ProcessHacker.exe_PhGetOwnTokenAttributes
mov r15, qword [rsp + 0x120]
mov rbx, qword [rdi + 8]
mov ecx, dword [rax + 8]
and ecx, 1
jne 0x1400c5701
xor edx, edx
mov dword [rsp + 0x70], 0x70
lea rcx, [rsp + 0x74]
lea r8d, [rdx + 0x6c]
call fcn.14010ed90
lea r8, [0x14013ca58]
mov qword [rbp - 0x78], rbx
lea rax, str.runas
mov qword [rbp - 0x70], r8
lea rcx, [rsp + 0x70]
mov qword [rbp - 0x80], rax
mov dword [rsp + 0x74], 0x440
mov dword [rbp - 0x60], 1
mov qword [rsp + 0x78], r14
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x1400c5713
mov rcx, qword [rbp - 0x28]
call qword [sym.imp.ntdll.dll_NtClose]
jmp 0x1400c5713
lea r8, [0x14013ca58]
mov rdx, rbx
mov rcx, r14
call sym.ProcessHacker.exe_PhShellExecute
lea rcx, [rdi - 0x10]
lock xadd dword [rcx + 8], esi
cmp esi, 1
mov rsi, qword [rsp + 0x158]
jne 0x1400c572e
call fcn.1400c8bc0
mov rbx, qword [rsp + 0x150]
mov r12, qword [rsp + 0x128]
add rsp, 0x130
pop r14
pop rdi
pop rbp
ret