Function at 0x1400068a0
Capabilities:
Copy file
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x690
mov rax, qword [0x14003f198]
xor rax, rsp
mov qword [rsp + 0x680], rax
mov ebp, r9d
mov r14d, r8d
mov rsi, rdx
mov rdi, rcx
call fcn.140005ec0
test rax, rax
je 0x140006b6a
mov qword [rsp + 0x6c0], rbx
call fcn.140005ec0
mov rbx, rax
test rdi, rdi
je 0x140006b62
test rsi, rsi
je 0x140006b62
mov rcx, 0xffffffffffffffff
inc rcx
cmp word [rsi + rcx*2], 0
jne 0x140006905
cmp rcx, 0x104
ja 0x140006b62
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rdi + rax], 0
jne 0x140006923
cmp rax, 0x100
ja 0x140006b62
mov r8, rdi
mov dword [rbx + 4], ebp
mov edx, 0x100
lea rcx, [rbx + 0xc]
call fcn.140016de0
test byte [rbx + 4], 2
je 0x140006b4b
lea rax, [rsp + 0x48]
mov r9d, 0x20119
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [0x140030250]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140006a14
mov r9d, 0xffffffff
mov dword [rsp + 0x28], 0x104
lea rax, [rsp + 0x260]
xor ecx, ecx
lea r8, [rbx + 0xc]
mov qword [rsp + 0x20], rax
lea edx, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x44]
lea rax, [rsp + 0x470]
mov dword [rsp + 0x40], 0x208
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x260]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140006a14
cmp dword [rsp + 0x44], 1
jne 0x140006a14
cmp dword [rsp + 0x40], eax
jbe 0x140006a14
lea rcx, [rbx + 0x10e]
mov edx, 0x104
lea r8, [rsp + 0x470]
call fcn.140016d78
lea rdi, [rbx + 0x10e]
xor ebp, ebp
cmp word [rdi], bp
jne 0x140006a73
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov r8d, 0x104
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [rbp + 0x5c]
mov rcx, rdi
call fcn.14000c90c
test rax, rax
je 0x140006a4f
mov word [rax], bp
lea r8, [0x14003024c]
mov edx, 0x104
mov rcx, rdi
call fcn.140010f18
mov r8, rsi
mov edx, 0x104
mov rcx, rdi
call fcn.140010f18
test r14d, r14d
je 0x140006b09
mov r8, rdi
lea rcx, [rsp + 0x50]
mov edx, 0x104
call fcn.140016d78
mov edx, 0x2e
lea rcx, [rsp + 0x50]
call fcn.14000c510
lea rcx, [rsp + 0x260]
mov rsi, rax
mov edx, 0x104
test rax, rax
je 0x140006abf
mov r8, rax
call fcn.140016d78
mov word [rsi], bp
jmp 0x140006acb
lea r8, str..txt
call fcn.140016d78
lea r8, str.Backup
mov edx, 0x104
lea rcx, [rsp + 0x50]
call fcn.140010f18
lea r8, [rsp + 0x260]
mov edx, 0x104
lea rcx, [rsp + 0x50]
call fcn.140010f18
xor r8d, r8d
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CopyFileW]
mov qword [rsp + 0x30], rbp
xor r9d, r9d
mov dword [rsp + 0x28], ebp
xor r8d, r8d
mov edx, 0xc0000000
mov dword [rsp + 0x20], 2
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x140006b4b
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rbx + 0x318], 1
lea rcx, [rbx + 0x320]
mov edx, 0x40000
call fcn.140008560
mov dword [rbx], 1
mov rbx, qword [rsp + 0x6c0]
mov rcx, qword [rsp + 0x680]
xor rcx, rsp
call fcn.14000a0a0
mov rbp, qword [rsp + 0x6c8]
add rsp, 0x690
pop r14
pop rdi
pop rsi
ret