Function at 0x140040704
Capabilities:
Enumerate files on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1c0]
sub rsp, 0x2c0
mov rax, qword [0x140068690]
xor rax, rsp
mov qword [rbp + 0x1b8], rax
xor edi, edi
mov qword [rsp + 0x58], rdx
mov r12, rcx
test rdx, rdx
jne 0x140040201
call fcn.140037b78
lea ebx, [rdi + 0x16]
mov dword [rax], ebx
call fcn.140037a58
mov eax, ebx
jmp 0x140040537
xorps xmm0, xmm0
mov qword [rdx], rdi
mov rax, qword [rcx]
movdqu xmmword [rsp + 0x30], xmm0
mov rsi, qword [rsp + 0x38]
mov r14, qword [rsp + 0x30]
mov qword [rsp + 0x40], rdi
test rax, rax
je 0x1400403f8
lea rdx, [rbp + 0x1b0]
mov dword [rbp + 0x1b0], 0x3f002a
mov rcx, rax
mov word [rbp + 0x1b4], di
movabs rbx, 0x200000000801
call fcn.14003abd4
mov r13, qword [r12]
mov rcx, rax
test rax, rax
jne 0x140040284
lea r9, [rsp + 0x30]
xor r8d, r8d
xor edx, edx
mov rcx, r13
call fcn.140040578
mov rsi, qword [rsp + 0x38]
mov r15d, eax
mov r14, qword [rsp + 0x30]
test eax, eax
jmp 0x1400403e5
cmp rax, r13
je 0x1400402a8
movzx eax, word [rcx]
sub ax, 0x2f
cmp ax, 0x2d
ja 0x14004029f
movzx eax, ax
bt rbx, rax
jb 0x1400402a8
sub rcx, 2
cmp rcx, r13
jne 0x140040289
movzx edx, word [rcx]
cmp dx, 0x3a
jne 0x1400402d4
lea rax, [r13 + 2]
cmp rcx, rax
je 0x1400402d4
lea r9, [rsp + 0x30]
xor r8d, r8d
xor edx, edx
mov rcx, r13
call fcn.140040578
mov r15d, eax
jmp 0x1400403d8
sub dx, 0x2f
cmp dx, 0x2d
ja 0x1400402e9
movzx eax, dx
bt rbx, rax
mov al, 1
jb 0x1400402ec
mov al, dil
sub rcx, r13
mov dword [rsp + 0x28], edi
sar rcx, 1
lea r8, [rsp + 0x60]
inc rcx
mov qword [rsp + 0x20], rdi
neg al
sbb r15, r15
xor r9d, r9d
and r15, rcx
xor edx, edx
mov rcx, r13
mov qword [rsp + 0x48], r15
call qword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400402ba
sub rsi, r14
sar rsi, 3
mov qword [rsp + 0x50], rsi
cmp word [rbp - 0x74], 0x2e
jne 0x14004034d
cmp word [rbp - 0x72], di
je 0x14004036d
cmp word [rbp - 0x72], 0x2e
jne 0x14004034d
cmp word [rbp - 0x70], di
je 0x14004036d
lea r9, [rsp + 0x30]
mov r8, r15
mov rdx, r13
lea rcx, [rbp - 0x74]
call fcn.140040578
mov r15d, eax
test eax, eax
jne 0x1400403cf
mov r15, qword [rsp + 0x48]
lea rdx, [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140040333
mov rsi, qword [rsp + 0x38]
mov r14, qword [rsp + 0x30]
mov rdx, rsi
mov rax, qword [rsp + 0x50]
sub rdx, r14
sar rdx, 3
cmp rax, rdx
jne 0x1400403a8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x1400403eb
sub rdx, rax
lea rcx, [r14 + rax*8]
lea r9, [0x140040198]
mov r8d, 8
call fcn.140044750
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
mov r15d, edi
jmp 0x1400403e2
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rsi, qword [rsp + 0x38]
mov r14, qword [rsp + 0x30]
test r15d, r15d
jne 0x1400404f9
add r12, 8
mov rax, qword [r12]
jmp 0x14004021f
mov rax, rsi
mov qword [rbp + 0x1b0], rdi
sub rax, r14
mov r10, rdi
mov r15, rax
mov rdx, r14
sar r15, 3
mov r9, rdi
inc r15
lea rcx, [rax + 7]
shr rcx, 3
cmp r14, rsi
cmova rcx, rdi
test rcx, rcx
je 0x140040456
mov r11, qword [rdx]
or rax, 0xffffffffffffffff
inc rax
cmp word [r11 + rax*2], di
jne 0x140040433
inc r10
add rdx, 8
add r10, rax
inc r9
cmp r9, rcx
jne 0x14004042c
mov qword [rbp + 0x1b0], r10
mov r8d, 2
mov rdx, r10
mov rcx, r15
call fcn.14003bc08
mov rbx, rax
test rax, rax
jne 0x140040475
or r15d, 0xffffffff
jmp 0x1400404f2
lea rcx, [rax + r15*8]
mov r15, r14
mov qword [rsp + 0x48], rcx
mov r13, rcx
cmp r14, rsi
je 0x1400404e7
sub rax, r14
mov qword [rsp + 0x50], rax
mov r8, qword [r15]
or r12, 0xffffffffffffffff
inc r12
cmp word [r8 + r12*2], di
jne 0x140040498
mov rdx, qword [rbp + 0x1b0]
mov rax, r13
sub rax, rcx
inc r12
sar rax, 1
mov r9, r12
sub rdx, rax
mov rcx, r13
call fcn.140039dbc
test eax, eax
jne 0x140040561
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
mov qword [rax + r15], r13
add r15, 8
lea r13, [r13 + r12*2]
cmp r15, rsi
jne 0x140040491
mov rax, qword [rsp + 0x58]
mov r15d, edi
mov qword [rax], rbx
xor ecx, ecx
call fcn.14003ce00
mov rbx, rsi
mov r12, r14
sub rbx, r14
add rbx, 7
shr rbx, 3
cmp r14, rsi
cmova rbx, rdi
test rbx, rbx
je 0x14004052c
mov rcx, qword [r12]
call fcn.14003ce00
inc rdi
lea r12, [r12 + 8]
cmp rdi, rbx
jne 0x140040516
mov rcx, r14
call fcn.14003ce00
mov eax, r15d
mov rcx, qword [rbp + 0x1b8]
xor rcx, rsp
call fcn.140032710
mov rbx, qword [rsp + 0x310]
add rsp, 0x2c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
xor r9d, r9d
mov qword [rsp + 0x20], rdi
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.140037a78
int3
jmp 0x1400401ac