Function at 0x14009c7b0
Capabilities:
Enumerate files on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x280]
sub rsp, 0x380
mov qword [rbp - 0x18], 0xfffffffffffffffe
mov qword [rsp + 0x3d8], rbx
mov rax, qword [0x140dda370]
xor rax, rsp
mov qword [rbp + 0x270], rax
mov rdi, r8
mov r13, rdx
mov qword [rsp + 0x40], rdx
mov r12, rcx
xor r14d, r14d
mov r15d, r14d
mov dword [rsp + 0x60], r14d
xor al, al
or esi, 0xffffffff
lea ebx, [rsi + 2]
cmp qword [rcx + 0x10], 0xffffffffffffffff
jne 0x14009ca2a
cmp byte [rcx + 0x20], r14b
jne 0x14009ca2a
mov byte [rsp + 0x30], bl
mov r13d, r14d
call fcn.140015870
cmp eax, 0x90
jl 0x14009c83c
lea r14d, [rsi + 3]
mov r13d, ebx
xor ebx, ebx
cmp byte [r12 + 0x28], bl
mov eax, 1
cmovne ebx, eax
mov rcx, r12
call fcn.14000b320
mov rcx, rax
mov dword [rsp + 0x28], r14d
xor r14d, r14d
mov qword [rsp + 0x20], r14
mov r9d, ebx
lea r8, [rbp + 0x20]
mov edx, r13d
call qword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov qword [r12 + 0x10], rax
cmp rax, 0xffffffffffffffff
jne 0x14009ca20
lea rax, [0x140d9b000]
mov qword [rsp + 0x70], rax
mov ebx, 1
mov r8d, ebx
lea rdx, [rsp + 0x70]
mov rcx, r12
call fcn.140009de0
test al, al
je 0x14009ca1b
mov eax, 0x5c
mov word [rsp + 0x32], ax
mov dword [rsp + 0x20], ebx
mov r9d, ebx
lea r8, [rsp + 0x32]
lea rdx, [rsp + 0x38]
mov rcx, r12
call fcn.140011220
nop
mov rax, qword [rsp + 0x38]
movsxd rdx, dword [rax + 8]
mov ecx, dword [rax + 0xc]
sub ecx, edx
cmp ecx, 4
jne 0x14009c932
lea rdx, [rax + rdx*8 + 0x28]
lea rax, [0x140d7ded8]
mov qword [rbp - 0x80], rax
lea rax, [rbp - 0x80]
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x20], rdx
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x28]
call fcn.140041c10
nop
mov r15d, ebx
mov dword [rsp + 0x60], ebx
lea rdx, [r12 + 0x18]
lea rcx, [rsp + 0x50]
call fcn.14006c900
test al, al
mov rax, qword [rsp + 0x38]
je 0x14009c932
movzx ebx, r15b
jmp 0x14009c934
xor bl, bl
test r15b, 1
je 0x14009c953
mov rax, qword [rsp + 0x50]
lock dec dword [rax]
jne 0x14009c94e
mov rcx, qword [rsp + 0x50]
call fcn.14000ade0
mov rax, qword [rsp + 0x38]
test bl, bl
je 0x14009c9c3
mov rdx, qword [r12 + 0x18]
mov ecx, dword [rdx + 8]
cmp dword [rdx + 0xc], ecx
jne 0x14009c9bd
lock dec dword [rax]
jne 0x14009c9b6
mov r12, qword [rsp + 0x38]
movsxd rax, dword [r12 + 0xc]
lea rbx, [r12 + rax*8 + 0x18]
movsxd rax, dword [r12 + 8]
lea rdi, [r12 + rax*8 + 0x18]
cmp rdi, rbx
je 0x14009c9ae
nop word [rax + rax]
sub rbx, 8
mov rdx, qword [rbx]
mov eax, esi
lock xadd dword [rdx], eax
dec eax
jne 0x14009c9a9
mov rcx, qword [rbx]
call fcn.14000ade0
cmp rbx, rdi
jne 0x14009c990
mov rcx, r12
call fcn.140004d80
xor al, al
jmp 0x14009cd07
mov byte [r12 + 0x20], 1
lock dec dword [rax]
jne 0x14009ca20
mov r14, qword [rsp + 0x38]
movsxd rax, dword [r14 + 0xc]
lea rbx, [r14 + rax*8 + 0x18]
movsxd rax, dword [r14 + 8]
lea r13, [r14 + rax*8 + 0x18]
cmp r13, rbx
je 0x14009ca0e
nop word [rax + rax]
sub rbx, 8
mov rdx, qword [rbx]
mov eax, esi
lock xadd dword [rdx], eax
dec eax
jne 0x14009ca09
mov rcx, qword [rbx]
call fcn.14000ade0
cmp rbx, r13
jne 0x14009c9f0
mov rcx, r14
call fcn.140004d80
xor r14d, r14d
jmp 0x14009ca20
movzx eax, bl
jmp 0x14009ca25
movzx eax, byte [rsp + 0x30]
mov r13, qword [rsp + 0x40]
mov rcx, qword [r12 + 0x10]
cmp rcx, 0xffffffffffffffff
jne 0x14009ca41
cmp byte [r12 + 0x20], 0
je 0x14009c9b6
test al, al
jne 0x14009ca7c
cmp byte [r12 + 0x20], al
je 0x14009ca6a
inc dword [r12 + 0x24]
mov rax, qword [r12 + 0x18]
mov ecx, dword [rax + 0xc]
sub ecx, dword [rax + 8]
cmp dword [r12 + 0x24], ecx
jl 0x14009ca7c
xor al, al
jmp 0x14009cd07
lea rdx, [rbp + 0x20]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x14009c9b6
cmp byte [r12 + 0x20], 0
je 0x14009cb5a
mov rdx, qword [r12 + 0x18]
movsxd rcx, dword [r12 + 0x24]
movsxd rax, dword [rdx + 8]
add rcx, rax
lea rdx, [rdx + rcx*8 + 0x18]
lea rax, [r12 + 8]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], rdx
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x48]
call fcn.140024df0
nop
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x60]
call fcn.14006e550
mov rbx, rax
mov rdx, rax
mov rcx, r13
call fcn.14000b0d0
lea rdx, [rbx + 8]
lea rcx, [r13 + 8]
call fcn.14000b0d0
movzx r11d, word [rbx + 0x10]
mov word [r13 + 0x10], r11w
movzx ecx, word [rbx + 0x12]
mov word [r13 + 0x12], cx
movzx eax, word [rbx + 0x14]
mov word [r13 + 0x14], ax
mov rax, qword [rbp - 0x58]
lock dec dword [rax]
jne 0x14009cb12
mov rcx, qword [rbp - 0x58]
call fcn.14000ade0
nop
mov rax, qword [rbp - 0x60]
lock dec dword [rax]
jne 0x14009cb25
mov rcx, qword [rbp - 0x60]
call fcn.14000ade0
nop
mov rax, qword [rsp + 0x58]
lock dec dword [rax]
jne 0x14009cb39
mov rcx, qword [rsp + 0x58]
call fcn.14000ade0
mov dword [rdi + 0x10], 0x10
mov ecx, 0x40000
or dword [rdi + 4], ecx
or dword [rdi + 4], 0x400000
or dword [rdi], 0x560000
jmp 0x14009cd05
mov r8d, esi
lea rdx, [rbp + 0x4c]
lea rcx, [rsp + 0x48]
call fcn.14000ed80
nop
lea rax, [r12 + 8]
mov qword [rbp - 0x38], rax
lea rax, [rsp + 0x48]
mov qword [rbp - 0x30], rax
lea rdx, [rsp + 0x68]
lea rcx, [rbp - 0x38]
call fcn.140024df0
nop
lea rdx, [rsp + 0x68]
lea rcx, [rbp - 0x78]
call fcn.14006e550
mov rbx, rax
mov rdx, rax
mov rcx, r13
call fcn.14000b0d0
lea rdx, [rbx + 8]
lea rcx, [r13 + 8]
call fcn.14000b0d0
movzx r11d, word [rbx + 0x10]
mov word [r13 + 0x10], r11w
movzx ecx, word [rbx + 0x12]
mov word [r13 + 0x12], cx
movzx eax, word [rbx + 0x14]
mov word [r13 + 0x14], ax
mov rax, qword [rbp - 0x70]
lock dec dword [rax]
jne 0x14009cbe5
mov rcx, qword [rbp - 0x70]
call fcn.14000ade0
nop
mov rax, qword [rbp - 0x78]
lock dec dword [rax]
jne 0x14009cbf8
mov rcx, qword [rbp - 0x78]
call fcn.14000ade0
nop
mov rax, qword [rsp + 0x68]
lock dec dword [rax]
jne 0x14009cc0c
mov rcx, qword [rsp + 0x68]
call fcn.14000ade0
mov qword [rdi], 0
mov rax, qword [rbp - 8]
mov qword [rdi + 8], rax
mov eax, dword [rbp]
mov dword [rdi + 0x10], eax
mov rax, qword [rbp + 4]
mov qword [rdi + 0x14], rax
mov rax, qword [rbp + 0xc]
mov qword [rdi + 0x1c], rax
mov rax, qword [rbp + 0x14]
mov qword [rdi + 0x24], rax
lea rax, [0x140d88c70]
mov qword [rsp + 0x78], rax
mov r8d, 1
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x48]
call fcn.140009e20
test al, al
jne 0x14009ccf1
mov eax, dword [rbp + 0x20]
mov dword [rdi + 0x10], eax
test al, 2
je 0x14009cc73
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 edx, dword [rdi]
mov rax, qword [rbp + 0x24]
mov qword [rdi + 0x14], rax
mov rax, qword [rbp + 0x2c]
mov qword [rdi + 0x1c], rax
mov rax, qword [rbp + 0x34]
mov qword [rdi + 0x24], rax
test byte [rdi + 0x10], 0x10
je 0x14009ccb8
mov qword [rdi + 8], r14
jmp 0x14009ccc9
mov ecx, dword [rbp + 0x3c]
shl rcx, 0x20
mov eax, dword [rbp + 0x40]
add rcx, rax
mov qword [rdi + 8], rcx
or edx, 0x7210000
mov dword [rdi], edx
and dword [rdi + 4], 0xfffeffff
test dword [rdi + 0x10], 0x400
je 0x14009ccf1
cmp dword [rbp + 0x44], 0xa000000c
jne 0x14009ccf1
or dword [rdi + 4], 0x10000
mov rax, qword [rsp + 0x48]
lock dec dword [rax]
jne 0x14009cd05
mov rcx, qword [rsp + 0x48]
call fcn.14000ade0
mov al, 1
mov rcx, qword [rbp + 0x270]
xor rcx, rsp
call fcn.1400ac900
mov rbx, qword [rsp + 0x3d8]
add rsp, 0x380
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret