Function at 0x140024330
Capabilities:
Enumerate files on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x920]
sub rsp, 0xa20
mov rax, qword [0x1400cd070]
xor rax, rsp
mov qword [rbp + 0x910], rax
mov r15, rcx
mov qword [rsp + 0x40], rcx
mov rdx, rcx
lea rcx, [rsp + 0x68]
call fcn.1400024d0
nop
mov r8d, 1
lea rdx, [0x1400bf228]
lea rcx, [rsp + 0x68]
call fcn.14000a640
xor edx, edx
mov r8d, 0x104
lea rcx, [rbp + 0x1e0]
call sub.VCRUNTIME140.dll_memset
xor edx, edx
mov r8d, 0x104
lea rcx, [rbp + 0xd0]
call sub.VCRUNTIME140.dll_memset
lea r8, [rsp + 0x68]
cmp qword [rbp - 0x80], 0x10
cmovae r8, qword [rsp + 0x68]
mov edx, 0x104
lea rcx, [rbp + 0x1e0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
lea r8, [rbp + 0x1e0]
lea rdx, str._homePagelock_
lea rcx, [0x1400bf250]
call fcn.1400238c0
xor r12d, r12d
mov r14d, r12d
lea rdi, [rbp + 0x1e0]
lea rax, [rbp + 0xd0]
sub rdi, rax
nop word [rax + rax]
mov edx, 0x104
lea rcx, [rbp + 0xd0]
nop dword [rax]
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x14002443f
movzx eax, byte [rdi + rcx]
test al, al
je 0x14002443f
mov byte [rcx], al
inc rcx
sub rdx, 1
jne 0x140024420
lea rax, [rcx - 1]
test rdx, rdx
cmovne rax, rcx
mov byte [rax], 0
mov ecx, 0x104
lea rax, [rbp + 0xd0]
nop dword [rax]
cmp byte [rax], 0
je 0x14002446e
inc rax
sub rcx, 1
jne 0x140024460
mov eax, 0x104
sub rax, rcx
test rcx, rcx
cmove rax, r12
je 0x1400244cf
mov edx, 0x104
sub rdx, rax
lea rcx, [rbp + 0xd0]
lea rcx, [rcx + rax]
je 0x1400244c1
mov eax, 0x7ffffffe
lea r9, [0x1400bf248]
sub r9, rcx
test rax, rax
je 0x1400244c1
movzx r8d, byte [r9 + rcx]
test r8b, r8b
je 0x1400244c1
mov byte [rcx], r8b
inc rcx
dec rax
sub rdx, 1
jne 0x1400244a3
lea rax, [rcx - 1]
test rdx, rdx
cmovne rax, rcx
mov byte [rax], 0
lea rdx, [rbp - 0x70]
lea rcx, [rbp + 0xd0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x1400247c5
nop dword [rax]
movzx ecx, word [0x1400be6d0]
mov word [rbp + 0x2f0], cx
movzx ecx, byte [0x1400be6d2]
mov byte [rbp + 0x2f2], cl
xor edx, edx
mov r8d, 0x3ff
lea rcx, [rbp + 0x2f3]
call sub.VCRUNTIME140.dll_memset
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [0x1400bf778]
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [0x1400833b8]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x140024792
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
lea r8, [rsp + 0x38]
lea rdx, [0x1400bf768]
call qword [rax]
test eax, eax
js 0x140024787
mov edx, 0x104
lea rax, [rbp + 0xd0]
nop word [rax + rax]
lea rcx, [rdx + 0x7ffffefa]
test rcx, rcx
je 0x14002459f
movzx ecx, byte [rdi + rax]
test cl, cl
je 0x14002459f
mov byte [rax], cl
inc rax
sub rdx, 1
jne 0x140024580
lea rcx, [rax - 1]
test rdx, rdx
cmovne rcx, rax
mov byte [rcx], 0
mov ecx, 0x104
lea rax, [rbp + 0xd0]
nop dword [rax]
cmp byte [rax], 0
je 0x1400245ce
inc rax
sub rcx, 1
jne 0x1400245c0
mov eax, 0x104
sub rax, rcx
test rcx, rcx
cmove rax, r12
je 0x14002462c
mov edx, 0x104
sub rdx, rax
lea rcx, [rbp + 0xd0]
lea rcx, [rcx + rax]
je 0x14002461e
mov eax, 0x7ffffffe
lea r9, [rbp - 0x44]
sub r9, rcx
test rax, rax
je 0x14002461e
movzx r8d, byte [r9 + rcx]
test r8b, r8b
je 0x14002461e
mov byte [rcx], r8b
inc rcx
dec rax
sub rdx, 1
jne 0x140024600
lea rax, [rcx - 1]
test rdx, rdx
cmovne rax, rcx
mov byte [rax], 0
mov dword [rsp + 0x28], 0x104
lea rax, [rbp + 0x700]
mov qword [rsp + 0x20], rax
mov r9d, 0xffffffff
lea r8, [rbp + 0xd0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx]
xor r8d, r8d
lea rdx, [rbp + 0x700]
call qword [rax + Ordinal_41]
mov ebx, eax
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x60], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x48], 0
lea rax, [rbp + 0xd0]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x140024694
lea rdx, [rbp + 0xd0]
lea rcx, [rsp + 0x48]
call fcn.140003150
nop
mov rax, qword [0x1400d2290]
cmp rax, qword [0x1400d2298]
je 0x1400246d7
lea rdx, [rsp + 0x48]
mov rcx, rax
call fcn.1400024d0
add qword [0x1400d2290], 0x20
jmp 0x1400246eb
lea r8, [rsp + 0x48]
mov rdx, rax
lea rcx, [0x1400d2288]
call fcn.14000a990
lea r8, [rsp + 0x48]
cmp qword [rsp + 0x60], 0x10
cmovae r8, qword [rsp + 0x48]
lea rdx, str._homePagelock_
lea rcx, str._s_Find_Lnk:__s_n
call fcn.1400238c0
test ebx, ebx
js 0x14002473e
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
mov r8d, 0x400
lea rdx, [rbp + 0x2f2]
call qword [rax + 0x30]
movzx ecx, byte [rbp + 0x2f0]
test eax, eax
cmovs ecx, r12d
mov byte [rbp + 0x2f0], cl
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x140024787
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140024782
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002480c
call fcn.140073454
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
lea rcx, [rbp - 0x44]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 0xfffffffc
movsxd rcx, eax
mov byte [rbp + rcx - 0x44], 0
lea rdx, [rbp - 0x70]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1400244f0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
inc r14d
cmp r14d, 1
jl 0x140024410
mov rdx, qword [rbp - 0x80]
cmp rdx, 0x10
jb 0x140024818
inc rdx
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140024813
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140024813
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]
nop
call fcn.140073454
mov qword [rsp + 0x78], r12
mov qword [rbp - 0x80], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x68], 0
mov rdx, qword [r15 + 0x18]
cmp rdx, 0x10
jb 0x140024860
inc rdx
mov rcx, qword [r15]
cmp rdx, 0x1000
jb 0x14002485b
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14002489b
mov rcx, r8
call fcn.140073454
mov qword [r15 + 0x10], r12
mov qword [r15 + 0x18], reloc.WS2_32.dll_ntohs
mov byte [r15], 0
mov rcx, qword [rbp + 0x910]
xor rcx, rsp
call fcn.140072f40
lea r11, [rsp + 0xa20]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3