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

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x6c8
mov rax, qword [0x18004d080]
xor rax, rsp
mov qword [rsp + 0x6b0], rax
mov rbx, rcx
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbx
mov qword [rsp + 0x58], r9
mov qword [rsp + 0x68], r8
repne scasw ax, word [rdi]
mov eax, 0x1f3
mov qword [rsp + 0x40], rdx
not rcx
mov rdi, rdx
dec rcx
sub eax, ecx
mov rsi, rcx
mov rcx, rbx
mov dword [rsp + 0x48], eax
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edx, dword [0x180054458]
mov rbp, rax
mov qword [rsp + 0x60], rax
test edx, edx
je 0x180002f6b
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.EnumFileAndDirW_1__error_:__d_
lea r8, str.AgentInfo
lea rcx, [0x180054358]
or edx, 0xffffffff
mov dword [rsp + 0x20], eax
call fcn.180004760
mov edx, dword [0x180054458]
cmp rbp, 0xffffffffffffffff
jne 0x180002f79
lea eax, [rbp + 2]
jmp 0x18000323c
test edx, edx
je 0x180002fa4
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str._EnumFileAndDirW_2__error_:__d_
lea r8, str.AgentInfo
lea rcx, [0x180054358]
or edx, 0xffffffff
mov dword [rsp + 0x20], eax
call fcn.180004760
movsxd rdx, esi
mov ebp, 1
xor r8d, r8d
lea esi, [rbp + 0x29]
mov qword [rsp + 0x50], rdx
test byte [rdi], 0x10
je 0x180003258
cmp word [rdi + 0x2c], 0x2e
lea rsi, [rdi + 0x2c]
jne 0x180002fe9
movzx eax, word [rdi + 0x2e]
cmp ax, 0x2e
jne 0x180002fe0
cmp word [rdi + 0x30], 0
je 0x180003196
test ax, ax
je 0x180003196
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rsi
repne scasw ax, word [rdi]
mov eax, dword [rsp + 0x48]
not rcx
cmp rax, rcx
jb 0x180003191
mov word [rbx + rdx*2 - 2], r8w
mov word [rsp + 0x2c0], r8w
lea rcx, [rsp + 0x2c2]
xor edx, edx
mov r8d, 0x3e6
call fcn.180023da0
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rsi
mov rdx, rsi
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rsp + 0x2c0]
mov r8d, r8d
call fcn.180021fbc
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbx
repne scasw ax, word [rdi]
xor ecx, ecx
nop dword [rax]
movzx eax, word [rsi + rcx]
add rcx, 2
mov word [rdi + rcx - 4], ax
test ax, ax
jne 0x180003060
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbx
repne scasw ax, word [rdi]
mov eax, dword [0x18003f6c8]
mov dword [rdi - 2], eax
movzx eax, word [0x18003f6cc]
mov word [rdi + 2], ax
cmp dword [0x180054458], 0
je 0x1800030bd
lea r9, str.EnumFileAndDirW_1___s_
lea r8, str.AgentInfo
lea rcx, [0x180054358]
or edx, 0xffffffff
mov qword [rsp + 0x20], rbx
call fcn.180004760
xor eax, eax
lea rcx, [rsp + 0x74]
xor edx, edx
mov r8d, 0x24c
mov dword [rsp + 0x70], eax
call fcn.180023da0
mov rsi, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x68]
lea rdx, [rsp + 0x70]
mov r9, rsi
mov r8, rdi
mov rcx, rbx
call fcn.180002ed0
xor ecx, ecx
mov ebp, eax
mov rax, qword [rsp + 0x50]
mov word [rbx + rax*2 - 2], cx
cmp dword [0x180054458], ecx
je 0x18000313b
lea rax, [rsp + 0x2c0]
mov dword [rsp + 0x30], ebp
lea r9, str.EnumFileAndDirW_2___s____s____d_
mov qword [rsp + 0x28], rax
lea r8, str.AgentInfo
lea rcx, [0x180054358]
or edx, 0xffffffff
mov qword [rsp + 0x20], rbx
call fcn.180004760
test ebp, ebp
je 0x180003151
lea rdx, [rsp + 0x2c0]
mov r8, rsi
mov rcx, rbx
call rdi
mov ebp, eax
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbx
repne scasw ax, word [rdi]
mov eax, dword [0x18003f5d8]
mov dword [rdi - 2], eax
cmp dword [0x180054458], 0
je 0x180003191
lea r9, str.EnumFileAndDirW_3___s_
lea r8, str.AgentInfo
lea rcx, [0x180054358]
or edx, 0xffffffff
mov qword [rsp + 0x20], rbx
call fcn.180004760
mov rdi, qword [rsp + 0x40]
mov esi, 0x2a
test ebp, ebp
je 0x1800031fb
mov rcx, qword [rsp + 0x60]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp dword [0x180054458], 0
mov edi, eax
je 0x1800031e3
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.EnumFileAndDirW_4__error_:__d___bRet_:__d_
lea r8, str.AgentInfo
lea rcx, [0x180054358]
or edx, 0xffffffff
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], eax
call fcn.180004760
mov rdx, qword [rsp + 0x50]
test edi, edi
mov rdi, qword [rsp + 0x40]
mov r8d, 0
jne 0x180002fb7
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [0x180054458], 0
je 0x18000323a
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.EnumFileAndDirW_4__error_:__d___bContinue_:__d_
lea r8, str.AgentInfo
lea rcx, [0x180054358]
or edx, 0xffffffff
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], eax
call fcn.180004760
mov eax, ebp
mov rcx, qword [rsp + 0x6b0]
xor rcx, rsp
call fcn.180021890
add rsp, 0x6c8
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov word [rbx + rdx*2 - 2], r8w
mov r8, qword [rsp + 0x58]
lea rdx, [rdi + 0x2c]
mov rcx, rbx
call qword [rsp + 0x68]
mov ebp, eax
mov rax, qword [rsp + 0x50]
mov word [rbx + rax*2 - 2], si
jmp 0x18000319b