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

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rsi
sub rsp, 0x88
mov rsi, qword [rsp + 0xd8]
xor ebx, ebx
mov rdx, qword [rsi + 0x20470]
mov rax, qword [rsi + 0x20480]
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x58], rax
mov qword [rsi + 0x20498], rdx
cmp qword [rsi + 0x20478], rbx
jne 0x1400368e2
cmp qword [rsi + 0x20488], 2
jne 0x1400368e2
mov rax, qword [rsi + 0x20460]
cmp word [rax + 2], 0x3a
jne 0x1400368e2
mov dword [rsi + 0x10250], 0x2e
mov qword [rsi + 0x20478], 1
mov byte [rsp + 0x40], bl
jmp 0x1400368ee
movzx eax, byte [rsp + 0xd0]
mov byte [rsp + 0x40], al
mov r8, qword [rsi + 0x20478]
lea rcx, [rsi + 0x250]
mov eax, 0x8000
lea rcx, [rcx + rdx*2]
sub rax, rdx
mov qword [rsp + 0x68], rax
cmp r8, rax
jb 0x140036921
mov eax, 1
add rsp, 0x88
pop rsi
pop rbx
ret
mov qword [rsp + 0x80], rbp
lea r8, [r8*2 + 2]
lea rdx, [rsi + 0x10250]
mov qword [rsp + 0x78], rdi
call fcn.1400a9900
lea rcx, [rsi + 0x250]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
mov rdi, rax
setne bl
test ebx, ebx
je 0x140036990
mov ebp, dword [rsp + 0xc8]
nop word [rax + rax]
mov edx, ebp
mov rcx, rsi
call fcn.140051320
test al, al
je 0x140036990
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
mov ebx, eax
test eax, eax
jne 0x140036970
mov rbp, qword [0x140100a58]
mov qword [rsp + 0x60], rbp
mov qword [rbp + 0x10], rsi
test ebx, ebx
je 0x140036b41
nop dword [rax + rax]
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rax + 0x20]
cmp byte [rcx], 0x75
jne 0x140036a00
mov rbp, qword [rsp + 0xa8]
mov rsi, rax
nop dword [rax]
mov rcx, qword [rcx + 0x20]
lea r9, [rsp + 0x48]
mov r8, rbp
mov edx, 2
call fcn.14002ce20
mov rcx, qword [rsi + 0x20]
mov ebx, eax
mov rax, qword [rsp + 0x48]
cmp rax, rcx
je 0x1400369d0
mov rsi, qword [rsp + 0xd8]
jmp 0x140036a1e
mov r8, qword [rsp + 0xa8]
lea r9, [rsp + 0x48]
mov edx, 3
call fcn.14002ce20
mov ebx, eax
mov rax, qword [rsp + 0x48]
test rax, rax
je 0x140036a51
cmp ebx, 6
jne 0x140036d45
cmp rax, qword [rsp + 0xa0]
je 0x140036a5b
mov rcx, qword [rsp + 0xb8]
mov qword [rcx], rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov eax, ebx
jmp 0x140036d2e
cmp ebx, 1
je 0x140036a5b
cmp ebx, 6
jne 0x140036a41
mov rbx, qword [rsp + 0xc0]
test rbx, rbx
je 0x140036afe
mov rax, qword [0x140100a58]
mov qword [0x140107950], rbx
cmp byte [rax + 0x139], 0
je 0x140036acb
movsxd rax, dword [0x140105dd8]
lea rcx, [0x140000000]
mov qword [rcx + rax*8 + 0x106420], rbx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
movsxd rdx, dword [0x140105dd8]
lea r8, [0x140000000]
mov dword [r8 + rdx*4 + 0x105de0], eax
inc edx
cmp edx, 0x190
mov eax, 0
cmovge edx, eax
mov dword [0x140105dd8], edx
xor r9d, r9d
or r8, 0xffffffffffffffff
xor edx, edx
mov rcx, rbx
call fcn.14006c200
mov ebx, eax
cmp eax, 1
jne 0x140036a41
mov rcx, qword [0x140107150]
lea ebx, [rax + 4]
call fcn.14005e9d0
test eax, eax
jne 0x140036a41
mov ebp, dword [rsp + 0xc8]
nop word [rax + rax]
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
mov ebx, eax
test eax, eax
je 0x140036b30
mov edx, ebp
mov rcx, rsi
call fcn.140051320
test al, al
jne 0x140036b10
mov rbp, qword [rsp + 0x60]
inc qword [rbp + 8]
test ebx, ebx
jne 0x1400369b0
cmp rdi, 0xffffffffffffffff
je 0x140036b50
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
cmp byte [rsp + 0x40], 0
je 0x140036d29
mov rcx, qword [rsp + 0x50]
mov rdx, rsi
lea rax, [rsi + rcx*2]
lea rcx, [rsi + 0x250]
mov dword [rax + 0x250], 0x2a
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rsp + 0xd8], rax
cmp rax, 0xffffffffffffffff
je 0x140036d29
mov eax, 0x8000
sub rax, qword [rsp + 0x58]
mov qword [rsp + 0x60], rax
nop
test byte [rsi], 0x10
je 0x140036d02
cmp word [rsi + 0x2c], 0x2e
jne 0x140036bce
movzx eax, word [rsi + 0x2e]
test ax, ax
je 0x140036d02
cmp ax, 0x2e
jne 0x140036bce
cmp word [rsi + 0x30], 0
je 0x140036d02
or rdi, 0xffffffffffffffff
inc rdi
cmp word [rsi + rdi*2 + 0x2c], 0
jne 0x140036bd2
lea rax, [rdi + 1]
cmp rax, qword [rsp + 0x68]
jae 0x140036d02
mov rax, qword [rsp + 0x50]
lea rbx, [rdi + rdi]
add rax, 0x128
lea rdx, [rsi + 0x2c]
mov r8, rbx
lea rcx, [rsi + rax*2]
call fcn.1400a9900
mov rcx, qword [rsp + 0x50]
lea rdx, [rsi + 0x234]
lea rax, [rsi + rcx*2]
mov dword [rbx + rax + 0x250], 0x5c
lea rax, [rcx + 1]
add rax, rdi
mov qword [rsi + 0x20470], rax
or rbx, 0xffffffffffffffff
nop dword [rax + rax]
inc rbx
cmp word [rdx + rbx*2], 0
jne 0x140036c40
test rbx, rbx
jne 0x140036c56
lea rdx, [rsi + 0x2c]
mov rbx, rdi
lea rax, [rbx + 1]
cmp rax, qword [rsp + 0x60]
jae 0x140036d02
mov rcx, qword [rsp + 0x58]
lea rdi, [rbx + rbx]
mov r8, rdi
lea rbp, [rsi + rcx*2]
lea rcx, [rbp + 0x10458]
call fcn.1400a9900
mov rax, qword [rsp + 0x58]
mov rdx, qword [rsp + 0xa8]
inc rax
mov rcx, qword [rsp + 0xa0]
add rax, rbx
mov dword [rdi + rbp + 0x10458], 0x5c
mov rbp, qword [rsp + 0xb8]
mov rdi, qword [rsp + 0xb0]
mov r9, rbp
mov qword [rsi + 0x20480], rax
mov r8, rdi
movzx eax, byte [rsp + 0x40]
mov qword [rsp + 0x38], rsi
mov byte [rsp + 0x30], al
mov eax, dword [rsp + 0xc8]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x20], rax
call fcn.140036860
mov ebx, eax
cmp eax, 1
jne 0x140036d6b
cmp byte [rdi], 0
jne 0x140036d1b
cmp qword [rbp], 0
jne 0x140036d1b
mov rcx, qword [rsp + 0xd8]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140036ba0
mov rcx, qword [rsp + 0xd8]
call qword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 1
mov rbp, qword [rsp + 0x80]
mov rdi, qword [rsp + 0x78]
add rsp, 0x88
pop rsi
pop rbx
ret
cmp rax, qword [rsp + 0xa0]
jne 0x140036a36
mov rax, qword [rsp + 0xb0]
mov rcx, rdi
mov byte [rax], 1
call qword [sym.imp.KERNEL32.dll_FindClose]
mov eax, ebx
jmp 0x140036d2e
mov rcx, qword [rsp + 0xd8]
call qword [sym.imp.KERNEL32.dll_FindClose]
mov eax, ebx
jmp 0x140036d2e