Function at 0x140003fa0
Capabilities:
Enumerate files on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x2a8
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x210], xmm6
mov qword [rbp + 0x208], 0xfffffffffffffffe
mov r12, rcx
mov qword [rbp + 0x140], rcx
mov qword [rbp + 0x148], rdx
lea r14, [rbp + 0xe0]
mov rdi, qword [0x1400c3068]
xorps xmm6, xmm6
nop
lea rcx, [r12 + 0x10]
mov qword [rbp + 0x170], rcx
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov rax, qword [rdi]
shl rax, 1
test rax, rax
je 0x140004030
call fcn.140038ec0
xor al, 1
mov dword [rbp + 0x1f4], eax
movzx eax, byte [r12 + 0x18]
test al, al
je 0x140004048
jmp 0x140004d62
mov dword [rbp + 0x1f4], 0
movzx eax, byte [r12 + 0x18]
test al, al
jne 0x140004d62
cmp qword [r12 + 0x30], 0
je 0x140004bad
mov rax, qword [rbp + 0x148]
mov qword [rbp + 0x198], rax
lea rsi, [rax + 0x10]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov rax, qword [rdi]
shl rax, 1
test rax, rax
je 0x1400040a0
call fcn.140038ec0
xor al, 1
mov rcx, qword [rbp + 0x198]
movzx ecx, byte [rcx + 0x18]
test cl, cl
je 0x1400040b5
jmp 0x140004da0
xor eax, eax
mov rcx, qword [rbp + 0x198]
movzx ecx, byte [rcx + 0x18]
test cl, cl
jne 0x140004da0
mov dword [rbp + 0x16c], eax
mov qword [rbp + 0x110], rsi
lea rax, [r12 + 0x20]
mov qword [rbp + 0xf0], rax
mov rcx, qword [rax]
test rcx, rcx
je 0x140004dd1
mov rax, qword [rcx + 0x10]
mov qword [r12 + 0x20], rax
test rax, rax
cmove rax, qword [rbp + 0x170]
mov qword [rax + 0x18], 0
dec qword [r12 + 0x30]
mov rsi, qword [rcx]
mov rdi, qword [rcx + 8]
mov edx, 0x20
mov r8d, 8
call fcn.140009c80
mov qword [rbp + 0x130], rsi
mov qword [rbp + 0x138], rdi
mov r8d, 0x13e
lea rbx, [rbp - 0x50]
mov rcx, rbx
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov rcx, rsi
mov rdx, rbx
call sub.KERNEL32.dll_FindFirstFileA
cmp rax, 0xffffffffffffffff
je 0x140004afc
mov qword [rbp + 0x108], rax
mov rax, qword [rbp + 0x198]
add rax, 0x20
mov qword [rbp + 0x100], rax
lea rdi, [rbp + 0x1a0]
mov qword [rbp + 0xf8], r12
mov qword [rbp + 0x1a0], 0
mov qword [rbp + 0x1a8], 1
xor r13d, r13d
lea rsi, [rbp - 0x24]
jmp 0x1400041af
mov r13, qword [rbp + 0x1b0]
inc rsi
mov rax, qword [rbp + 0x1a8]
mov byte [rax + r13], bl
mov r13, qword [rbp + 0x1b0]
inc r13
mov qword [rbp + 0x1b0], r13
cmp rsi, r14
je 0x1400041e0
movzx ebx, byte [rsi]
test bl, bl
je 0x1400041e0
cmp r13, qword [rbp + 0x1a0]
jne 0x140004197
mov rcx, rdi
mov rdx, r13
call fcn.140001170
jmp 0x140004190
test byte [rbp - 0x50], 0x10
jne 0x1400042a0
mov qword [rbp + 0x1b8], 0
mov qword [rbp + 0x1c0], 1
mov qword [rbp + 0x1c8], 0
mov rdx, qword [rbp + 0x130]
mov r8, qword [rbp + 0x138]
mov byte [rbp + 0x207], 1
lea rcx, [rbp + 0x1d0]
call fcn.140032770
cmp qword [rbp + 0x1d0], 0
jne 0x140004c85
mov r15, qword [rbp + 0x1d8]
mov rdx, qword [rbp + 0x1e0]
mov rbx, rdx
mov edi, 1
dec rbx
je 0x1400042c9
test rdx, rdx
je 0x140004c5f
cmp byte [r15 + rbx], 0xbf
jle 0x140004c5f
mov byte [rbp + 0x207], 1
lea rcx, [rbp + 0x1b8]
xor edx, edx
mov r8, rbx
call fcn.140038890
mov r14, qword [rbp + 0x1c0]
mov rsi, qword [rbp + 0x1c8]
jmp 0x1400042d1
cmp r13, 2
je 0x1400044df
cmp r13, 1
jne 0x140004500
mov rax, qword [rbp + 0x1a8]
cmp byte [rax], 0x2e
jne 0x140004500
jmp 0x1400049fe
mov r14d, 1
xor esi, esi
lea rcx, [r14 + rsi]
mov rdx, r15
mov r8, rbx
call sub.VCRUNTIME140.dll_memcpy
add rsi, rbx
mov qword [rbp + 0x1c8], rsi
mov r15, qword [rbp + 0x1a8]
mov rbx, qword [rbp + 0x1b0]
test rbx, rbx
je 0x14000431c
js 0x140004d0b
mov edx, 1
mov rcx, rbx
call fcn.140009c70
mov rdi, rax
test rax, rax
je 0x140004cf2
mov qword [rbp + 0x1d0], rbx
mov qword [rbp + 0x1d8], rdi
mov rcx, rdi
mov rdx, r15
mov r8, rbx
call sub.VCRUNTIME140.dll_memcpy
mov qword [rbp + 0x1e0], rbx
mov byte [rbp + 0x207], 1
lea rcx, [rbp + 0x1d0]
call fcn.140031830
mov rdi, rax
mov r8, rdx
mov qword [rbp + 0x180], rax
mov qword [rbp + 0x188], rdx
lea rcx, [rbp + 0x1d0]
mov rdx, rax
call fcn.140032770
cmp qword [rbp + 0x1d0], 0
mov r15, qword [rbp + 0x1d8]
lea rax, [0x1400b2c00]
cmovne r15, rax
mov rbx, qword [rbp + 0x1e0]
mov eax, 0x21
cmovne rbx, rax
mov rax, qword [rbp + 0x1b8]
sub rax, rsi
cmp rax, rbx
jae 0x1400043ce
lea rcx, [rbp + 0x1b8]
mov rdx, rsi
mov r8, rbx
call fcn.140038890
mov r14, qword [rbp + 0x1c0]
mov rsi, qword [rbp + 0x1c8]
add r14, rsi
mov rcx, r14
mov rdx, r15
mov r8, rbx
call sub.VCRUNTIME140.dll_memcpy
add rsi, rbx
mov qword [rbp + 0x1c8], rsi
mov byte [rdi], 0
mov rdx, qword [rbp + 0x188]
test rdx, rdx
je 0x14000440a
mov rcx, qword [rbp + 0x180]
mov r8d, 1
call fcn.140009c80
mov rbx, qword [rbp + 0x1c0]
mov rsi, qword [rbp + 0x1c8]
cmp rsi, 4
lea r14, [rbp + 0xe0]
lea rdi, [rbp + 0x1a0]
jb 0x1400049e0
cmp dword [rsi + rbx - 4], 0x6578652e
jne 0x1400049e0
mov byte [rbp + 0x207], 1
lea rcx, [rbp + 0x1d0]
mov rdx, rbx
mov r8, rsi
call fcn.14000cd40
cmp qword [rbp + 0x1d0], 0
je 0x140004931
mov rdx, qword [rbp + 0x1d8]
mov eax, edx
and eax, 3
cmp eax, 1
lea rdi, [rbp + 0x1a0]
jne 0x1400044d3
lea rax, [rdx - 1]
mov qword [rbp + 0x1f8], rax
mov rcx, qword [rdx - 1]
mov qword [rbp + 0x178], rdx
mov rax, qword [rdx + 7]
call qword [rax]
mov rax, qword [rbp + 0x178]
mov rax, qword [rax + 7]
mov rdx, qword [rax + 8]
test rdx, rdx
mov rsi, qword [rbp + 0x1f8]
je 0x1400044c0
mov r8, qword [rax + 0x10]
mov rcx, qword [rsi]
call fcn.140009c80
mov edx, 0x18
mov r8d, 8
mov rcx, rsi
call fcn.140009c80
lea r14, [rbp + 0xe0]
jmp 0x1400049e0
mov rax, qword [rbp + 0x1a8]
cmp byte [rax], 0x2e
jne 0x140004500
cmp byte [rax + 1], 0x2e
je 0x1400049fe
nop word cs:[rax + rax]
mov rcx, qword [rbp + 0x138]
lea rdx, [rcx - 1]
add rcx, 0xfffffffffffffffe
cmp rcx, rdx
ja 0x140004ccd
mov rax, qword [rbp + 0x130]
mov rdx, qword [rbp + 0x1a8]
mov qword [rbp + 0x1d0], rax
mov qword [rbp + 0x1d8], rcx
mov qword [rbp + 0x1e0], rdx
mov qword [rbp + 0x1e8], r13
add r13, rcx
je 0x140004567
js 0x140004d2e
mov edx, 1
mov rcx, r13
call fcn.140009c70
mov rdi, rax
test rax, rax
jne 0x14000456c
jmp 0x140004d1c
mov edi, 1
mov qword [rbp + 0x150], r13
mov qword [rbp + 0x158], rdi
mov qword [rbp + 0x160], 0
xor r14d, r14d
xor ebx, ebx
jmp 0x1400045b6
lea r14, [rsi + r12]
inc rbx
add rsi, rdi
mov rcx, rsi
mov r8, r12
call sub.VCRUNTIME140.dll_memcpy
mov qword [rbp + 0x160], r14
cmp rbx, 2
je 0x1400046b0
mov rsi, r14
mov rax, rbx
shl rax, 4
mov rdx, qword [rbp + rax + 0x1d0]
mov r12, qword [rbp + rax + 0x1d8]
mov rax, r13
sub rax, r14
cmp rax, r12
jae 0x140004590
mov r14, rsi
add r14, r12
jb 0x140004c2c
mov r15, r13
add r15, r13
cmp r15, r14
cmovbe r15, r14
cmp r15, 9
jae 0x140004600
mov r15d, 8
mov r8, r15
not r8
shr r8, 0x3f
test r13, r13
mov qword [rbp + 0x1f8], rdx
je 0x140004637
mov rcx, qword [rbp + 0x158]
mov rax, r13
not rax
shr rax, 0x3f
mov qword [rbp + 0x180], rcx
mov qword [rbp + 0x188], r13
jmp 0x140004639
xor eax, eax
mov qword [rbp + 0x190], rax
lea rcx, [rbp + 0x1b8]
mov rdx, r15
lea r9, [rbp + 0x180]
call section..text
cmp qword [rbp + 0x1b8], 0
mov rdi, qword [rbp + 0x1c0]
je 0x14000468a
mov rdx, qword [rbp + 0x1c8]
movabs rax, 0x8000000000000001
cmp rdx, rax
jne 0x140004c27
mov rdi, qword [rbp + 0x158]
jmp 0x14000469b
mov qword [rbp + 0x158], rdi
mov qword [rbp + 0x150], r15
mov r13, r15
mov rdx, qword [rbp + 0x1f8]
jmp 0x140004594
mov rax, qword [rbp + 0x158]
mov qword [rbp + 0x1d0], rax
mov qword [rbp + 0x1d8], r14
lea rax, [0x14003b998]
mov qword [rbp + 0x1e0], rax
mov qword [rbp + 0x1e8], 2
add r14, 2
je 0x140004704
js 0x140004d51
mov edx, 1
mov rcx, r14
call fcn.140009c70
mov r12, rax
test rax, rax
jne 0x14000470a
jmp 0x140004d38
mov r12d, 1
mov qword [rbp + 0x118], r14
mov qword [rbp + 0x120], r12
mov qword [rbp + 0x128], 0
xor esi, esi
xor edi, edi
jmp 0x140004759
lea r15, [rsi + r13]
inc rdi
add rsi, r12
mov rcx, rsi
mov r8, r13
call sub.VCRUNTIME140.dll_memcpy
mov qword [rbp + 0x128], r15
mov rsi, r15
cmp rdi, 2
je 0x140004850
mov rax, rdi
shl rax, 4
mov rdx, qword [rbp + rax + 0x1d0]
mov r13, qword [rbp + rax + 0x1d8]
mov rax, r14
sub rax, rsi
cmp rax, r13
jae 0x140004730
mov r15, rsi
add r15, r13
jb 0x140004c3b
lea rbx, [r14 + r14]
cmp rbx, r15
cmovbe rbx, r15
cmp rbx, 9
jae 0x14000479d
mov ebx, 8
mov r8, rbx
not r8
shr r8, 0x3f
test r14, r14
mov qword [rbp + 0x1f8], rdx
je 0x1400047d4
mov rcx, qword [rbp + 0x120]
mov rax, r14
not rax
shr rax, 0x3f
mov qword [rbp + 0x180], rcx
mov qword [rbp + 0x188], r14
jmp 0x1400047d6
xor eax, eax
mov qword [rbp + 0x190], rax
lea rcx, [rbp + 0x1b8]
mov rdx, rbx
lea r9, [rbp + 0x180]
call section..text
cmp qword [rbp + 0x1b8], 0
mov r12, qword [rbp + 0x1c0]
je 0x140004827
mov rdx, qword [rbp + 0x1c8]
movabs rax, 0x8000000000000001
cmp rdx, rax
jne 0x140004c36
mov r12, qword [rbp + 0x120]
jmp 0x140004838
mov qword [rbp + 0x120], r12
mov qword [rbp + 0x118], rbx
mov r14, rbx
mov rdx, qword [rbp + 0x1f8]
jmp 0x140004734
mov rdx, qword [rbp + 0x150]
test rdx, rdx
je 0x140004872
mov rcx, qword [rbp + 0x158]
mov r8, rdx
not r8
shr r8, 0x3f
call fcn.140009c80
mov rax, qword [rbp + 0x128]
mov qword [rbp + 0x160], rax
movups xmm0, xmmword [rbp + 0x118]
movaps xmmword [rbp + 0x150], xmm0
mov qword [rbp + 0x1e0], rax
movaps xmmword [rbp + 0x1d0], xmm0
mov byte [rbp + 0x206], 0
lea rcx, [rbp + 0x1d0]
call fcn.140031830
mov r12, qword [rbp + 0xf8]
lea r14, [rbp + 0xe0]
lea rdi, [rbp + 0x1a0]
lea rcx, [rbp + 0x1d8]
movups xmmword [rcx + 8], xmm6
mov qword [rbp + 0x1d0], rax
mov qword [rbp + 0x1d8], rdx
mov ecx, 0x20
mov edx, 8
call fcn.140009c70
test rax, rax
je 0x140004cde
movups xmm0, xmmword [rbp + 0x1d0]
movups xmmword [rax], xmm0
mov qword [rax + 0x10], 0
mov rcx, qword [r12 + 0x28]
mov qword [rax + 0x18], rcx
lea rdx, [rcx + 0x10]
test rcx, rcx
cmove rdx, qword [rbp + 0xf0]
mov qword [rdx], rax
mov qword [r12 + 0x28], rax
inc qword [r12 + 0x30]
jmp 0x1400049fe
lea rcx, [rbp + 0x1d8]
mov rax, qword [rcx + 0x10]
mov qword [rbp + 0x190], rax
movups xmm0, xmmword [rcx]
movaps xmmword [rbp + 0x180], xmm0
lea rcx, [rbp + 0x180]
call fcn.14000cf40
mov rcx, rax
call fcn.14000cf90
mov rdi, rax
mov byte [rbp + 0x207], 1
lea rcx, [rbp + 0x180]
call fcn.14000cf50
test dil, 1
lea r14, [rbp + 0xe0]
lea rdi, [rbp + 0x1a0]
jne 0x1400049e0
mov byte [rbp + 0x207], 1
mov rcx, rbx
mov rdx, rsi
call fcn.140006490
test al, al
lea r14, [rbp + 0xe0]
lea rdi, [rbp + 0x1a0]
jne 0x1400049e0
mov byte [rbp + 0x207], 1
mov rcx, rbx
mov rdx, rsi
call fcn.140006680
test al, al
lea r14, [rbp + 0xe0]
lea rdi, [rbp + 0x1a0]
je 0x140004a41
nop word cs:[rax + rax]
mov rdx, qword [rbp + 0x1b8]
test rdx, rdx
je 0x1400049fe
mov r8, rdx
not r8
shr r8, 0x3f
mov rcx, rbx
call fcn.140009c80
mov rcx, qword [rbp + 0x108]
lea rdx, [rbp - 0x50]
call sub.KERNEL32.dll_FindNextFileA
test eax, eax
je 0x140004ac0
mov rdx, qword [rbp + 0x1a0]
test rdx, rdx
je 0x140004170
mov rcx, qword [rbp + 0x1a8]
mov r8, rdx
not r8
shr r8, 0x3f
call fcn.140009c80
jmp 0x140004170
mov r9, qword [rbp + 0x1b8]
mov rax, qword [rbp + 0x198]
mov rdx, qword [rax + 0x30]
cmp rdx, qword [rax + 0x20]
jne 0x140004a8e
mov qword [rbp + 0x178], r9
mov qword [rbp + 0x1f8], rbx
mov rcx, qword [rbp + 0x100]
call fcn.140001090
mov r8, qword [rbp + 0x198]
mov rdx, qword [r8 + 0x30]
mov rbx, qword [rbp + 0x1f8]
mov r9, qword [rbp + 0x178]
jmp 0x140004a95
mov r8, qword [rbp + 0x198]
mov rax, qword [r8 + 0x28]
lea rcx, [rdx + rdx*2]
mov qword [rax + rcx*8], r9
mov qword [rax + rcx*8 + 8], rbx
mov qword [rax + rcx*8 + 0x10], rsi
inc qword [r8 + 0x30]
jmp 0x1400049fe
mov rdx, qword [rbp + 0x1a0]
test rdx, rdx
je 0x140004ae2
mov rcx, qword [rbp + 0x1a8]
mov r8, rdx
not r8
shr r8, 0x3f
call fcn.140009c80
mov rcx, qword [rbp + 0x108]
call sub.KERNEL32.dll_FindClose
mov rsi, qword [rbp + 0x130]
mov rdi, qword [rbp + 0x138]
mov byte [rsi], 0
test rdi, rdi
je 0x140004b15
mov r8d, 1
mov rcx, rsi
mov rdx, rdi
call fcn.140009c80
cmp byte [rbp + 0x16c], 0
mov rsi, qword [rbp + 0x110]
mov rdi, qword [0x1400c3068]
je 0x140004b60
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
cmp byte [rbp + 0x1f4], 0
je 0x140004b90
mov rcx, qword [rbp + 0x170]
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov r12, qword [rbp + 0x140]
jmp 0x140003ff0
mov rax, qword [rdi]
shl rax, 1
test rax, rax
je 0x140004b2c
call fcn.140038ec0
test al, al
jne 0x140004b2c
mov rax, qword [rbp + 0x198]
mov byte [rax + 0x18], 1
jmp 0x140004b2c
mov rax, qword [rdi]
shl rax, 1
test rax, rax
je 0x140004b3e
call fcn.140038ec0
test al, al
jne 0x140004b3e
mov byte [r12 + 0x18], 1
jmp 0x140004b3e
cmp byte [rbp + 0x1f4], 0
je 0x140004c0a
mov rcx, qword [rbp + 0x170]
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
lock dec qword [r12]
jne 0x140004bd6
lea rcx, [rbp + 0x140]
call fcn.140007440
mov rax, qword [rbp + 0x148]
lock dec qword [rax]
jne 0x140004bef
lea rcx, [rbp + 0x148]
call fcn.140007180
movaps xmm6, xmmword [rbp + 0x210]
add rsp, 0x2a8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov rax, qword [rdi]
shl rax, 1
test rax, rax
je 0x140004bb6
call fcn.140038ec0
test al, al
jne 0x140004bb6
mov byte [r12 + 0x18], 1
jmp 0x140004bb6
test rdx, rdx
jne 0x140004c45
call fcn.140031500
jmp 0x140004de9
test rdx, rdx
jne 0x140004c52
call fcn.140031500
jmp 0x140004de9
mov rcx, rdi
call fcn.140039b30
jmp 0x140004de9
mov rcx, r12
call fcn.140039b30
jmp 0x140004de9
mov byte [rbp + 0x207], 1
lea rax, str.srcutil.rs
mov qword [rsp + 0x20], rax
mov rcx, r15
xor r8d, r8d
mov r9, rbx
call fcn.14003a050
jmp 0x140004de9
lea rax, [rbp + 0x1d8]
movups xmm0, xmmword [rax]
movaps xmmword [rbp + 0x180], xmm0
mov byte [rbp + 0x207], 1
lea rax, str.srcutil.rs
mov qword [rsp + 0x20], rax
lea rcx, [0x14003b8b0]
lea r9, fcn.140003900
lea r8, [rbp + 0x180]
mov edx, 0x2b
call fcn.140039f30
jmp 0x140004de9
lea r8, str.srcutil.rs
call fcn.140039fe0
jmp 0x140004de9
mov ecx, 0x20
mov edx, 8
call fcn.140039b30
jmp 0x140004de9
mov byte [rbp + 0x207], 1
mov edx, 1
mov rcx, rbx
call fcn.140039b30
jmp 0x140004de9
mov byte [rbp + 0x207], 1
call fcn.140031500
jmp 0x140004de9
mov edx, 1
mov rcx, r13
call fcn.140039b30
jmp 0x140004de9
call fcn.140031500
jmp 0x140004de9
mov byte [rbp + 0x206], 1
mov edx, 1
mov rcx, r14
call fcn.140039b30
jmp 0x140004de9
mov byte [rbp + 0x206], 1
call fcn.140031500
jmp 0x140004de9
mov rax, qword [rbp + 0x170]
mov qword [rbp - 0x50], rax
mov eax, dword [rbp + 0x1f4]
mov byte [rbp - 0x48], al
lea rax, str.srcutil.rs
mov qword [rsp + 0x20], rax
lea rcx, [0x14003b8b0]
lea r9, fcn.140005780
lea r8, [rbp - 0x50]
mov edx, 0x2b
call fcn.140039f30
jmp 0x140004de9
mov qword [rbp - 0x50], rsi
mov byte [rbp - 0x48], al
lea rax, str.srcutil.rs
mov qword [rsp + 0x20], rax
lea rcx, [0x14003b8b0]
lea r9, fcn.140005780
lea r8, [rbp - 0x50]
mov edx, 0x2b
call fcn.140039f30
jmp 0x140004de9
lea rcx, [0x1400b2c00]
lea r8, str.srcutil.rs
mov edx, 0x21
call fcn.140039b40
ud2