Function at 0x140012150
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], r9
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x19d8]
mov eax, 0x1ad8
call fcn.14003e920
sub rsp, rax
mov rax, qword [0x140063848]
xor rax, rsp
mov qword [rbp + 0x19c0], rax
mov rdi, r8
mov r15d, edx
mov r14, rcx
xor sil, sil
call fcn.14000b5f0
xor r12d, r12d
lea rcx, [rsp + 0x54]
lea r8d, [r12 + 0x6c]
xor edx, edx
mov r13, rax
mov dword [rsp + 0x50], 0x70
call fcn.14003e820
mov rdx, qword [rbp + 0x1a38]
lea r8, [rbp + 0x1a40]
lea rcx, [rbp + 0x1c0]
call qword [sym.imp.USER32.dll_wvsprintfA]
cmp byte [rdi], 0x5c
lea ecx, [r12 + 1]
jne 0x14001221c
cmp byte [rdi + 1], 0x5c
jne 0x14001221c
cmp byte [rdi + 2], 0x3f
jne 0x140012218
cmp byte [rdi + 3], 0x5c
jne 0x14001221c
movzx eax, byte [rdi + 4]
cmp al, 0x55
je 0x1400121fa
cmp al, 0x75
jne 0x14001221c
movzx eax, byte [rdi + 5]
cmp al, 0x4e
je 0x140012206
cmp al, 0x6e
jne 0x14001221c
movzx eax, byte [rdi + 6]
cmp al, 0x43
je 0x140012212
cmp al, 0x63
jne 0x14001221c
cmp byte [rdi + 7], 0x5c
jne 0x14001221c
mov eax, ecx
jmp 0x14001221e
xor eax, eax
neg al
mov dword [rbp - 0x80], ecx
mov r9d, ecx
sbb eax, eax
lea rdx, str..exe
mov rcx, 0xffffffff80000000
and eax, 0x80
xor r8d, r8d
mov qword [rsp + 0x58], r14
or eax, 0x441
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x68], rdi
mov dword [rsp + 0x54], eax
lea rax, [rbp + 0x1c0]
xor bl, bl
mov qword [rsp + 0x70], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1400122c6
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x40]
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x40], pe_nt_image_headers64
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x48]
movzx ebx, bl
test eax, eax
mov eax, 1
cmove ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rbp - 0x40]
test bl, bl
jne 0x1400122cd
lea rax, str.exefile
mov qword [rbp - 0x68], rax
cmp byte [r13], r12b
je 0x1400122e7
mov r8, r13
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov r12, rax
lea rcx, [rsp + 0x50]
call qword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x140012326
mov rcx, qword [rbp - 0x48]
test rcx, rcx
je 0x1400123e1
test r15b, 1
jne 0x140012318
mov rdx, rcx
mov rcx, r14
call fcn.140011e00
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov sil, 1
jmp 0x1400123e1
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x4c7
je 0x1400123e1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [rsp + 0x30], 0
xor edx, edx
mov r8d, eax
lea rax, [rbp + 0x5c0]
mov r9d, 0x400
mov ecx, 0x1000
mov dword [rsp + 0x28], 0x400
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, 0xfffffffa
mov rcx, r14
call qword [sym.imp.USER32.dll_GetWindowLongPtrA]
lea r8, [rbp + 0xc0]
mov r9d, pe_nt_image_headers64
mov rcx, rax
mov edx, 0x3f3
call qword [sym.imp.USER32.dll_LoadStringA]
lea r11, [rbp + 0x5c0]
lea rax, [rbp + 0x1c0]
mov qword [rsp + 0x28], r11
lea r8, [rbp + 0xc0]
lea rcx, [rbp + 0x9c0]
mov r9, rdi
mov edx, 0x1000
mov qword [rsp + 0x20], rax
call fcn.1400073f0
lea rdx, [rbp + 0x9c0]
mov r8d, InitCommonControls
mov rcx, r14
call fcn.140003cf0
lea rcx, [rbp + 0x1c0]
xor edx, edx
mov r8d, 0x400
call fcn.14003e820
test r12, r12
je 0x140012403
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, sil
mov rcx, qword [rbp + 0x19c0]
xor rcx, rsp
call fcn.14003e7f0
add rsp, 0x1ad8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret