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

Disassembly:
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x110]
sub rsp, 0x210
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rsp + 0x240], rbx
mov rax, qword [0x18005d0e0]
xor rax, rsp
mov qword [rbp + 0x100], rax
mov rsi, rdx
mov rdi, rcx
mov qword [rsp + 0x28], rcx
mov qword [rbp - 0x78], rcx
mov qword [rbp - 0x70], rdx
lea rdx, [0x18004e2a0]
call fcn.180003f10
lea rdx, [0x18004e2a0]
mov rcx, rsi
call fcn.180003f10
mov rdx, qword [rsi]
xor eax, eax
test rdx, rdx
setne al
test eax, eax
jne 0x180005cbd
mov ecx, 0x80004005
call fcn.180001050
int3
mov rcx, qword [rdi]
call fcn.180030ab0
test eax, eax
sete al
test al, al
je 0x180005cf5
mov rdx, qword [rdi]
sub rdx, 0x18
or rbx, 0xffffffffffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x180005cf0
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
jmp 0x18000603c
mov rdx, qword [rdi]
cmp dword [rdx - 0x10], 0
je 0x18000601d
mov rax, qword [rsi]
cmp dword [rax - 0x10], 0
je 0x18000601d
mov r8d, 1
lea rdx, [0x18004e2a0]
mov rcx, rsi
call fcn.180003ff0
mov r8d, 1
lea rdx, [0x18004e2a0]
mov rcx, rdi
call fcn.180003ff0
mov rcx, qword [rsi]
sub rcx, 0x18
call fcn.180001790
add rax, 0x18
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x58]
call fcn.180020a40
mov rdx, qword [rdi]
mov qword [rbp - 0x50], sendto
mov qword [rbp - 0x58], 0
mov byte [rbp - 0x68], 0
xor eax, eax
or rbx, 0xffffffffffffffff
mov rcx, rbx
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rbp - 0x68]
call fcn.180001660
nop
lea r8d, [rbx + 4]
lea rdx, [0x18004e32c]
lea rcx, [rbp - 0x68]
call fcn.1800071f0
lea rcx, [rbp - 0x68]
cmp qword [rbp - 0x50], 0x10
cmovae rcx, qword [rbp - 0x68]
lea rdx, [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rdi, rax
mov qword [rsp + 0x70], rax
cmp rax, rbx
je 0x180005fd4
nop dword [rax + rax]
cmp byte [rbp - 0x14], 0x2e
jne 0x180005ded
lea rdx, [rbp - 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x180005fca
jmp 0x180005dd0
lea rcx, [0x18005d078]
mov rax, qword [0x18005d078]
test byte [rbp - 0x40], 0x10
je 0x180005f04
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x40], rax
lea r9, [rbp - 0x14]
mov rax, qword [rsp + 0x28]
mov r8, qword [rax]
lea rdx, str._s_s_
lea rcx, [rsp + 0x40]
call fcn.180002980
lea rcx, [0x18005d078]
mov rax, qword [0x18005d078]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x30], rax
lea r9, [rbp - 0x14]
mov r8, qword [rsi]
lea rdx, str._s_s_
lea rcx, [rsp + 0x30]
call fcn.180002980
mov rdi, qword [rsp + 0x30]
add rdi, 0xffffffffffffffe8
mov qword [rsp + 0x60], rdi
mov rcx, rdi
call fcn.180001790
add rax, 0x18
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x68]
call fcn.180020a40
lea r11, [rsp + 0x38]
mov qword [rbp - 0x80], r11
mov rcx, rdi
call fcn.180001790
add rax, 0x18
mov qword [rsp + 0x38], rax
mov rdi, qword [rsp + 0x40]
lea rcx, [rdi - 0x18]
call fcn.180001790
add rax, 0x18
mov qword [rsp + 0x50], rax
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x50]
call fcn.180005c40
nop
mov eax, ebx
mov rdx, qword [rsp + 0x60]
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x180005ee6
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov eax, ebx
lock xadd dword [rdi - 8], eax
dec eax
test eax, eax
jg 0x180005fb0
mov rcx, qword [rdi - 0x18]
lea rdx, [rdi - 0x18]
jmp 0x180005faa
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x14]
mov rax, qword [rsp + 0x28]
mov r8, qword [rax]
lea rdx, [0x18004e338]
lea rcx, [rsp + 0x20]
call fcn.180002980
lea rcx, [0x18005d078]
mov rax, qword [0x18005d078]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x48], rax
lea r9, [rbp - 0x14]
mov r8, qword [rsi]
lea rdx, [0x18004e338]
lea rcx, [rsp + 0x48]
call fcn.180002980
xor r8d, r8d
mov rdi, qword [rsp + 0x48]
mov rdx, rdi
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CopyFileA]
nop
lea rdx, [rdi - 0x18]
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x180005f91
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rdx, qword [rsp + 0x20]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x180005fb0
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
lea rdx, [rbp - 0x40]
mov rdi, qword [rsp + 0x70]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x180005dd0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
nop
cmp qword [rbp - 0x50], 0x10
jb 0x180005fe4
mov rcx, qword [rbp - 0x68]
call fcn.18002f934
mov qword [rbp - 0x50], sendto
mov qword [rbp - 0x58], 0
mov byte [rbp - 0x68], 0
mov rax, qword [rsp + 0x28]
mov rdx, qword [rax]
sub rdx, 0x18
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x18000601b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
jmp 0x18000603c
add rdx, 0xffffffffffffffe8
or rbx, 0xffffffffffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x18000603c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rdx, qword [rsi]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], ebx
dec ebx
test ebx, ebx
jg 0x180006057
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov rcx, qword [rbp + 0x100]
xor rcx, rsp
call fcn.18002f950
mov rbx, qword [rsp + 0x240]
add rsp, 0x210
pop rdi
pop rsi
pop rbp
ret