Function at 0x1400020b0
Capabilities:
Encrypt data using dpapi
Set registry value

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xe0
mov qword [rbp - 0x59], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14000c010]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov r9, r8
xor r14b, r14b
movdqa xmm0, xmmword [0x1400091a0]
movdqu xmmword [rbp + 0x17], xmm0
xor esi, esi
mov word [rbp + 7], si
mov rdx, 0xffffffffffffffff
nop dword [rax]
inc rdx
cmp word [r8 + rdx*2], si
jne 0x140002110
lea rcx, [rbp + 7]
cmp rdx, 7
ja 0x14000213e
mov qword [rbp + 0x17], rdx
lea rbx, [rdx + rdx]
mov r8, rbx
mov rdx, r9
call sub.VCRUNTIME140.dll_memmove
mov word [rbp + rbx + 7], si
jmp 0x140002144
call fcn.1400044a0
nop
mov rdi, rsi
mov r15d, esi
lea rdx, [rbp + 7]
lea rcx, [rbp - 0x51]
call fcn.1400039b0
mov rsi, rax
xor r13b, r13b
mov rax, qword [rax + 0x10]
lea eax, [rax*2 + 2]
mov dword [rbp - 0x31], eax
mov ebx, eax
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r12, rax
mov r8d, ebx
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov r8, qword [rsi + 0x10]
mov rdx, rsi
cmp qword [rsi + 0x18], 8
jb 0x140002196
mov rdx, qword [rsi]
add r8, r8
mov rcx, r12
call sub.VCRUNTIME140.dll_memcpy
xor eax, eax
mov qword [rbp - 9], rax
mov qword [rbp - 1], r12
mov eax, dword [rbp - 0x31]
mov dword [rbp - 9], eax
mov ecx, 0x10
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rbp - 0x31], rax
mov dword [rax], 0x1c9abff8
mov dword [rax + 4], 0xd53b41bb
mov dword [rax + 8], 0xa46d3483
mov dword [rax + 0xc], 0xcffecb11
xor ecx, ecx
mov qword [rbp - 0x19], rcx
mov qword [rbp - 0x11], rax
mov dword [rbp - 0x19], 0x10
xor eax, eax
mov qword [rbp - 0x29], rax
mov qword [rbp - 0x21], rax
mov ebx, ecx
lea rax, [rbp - 0x29]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rcx
xor r9d, r9d
lea r8, [rbp - 0x19]
lea rdx, [0x140008d58]
lea rcx, [rbp - 9]
call qword [sym.imp.CRYPT32.dll_CryptProtectData]
test eax, eax
je 0x14000225b
mov r15, qword [rbp - 0x29]
mov ecx, r15d
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
mov rbx, rax
test rax, rax
je 0x140002251
mov r8d, dword [rbp - 0x29]
mov rdx, qword [rbp - 0x21]
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov r13b, 1
mov rcx, qword [rbp - 0x21]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rbp - 0x31]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, r12
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rsi
call fcn.140003db0
test r13b, r13b
je 0x1400022f4
xor r14b, r14b
xor ecx, ecx
mov qword [rbp - 0x31], rcx
mov qword [rsp + 0x40], rcx
lea rax, [rbp - 0x31]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], ecx
xor r9d, r9d
xor r8d, r8d
lea rdx, str.SOFTWAREAMDDVR
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1400022f4
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], rdi
lea r9d, [rax + 3]
xor r8d, r8d
lea rdx, str.CustomKey
mov rcx, qword [rbp - 0x31]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x1400022ea
mov r14b, 1
mov rcx, qword [rbp - 0x31]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test rbx, rbx
je 0x140002303
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
lea rcx, [rbp + 7]
call fcn.140003db0
movzx eax, r14b
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140005ef0
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret