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

Disassembly:
push rbp
push rsi
push r12
push r13
push r15
lea rbp, [rsp - 0x7f0]
sub rsp, 0x8f0
mov rax, qword [0x1400213f8]
xor rax, rsp
mov qword [rbp + 0x7c0], rax
mov r12d, r9d
mov dword [rsp + 0x30], r8d
mov r9, rcx
mov dword [rsp + 0x34], edx
mov esi, r8d
mov r13, rcx
lea rcx, [rbp + 0x190]
mov edx, 0x104
lea r8, [0x14001ac90]
call fcn.1400021e0
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x190]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov r15, rax
cmp rax, 0xffffffffffffffff
je 0x14000cff6
mov qword [rsp + 0x8e8], rbx
xor ebx, ebx
mov qword [rsp + 0x8e0], rdi
mov qword [rsp + 0x8d8], r14
lea r14, [0x140022e84]
nop word [rax + rax]
mov rdi, qword [0x140022408]
mov eax, dword [0x140022424]
test rdi, rdi
je 0x14000cb1a
cmp dword [0x140022418], eax
jne 0x14000cb63
add eax, 0x32
mov rcx, rdi
mov dword [0x140022424], eax
cdqe
imul rdx, rax, 0xdd0
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
mov rdi, rax
test rax, rax
jne 0x14000cb5c
sub dword [0x140022424], 0x32
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindClose]
lea rdx, str.Out_of_memory_while_scanning_configs
lea ecx, [rdi + 1]
call fcn.1400041a0
mov qword [0x140022408], rdi
mov rcx, 0xffffffffffffffff
nop word [rax + rax]
inc rcx
cmp word [r14 + rcx*2], 0
jne 0x14000cb70
test byte [rsp + 0x40], 0x10
jne 0x14000cc3a
test rcx, rcx
je 0x14000cbdd
lea rdx, [rsp + 0x6c]
mov rax, 0xffffffffffffffff
nop word [rax + rax]
inc rax
cmp word [rdx + rax*2], 0
jne 0x14000cba0
sub eax, ecx
dec eax
test eax, eax
jle 0x14000cc3a
cdqe
cmp word [rsp + rax*2 + 0x6c], 0x2e
jne 0x14000cc3a
lea rcx, [rsp + 0x6e]
mov rdx, r14
lea rcx, [rcx + rax*2]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x14000cc3a
mov rdi, qword [0x140022408]
cmp dword [0x140022418], 0
jle 0x14000cd33
nop word [rax + rax]
movsxd rax, ebx
lea rdx, [rsp + 0x6c]
imul rcx, rax, 0xdd0
add rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x14000cc23
inc ebx
cmp ebx, dword [0x140022418]
jge 0x14000cd33
mov rdi, qword [0x140022408]
jmp 0x14000cbf0
test r12b, 1
je 0x14000cc38
lea rdx, [rsp + 0x6c]
mov ecx, 0x4e3
call fcn.140003f10
xor ebx, ebx
lea rdx, [rsp + 0x40]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x14000cb00
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindClose]
mov edi, dword [rsp + 0x34]
cmp edi, 1
jl 0x14000cfde
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x190]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14000cfde
nop word [rax + rax]
mov rcx, 0xffffffffffffffff
nop word [rax + rax]
inc rcx
cmp word [r14 + rcx*2], 0
jne 0x14000cca0
test byte [rsp + 0x40], 0x10
je 0x14000cf78
movzx ecx, word [rsp + 0x6c]
movzx eax, word [rsp + 0x6e]
cmp cx, 0x2e
jne 0x14000cce5
test ax, ax
je 0x14000cfbf
cmp cx, cx
jne 0x14000cce5
cmp ax, cx
jne 0x14000cce5
cmp word [rsp + 0x70], 0
je 0x14000cfbf
lea rax, [rsp + 0x6c]
mov r9, r13
lea r8, [0x140018d40]
mov qword [rsp + 0x20], rax
mov edx, 0x104
lea rcx, [rbp + 0x5b0]
call fcn.1400021e0
mov r8d, r12d
lea rcx, [rsp + 0x6c]
mov edx, esi
call fcn.14000d0e0
lea edx, [rdi - 1]
mov r9d, r12d
mov r8d, eax
lea rcx, [rbp + 0x5b0]
call fcn.14000ca60
jmp 0x14000cfbf
lea rax, [rsp + 0x6c]
mov r9, r13
lea r8, [0x140018d40]
mov qword [rsp + 0x20], rax
mov edx, 0x104
lea rcx, [rbp + 0x3a0]
call fcn.1400021e0
mov edx, 0x80000000
lea rcx, [rbp + 0x3a0]
call fcn.140006260
test eax, eax
je 0x14000cc38
movsxd rbx, dword [0x140022418]
xor edx, edx
imul rdi, rbx, 0xdd0
mov r8d, 0xdd0
add rdi, qword [0x140022408]
mov rcx, rdi
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x103
lea rdx, [rsp + 0x6c]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
lea rcx, [rdi + 0x410]
mov r8d, 0x103
mov rdx, r13
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
lea r14, [rdi + 0x208]
mov r8d, 0x103
mov rcx, r14
mov rdx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
mov rax, 0xffffffffffffffff
lea rcx, [0x140022e84]
nop word [rax + rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x14000cdf0
mov ecx, 0x103
sub rcx, rax
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [r14 + rax*2], 0
jne 0x14000ce10
add rcx, rax
mov qword [rsp + 0x20], r14
xor eax, eax
lea r9, [0x140022ea4]
lea r8, str._s_s.log
mov edx, 0x104
mov word [rdi + rcx*2], ax
lea rcx, [rdi + 0x618]
call fcn.1400021e0
mov eax, 2
mov qword [rdi + 0x8c8], 0xffffffffffffffff
lea rcx, str.127.0.0.1
mov word [rdi + 0x8d0], ax
call qword [sym.imp.WS2_32.dll_inet_addr]
mov dword [rdi + 0x8d4], eax
add bx, word [0x1400234ec]
movzx ecx, bx
call qword [sym.imp.WS2_32.dll_htons]
mov rcx, rdi
mov word [rdi + 0x8d2], ax
call fcn.14000f910
test eax, eax
je 0x14000ce9c
or dword [rdi + 0xd68], 2
xor ebx, ebx
cmp dword [0x14002241c], ebx
mov esi, ebx
jle 0x14000cefc
nop dword [rax + rax]
mov rdx, qword [0x140022400]
mov rcx, rdi
mov rdx, qword [rbx + rdx]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x14000cef0
mov rdx, qword [0x140022400]
mov rcx, r14
mov rdx, qword [rbx + rdx]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x14000cef0
inc esi
add rbx, 8
cmp esi, dword [0x14002241c]
jl 0x14000ceb0
jmp 0x14000cefa
mov dword [rdi + 0x89c], 1
xor ebx, ebx
cmp dword [0x140022c78], 0
je 0x14000cf0f
mov rcx, rdi
call fcn.14000dd70
jmp 0x14000cf35
mov rcx, r14
call fcn.140011ff0
test eax, eax
je 0x14000cf22
or dword [rdi + 0xd68], 0x20
mov rcx, r14
call fcn.140012020
test eax, eax
je 0x14000cf35
or dword [rdi + 0xd68], 0x10
cmp dword [0x1400234e4], 0
je 0x14000cf46
mov rcx, rdi
call fcn.14000dd60
movsxd rax, dword [0x140022418]
lea r14, [0x140022e84]
mov esi, dword [rsp + 0x30]
imul rcx, rax, 0xdd0
mov rax, qword [0x140022408]
mov dword [rcx + rax + 0x8bc], esi
inc dword [0x140022418]
jmp 0x14000cc3a
test rcx, rcx
je 0x14000cfbf
lea rdx, [rsp + 0x6c]
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rdx + rax*2], 0
jne 0x14000cf90
sub eax, ecx
dec eax
test eax, eax
jle 0x14000cfbf
movsxd rcx, eax
cmp word [rsp + rcx*2 + 0x6c], 0x2e
jne 0x14000cfbf
lea rax, [rsp + 0x6e]
mov rdx, r14
lea rcx, [rax + rcx*2]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x14000cc90
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rdi, qword [rsp + 0x8e0]
mov rbx, qword [rsp + 0x8e8]
mov r14, qword [rsp + 0x8d8]
mov rcx, qword [rbp + 0x7c0]
xor rcx, rsp
call fcn.140016590
add rsp, 0x8f0
pop r15
pop r13
pop r12
pop rsi
pop rbp
ret