Function at 0x1800211b0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x100]
sub rsp, 0x200
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rsp + 0x238], rbx
mov rax, qword [0x18005d0e0]
xor rax, rsp
mov qword [rbp + 0xf0], rax
mov qword [rsp + 0x50], r8
mov rsi, rdx
mov rdi, rcx
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x70], rcx
mov rcx, qword [rcx]
mov edx, dword [rcx - 0x10]
lea eax, [rdx - 1]
test eax, eax
js 0x180021760
cmp eax, edx
jg 0x180021760
cdqe
cmp byte [rax + rcx], 0x5c
je 0x180021230
mov r8d, 1
lea rdx, [0x18004e2a0]
mov rcx, rdi
call fcn.180003ff0
mov rdx, qword [rdi]
mov qword [rbp - 0x68], sendto
mov qword [rbp - 0x70], 0
mov byte [rbp - 0x80], 0
xor eax, eax
or rbx, 0xffffffffffffffff
mov rcx, rbx
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rbp - 0x80]
call fcn.180001660
nop
xor eax, eax
mov rcx, rbx
mov rdx, qword [rsp + 0x50]
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rbp - 0x80]
call fcn.1800071f0
lea rcx, [rbp - 0x80]
cmp qword [rbp - 0x68], 0x10
cmovae rcx, qword [rbp - 0x80]
lea rdx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rdi, rax
mov qword [rsp + 0x68], rax
cmp rax, rbx
je 0x18002171a
nop
cmp byte [rbp - 0x24], 0x2e
je 0x18002168f
mov rax, qword [rsp + 0x48]
mov rdi, qword [rax]
mov rcx, qword [rdi - 0x18]
mov rax, qword [rcx]
test byte [rbp - 0x50], 0x10
je 0x18002149c
call qword [rax + 0x20]
mov rcx, rax
cmp dword [rdi - 8], 0
jl 0x1800212ef
cmp rax, qword [rdi - 0x18]
jne 0x1800212ef
lea rbx, [rdi - 0x18]
lock inc dword [rdi - 8]
jmp 0x180021326
mov rax, qword [rax]
mov r8d, 1
mov edx, dword [rdi - 0x10]
call qword [rax]
mov rbx, rax
test rax, rax
je 0x1800216d7
mov ecx, dword [rdi - 0x10]
mov dword [rax + 8], ecx
mov ecx, dword [rdi - 0x10]
inc ecx
movsxd rdx, ecx
mov r8, rdi
lea rcx, [rax + 0x18]
mov r9, rdx
call fcn.18002feb4
add rbx, 0x18
mov qword [rsp + 0x58], rbx
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbp - 0x24]
repne scasb al, byte [rdi]
not rcx
dec rcx
lea rax, [rbp - 0x24]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x24]
sub rax, rbx
mov qword [rsp + 0x30], rax
mov edi, dword [rbx - 0x10]
mov dword [rsp + 0x20], edi
xor eax, eax
test ecx, ecx
setns al
test eax, eax
je 0x1800216cc
movsxd rdx, ecx
lea rcx, [rbp - 0x24]
call fcn.180030828
mov r8, rax
mov qword [rsp + 0x40], rax
mov ecx, 0x7fffffff
sub ecx, eax
xor edx, edx
cmp ecx, edi
setge dl
test edx, edx
je 0x1800216c1
add edi, eax
js 0x1800216b6
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x1800213c5
mov edx, edi
lea rcx, [rsp + 0x58]
call fcn.180001ef0
mov rbx, qword [rsp + 0x58]
mov r8, qword [rsp + 0x40]
mov ecx, dword [rsp + 0x20]
mov rax, qword [rsp + 0x30]
cmp rax, rcx
ja 0x1800213d8
add rax, rbx
jmp 0x1800213dd
mov rax, qword [rsp + 0x28]
movsxd rdx, r8d
add rcx, rbx
mov r9, rdx
mov r8, rax
call fcn.18002feb4
cmp edi, dword [rbx - 0xc]
jg 0x1800216ab
mov dword [rbx - 0x10], edi
movsxd rax, edi
mov byte [rax + rbx], 0
mov rcx, qword [rbx - 0x18]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, rax
cmp dword [rbx - 8], 0
jl 0x180021424
cmp rax, qword [rbx - 0x18]
jne 0x180021424
lea rdi, [rbx - 0x18]
lock inc dword [rbx - 8]
jmp 0x18002145b
mov rax, qword [rax]
mov r8d, 1
mov edx, dword [rbx - 0x10]
call qword [rax]
mov rdi, rax
test rax, rax
je 0x1800216a5
mov ecx, dword [rbx - 0x10]
mov dword [rax + 8], ecx
mov ecx, dword [rbx - 0x10]
inc ecx
movsxd rdx, ecx
mov r8, rbx
lea rcx, [rax + 0x18]
mov r9, rdx
call fcn.18002feb4
lea rax, [rdi + 0x18]
mov qword [rsp + 0x60], rax
mov r8, qword [rsp + 0x50]
mov rdx, rsi
lea rcx, [rsp + 0x60]
call fcn.1800211b0
nop
or eax, 0xffffffff
lock xadd dword [rbx - 8], eax
dec eax
test eax, eax
jg 0x180021686
mov rcx, qword [rbx - 0x18]
mov rax, qword [rcx]
lea rdx, [rbx - 0x18]
call qword [rax + reloc.WS2_32.dll_htonl]
jmp 0x180021686
call qword [rax + 0x20]
mov rcx, rax
cmp dword [rdi - 8], 0
jl 0x1800214b8
cmp rax, qword [rdi - 0x18]
jne 0x1800214b8
lea rbx, [rdi - 0x18]
lock inc dword [rdi - 8]
jmp 0x1800214ef
mov rax, qword [rax]
mov r8d, 1
mov edx, dword [rdi - 0x10]
call qword [rax]
mov rbx, rax
test rax, rax
je 0x180021714
mov ecx, dword [rdi - 0x10]
mov dword [rax + 8], ecx
mov ecx, dword [rdi - 0x10]
inc ecx
movsxd rdx, ecx
mov r8, rdi
lea rcx, [rax + 0x18]
mov r9, rdx
call fcn.18002feb4
add rbx, 0x18
mov qword [rsp + 0x38], rbx
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbp - 0x24]
repne scasb al, byte [rdi]
not rcx
dec rcx
lea rax, [rbp - 0x24]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x24]
sub rax, rbx
mov qword [rsp + 0x30], rax
mov edi, dword [rbx - 0x10]
mov dword [rsp + 0x20], edi
xor eax, eax
test ecx, ecx
setns al
test eax, eax
je 0x180021709
movsxd rdx, ecx
lea rcx, [rbp - 0x24]
call fcn.180030828
mov r8, rax
mov qword [rsp + 0x28], rax
mov ecx, 0x7fffffff
sub ecx, eax
xor edx, edx
cmp ecx, edi
setge dl
test edx, edx
je 0x1800216fe
add edi, eax
js 0x1800216f3
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x18002158e
mov edx, edi
lea rcx, [rsp + 0x38]
call fcn.180001ef0
mov rbx, qword [rsp + 0x38]
mov r8, qword [rsp + 0x28]
mov ecx, dword [rsp + 0x20]
mov rax, qword [rsp + 0x30]
cmp rax, rcx
ja 0x1800215a1
add rax, rbx
jmp 0x1800215a6
mov rax, qword [rsp + 0x40]
movsxd rdx, r8d
add rcx, rbx
mov r9, rdx
mov r8, rax
call fcn.18002feb4
cmp edi, dword [rbx - 0xc]
jg 0x1800216e8
mov dword [rbx - 0x10], edi
movsxd rax, edi
mov byte [rax + rbx], 0
mov rax, qword [rsi + 8]
lea rcx, [rsp + 0x38]
cmp rcx, rax
jae 0x180021630
mov rcx, qword [rsi]
lea rdx, [rsp + 0x38]
cmp rcx, rdx
ja 0x180021630
lea rdi, [rsp + 0x38]
sub rdi, rcx
sar rdi, 3
cmp rax, qword [rsi + 0x10]
jne 0x1800215ff
mov rcx, rsi
call fcn.180009040
mov rcx, qword [rsi]
mov rax, qword [rsi + 8]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x18002162e
mov rcx, qword [rcx + rdi*8]
sub rcx, 0x18
call fcn.180001790
add rax, 0x18
mov rcx, qword [rsp + 0x28]
mov qword [rcx], rax
jmp 0x180021661
cmp rax, qword [rsi + 0x10]
jne 0x18002163e
mov rcx, rsi
call fcn.180009040
mov rdi, qword [rsi + 8]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x30], rdi
test rdi, rdi
je 0x180021661
lea rcx, [rbx - 0x18]
call fcn.180001790
add rax, 0x18
mov qword [rdi], rax
add qword [rsi + 8], 8
lea rdx, [rbx - 0x18]
or rbx, 0xffffffffffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x18002168a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
jmp 0x18002168a
or rbx, 0xffffffffffffffff
mov rdi, qword [rsp + 0x68]
lea rdx, [rbp - 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x1800216dd
jmp 0x1800212b0
call fcn.180001c20
int3
mov ecx, 0x80070057
call fcn.180001050
int3
mov ecx, 0x80070057
call fcn.180001050
int3
mov ecx, 0x80070057
call fcn.180001050
int3
mov ecx, 0x80070057
call fcn.180001050
nop
call fcn.180001c20
int3
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x18002171a
mov ecx, 0x80070057
call fcn.180001050
int3
mov ecx, 0x80070057
call fcn.180001050
int3
mov ecx, 0x80070057
call fcn.180001050
int3
mov ecx, 0x80070057
call fcn.180001050
nop
call fcn.180001c20
nop
cmp qword [rbp - 0x68], 0x10
jb 0x18002172a
mov rcx, qword [rbp - 0x80]
call fcn.18002f934
mov qword [rbp - 0x68], sendto
mov qword [rbp - 0x70], 0
mov byte [rbp - 0x80], 0
mov rax, qword [rsp + 0x48]
mov rdx, qword [rax]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], ebx
dec ebx
test ebx, ebx
jg 0x18002176b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
jmp 0x18002176b
mov ecx, 0x80070057
call fcn.180001050
nop
mov rcx, qword [rbp + 0xf0]
xor rcx, rsp
call fcn.18002f950
mov rbx, qword [rsp + 0x238]
add rsp, 0x200
pop rdi
pop rsi
pop rbp
ret