Function at 0x18015f450
Capabilities:
Enumerate files on windows
Read file on windows

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x428]
sub rsp, 0x500
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1803fc9f0]
xor rax, rsp
mov qword [rbp + 0x3f0], rax
mov r12, rdx
mov r14, rcx
mov r8, rdx
lea rdi, [rbp + 0x2e0]
sub rdi, rdx
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [r8]
mov byte [rdi + r8], al
lea r8, [r8 + 1]
test al, al
jne 0x18015f4b0
lea rcx, [rbp + 0x2e0]
call fcn.1802b0eb0
lea rcx, [rbp + 0x2e0]
dec rcx
lea rcx, [rcx + 1]
cmp byte [rcx], 0
jne 0x18015f4d6
mov eax, dword [0x180031b94]
mov dword [rcx], eax
movzx eax, word [reloc.WSOCK32.dll_WSACleanup]
mov word [rcx + 4], ax
lea rdx, [rbp + 0x1a0]
lea rcx, [rbp + 0x2e0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov r15, rax
cmp rax, 0xffffffffffffffff
je 0x18015f8cb
lea rcx, [r14 + 0x38]
call fcn.1802a12a0
test r15, r15
je 0x18015f8b9
xor r13d, r13d
nop dword [rax + rax]
mov rcx, r12
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rcx]
mov byte [rdi + rcx], al
lea rcx, [rcx + 1]
test al, al
jne 0x18015f540
lea rcx, [rbp + 0x2e0]
call fcn.1802b0eb0
lea rax, [rbp + 0x2e0]
dec rax
lea rax, [rax + 1]
cmp byte [rax], 0
jne 0x18015f564
lea r8, [rbp + 0x1cc]
xor edx, edx
nop word [rax + rax]
movzx ecx, byte [r8 + rdx]
mov byte [rax + rdx], cl
lea rdx, [rdx + 1]
test cl, cl
jne 0x18015f580
lea rcx, [r14 + 0x38]
call fcn.1802a16f0
mov rbx, rax
test rax, rax
je 0x18015f5db
mov rcx, rbx
call fcn.1800f1480
lea rdx, [rbp + 0x2e0]
mov rcx, rax
call fcn.1802d57c0
test eax, eax
je 0x18015f5d2
mov rdx, rbx
lea rcx, [r14 + 0x38]
call fcn.1802a1790
mov rbx, rax
test rax, rax
jne 0x18015f5a1
jmp 0x18015f5db
test rbx, rbx
jne 0x18015f888
lea rax, [rbp + 0x2e0]
or rcx, 0xffffffffffffffff
inc rcx
cmp byte [rax + rcx], 0
jne 0x18015f5e6
inc rcx
call fcn.1802b8484
mov rbx, rax
lea rdx, [rbp + 0x2e0]
lea rax, [rbp + 0x2e0]
mov r8, rbx
sub r8, rax
nop
movzx ecx, byte [rdx]
mov byte [r8 + rdx], cl
lea rdx, [rdx + 1]
test cl, cl
jne 0x18015f610
mov rdx, rbx
lea rcx, [r14 + 0x38]
call fcn.1802a1160
xor edx, edx
mov r8d, 0x220
lea rcx, [rbp - 0x80]
call fcn.1802c7550
mov r8d, 0x103
lea rdx, [rbp + 0x1cc]
lea rcx, [rbp + 0x9c]
call fcn.1802d7610
mov qword [rbp - 0x80], 2
mov byte [rbp - 0x78], 0
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 3]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x18015f86f
mov r9d, 2
xor r8d, r8d
lea edx, [r9 - 0xc]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
xor eax, eax
mov qword [rsp + 0x50], rax
mov word [rsp + 0x58], ax
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x40]
lea r8d, [rax + 0xa]
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov r8d, 4
lea rdx, [0x180031ca8]
lea rcx, [rsp + 0x50]
call fcn.1802d58d0
test eax, eax
jne 0x18015f864
movzx eax, word [rsp + 0x54]
mov edx, 0xfffffffe
sub edx, eax
mov dword [rsp + 0x40], edx
mov r9d, 2
xor r8d, r8d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x40]
mov r8d, 0x104
lea rdx, [rbp + 0x2e0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov r8d, 0x103
lea rdx, [rbp + 0x2e0]
lea rcx, [rbp + 0x9c]
call fcn.1802d7610
mov qword [rsp + 0x70], r13
mov qword [rsp + 0x78], r13
mov qword [rsp + 0x78], socket
mov qword [rsp + 0x70], r13
mov byte [rsp + 0x60], 0
cmp byte [rbp + 0x2e0], 0
jne 0x18015f77b
mov r8, r13
jmp 0x18015f790
lea rax, [rbp + 0x2e0]
or r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x18015f786
lea rdx, [rbp + 0x2e0]
lea rcx, [rsp + 0x60]
call fcn.1800ace90
nop
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x44]
call fcn.1802b6610
mov rcx, rax
call fcn.1800b2ad0
mov dword [rbp - 0x7c], eax
mov rax, qword [rsp + 0x78]
cmp rax, 0x10
jb 0x18015f80c
mov rcx, qword [rsp + 0x60]
inc rax
cmp rax, 0x1000
jb 0x18015f807
test cl, 0x1f
jne 0x18015f8b3
mov rax, qword [rcx - 8]
cmp rax, rcx
jae 0x18015f8ad
sub rcx, rax
cmp rcx, 8
jb 0x18015f8a7
cmp rcx, 0x27
ja 0x18015f8a1
mov rcx, rax
call fcn.18011da90
mov qword [rsp + 0x78], socket
mov qword [rsp + 0x70], r13
mov byte [rsp + 0x60], 0
lea rax, [rbp + 0x2e0]
or rcx, 0xffffffffffffffff
nop word [rax + rax]
lea rcx, [rcx + 1]
cmp byte [rax + rcx], 0
jne 0x18015f830
mov eax, dword [rbp + rcx + 0x2fa]
mov dword [rbp + 0x98], eax
mov eax, dword [rbp + rcx + 0x2fe]
mov qword [rbp - 0x70], rax
mov rax, qword [r14]
lea r8, [rbp - 0x80]
mov edx, recv
mov rcx, r14
call qword [rax + 0x48]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x18015f888
mov rax, qword [r14]
lea r9, [rbp + 0x9c]
lea r8, [0x180031cb0]
xor edx, edx
mov rcx, r14
call qword [rax + reloc.WSOCK32.dll_recv]
lea rdx, [rbp + 0x1a0]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x18015f8b9
jmp 0x18015f530
call fcn.1802d51b4
int3
call fcn.1802d51b4
int3
call fcn.1802d51b4
int3
call fcn.1802d51b4
int3
lea rcx, [r14 + 0x38]
call fcn.1802a1870
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, qword [rbp + 0x3f0]
xor rcx, rsp
call fcn.1802b85a0
lea r11, [rsp + 0x500]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret