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

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0xf10
mov qword [rsp + 0x88], 0xfffffffffffffffe
mov qword [rsp + 0xf48], rbx
mov rax, qword [0x1401216d8]
xor rax, rsp
mov qword [rsp + 0xf00], rax
mov dword [rsp + 0x3c], r9d
mov rbp, r8
mov qword [rsp + 0x30], r8
mov rsi, rdx
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x68], rcx
xor edi, edi
mov qword [rsp + 0x58], rdi
mov dword [rsp + 0x38], edi
call fcn.14004b378
mov rcx, rax
mov eax, edi
test rcx, rcx
setne al
test eax, eax
jne 0x140018075
mov ecx, 0x80004005
call fcn.140001610
int3
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x48], rbx
test rbp, rbp
jne 0x1400180ad
lea rdx, [rbx - 0x18]
or rax, 0xffffffffffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x1400180a6
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
jmp 0x1400188b1
xor edx, edx
mov r8d, 0x250
lea rcx, [rsp + 0x490]
call fcn.140091cf0
mov r8, rsi
lea rdx, str._s.
lea rcx, [rsp + 0xaf0]
call fcn.1400034d0
lea rdx, [rsp + 0x490]
lea rcx, [rsp + 0xaf0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbp, rax
mov qword [rsp + 0x70], rax
or r8, 0xffffffffffffffff
lea edx, [r8 + 2]
cmp rax, r8
je 0x1400183b1
nop
nop
xor eax, eax
mov rcx, r8
lea rdi, [rsp + 0x4bc]
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
mov rdi, rcx
test ecx, ecx
jne 0x140018186
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x140018212
cmp dword [rdx + 0x10], eax
jge 0x140018157
cmp dword [rbx - 0xc], eax
jl 0x140018383
mov dword [rbx - 0x10], eax
mov word [rbx], ax
jmp 0x140018212
mov eax, r8d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x14001816f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x48], rbx
jmp 0x140018212
mov esi, dword [rbx - 0x10]
lea rbp, [rsp + 0x4bc]
sub rbp, rbx
sar rbp, 1
mov ecx, edx
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x1400181b6
mov edx, edi
lea rcx, [rsp + 0x48]
call fcn.140004650
mov rbx, qword [rsp + 0x48]
cmp rbp, rsi
ja 0x1400181d6
movsxd rax, edi
lea rsi, [rax + rax]
lea r8, [rbx + rbp*2]
mov r9, rsi
mov rdx, rsi
mov rcx, rbx
call fcn.140090b50
jmp 0x1400181f3
movsxd rax, edi
lea rsi, [rax + rax]
mov r9, rsi
lea r8, [rsp + 0x4bc]
mov rdx, rsi
mov rcx, rbx
call fcn.140090a80
test edi, edi
js 0x1400183a6
cmp edi, dword [rbx - 0xc]
jg 0x1400183a6
mov dword [rbx - 0x10], edi
mov word [rsi + rbx], 0
mov rbp, qword [rsp + 0x70]
xor eax, eax
lea rdi, [0x1400ded04]
mov rsi, rbx
mov ecx, 2
repe cmpsw word [rsi], word [rdi]
je 0x14001822d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
jne 0x140018355
xor eax, eax
lea rdi, [0x1400e0574]
mov rsi, rbx
mov ecx, 3
repe cmpsw word [rsi], word [rdi]
je 0x140018255
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
jne 0x14001835c
mov r9, rbx
mov rsi, qword [rsp + 0x40]
mov r8, rsi
lea rdx, [0x1400e01b8]
lea rcx, [rsp + 0x6e0]
call fcn.1400034d0
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x80], rdx
call fcn.14004b378
mov rcx, rax
xor eax, eax
test rcx, rcx
setne al
test eax, eax
je 0x14001838e
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x6e0]
lea rax, [rsp + 0x6e0]
test rax, 0xffffffffffff0000
jne 0x1400182ee
movzx edi, cx
mov ecx, edi
call fcn.14004b1a0
test rax, rax
je 0x140018319
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.140005c00
jmp 0x140018319
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x6e0]
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, [rsp + 0x6e0]
lea rcx, [rsp + 0x50]
call fcn.140005e50
nop
lea rcx, [rsp + 0x50]
call fcn.1400053f0
test eax, eax
je 0x140018361
xor r9d, r9d
mov r8, qword [rsp + 0x30]
lea rdx, [rsp + 0x6e0]
mov rcx, qword [rsp + 0x68]
call fcn.140018000
mov ecx, dword [rsp + 0x38]
test eax, eax
mov eax, 1
cmovne ecx, eax
mov dword [rsp + 0x38], ecx
jmp 0x140018361
mov rsi, qword [rsp + 0x40]
jmp 0x140018361
mov rsi, qword [rsp + 0x40]
lea rdx, [rsp + 0x490]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x140018399
or r8, 0xffffffffffffffff
lea edx, [r8 + 2]
jmp 0x140018110
mov ecx, 0x80070057
call fcn.140001610
int3
mov ecx, 0x80004005
call fcn.140001610
int3
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindClose]
xor edi, edi
jmp 0x1400183b1
mov ecx, 0x80070057
call fcn.140001610
int3
cmp dword [rsp + 0x3c], 0
jne 0x14001871e
call fcn.14004b378
mov rcx, rax
mov eax, edi
test rcx, rcx
setne al
test eax, eax
jne 0x1400183db
mov ecx, 0x80004005
call fcn.140001610
int3
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x90], rax
call fcn.14004b378
mov rcx, rax
mov eax, edi
test rcx, rcx
setne al
test eax, eax
jne 0x14001840c
mov ecx, 0x80004005
call fcn.140001610
int3
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x98], rax
lea rbx, [fcn.1400011a0]
mov qword [rsp + 0x20], rbx
lea r9, [0x140004ac0]
mov edx, 8
lea r8d, [rdx + 0x2a]
lea rcx, [rsp + 0xa0]
call fcn.140092b40
nop
mov qword [rsp + 0x20], rbx
lea r9, [0x140004ac0]
mov edx, 8
lea r8d, [rdx + 0x2a]
lea rcx, [rsp + 0x230]
call fcn.140092b40
nop
lea rcx, [rsp + 0x90]
call fcn.14000e2e0
nop
test rsi, rsi
jne 0x140018482
mov ecx, edi
jmp 0x140018495
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
mov r8d, ecx
mov rdx, rsi
lea rcx, [rsp + 0x98]
call fcn.140005e50
mov rax, qword [rsp + 0x30]
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
mov rdi, qword [rsp + 0x90]
add rdi, 0xffffffffffffffe8
cmp rcx, rdi
je 0x140018515
cmp dword [rdi + 0x10], 0
jl 0x140018504
mov rax, qword [rdi]
cmp qword [rcx], rax
jne 0x140018504
call fcn.1400046b0
mov rsi, rax
or eax, 0xffffffff
lock xadd dword [rdi + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x1400184f6
mov rcx, qword [rdi]
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rax, [rsi + 0x18]
mov qword [rsp + 0x90], rax
jmp 0x140018515
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x90]
call fcn.140005e50
lea rdx, [rsp + 0x90]
mov rcx, qword [rsp + 0x68]
call fcn.1400131f0
test eax, eax
je 0x14001868f
cmp dword [rsp + 0x488], 0
jle 0x140018687
lea rax, [rsp + 0x60]
mov qword [rsp + 0x80], rax
lea rbp, [rsp + 0x3c0]
lea rbx, [rsp + 0xa0]
nop
nop
mov rdi, qword [rbx + 0x190]
mov rcx, qword [rdi - 0x18]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, rax
cmp dword [rdi - 8], 0
jl 0x14001858b
cmp rax, qword [rdi - 0x18]
jne 0x14001858b
lea rsi, [rdi - 0x18]
lock add dword [rdi - 8], 1
jmp 0x1400185c7
mov rax, qword [rax]
mov r8d, 2
mov edx, dword [rdi - 0x10]
call qword [rax]
mov rsi, rax
test rax, rax
je 0x140018681
mov eax, dword [rdi - 0x10]
mov dword [rsi + 8], eax
mov eax, dword [rdi - 0x10]
add eax, 1
movsxd rdx, eax
lea r9, [rdx + rdx]
mov r8, rdi
add rdx, rdx
lea rcx, [rsi + 0x18]
call fcn.140090a80
lea rax, [rsi + 0x18]
mov qword [rsp + 0x60], rax
mov rdi, qword [rbx]
mov rcx, qword [rdi - 0x18]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, rax
cmp dword [rdi - 8], 0
jl 0x1400185f7
cmp rax, qword [rdi - 0x18]
jne 0x1400185f7
lea rsi, [rdi - 0x18]
lock add dword [rdi - 8], 1
jmp 0x14001862f
mov rax, qword [rax]
mov r8d, 2
mov edx, dword [rdi - 0x10]
call qword [rax]
mov rsi, rax
test rax, rax
je 0x14001867b
mov eax, dword [rdi - 0x10]
mov dword [rsi + 8], eax
mov eax, dword [rdi - 0x10]
add eax, 1
movsxd rdx, eax
lea r9, [rdx + rdx]
mov r8, rdi
add rdx, rdx
lea rcx, [rsi + 0x18]
call fcn.140090a80
lea rax, [rsi + 0x18]
mov qword [rsp + 0x78], rax
mov r9d, dword [rbp]
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0x30]
call fcn.140008030
mov rax, qword [rsp + 0x58]
add eax, 1
mov qword [rsp + 0x58], rax
add rbx, 8
add rbp, 4
cmp eax, dword [rsp + 0x488]
jl 0x140018560
lea rbx, [fcn.1400011a0]
jmp 0x140018687
call fcn.140003370
nop
call fcn.140003370
int3
mov dword [rsp + 0x38], 1
mov r9, rbx
mov edx, 8
lea r8d, [rdx + 0x2a]
lea rcx, [rsp + 0x230]
call fcn.14008fb90
mov r9, rbx
mov edx, 8
lea r8d, [rdx + 0x2a]
lea rcx, [rsp + 0xa0]
call fcn.14008fb90
mov rdx, qword [rsp + 0x98]
add rdx, 0xffffffffffffffe8
or rdi, 0xffffffffffffffff
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x1400186e7
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, qword [rsp + 0x90]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140018714
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [rsp + 0x48]
jmp 0x140018890
mov rbx, qword [rsp + 0x48]
jmp 0x140018890
xor r11d, r11d
mov edi, r11d
mov dword [rsp + 0x3c], r11d
mov r9, qword [rsp + 0x30]
mov ecx, dword [r9 + 0x5a0]
mov rbp, r11
test ecx, ecx
jle 0x140018890
lea r10, [r9 + 0x5a8]
lea rdx, [r9 + 0x1b8]
mov qword [rsp + 0x40], rdx
mov rax, qword [rdx]
cmp dword [rax - 0x10], 5
jge 0x140018769
mov eax, 1
mov dword [r10], eax
jmp 0x14001885d
mov r8d, r11d
mov rsi, r11
test ecx, ecx
jle 0x14001885d
lea rdi, [r9 + 0x4d8]
add r9, 0x1b8
mov rax, qword [rsp + 0x30]
nop
nop
cmp rbp, rsi
je 0x140018832
mov rdx, qword [r9]
mov eax, r11d
test rdx, rdx
setne al
test eax, eax
je 0x140018885
mov rax, qword [rsp + 0x40]
mov rax, qword [rax]
sub rdx, rax
nop
nop
movzx ecx, word [rax]
cmp cx, word [rax + rdx]
jne 0x1400187d7
add rax, 2
test cx, cx
jne 0x1400187c0
mov eax, r11d
jmp 0x1400187dc
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
je 0x14001881f
mov eax, dword [r10 - 0xd0]
test eax, eax
je 0x140018807
cmp dword [rdi], r11d
jne 0x140018807
mov eax, 1
mov dword [rdi + 0xd0], eax
mov rax, qword [rsp + 0x30]
jmp 0x140018832
test eax, eax
jne 0x14001882d
cmp dword [rdi], r11d
je 0x140018826
mov eax, 1
mov dword [r10], eax
mov rax, qword [rsp + 0x30]
jmp 0x140018832
mov rax, qword [rsp + 0x30]
jmp 0x140018832
mov rax, qword [rsp + 0x30]
jmp 0x140018832
mov rax, qword [rsp + 0x30]
add r8d, 1
add rsi, 1
add r9, 8
add rdi, 4
cmp r8d, dword [rax + 0x5a0]
jl 0x140018790
mov rdx, qword [rsp + 0x40]
mov edi, dword [rsp + 0x3c]
mov r9, qword [rsp + 0x30]
add edi, 1
mov dword [rsp + 0x3c], edi
add rbp, 1
add rdx, 8
mov qword [rsp + 0x40], rdx
add r10, 4
mov ecx, dword [r9 + 0x5a0]
cmp edi, ecx
jge 0x140018890
jmp 0x140018753
mov ecx, 0x80004005
call fcn.140001610
nop
lea rdx, [rbx - 0x18]
or rax, 0xffffffffffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x1400188ad
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, dword [rsp + 0x38]
mov rcx, qword [rsp + 0xf00]
xor rcx, rsp
call fcn.140090720
mov rbx, qword [rsp + 0xf48]
add rsp, 0xf10
pop rdi
pop rsi
pop rbp
ret