Function at 0x14000224c
Capabilities:
Check if file exists
Delete registry value
Get file attributes
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x140016018]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov r12, qword [rbp + 0x1d0]
lea rax, [rsp + 0x50]
mov rbx, rdx
mov qword [rsp + 0x20], rax
mov r14, r9
lea rdx, str.Files
mov r15d, r8d
xor edi, edi
and qword [rsp + 0x50], rdi
mov rcx, rbx
and qword [rsp + 0x58], rdi
mov r9d, 0x2001f
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
je 0x1400022ef
test r15d, r15d
je 0x1400022ef
lea r8, [rsp + 0x50]
mov rcx, rbx
lea rdx, str.Files
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
nop dword [rax + rax]
test eax, eax
jne 0x140002505
lea rax, [rsp + 0x58]
mov r9d, 0xf003f
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.FilesFlags
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
je 0x140002344
test r15d, r15d
je 0x140002344
lea r8, [rsp + 0x58]
mov rcx, rbx
lea rdx, str.FilesFlags
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
nop dword [rax + rax]
test eax, eax
jne 0x140002505
mov rbx, qword [rsp + 0x50]
test rbx, rbx
je 0x140002408
xor edx, edx
mov dword [rsp + 0x40], 1
mov r8d, 0x208
mov dword [rsp + 0x48], 0x104
lea rcx, [rsp + 0x60]
xor esi, esi
call sub.msvcrt.dll_memset
and qword [rsp + 0x38], rsi
lea rax, [rsp + 0x40]
and qword [rsp + 0x30], rsi
mov rcx, rbx
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], rsi
xor edx, edx
jmp 0x1400023ee
lea rcx, [rsp + 0x60]
mov dword [rsp + 0x48], 0x104
inc esi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, 0xffffffff
jne 0x1400023ce
mov rcx, qword [rsp + 0x50]
lea rdx, [rsp + 0x60]
xor esi, esi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
nop dword [rax + rax]
and qword [rsp + 0x38], rdi
lea rax, [rsp + 0x40]
and qword [rsp + 0x30], rdi
mov edx, esi
mov rcx, qword [rsp + 0x50]
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], rdi
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
nop dword [rax + rax]
test eax, eax
je 0x140002396
xor ebx, ebx
test r15d, r15d
je 0x140002513
mov rsi, r12
mov rdx, qword [r14]
test rdx, rdx
je 0x1400024f1
mov rcx, qword [rsp + 0x50]
lea rax, [0x140012c00]
mov dword [rsp + 0x28], 1
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x140002505
test r12, r12
je 0x1400024f1
mov rcx, qword [r14]
lea edx, [rax + 0x5c]
call qword [sym.imp.msvcrt.dll_wcsrchr]
nop dword [rax + rax]
test rax, rax
je 0x14000247e
add rax, 2
jmp 0x140002481
mov rax, qword [r14]
mov rcx, qword [rsp + 0x58]
lea r8, [rsp + 0x48]
and qword [rsp + 0x48], rdi
mov rdx, rax
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
nop dword [rax + rax]
test eax, eax
jne 0x140002505
mov eax, dword [rsi]
lea rdx, str.RedirectToHKCU
mov rcx, qword [rsp + 0x48]
mov r9d, 4
mov dword [rsp + 0x40], eax
xor r8d, r8d
lea rax, [rsp + 0x40]
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x140002505
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
inc ebx
add r14, 8
add rsi, 4
cmp ebx, r15d
jae 0x140002513
jmp 0x140002416
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov rbx, qword [rsp + 0x50]
test rbx, rbx
je 0x14000252c
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140002542
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov eax, edi
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.14000f1e0
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret