Function at 0x140134284
Capabilities:
Enumerate files on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r13
push r14
lea rbp, [rsp - 0x1a0]
sub rsp, 0x2a0
mov rax, qword [0x14017d140]
xor rax, rsp
mov qword [rbp + 0x190], rax
mov rdi, rdx
mov r13, rcx
mov rcx, qword [0x14017d3a8]
lea rax, [0x14017d3a8]
cmp rcx, rax
je 0x1401342f0
test byte [rcx + 0x1c], 1
je 0x1401342f0
cmp byte [rcx + 0x19], 4
jb 0x1401342f0
mov rcx, qword [rcx + 0x10]
lea r8, [0x140013878]
mov edx, 0x47
call fcn.14001dd24
xor r14d, r14d
or r12, 0xffffffffffffffff
mov qword [rsp + 0x30], r14
mov esi, r14d
mov qword [rsp + 0x38], r14
test rdi, rdi
jne 0x140134321
lea r8, [0x140013bc0]
lea rcx, [0x1400138f0]
mov edx, 0x946
call fcn.1400a8be8
cmp qword [rdi + 8], r14
je 0x14013433f
lea r8, [0x140013b98]
lea rcx, [0x1400138f0]
mov edx, 0x947
call fcn.1400a8be8
lea r8, [rsp + 0x30]
xor edx, edx
mov rcx, r13
call fcn.140134084
mov ebx, eax
test eax, eax
js 0x140134562
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x250
call sub.msvcrt.dll_memset
mov rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov r12, rax
cmp rax, 0xffffffffffffffff
jne 0x1401343de
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, qword [0x14017d3a8]
lea rsi, [0x14017d3a8]
cmp rcx, rsi
je 0x1401343cb
test dword [rcx + 0x1c], reloc.ADVAPI32.dll_TraceEvent
je 0x1401343cb
cmp byte [rcx + 0x19], 3
jb 0x1401343cb
mov r9, qword [rsp + 0x30]
mov rcx, qword [rcx + 0x10]
lea edx, [r12 + 0x49]
lea r8, [0x140013878]
mov dword [rsp + 0x20], eax
call fcn.14001ecbc
cmp edi, 5
jne 0x140134569
mov ebx, 0x80070005
jmp 0x140134569
mov rcx, qword [0x14017d3a8]
lea rax, [0x14017d3a8]
cmp rcx, rax
je 0x140134417
test byte [rcx + 0x1c], 1
je 0x140134417
cmp byte [rcx + 0x19], 4
jb 0x140134417
mov rcx, qword [rcx + 0x10]
lea r9, [rsp + 0x6c]
lea r8, [0x140013878]
mov edx, 0x49
call fcn.14001ec40
or r14, 0xffffffffffffffff
lea rcx, [rsp + 0x6c]
xor eax, eax
inc r14
cmp word [rcx + r14*2], ax
jne 0x140134422
cmp r14, 1
jb 0x14013444b
lea rdx, [0x140009d84]
lea rcx, [rsp + 0x6c]
call sub.msvcrt.dll__wcsicmp
test eax, eax
je 0x1401344d1
cmp r14, 2
jb 0x14013446b
lea rdx, [0x140009d88]
lea rcx, [rsp + 0x6c]
call sub.msvcrt.dll__wcsicmp
xor r14d, r14d
test eax, eax
je 0x1401344d4
jmp 0x14013446e
xor r14d, r14d
test byte [rsp + 0x40], 0x10
je 0x1401344d4
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x6c]
xor r8d, r8d
call fcn.1400a99e4
mov ebx, eax
test eax, eax
js 0x140134621
mov rsi, qword [rdi + 8]
cmp rsi, qword [rdi + 0x10]
jb 0x1401344af
lea rdx, [rsi + 1]
mov rcx, rdi
call fcn.14008b270
test al, al
je 0x140134616
mov rax, qword [rdi]
lea rcx, [rax + rsi*8]
test rcx, rcx
je 0x1401344c3
mov rax, qword [rsp + 0x38]
mov qword [rcx], rax
inc qword [rdi + 8]
mov rsi, r14
mov qword [rsp + 0x38], r14
jmp 0x1401344d4
xor r14d, r14d
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x250
call sub.msvcrt.dll_memset
lea rdx, [rsp + 0x40]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1401343de
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp eax, 0x12
je 0x140134562
mov rcx, qword [0x14017d3a8]
lea rax, [0x14017d3a8]
cmp rcx, rax
je 0x140134546
test byte [rcx + 0x1c], 1
je 0x140134546
cmp byte [rcx + 0x19], 2
jb 0x140134546
mov r9, qword [rsp + 0x30]
mov rcx, qword [rcx + 0x10]
lea r8, [0x140013878]
mov edx, 0x4a
mov dword [rsp + 0x20], edi
call fcn.14001ecbc
movzx ebx, di
or ebx, 0x80070000
test edi, edi
cmovle ebx, edi
test rsi, rsi
je 0x140134562
mov rcx, rsi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
lea rsi, [0x14017d3a8]
cmp qword [rsp + 0x30], r14
je 0x14013457b
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindClose]
test ebx, ebx
jns 0x1401345bc
mov rcx, qword [0x14017d3a8]
cmp rcx, rsi
je 0x1401345e9
test byte [rcx + 0x1c], 1
je 0x1401345c3
cmp byte [rcx + 0x19], 3
jb 0x1401345c3
mov rcx, qword [rcx + 0x10]
lea r8, [0x140013878]
mov edx, 0x4b
mov r9, r13
mov dword [rsp + 0x20], ebx
call fcn.14001ecbc
mov rcx, qword [0x14017d3a8]
cmp rcx, rsi
je 0x1401345e9
test byte [rcx + 0x1c], 1
je 0x1401345e9
cmp byte [rcx + 0x19], 4
jb 0x1401345e9
mov rcx, qword [rcx + 0x10]
lea r8, [0x140013878]
mov edx, 0x4c
call fcn.14001dd24
mov eax, ebx
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.140168920
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rbp
ret
mov ecx, 0x8007000e
call fcn.14001ad98
int3
mov rsi, qword [rsp + 0x38]
jmp 0x140134554