Function at 0x180016bc0
Capabilities:
Copy file
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0x7f8]
sub rsp, 0x8f0
mov rax, qword [0x1800240b0]
xor rax, rsp
mov qword [rbp + 0x7e0], rax
mov rdi, rdx
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x48], rcx
xor ebx, ebx
or rsi, 0xffffffffffffffff
call qword [sym.imp.SETUPAPI.dll_SetupGetThreadLogToken]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x48]
test rax, rax
je 0x180016e8d
test rdi, rdi
je 0x180016e8d
mov esi, 0x104
lea rcx, [rbp + 0x5d0]
mov r8, rax
mov edx, esi
call fcn.1800035e0
test eax, eax
js 0x180016e86
lea rdx, [0x180020ab0]
lea rcx, [rbp + 0x5d0]
mov r8d, esi
call fcn.18001a2a4
test eax, eax
je 0x180016e86
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 0x5d0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x180016ea1
mov ebx, 0x104
lea rcx, [rbp + 0x1b0]
mov r8, rdi
mov edx, ebx
call fcn.1800035e0
test eax, eax
js 0x180016e7f
lea rdx, [0x180020ab0]
lea rcx, [rbp + 0x1b0]
mov r8d, ebx
call fcn.18001a2a4
test eax, eax
je 0x180016e7f
lea rcx, [rbp + 0x1b0]
call fcn.18001f058
mov ebx, eax
test eax, eax
jne 0x180016e92
test byte [rsp + 0x60], 0x10
je 0x180016d0a
lea rdx, [0x180020830]
lea rcx, [rbp - 0x74]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x180016e62
lea rdx, [0x180020d18]
lea rcx, [rbp - 0x74]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x180016e62
mov r8, qword [rsp + 0x48]
lea rcx, [rbp + 0x3c0]
mov edx, 0x104
call fcn.1800035e0
test eax, eax
js 0x180016e62
lea rdx, [rbp - 0x74]
lea rcx, [rbp + 0x3c0]
mov r8d, 0x104
call fcn.18001a2a4
test eax, eax
je 0x180016e62
mov r8, rdi
mov edi, 0x104
lea rcx, [rbp + 0x1b0]
mov edx, edi
call fcn.1800035e0
test eax, eax
js 0x180016e62
lea rdx, [rbp - 0x74]
lea rcx, [rbp + 0x1b0]
mov r8d, edi
call fcn.18001a2a4
test eax, eax
je 0x180016e62
test byte [rsp + 0x60], 0x10
je 0x180016da0
lea rdx, [rbp + 0x1b0]
lea rcx, [rbp + 0x3c0]
call fcn.180016bc0
mov ebx, eax
jmp 0x180016e27
xor edi, edi
lea rdx, [rbp + 0x1b0]
lea rcx, [rbp + 0x3c0]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x180016e2d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 5
je 0x180016dd2
add eax, 0xffffffe0
cmp eax, 1
ja 0x180016dec
mov eax, edi
inc edi
cmp eax, 0xa
jae 0x180016dec
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
test ebx, ebx
jne 0x180016da2
jmp 0x180016e2f
test ebx, ebx
je 0x180016e2f
mov rcx, qword [rsp + 0x40]
lea rax, [rbp + 0x1b0]
mov edx, 8
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x3c0]
lea r9, [0x180016ed0]
lea r8d, [rdx - 7]
mov qword [rsp + 0x20], rax
call qword [sym.imp.SETUPAPI.dll_SetupWriteTextLog]
test ebx, ebx
jne 0x180016e92
jmp 0x180016e62
xor ebx, ebx
mov rcx, qword [rsp + 0x40]
lea rax, [rbp + 0x1b0]
mov edx, 8
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x3c0]
lea r9, [0x180020a60]
lea r8d, [rdx - 1]
mov qword [rsp + 0x20], rax
call qword [sym.imp.SETUPAPI.dll_SetupWriteTextLog]
lea rdx, [rsp + 0x60]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
mov rdi, qword [rsp + 0x50]
test eax, eax
jne 0x180016cd1
jmp 0x180016e92
mov ebx, 0xd
jmp 0x180016e92
mov ebx, 0xd
jmp 0x180016ea1
mov ebx, 0x57
cmp rsi, 0xffffffffffffffff
je 0x180016ea1
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov eax, ebx
mov rcx, qword [rbp + 0x7e0]
xor rcx, rsp
call fcn.180001ac0
lea r11, [rsp + 0x8f0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret