Function at 0x18012dae0
Capabilities:
Enumerate files on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], r9
mov dword [rax + 0x18], r8d
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xa0
mov qword [rsp + 0x90], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov r12, rdx
mov rdi, rcx
call fcn.18014e4e0
mov edx, 0xa
lea r13d, [rdx - 9]
lea rcx, [rsp + 0x60]
call fcn.1800e78d0
nop
mov rdx, rdi
lea rcx, [rsp + 0x60]
call fcn.1800ea830
nop dword [rax]
cmp dword [rsp + 0x70], 0
jle 0x18012de86
mov rdi, qword [rsp + 0x60]
add rdi, 0x10
mov rax, qword [rdi]
movsxd rbx, dword [rax - 8]
mov dword [rsp + 0x30], ebx
lea edx, [rbx + 0x10a]
mov rcx, rdi
call fcn.1800e5fb0
mov rbp, rax
call fcn.180127ee0
test eax, eax
jne 0x18012dbb2
call fcn.180127e80
test eax, eax
jne 0x18012dbb2
call fcn.180127f00
test eax, eax
jne 0x18012dbb2
lea r8, [0x1801c0f18]
mov rdx, rdi
lea rcx, [rsp + 0x50]
call fcn.1800e9930
mov rdx, r12
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
lea rcx, [rsp + 0x50]
jmp 0x18012dc28
call fcn.18014e4e0
lea r8, [0x1801c0f18]
mov rdx, rdi
cmp qword [0x18023cc70], 0
je 0x18012dc0d
lea rcx, [rsp + 0x40]
call fcn.1800e9930
nop
mov dword [rsp + 0x28], 2
mov rcx, qword [rsp + 0x108]
mov qword [rsp + 0x20], rcx
xor r9d, r9d
mov r8, r12
lea edx, [r9 + 1]
mov rcx, qword [rax]
call qword [0x18023cc70]
mov rdi, rax
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x40]
jmp 0x18012dc30
lea rcx, [rsp + 0x58]
call fcn.1800e9930
mov rdx, r12
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
lea rcx, [rsp + 0x58]
mov rdi, rax
mov qword [rsp + 0x38], rax
call fcn.1800e5c00
lea r15, [rbp + rbx*2]
nop word [rax + rax]
cmp rdi, 0xffffffffffffffff
je 0x18012de5b
mov esi, dword [r12]
lea rbx, [r12 + 0x2c]
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
lea r14, [rcx - 1]
lea r13d, [rax + 1]
mov edi, dword [rsp + 0x30]
lea eax, [rcx + rdi - 1]
cmp eax, 0x104
jb 0x18012dcc3
lea r8d, [r13 + 3]
lea rdx, [0x1801a75f0]
mov rcx, rbp
call fcn.1800fb284
test eax, eax
je 0x18012dcc3
lea eax, [rdi + 1]
mov r8d, eax
add r8, r8
lea rcx, [rbp + 8]
mov rdx, rbp
call fcn.1800fa600
lea r8d, [r13 + 3]
lea rdx, [0x1801a75f0]
mov rcx, rbp
call fcn.1800f8dd0
add edi, 4
mov dword [rsp + 0x30], edi
add r15, 8
test sil, 0x10
je 0x18012ddb7
cmp word [rbx], 0x2e
jne 0x18012dcf5
movzx eax, word [r12 + 0x2e]
test ax, ax
je 0x18012de3b
cmp ax, 0x2e
jne 0x18012dcf5
cmp word [r12 + 0x30], 0
je 0x18012de3b
mov rdi, rbp
xor eax, eax
or rcx, 0xffffffffffffffff
repne scasw ax, word [rdi]
xor ecx, ecx
nop word [rax + rax]
movzx eax, word [rbx + rcx]
mov word [rdi + rcx - 2], ax
add rcx, 2
test ax, ax
jne 0x18012dd10
mov ebx, dword [rsp + 0xf0]
test bl, 0x30
je 0x18012dd81
mov rsi, qword [rsp + 0x108]
test rsi, rsi
je 0x18012dd4f
mov rdx, rsi
mov rcx, qword [rsp + 0xe0]
call fcn.18012abb0
test eax, eax
je 0x18012dd81
mov edi, dword [rsp + 0x30]
lea edx, [r14 + rdi]
mov r9, qword [rsp + 0x100]
mov r8, r12
mov rcx, rbp
call qword [rsp + 0xf8]
mov r13d, eax
test eax, eax
je 0x18012de56
cmp eax, 2
jne 0x18012dd85
jmp 0x18012de35
mov edi, dword [rsp + 0x30]
test bl, 0x40
jne 0x18012de35
lea ecx, [r14 + rdi]
mov edx, 0x5c
mov word [rbp + rcx*2], dx
inc ecx
xor eax, eax
mov word [rbp + rcx*2], ax
mov rdx, rbp
lea rcx, [rsp + 0x60]
call fcn.1800ea830
jmp 0x18012de35
test byte [rsp + 0xf0], 0x80
jne 0x18012de3b
mov rdi, rbp
xor eax, eax
or rcx, 0xffffffffffffffff
repne scasw ax, word [rdi]
xor ecx, ecx
nop
movzx eax, word [rbx + rcx]
mov word [rdi + rcx - 2], ax
add rcx, 2
test ax, ax
jne 0x18012ddd0
mov rsi, qword [rsp + 0x108]
test rsi, rsi
je 0x18012de11
mov dx, 0x5c
mov rcx, rsi
call fcn.1800f9624
test rax, rax
cmovne rbx, rbp
mov rdx, rsi
mov rcx, rbx
call fcn.18012abb0
test eax, eax
je 0x18012de35
mov ebx, dword [rsp + 0x30]
lea edx, [r14 + rbx]
mov r9, qword [rsp + 0x100]
mov r8, r12
mov rcx, rbp
call qword [rsp + 0xf8]
mov r13d, eax
test eax, eax
je 0x18012de56
xor eax, eax
mov word [r15], ax
mov rdx, r12
mov rdi, qword [rsp + 0x38]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x18012dc40
jmp 0x18012de5b
mov rdi, qword [rsp + 0x38]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x60]
call fcn.1800ea870
lea rcx, [rsp + 0x48]
call fcn.1800e5c00
test r13d, r13d
jne 0x18012db40
lea rcx, [rsp + 0x60]
call fcn.1800e7940
mov eax, r13d
mov rbx, qword [rsp + 0xe8]
add rsp, 0xa0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret