Function at 0x1400cb560
Capabilities:
Enumerate files on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x300]
sub rsp, 0x400
mov qword [rbp + 0x10], 0xfffffffffffffffe
mov qword [rsp + 0x458], rbx
mov rax, qword [0x1410cc870]
xor rax, rsp
mov qword [rbp + 0x2f0], rax
mov rdi, r8
mov rbx, rdx
mov qword [rsp + 0x50], rdx
mov r14, rcx
xor r13d, r13d
mov r15d, r13d
mov dword [rsp + 0x64], r13d
xor al, al
or rsi, 0xffffffffffffffff
cmp qword [rcx + 0x10], rsi
jne 0x1400cb7c8
cmp byte [rcx + 0x20], r13b
jne 0x1400cb7c8
mov byte [rsp + 0x30], 1
mov r12d, r13d
lea rcx, [rbp + 0x88]
call fcn.140089e20
mov ecx, dword [rax]
cmp ecx, dword [0x1410cbd40]
jne 0x1400cb608
lea rdx, [0x1410cbd40]
mov rcx, rax
call fcn.140089ff0
test eax, eax
js 0x1400cb608
lea r13d, [rsi + 3]
lea r12d, [rsi + 2]
xor ebx, ebx
cmp byte [r14 + 0x28], bl
setne bl
mov rcx, r14
call fcn.140022180
mov rcx, rax
mov dword [rsp + 0x28], r13d
xor r13d, r13d
mov qword [rsp + 0x20], r13
mov r9d, ebx
lea r8, [rbp + 0xa0]
mov edx, r12d
call qword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov qword [r14 + 0x10], rax
cmp rax, 0xffffffffffffffff
jne 0x1400cb7be
mov dword [rbp - 0x70], 8
lea rax, [0x140298990]
mov qword [rbp - 0x68], rax
movaps xmm0, xmmword [rbp - 0x70]
movdqa xmmword [rbp + 0x30], xmm0
lea r8d, [r13 + 1]
lea rdx, [rbp + 0x30]
mov rcx, r14
call fcn.140020b30
test al, al
je 0x1400cb7be
mov dword [rbp - 0x80], 1
mov eax, 0x5c
mov word [rsp + 0x60], ax
mov dword [rsp + 0x20], 1
lea r9d, [r13 + 1]
movzx r8d, ax
lea rdx, [rsp + 0x38]
mov rcx, r14
call fcn.1400209e0
nop
mov rcx, qword [rsp + 0x38]
cmp dword [rcx + 4], 4
jne 0x1400cb714
lea rdx, [rcx + 0x20]
add rdx, qword [rcx + 0x10]
mov dword [rbp - 0x30], 2
lea rax, [0x1401fb948]
mov qword [rbp - 0x28], rax
lea rax, [rbp - 0x30]
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rdx
lea rdx, [rsp + 0x68]
lea rcx, [rbp - 0x20]
call fcn.14005f7d0
nop
mov r15d, 1
mov dword [rsp + 0x64], r15d
lea rdx, [r14 + 0x18]
lea rcx, [rsp + 0x68]
call fcn.140064ec0
mov rcx, qword [rsp + 0x38]
test al, al
je 0x1400cb714
movzx ebx, r15b
jmp 0x1400cb716
xor bl, bl
test r15b, 1
je 0x1400cb752
mov rax, qword [rsp + 0x68]
mov edx, dword [rax]
test edx, edx
je 0x1400cb73c
cmp edx, 0xffffffff
je 0x1400cb752
mov ecx, esi
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x1400cb74d
mov rax, qword [rsp + 0x68]
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, rax
call fcn.14002cfa0
mov rcx, qword [rsp + 0x38]
test bl, bl
je 0x1400cb795
mov rdx, qword [r14 + 0x18]
mov eax, dword [rdx + 8]
cmp dword [rdx + 0xc], eax
jne 0x1400cb790
mov eax, dword [rcx]
test eax, eax
je 0x1400cb77b
cmp eax, 0xffffffff
je 0x1400cb789
lock xadd dword [rcx], esi
cmp esi, 1
jne 0x1400cb789
mov rcx, qword [rsp + 0x38]
mov edx, 0x10
lea r8d, [rdx - 8]
call fcn.14002cfa0
xor al, al
jmp 0x1400cbba0
mov byte [r14 + 0x20], 1
mov eax, dword [rcx]
test eax, eax
je 0x1400cb7b0
cmp eax, 0xffffffff
je 0x1400cb7be
mov eax, esi
lock xadd dword [rcx], eax
sub eax, 1
jne 0x1400cb7be
mov rcx, qword [rsp + 0x38]
mov edx, 0x10
lea r8d, [rdx - 8]
call fcn.14002cfa0
mov rbx, qword [rsp + 0x50]
movzx eax, byte [rsp + 0x30]
mov rcx, qword [r14 + 0x10]
cmp rcx, 0xffffffffffffffff
jne 0x1400cb7d9
cmp byte [r14 + 0x20], 0
je 0x1400cb789
test al, al
jne 0x1400cb813
cmp byte [r14 + 0x20], al
je 0x1400cb7fe
inc dword [r14 + 0x24]
mov rax, qword [r14 + 0x18]
mov ecx, dword [rax + 0xc]
sub ecx, dword [rax + 8]
cmp dword [r14 + 0x24], ecx
jl 0x1400cb813
xor al, al
jmp 0x1400cbba0
lea rdx, [rbp + 0xa0]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x1400cb789
cmp byte [r14 + 0x20], 0
je 0x1400cb944
mov rdx, qword [r14 + 0x18]
movsxd rcx, dword [rdx + 8]
movsxd rax, dword [r14 + 0x24]
add rcx, rax
lea rdx, [rdx + rcx*8]
add rdx, 0x10
lea rax, [r14 + 8]
mov qword [rbp - 0x10], rax
mov qword [rbp - 8], rdx
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x10]
call fcn.140025ba0
nop
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x60]
call fcn.14005b980
mov r8, rax
mov rdx, qword [rbx]
mov qword [rbp + 0x18], rdx
mov rcx, qword [rax]
mov qword [rbx], rcx
mov qword [rax], rdx
mov rdx, qword [rbx + 8]
mov qword [rbp + 0x20], rdx
mov rcx, qword [rax + 8]
mov qword [rbx + 8], rcx
mov qword [rax + 8], rdx
movzx ecx, word [rax + 0x10]
mov word [rbx + 0x10], cx
movzx eax, word [rax + 0x12]
mov word [rbx + 0x12], ax
movzx eax, word [r8 + 0x14]
mov word [rbx + 0x14], ax
mov rcx, qword [rbp - 0x58]
mov eax, dword [rcx]
test eax, eax
je 0x1400cb8bc
cmp eax, 0xffffffff
je 0x1400cb8ca
mov eax, esi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1400cb8ca
mov rcx, qword [rbp - 0x58]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002cfa0
mov rcx, qword [rbp - 0x60]
mov eax, dword [rcx]
test eax, eax
je 0x1400cb8e8
cmp eax, 0xffffffff
je 0x1400cb8f7
mov eax, esi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1400cb8f7
mov rcx, qword [rbp - 0x60]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002cfa0
nop
mov rcx, qword [rsp + 0x70]
mov eax, dword [rcx]
test eax, eax
je 0x1400cb915
cmp eax, 0xffffffff
je 0x1400cb923
lock xadd dword [rcx], esi
cmp esi, 1
jne 0x1400cb923
mov rcx, qword [rsp + 0x70]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002cfa0
mov dword [rdi + 0x10], 0x10
mov ecx, 0x40000
or dword [rdi + 4], ecx
or dword [rdi + 4], 0x400000
or dword [rdi], 0x560000
jmp 0x1400cbb9e
mov r8d, esi
lea rdx, [rbp + 0xcc]
lea rcx, [rsp + 0x40]
call fcn.1400091b0
nop
lea rax, [r14 + 8]
mov qword [rbp], rax
lea rax, [rsp + 0x40]
mov qword [rbp + 8], rax
lea rdx, [rsp + 0x78]
lea rcx, [rbp]
call fcn.140025ba0
nop
lea rdx, [rsp + 0x78]
lea rcx, [rbp - 0x48]
call fcn.14005b980
mov r8, rax
mov rdx, qword [rbx]
mov qword [rbp + 0x28], rdx
mov rcx, qword [rax]
mov qword [rbx], rcx
mov qword [rax], rdx
mov rdx, qword [rbx + 8]
mov qword [rbp - 0x70], rdx
mov rcx, qword [rax + 8]
mov qword [rbx + 8], rcx
mov qword [rax + 8], rdx
movzx ecx, word [rax + 0x10]
mov word [rbx + 0x10], cx
movzx eax, word [rax + 0x12]
mov word [rbx + 0x12], ax
movzx eax, word [r8 + 0x14]
mov word [rbx + 0x14], ax
mov rcx, qword [rbp - 0x40]
mov eax, dword [rcx]
test eax, eax
je 0x1400cb9e5
cmp eax, 0xffffffff
je 0x1400cb9f3
mov eax, esi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1400cb9f3
mov rcx, qword [rbp - 0x40]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002cfa0
mov rcx, qword [rbp - 0x48]
mov eax, dword [rcx]
test eax, eax
je 0x1400cba11
cmp eax, 0xffffffff
je 0x1400cba20
mov eax, esi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1400cba20
mov rcx, qword [rbp - 0x48]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002cfa0
nop
mov rcx, qword [rsp + 0x78]
mov eax, dword [rcx]
test eax, eax
je 0x1400cba40
cmp eax, 0xffffffff
je 0x1400cba4e
mov eax, esi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1400cba4e
mov rcx, qword [rsp + 0x78]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002cfa0
mov qword [rbp + 0x50], 0
mov qword [rbp + 0x58], rsi
movups xmm0, xmmword [rbp + 0x50]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rbp + 0x60]
movups xmmword [rdi + 0x10], xmm1
movups xmm0, xmmword [rbp + 0x70]
movups xmmword [rdi + 0x20], xmm0
movsd xmm1, qword [rbp + 0x80]
movsd qword [rdi + 0x30], xmm1
mov dword [rsp + 0x50], 4
lea rax, [0x1401fc9f8]
mov qword [rsp + 0x58], rax
movaps xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rbp + 0x40], xmm0
mov r8d, 1
lea rdx, [rbp + 0x40]
lea rcx, [rsp + 0x40]
call fcn.14001bc50
test al, al
jne 0x1400cbb72
mov eax, dword [rbp + 0xa0]
mov dword [rdi + 0x10], eax
test al, 2
je 0x1400cbacc
or dword [rdi + 4], 0x100000
test al, 0x10
mov eax, 0x20000
mov ecx, 0x40000
cmovne eax, ecx
or dword [rdi + 4], eax
or dword [rdi + 4], 0x400000
or dword [rdi], 0x560000
mov rax, qword [rbp + 0xa4]
mov qword [rdi + 0x14], rax
mov rax, qword [rbp + 0xac]
mov qword [rdi + 0x24], rax
mov rax, qword [rbp + 0xb4]
mov qword [rdi + 0x2c], rax
mov qword [rdi + 0x1c], rax
test byte [rdi + 0x10], 0x10
je 0x1400cbb1c
mov qword [rdi + 8], r13
jmp 0x1400cbb33
mov ecx, dword [rbp + 0xbc]
shl rcx, 0x20
mov eax, dword [rbp + 0xc0]
add rcx, rax
mov qword [rdi + 8], rcx
or dword [rdi], 0x2210000
and dword [rdi + 4], 0xfffeffff
mov ecx, dword [rdi + 0x10]
bt ecx, 0xa
jae 0x1400cbb72
mov eax, dword [rbp + 0xc4]
cmp eax, 0xa000000c
jne 0x1400cbb5f
or dword [rdi + 4], 0x10000
jmp 0x1400cbb72
test cl, 0x10
je 0x1400cbb72
cmp eax, 0xa0000003
jne 0x1400cbb72
or dword [rdi + 4], 0x4000000
mov rcx, qword [rsp + 0x40]
mov eax, dword [rcx]
test eax, eax
je 0x1400cbb90
cmp eax, 0xffffffff
je 0x1400cbb9e
lock xadd dword [rcx], esi
cmp esi, 1
jne 0x1400cbb9e
mov rcx, qword [rsp + 0x40]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002cfa0
mov al, 1
mov rcx, qword [rbp + 0x2f0]
xor rcx, rsp
call fcn.14015c110
mov rbx, qword [rsp + 0x458]
add rsp, 0x400
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret