Function at 0x14000ff0c
Capabilities:
Access peb ldr_data
Get ntdll base address
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xb0
mov dword [rbp - 0x21], 0x240022
lea rax, str.SymbolicLinkValue
mov qword [rbp - 0x19], rax
xor esi, esi
mov qword [rbp + 0x6f], rsi
mov r14, rcx
mov rax, qword gs:[0x30]
lea rcx, [rbp - 0x31]
mov r13d, r9d
mov ebx, esi
lea r12d, [rsi + 0x22]
mov rdx, qword [rax + 0x60]
mov r15, qword [rdx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFormatCurrentUserKeyPath]
mov edi, eax
test eax, eax
js 0x1400101ac
movzx esi, word [rbp - 0x2f]
lea edx, [rbx + 8]
add rsi, r12
mov rcx, r15
mov r8, rsi
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r12, rax
xor eax, eax
test r12, r12
je 0x140010191
lea rdx, [rbp - 0x31]
mov qword [rbp - 0x39], r12
lea rcx, [rbp - 0x41]
mov word [rbp - 0x41], ax
mov word [rbp - 0x3f], si
call qword [sym.imp.ntdll.dll_RtlAppendUnicodeStringToString]
xor esi, esi
mov edi, eax
test eax, eax
js 0x140010170
lea rdx, str.SoftwareKureND
lea rcx, [rbp - 0x41]
call qword [sym.imp.ntdll.dll_RtlAppendUnicodeToString]
mov edi, eax
test eax, eax
js 0x140010170
lea rax, [rbp - 0x41]
mov dword [rbp - 0x11], 0x30
mov qword [rbp - 1], rax
lea r8, [rbp - 0x11]
lea rax, [rbp - 0x49]
mov qword [rbp - 9], rsi
mov qword [rsp + 0x30], rax
lea rcx, [rbp + 0x6f]
xorps xmm0, xmm0
mov dword [rsp + 0x28], 3
xor r9d, r9d
mov qword [rsp + 0x20], rsi
mov edx, 0xf003f
mov dword [rbp + 7], 0x40
movdqu xmmword [rbp + 0xf], xmm0
call qword [sym.imp.ntdll.dll_NtCreateKey]
mov edi, eax
cmp eax, 0xc0000035
jne 0x140010050
bts dword [rbp + 7], 8
lea r8, [rbp - 0x11]
mov edx, 0xf003f
lea rcx, [rbp + 0x6f]
call qword [sym.imp.ntdll.dll_NtOpenKey]
mov edi, eax
test edi, edi
js 0x140010170
mov rcx, r14
test r14, r14
jne 0x140010065
mov rcx, rsi
jmp 0x14001007a
cmp word [r14], si
je 0x140010074
add rcx, 2
cmp word [rcx], si
jne 0x14001006b
sub rcx, r14
sar rcx, 1
movzx eax, word [rbp - 0x2f]
lea rcx, [rcx + 2]
mov edx, 8
lea r8, [rax + rcx*2]
mov rcx, r15
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rbx, rax
test rax, rax
je 0x140010170
mov rdx, qword [rbp - 0x29]
mov rcx, rax
call fcn.1400017f8
lea rdx, [0x1400253f4]
call fcn.14000174c
mov rdx, r14
mov rcx, rbx
call fcn.14000174c
mov rax, rbx
cmp word [rbx], si
je 0x1400100d4
add rax, 2
cmp word [rax], si
jne 0x1400100cb
mov rcx, qword [rbp + 0x6f]
lea rdx, [rbp - 0x21]
sub rax, rbx
mov r9d, 6
sar rax, 1
xor r8d, r8d
add eax, eax
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ntdll.dll_NtSetValueKey]
mov rcx, qword [rbp + 0x6f]
mov edi, eax
call qword [sym.imp.ntdll.dll_NtClose]
mov qword [rbp + 0x6f], rsi
test edi, edi
js 0x140010170
lea r8, [rbp - 0x11]
mov dword [rbp + 7], 0x40
mov edx, 0xf003f
lea rcx, [rbp + 0x6f]
call qword [sym.imp.ntdll.dll_NtOpenKey]
mov edi, eax
test eax, eax
js 0x140010170
xor eax, eax
mov dword [rsp + 0x28], r13d
lea rdi, [rbp - 0x41]
mov r9d, 1
xor r8d, r8d
lea rdx, [rbp - 0x41]
lea ecx, [rax + 0x10]
rep stosb byte [rdi], al
mov rax, qword [rbp + 0x77]
mov rcx, qword [rbp + 0x6f]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtSetValueKey]
mov rcx, qword [rbp + 0x6f]
mov edi, eax
call qword [sym.imp.ntdll.dll_NtClose]
mov qword [rbp + 0x6f], rsi
mov r8, r12
xor edx, edx
mov rcx, r15
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
test rbx, rbx
je 0x140010191
mov r8, rbx
xor edx, edx
mov rcx, r15
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rcx, qword [rbp + 0x6f]
test rcx, rcx
je 0x1400101a0
call qword [sym.imp.ntdll.dll_NtClose]
lea rcx, [rbp - 0x31]
call qword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
mov eax, edi
mov rbx, qword [rsp + 0xf0]
add rsp, 0xb0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret