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

Disassembly:
push rbp
push rbx
push rsi
push rdi
lea rbp, [rsp - 0x238]
sub rsp, 0x338
mov qword [rbp - 0x38], 0xfffffffffffffffe
mov rax, qword [0x14041da10]
xor rax, rsp
mov qword [rbp + 0x220], rax
mov byte [rsp + 0x30], r9b
mov rsi, r8
mov rbx, rdx
mov qword [rbp - 0x80], rdx
mov rdi, rcx
xor eax, eax
mov qword [rsp + 0x78], rax
lea edx, [rax + 1]
lea rcx, [rsp + 0x70]
call fcn.1402028a0
mov eax, dword [rsp + 0x78]
inc eax
movsxd rdx, eax
mov r9d, 1
lea r8, [0x1403526ec]
mov rcx, qword [rsp + 0x70]
call fcn.1402c06dc
mov edx, 1
lea rcx, [rsp + 0x70]
call fcn.140203bb0
nop
lea r8, [rsp + 0x70]
mov rdx, rbx
lea rcx, [rbp - 0x48]
call fcn.1400d4050
nop
cmp dword [rsp + 0x78], 0
jle 0x1401e8566
mov rcx, qword [rsp + 0x70]
call fcn.1402bd0e0
lea rdx, [rbp - 0x30]
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rsp + 0x38], rax
cmp rax, 0xffffffffffffffff
je 0x1401e8848
lea rdx, [0x14034d1a0]
mov rbx, rax
nop dword [rax]
test byte [rbp - 0x30], 0x10
je 0x1401e868a
movzx ecx, word [rbp - 4]
movzx eax, word [rbp - 2]
cmp cx, word [0x14034bd50]
jne 0x1401e85b8
cmp ax, word [0x14034bd52]
je 0x1401e8822
cmp cx, word [0x1403526fc]
jne 0x1401e85db
cmp ax, word [0x1403526fe]
jne 0x1401e85db
movzx eax, word [rbp]
cmp ax, word [0x140352700]
je 0x1401e8822
lea rax, [rbp - 4]
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], 0
jne 0x1401e85e3
xor eax, eax
mov qword [rsp + 0x68], rax
test ebx, ebx
jne 0x1401e85ff
mov qword [rsp + 0x60], rdx
jmp 0x1401e8625
mov edx, ebx
lea rcx, [rsp + 0x60]
call fcn.1402028a0
movsxd r9, ebx
mov eax, dword [rsp + 0x68]
inc eax
movsxd rdx, eax
lea r8, [rbp - 4]
mov rcx, qword [rsp + 0x60]
call fcn.1402c06dc
mov edx, ebx
lea rcx, [rsp + 0x60]
call fcn.140203bb0
nop
lea r8, [rsp + 0x60]
mov rdx, qword [rbp - 0x80]
lea rcx, [rbp - 0x58]
call fcn.1400d4050
nop
cmp dword [rsp + 0x68], 0
jle 0x1401e8656
mov rcx, qword [rsp + 0x60]
call fcn.1402bd0e0
movzx eax, byte [rbp + 0x280]
mov byte [rsp + 0x20], al
movzx r9d, byte [rsp + 0x30]
mov r8, rsi
lea rdx, [rbp - 0x58]
mov rcx, rdi
call fcn.1401e84c0
nop
cmp dword [rbp - 0x50], 0
jle 0x1401e881d
mov rcx, qword [rbp - 0x58]
jmp 0x1401e8818
lea rax, [rbp - 4]
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], 0
jne 0x1401e8692
xor eax, eax
mov qword [rsp + 0x58], rax
test ebx, ebx
jne 0x1401e86ae
mov qword [rsp + 0x50], rdx
jmp 0x1401e86d4
mov edx, ebx
lea rcx, [rsp + 0x50]
call fcn.1402028a0
movsxd r9, ebx
mov eax, dword [rsp + 0x58]
inc eax
movsxd rdx, eax
lea r8, [rbp - 4]
mov rcx, qword [rsp + 0x50]
call fcn.1402c06dc
mov edx, ebx
lea rcx, [rsp + 0x50]
call fcn.140203bb0
nop
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x78]
call fcn.1400e4760
nop
cmp dword [rsp + 0x58], 0
jle 0x1401e8701
mov rcx, qword [rsp + 0x50]
call fcn.1402bd0e0
lea rax, [rbp - 4]
or rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x1401e8710
xor eax, eax
mov qword [rsp + 0x48], rax
test ebx, ebx
jne 0x1401e8733
lea rax, [0x14034d1a0]
mov qword [rsp + 0x40], rax
jmp 0x1401e8759
mov edx, ebx
lea rcx, [rsp + 0x40]
call fcn.1402028a0
movsxd r9, ebx
mov eax, dword [rsp + 0x48]
inc eax
movsxd rdx, eax
lea r8, [rbp - 4]
mov rcx, qword [rsp + 0x40]
call fcn.1402c06dc
mov edx, ebx
lea rcx, [rsp + 0x40]
call fcn.140203bb0
nop
lea r8, [rsp + 0x40]
mov rdx, qword [rbp - 0x80]
lea rcx, [rbp - 0x68]
call fcn.1400d4050
nop
cmp dword [rsp + 0x48], 0
jle 0x1401e878a
mov rcx, qword [rsp + 0x40]
call fcn.1402bd0e0
xor r8d, r8d
lea rcx, [rbp - 0x78]
cmp byte [rbp + 0x280], r8b
je 0x1401e87c1
lea rdx, [0x140355760]
call fcn.140202b80
test al, al
je 0x1401e87fe
movzx r9d, byte [rsp + 0x30]
mov r8, rsi
lea rdx, [rbp - 0x68]
mov rcx, rdi
call fcn.1401e8e20
jmp 0x1401e87fe
lea rdx, str..txt
call fcn.140202b80
test al, al
jne 0x1401e87e8
xor r8d, r8d
lea rdx, str..cookie
lea rcx, [rbp - 0x78]
call fcn.140202b80
test al, al
je 0x1401e87fe
movzx r9d, byte [rsp + 0x30]
mov r8, rsi
lea rdx, [rbp - 0x68]
mov rcx, rdi
call fcn.1401e8880
nop
cmp dword [rbp - 0x60], 0
jle 0x1401e880e
mov rcx, qword [rbp - 0x68]
call fcn.1402bd0e0
nop
cmp dword [rbp - 0x70], 0
jle 0x1401e881d
mov rcx, qword [rbp - 0x78]
call fcn.1402bd0e0
mov rbx, qword [rsp + 0x38]
lea rdx, [rbp - 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
lea rdx, [0x14034d1a0]
jne 0x1401e8590
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
nop
cmp dword [rbp - 0x40], 0
jle 0x1401e8857
mov rcx, qword [rbp - 0x48]
call fcn.1402bd0e0
mov al, 1
mov rcx, qword [rbp + 0x220]
xor rcx, rsp
call fcn.1402bcad0
add rsp, 0x338
pop rdi
pop rsi
pop rbx
pop rbp
ret