Function at 0x14008d680
Capabilities:
Check for time delay via gettickcount
Check if file exists
Copy file
Delete file
Enumerate files on windows
Get file attributes
Move file

Disassembly:
mov qword [rsp + 0x18], rbx
mov byte [rsp + 0x20], r9b
push rbp
push rsi
push rdi
push r12
push r13
lea rbp, [rsp - 0x203d0]
mov eax, 0x204d0
call fcn.1400e0020
sub rsp, rax
movzx r13d, r8b
mov rbx, rdx
lea r8, [rbp + 0x3d0]
xor r9d, r9d
mov edx, 0x8000
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rbp + 0x3d0]
xor esi, esi
repne scasw ax, word [rdi]
not rcx
dec rcx
je 0x14008d6ef
cmp word [rbp + rcx*2 + 0x3ce], 0x5c
jne 0x14008d6ef
mov word [rbp + rcx*2 + 0x3ce], si
lea r8, [rbp + 0x103d0]
xor r9d, r9d
mov edx, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rbp + 0x103d0]
repne scasw ax, word [rdi]
not rcx
dec rcx
je 0x14008d732
cmp word [rbp + rcx*2 + 0x103ce], 0x5c
jne 0x14008d732
mov word [rbp + rcx*2 + 0x103ce], si
lea rcx, [rbp + 0x3d0]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14008d76e
test al, 0x10
je 0x14008d76e
xor eax, eax
lea rdi, [rbp + 0x3d0]
or rcx, 0xffffffffffffffff
repne scasw ax, word [rdi]
mov rax, qword [0x1400fe600]
mov qword [rdi - 2], rax
movzx eax, word [0x1400fe608]
mov word [rdi + 6], ax
lea rcx, [rbp + 0x103d0]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14008d7aa
test al, 0x10
je 0x14008d7aa
xor eax, eax
lea rdi, [rbp + 0x103d0]
or rcx, 0xffffffffffffffff
repne scasw ax, word [rdi]
mov rax, qword [0x1400fe600]
mov qword [rdi - 2], rax
movzx eax, word [0x1400fe608]
mov word [rdi + 6], ax
lea rdx, [rsp + 0x70]
lea rcx, [rbp + 0x3d0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov r12, rax
cmp rax, 0xffffffffffffffff
jne 0x14008d7db
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rbp + 0x20420]
mov dword [rcx], eax
xor eax, eax
jmp 0x14008d902
mov rsi, qword [rbp + 0x20420]
xor edi, edi
lea rcx, [rbp + 0x3d0]
lea edx, [rdi + 0x5c]
mov qword [rsp + 0x20500], r14
mov qword [rsp + 0x20508], r15
mov dword [rsi], edi
call fcn.1400d63cc
lea edx, [rdi + 0x5c]
lea rcx, [rbp + 0x103d0]
mov r15, rax
call fcn.1400d63cc
lea rcx, [r15 + 2]
mov r8d, 0x103
mov r14, rax
lea rax, [rbp + 0x3d0]
sub rcx, rax
mov eax, 0x7fff
lea rdx, [r14 + 2]
sar rcx, 1
sub rax, rcx
lea rcx, [rbp + 0x1c0]
mov qword [rsp + 0x30], rax
call fcn.1400d94e4
mov word [rbp + 0x3c6], di
mov ebx, edi
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [0x1401245a8]
sub eax, dword [0x14012c0f4]
cmp eax, dword [rcx + 0x118]
jbe 0x14008d8a6
lea rcx, [rsp + 0x38]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], edi
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x14008d89a
mov edx, 1
or ecx, 0xffffffff
call fcn.140001b60
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x14012c0f4], eax
test byte [rsp + 0x70], 0x10
jne 0x14008d8d1
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rbp - 0x64]
repne scasw ax, word [rdi]
not rcx
dec rcx
cmp rcx, qword [rsp + 0x30]
jbe 0x14008d919
mov dword [rsi], reloc.WSOCK32.dll_WSAGetLastError
inc ebx
xor edi, edi
lea rdx, [rsp + 0x70]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x14008d857
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindClose]
mov r15, qword [rsp + 0x20508]
mov r14, qword [rsp + 0x20500]
mov eax, ebx
mov rbx, qword [rsp + 0x20510]
add rsp, 0x204d0
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea rax, [rbp - 0x64]
lea rdx, [r15 + 2]
lea rcx, [rbp - 0x64]
sub rdx, rax
nop dword [rax + rax]
movzx eax, word [rcx]
add rcx, 2
mov word [rdx + rcx - 2], ax
test ax, ax
jne 0x14008d930
lea r8, [r14 + 2]
lea rdx, [rbp + 0x1c0]
lea rcx, [rbp - 0x64]
call fcn.14008d9f0
cmp byte [rbp + 0x20418], 0
lea rdx, [rbp + 0x103d0]
lea rcx, [rbp + 0x3d0]
je 0x14008d9b9
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x14008d8cf
test r13b, r13b
je 0x14008d9ac
lea rcx, [rbp + 0x103d0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x14008d9ac
lea rdx, [rbp + 0x103d0]
lea rcx, [rbp + 0x3d0]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x14008d8cf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsi], eax
jmp 0x14008d8cd
xor edi, edi
test r13b, r13b
mov r8d, edi
sete r8b
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x14008d8d1
call qword [sym.imp.KERNEL32.dll_GetLastError]
inc ebx
mov dword [rsi], eax
jmp 0x14008d8d1