Function at 0x1401687e0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push rbp
push rbx
push rsi
push rdi
lea rbp, [rsp - 0xad8]
sub rsp, 0xbd8
mov qword [rbp + 0x50], 0xfffffffffffffffe
mov rax, qword [0x140418a10]
xor rax, rsp
mov qword [rbp + 0xac0], rax
movzx esi, r9b
mov byte [rsp + 0x40], r9b
mov qword [rbp - 0x30], r8
mov qword [rbp - 0x28], rdx
mov rdi, rcx
mov qword [rbp - 0x38], rcx
xor eax, eax
mov qword [rbp - 0x68], rax
lea edx, [rax + 1]
lea rcx, [rbp - 0x70]
call fcn.1401ff260
mov eax, dword [rbp - 0x68]
inc eax
movsxd rdx, eax
mov r9d, 1
lea r8, [0x14034e8b4]
mov rcx, qword [rbp - 0x70]
call fcn.1402bd21c
mov edx, 1
lea rcx, [rbp - 0x70]
call fcn.140200570
nop
lea r8, [rbp - 0x70]
mov rdx, rdi
lea rcx, [rbp - 0x10]
call fcn.1400d2bd0
nop
cmp dword [rbp - 0x68], 0
jle 0x140168884
mov rcx, qword [rbp - 0x70]
call fcn.1402b9c20
lea rdx, [rbp + 0x70]
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
mov qword [rsp + 0x68], rax
cmp rax, 0xffffffffffffffff
jne 0x1401688a7
xor bl, bl
jmp 0x140168cc2
lea rdx, [0x140348ca0]
nop
test sil, sil
je 0x1401689c6
test byte [rbp + 0x70], 0x10
je 0x1401689c6
movzx ecx, word [rbp + 0x9c]
movzx eax, word [rbp + 0x9e]
cmp cx, word [0x140347c20]
jne 0x1401688e7
cmp ax, word [0x140347c22]
je 0x1401689c6
cmp cx, word [0x14034e8ac]
jne 0x14016890d
cmp ax, word [0x14034e8ae]
jne 0x14016890d
movzx eax, word [rbp + 0xa0]
cmp ax, word [0x14034e8b0]
je 0x1401689c6
lea rax, [rbp + 0x9c]
or rbx, 0xffffffffffffffff
nop dword [rax + rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x140168920
xor eax, eax
mov qword [rsp + 0x78], rax
test ebx, ebx
jne 0x14016893c
mov qword [rsp + 0x70], rdx
jmp 0x140168965
mov edx, ebx
lea rcx, [rsp + 0x70]
call fcn.1401ff260
movsxd r9, ebx
mov eax, dword [rsp + 0x78]
inc eax
movsxd rdx, eax
lea r8, [rbp + 0x9c]
mov rcx, qword [rsp + 0x70]
call fcn.1402bd21c
mov edx, ebx
lea rcx, [rsp + 0x70]
call fcn.140200570
nop
lea r8, [rsp + 0x70]
mov rdx, rdi
lea rcx, [rbp - 0x20]
call fcn.1400d2bd0
nop
cmp dword [rsp + 0x78], 0
jle 0x140168995
mov rcx, qword [rsp + 0x70]
call fcn.1402b9c20
movzx r9d, sil
mov r8, qword [rbp - 0x30]
mov rdx, qword [rbp - 0x28]
lea rcx, [rbp - 0x20]
call fcn.1401687e0
nop
cmp dword [rbp - 0x18], 0
jle 0x1401689ba
mov rcx, qword [rbp - 0x20]
call fcn.1402b9c20
lea rdx, [0x140348ca0]
mov rbx, qword [rsp + 0x68]
test dword [rbp + 0x70], 0x400
je 0x140168c9b
lea rax, [rbp + 0x9c]
or rbx, 0xffffffffffffffff
nop
inc rbx
cmp word [rax + rbx*2], 0
jne 0x1401689e0
xor esi, esi
mov qword [rsp + 0x60], rsi
test ebx, ebx
jne 0x1401689fc
mov qword [rsp + 0x58], rdx
jmp 0x140168a25
mov edx, ebx
lea rcx, [rsp + 0x58]
call fcn.1401ff260
movsxd r9, ebx
mov eax, dword [rsp + 0x60]
inc eax
movsxd rdx, eax
lea r8, [rbp + 0x9c]
mov rcx, qword [rsp + 0x58]
call fcn.1402bd21c
mov edx, ebx
lea rcx, [rsp + 0x58]
call fcn.140200570
nop
lea r8, [rsp + 0x58]
mov rdx, rdi
lea rcx, [rbp - 0x80]
call fcn.1400d2bd0
nop
cmp dword [rsp + 0x60], 0
jle 0x140168a55
mov rcx, qword [rsp + 0x58]
call fcn.1402b9c20
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x2200000
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x88
lea r8d, [r9 + 3]
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140168c82
xor eax, eax
mov qword [rsp + 0x38], rax
lea rax, [rbp]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x800
lea rax, [rbp + 0x2c0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x900a8
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x140168c78
cmp dword [rbp + 0x2c0], 0xa000000c
jne 0x140168c78
movzx edi, word [rbp + 0x2ce]
shr edi, 1
movzx eax, word [rbp + 0x2cc]
shr rax, 1
lea rbx, [rbp + 0x2d4]
lea rbx, [rbx + rax*2]
lea rax, [0x140348ca0]
mov qword [rsp + 0x48], rax
xor eax, eax
mov qword [rsp + 0x50], rax
mov edx, edi
lea rcx, [rsp + 0x48]
call fcn.1401ff260
mov r8d, edi
add r8, r8
mov rdx, rbx
mov rcx, qword [rsp + 0x48]
call fcn.1402b9d30
mov edx, edi
lea rcx, [rsp + 0x48]
call fcn.140200570
lea rcx, [0x140348ca0]
mov qword [rbp - 0x60], rcx
xor eax, eax
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x50], rcx
mov qword [rbp - 0x48], rax
mov edx, dword [rbp - 0x74]
lea rcx, [rbp - 0x60]
call fcn.1401ff260
movsxd r9, dword [rbp - 0x74]
mov eax, dword [rbp - 0x58]
inc eax
movsxd rdx, eax
mov r8, qword [rbp - 0x80]
mov rcx, qword [rbp - 0x60]
call fcn.1402bd21c
mov edx, dword [rbp - 0x74]
lea rcx, [rbp - 0x60]
call fcn.140200570
mov edx, dword [rsp + 0x54]
lea rcx, [rbp - 0x50]
call fcn.1401ff260
movsxd r9, dword [rsp + 0x54]
mov eax, dword [rbp - 0x48]
inc eax
movsxd rdx, eax
mov r8, qword [rsp + 0x48]
mov rcx, qword [rbp - 0x50]
call fcn.1402bd21c
mov edx, dword [rsp + 0x54]
lea rcx, [rbp - 0x50]
call fcn.140200570
mov rax, qword [rbp - 0x28]
mov qword [rbp - 0x40], rax
lea rdx, [rbp - 0x80]
lea rcx, [rbp + 8]
call fcn.1400d44f0
nop
lea r8, [rbp - 0x60]
lea rdx, [rbp + 8]
lea rcx, [rbp + 0x18]
call fcn.140168cf0
nop
mov rdx, rax
mov rcx, qword [rbp - 0x30]
call fcn.140168f20
lea r9, [rax + 0x20]
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [rbp + 0x58]
mov rcx, qword [rbp - 0x30]
call fcn.140168f80
nop
cmp dword [rbp + 0x40], 0
jle 0x140168c15
mov rcx, qword [rbp + 0x38]
call fcn.1402b9c20
cmp dword [rbp + 0x30], 0
jle 0x140168c24
mov rcx, qword [rbp + 0x28]
call fcn.1402b9c20
cmp dword [rbp + 0x20], 0
jle 0x140168c34
mov rcx, qword [rbp + 0x18]
call fcn.1402b9c20
nop
cmp dword [rbp + 0x10], 0
jle 0x140168c44
mov rcx, qword [rbp + 8]
call fcn.1402b9c20
nop
cmp dword [rbp - 0x48], 0
jle 0x140168c53
mov rcx, qword [rbp - 0x50]
call fcn.1402b9c20
cmp dword [rbp - 0x58], 0
jle 0x140168c63
mov rcx, qword [rbp - 0x60]
call fcn.1402b9c20
nop
cmp dword [rsp + 0x50], 0
jle 0x140168c74
mov rcx, qword [rsp + 0x48]
call fcn.1402b9c20
mov rdi, qword [rbp - 0x38]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
cmp dword [rbp - 0x78], 0
jle 0x140168c91
mov rcx, qword [rbp - 0x80]
call fcn.1402b9c20
mov rbx, qword [rsp + 0x68]
movzx esi, byte [rsp + 0x40]
lea rdx, [rbp + 0x70]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
lea rdx, [0x140348ca0]
jne 0x1401688b0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
mov bl, 1
cmp dword [rbp - 8], 0
jle 0x140168cd1
mov rcx, qword [rbp - 0x10]
call fcn.1402b9c20
movzx eax, bl
mov rcx, qword [rbp + 0xac0]
xor rcx, rsp
call fcn.1402b9610
add rsp, 0xbd8
pop rdi
pop rsi
pop rbx
pop rbp
ret