Function at 0x180023240
Capabilities:
Enumerate files on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xc0]
sub rsp, 0x1c0
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x210], rbx
mov rax, qword [0x18005d0e0]
xor rax, rsp
mov qword [rbp + 0xb0], rax
mov rbx, rdx
mov r15, rcx
mov qword [rsp + 0x38], rcx
mov rcx, qword [rcx]
mov edx, dword [rcx - 0x10]
lea eax, [rdx - 1]
test eax, eax
js 0x1800234b1
cmp eax, edx
jg 0x1800234b1
cdqe
cmp byte [rax + rcx], 0x5c
je 0x1800232be
mov r8d, 1
lea rdx, [0x18004e2a0]
mov rcx, r15
call fcn.180003ff0
mov rdx, qword [r15]
mov qword [rsp + 0x60], sendto
mov qword [rsp + 0x58], 0
mov byte [rsp + 0x48], 0
xor eax, eax
or r13, 0xffffffffffffffff
mov rcx, r13
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rsp + 0x48]
call fcn.180001660
nop
lea r8d, [r13 + 4]
lea rdx, [0x18004e32c]
lea rcx, [rsp + 0x48]
call fcn.1800071f0
lea rcx, [rsp + 0x48]
cmp qword [rsp + 0x60], 0x10
cmovae rcx, qword [rsp + 0x48]
lea rdx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov r14, rax
cmp rax, r13
je 0x180023468
cmp byte [rbp - 0x64], 0x2e
jne 0x180023353
lea rdx, [rsp + 0x70]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x18002345e
jmp 0x180023335
test byte [rsp + 0x70], 0x10
je 0x180023448
lea rcx, [0x18005d078]
mov rax, qword [0x18005d078]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x64]
mov r8, qword [r15]
lea rdx, str._s_s_
lea rcx, [rsp + 0x20]
call fcn.180002980
mov rcx, qword [rbx + 8]
lea rax, [rsp + 0x20]
mov rdi, qword [rsp + 0x20]
cmp rax, rcx
jae 0x1800233f7
mov rax, qword [rbx]
lea rdx, [rsp + 0x20]
cmp rax, rdx
ja 0x1800233f7
lea rsi, [rsp + 0x20]
sub rsi, rax
sar rsi, 3
cmp rcx, qword [rbx + 0x10]
jne 0x1800233ca
mov rcx, rbx
call fcn.180009040
mov rcx, qword [rbx]
mov r12, qword [rbx + 8]
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x30], r12
test r12, r12
je 0x1800233f5
mov rcx, qword [rcx + rsi*8]
sub rcx, 0x18
call fcn.180001790
add rax, 0x18
mov qword [r12], rax
jmp 0x180023428
cmp rcx, qword [rbx + 0x10]
jne 0x180023405
mov rcx, rbx
call fcn.180009040
mov rsi, qword [rbx + 8]
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rsi
test rsi, rsi
je 0x180023428
lea rcx, [rdi - 0x18]
call fcn.180001790
add rax, 0x18
mov qword [rsi], rax
add qword [rbx + 8], 8
lea rdx, [rdi - 0x18]
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x180023448
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
lea rdx, [rsp + 0x70]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x180023335
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindClose]
nop
cmp qword [rsp + 0x60], 0x10
jb 0x18002347a
mov rcx, qword [rsp + 0x48]
call fcn.18002f934
mov qword [rsp + 0x60], sendto
mov qword [rsp + 0x58], 0
mov byte [rsp + 0x48], 0
mov rdx, qword [r15]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], r13d
dec r13d
test r13d, r13d
jg 0x1800234bc
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
jmp 0x1800234bc
mov ecx, 0x80070057
call fcn.180001050
nop
mov rcx, qword [rbp + 0xb0]
xor rcx, rsp
call fcn.18002f950
mov rbx, qword [rsp + 0x210]
add rsp, 0x1c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret