Function at 0x140001530
Capabilities:
Enumerate files on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x130]
sub rsp, 0x230
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x120], rax
mov r14, r8
mov r13, rcx
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x20], rcx
mov r15, qword [r8 + 0x10]
movabs rcx, 0x7fffffffffffffff
mov rax, rcx
sub rax, r15
cmp rax, 2
jb 0x140001cbf
cmp qword [r8 + 0x18], 0xf
jbe 0x140001598
mov r14, qword [r8]
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x38], xmm1
lea r12, [r15 + 2]
mov esi, recv
mov ebx, esi
lea rdi, [rsp + 0x28]
movabs rax, 0x8000000000000000
mov edx, socket
cmp r12, rsi
jbe 0x140001637
mov rbx, r12
or rbx, rsi
cmp rbx, rcx
jbe 0x1400015fe
mov rbx, rcx
add rax, 0x27
mov rcx, rax
call fcn.140003640
test rax, rax
je 0x1400016b0
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x140001632
cmp rbx, rdx
cmovb rbx, rdx
lea rcx, [rbx + 1]
test rcx, rcx
jne 0x140001612
xor edi, edi
jmp 0x140001632
cmp rcx, 0x1000
jb 0x14000162a
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140001cad
jmp 0x1400015df
call fcn.140003640
mov rdi, rax
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x40], rbx
mov r8, r15
mov rdx, r14
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
mov word [rdi + r15], 0x2a5c
mov byte [rdi + r12], 0
lea rcx, [rsp + 0x28]
cmp qword [rsp + 0x40], rsi
cmova rcx, qword [rsp + 0x28]
lea rdx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rdi, rax
mov qword [rsp + 0x20], rax
mov rdx, qword [rsp + 0x40]
cmp rdx, rsi
jbe 0x1400016bc
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400016b7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400016b7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140003684
movdqa xmm0, xmmword [0x140005880]
movdqu xmmword [rsp + 0x38], xmm0
mov byte [rsp + 0x28], 0
xorps xmm0, xmm0
cmp rdi, 0xffffffffffffffff
jne 0x14000172c
movups xmmword [r13], xmm0
mov qword [r13 + 0x10], 0
mov qword [r13 + 0x18], 0
xor r8d, r8d
lea rdx, [0x140005580]
mov rcx, r13
call fcn.140002ed0
mov rax, r13
mov rcx, qword [rbp + 0x120]
xor rcx, rsp
call fcn.140003380
mov rbx, qword [rsp + 0x278]
add rsp, 0x230
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
movups xmmword [rbp - 0x68], xmm0
xor r12d, r12d
mov qword [rbp - 0x58], r12
mov qword [rbp - 0x50], rsi
mov byte [rbp - 0x68], r12b
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x48], xmm0
mov qword [rbp - 0x38], r12
mov qword [rbp - 0x30], r12
lea rax, [rbp + 0xc]
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140001760
lea rdx, [rbp + 0xc]
lea rcx, [rbp - 0x48]
call fcn.140002ed0
nop
lea rax, [rbp - 0x48]
mov rdi, qword [rbp - 0x48]
mov r15, qword [rbp - 0x30]
cmp r15, 0xf
cmova rax, rdi
mov r14, qword [rbp - 0x38]
cmp r14, 1
jne 0x14000179f
cmp byte [rax], 0x2e
je 0x140001ad8
lea rax, [rbp - 0x48]
cmp r15, 0xf
cmova rax, rdi
cmp r14, 2
jne 0x1400017bc
cmp word [rax], 0x2e2e
je 0x140001ad8
movabs rcx, 0x7fffffffffffffff
mov rax, rcx
sub rax, r14
test byte [rbp - 0x20], 0x10
je 0x1400019a3
cmp rax, 6
jb 0x140001cd1
lea r13, [rbp - 0x48]
cmp r15, 0xf
cmova r13, rdi
xorps xmm0, xmm0
movups xmmword [rsp + 0x78], xmm0
mov qword [rbp - 0x78], r12
mov qword [rbp - 0x70], r12
lea r12, [r14 + 6]
mov rbx, rsi
lea rsi, [rsp + 0x78]
cmp r12, 0xf
jbe 0x140001889
mov rbx, r12
or rbx, 0xf
cmp rbx, rcx
jbe 0x14000182d
mov rbx, rcx
movabs rax, 0x8000000000000000
add rax, 0x27
jmp 0x14000185d
cmp rbx, 0x16
mov eax, socket
cmovb rbx, rax
lea rcx, [rbx + 1]
test rcx, rcx
jne 0x140001847
xor esi, esi
jmp 0x140001884
cmp rcx, 0x1000
jb 0x14000187c
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140001ccb
mov rcx, rax
call fcn.140003640
test rax, rax
je 0x140001bbd
lea rsi, [rax + 0x27]
and rsi, 0xffffffffffffffe0
mov qword [rsi - 8], rax
jmp 0x140001884
call fcn.140003640
mov rsi, rax
mov qword [rsp + 0x78], rsi
mov qword [rbp - 0x78], r12
mov qword [rbp - 0x70], rbx
mov ecx, dword [str._DIR_]
mov dword [rsi], ecx
movzx ecx, word [0x14000558c]
mov word [rsi + 4], cx
lea rcx, [rsi + 6]
mov r8, r14
mov rdx, r13
call sub.VCRUNTIME140.dll_memcpy
mov byte [rsi + r12], 0
mov r8d, 1
lea rdx, [0x140005584]
lea rcx, [rsp + 0x78]
call fcn.140002840
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x58], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x68], xmm1
xor r12d, r12d
mov qword [rax + 0x10], r12
mov esi, recv
mov qword [rax + 0x18], rsi
mov byte [rax], r12b
lea rdx, [rsp + 0x58]
movq rcx, xmm0
movdqa xmm0, xmm1
psrldq xmm0, 8
movq rax, xmm0
cmp rax, rsi
cmova rdx, rcx
movq r8, xmm1
lea rcx, [rbp - 0x68]
call fcn.140002840
nop
mov rdx, qword [rsp + 0x70]
cmp rdx, rsi
jbe 0x14000195e
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001958
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001bb6
call fcn.140003684
nop
mov rdx, qword [rbp - 0x70]
cmp rdx, 0xf
jbe 0x140001ad8
inc rdx
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001999
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001bbd
call fcn.140003684
jmp 0x140001ad8
cmp rax, 1
jb 0x140001cb9
lea r13, [rbp - 0x48]
cmp r15, 0xf
cmova r13, rdi
xorps xmm0, xmm0
movups xmmword [rsp + 0x78], xmm0
mov qword [rbp - 0x78], r12
mov qword [rbp - 0x70], r12
lea r12, [r14 + 1]
mov rbx, rsi
lea rsi, [rsp + 0x78]
cmp r12, 0xf
jbe 0x140001a56
mov rbx, r12
or rbx, 0xf
cmp rbx, rcx
jbe 0x1400019fa
mov rbx, rcx
movabs rax, 0x8000000000000000
add rax, 0x27
jmp 0x140001a2a
cmp rbx, 0x16
mov eax, socket
cmovb rbx, rax
lea rcx, [rbx + 1]
test rcx, rcx
jne 0x140001a14
xor esi, esi
jmp 0x140001a51
cmp rcx, 0x1000
jb 0x140001a49
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140001ca7
mov rcx, rax
call fcn.140003640
test rax, rax
je 0x140001bc4
lea rsi, [rax + 0x27]
and rsi, 0xffffffffffffffe0
mov qword [rsi - 8], rax
jmp 0x140001a51
call fcn.140003640
mov rsi, rax
mov qword [rsp + 0x78], rsi
mov qword [rbp - 0x78], r12
mov qword [rbp - 0x70], rbx
mov r8, r14
mov rdx, r13
mov rcx, rsi
call sub.VCRUNTIME140.dll_memcpy
mov byte [rsi + r14], 0xa
mov byte [rsi + r12], 0
lea rdx, [rsp + 0x78]
cmp qword [rbp - 0x70], 0xf
cmova rdx, qword [rsp + 0x78]
mov r8, qword [rbp - 0x78]
lea rcx, [rbp - 0x68]
call fcn.140002840
nop
mov rdx, qword [rbp - 0x70]
cmp rdx, 0xf
jbe 0x140001ad0
inc rdx
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001acb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001bc4
call fcn.140003684
xor r12d, r12d
mov esi, recv
cmp r15, 0xf
jbe 0x140001b0f
lea rdx, [r15 + 1]
cmp rdx, 0x1000
mov rax, rdi
jb 0x140001b07
mov rdi, qword [rdi - 8]
sub rax, rdi
add rdx, 0x27
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001c03
mov rcx, rdi
call fcn.140003684
lea rdx, [rbp - 0x20]
mov rdi, qword [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x140001740
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov r14, qword [rbp - 0x58]
movabs rcx, 0x7fffffffffffffff
mov rax, rcx
sub rax, r14
cmp rax, 6
jb 0x140001cc5
lea r15, [rbp - 0x68]
cmp qword [rbp - 0x50], 0xf
cmova r15, qword [rbp - 0x68]
xorps xmm0, xmm0
movups xmmword [rsp + 0x78], xmm0
lea rsi, [r14 + 6]
lea rbx, [rsp + 0x78]
cmp rsi, 0xf
jbe 0x140001c19
mov rdi, rsi
or rdi, 0xf
cmp rdi, rcx
jbe 0x140001bcb
mov rdi, rcx
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.140003640
test rax, rax
je 0x140001c03
lea rbx, [rax + 0x27]
and rbx, 0xffffffffffffffe0
mov qword [rbx - 8], rax
mov qword [rsp + 0x78], rbx
jmp 0x140001c1e
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
cmp rdi, 0x16
mov eax, socket
cmovb rdi, rax
lea rcx, [rdi + 1]
test rcx, rcx
jne 0x140001beb
mov rbx, r12
mov qword [rsp + 0x78], rbx
jmp 0x140001c1e
cmp rcx, 0x1000
jb 0x140001c0a
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140001cb3
jmp 0x140001b96
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140003640
mov rbx, rax
mov qword [rsp + 0x78], rax
jmp 0x140001c1e
mov edi, recv
mov qword [rbp - 0x78], rsi
mov qword [rbp - 0x70], rdi
mov ecx, dword [str.FILES]
mov dword [rbx], ecx
movzx ecx, word [0x140005594]
mov word [rbx + 4], cx
lea rcx, [rbx + 6]
mov r8, r14
mov rdx, r15
call sub.VCRUNTIME140.dll_memcpy
mov byte [rbx + rsi], 0
mov rbx, qword [rsp + 0x50]
movups xmm0, xmmword [rsp + 0x78]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rbp - 0x78]
movups xmmword [rbx + 0x10], xmm1
mov rdx, qword [rbp - 0x50]
cmp rdx, 0xf
jbe 0x140001c9f
inc rdx
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001c9a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001c9a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140003684
mov rax, rbx
jmp 0x140001702
call fcn.140001220
nop
call fcn.140001220
nop
call fcn.140001220
nop
call fcn.1400012c0
nop
call fcn.1400012c0
nop
call fcn.1400012c0
nop
call fcn.140001220
int3
call fcn.1400012c0
int3