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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x65c
mov eax, dword [0x10173500]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x654], eax
mov eax, ebx
push edi
mov dword [ebp - 0x658], esi
mov dword [ebp - 0x648], ecx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10003050
sub eax, edx
sar eax, 1
mov edi, eax
mov eax, 0x1f3
push esi
sub eax, edi
push ebx
mov dword [ebp - 0x64c], edi
mov dword [ebp - 0x65c], eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp dword [0x1017be54], 0
mov dword [ebp - 0x650], eax
je 0x100030ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.EnumFileAndDirW_1__error_:__d_
push str.AgentInfo
or ecx, 0xffffffff
mov edx, 0x1017bdc4
call fcn.10005f70
add esp, 0xc
cmp dword [ebp - 0x650], 0xffffffff
jne 0x100030cb
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101026e9
mov esp, ebp
pop ebp
ret
cmp dword [0x1017be54], 0
je 0x100030f5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._EnumFileAndDirW_2__error_:__d_
push str.AgentInfo
or ecx, 0xffffffff
mov edx, 0x1017bdc4
call fcn.10005f70
add esp, 0xc
mov dword [ebp - 0x644], 1
jmp 0x10003107
mov edi, dword [ebp - 0x64c]
test byte [esi], 0x10
je 0x100033a1
cmp word [esi + 0x2c], 0x2e
lea edi, [esi + 0x2c]
jne 0x10003137
movzx eax, word [esi + 0x2e]
cmp eax, 0x2e
jne 0x1000312e
cmp word [esi + 0x30], 0
je 0x10003300
test ax, ax
je 0x10003300
mov eax, edi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10003140
sub eax, edx
sar eax, 1
inc eax
cmp dword [ebp - 0x65c], eax
jb 0x10003300
mov eax, dword [ebp - 0x64c]
xor edx, edx
mov word [ebx + eax*2 - 2], dx
mov eax, edi
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10003170
xor ecx, ecx
sub eax, edx
push 0x3e6
push ecx
lea edx, [ebp - 0x3ee]
sar eax, 1
push edx
mov esi, eax
mov word [ebp - 0x3f0], cx
call fcn.10105240
add esp, 0xc
push esi
lea eax, [ebp - 0x3f0]
push edi
push eax
call fcn.10102ddd
mov eax, edi
add esp, 0xc
mov ecx, eax
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x100031b4
sub eax, ecx
mov esi, ecx
lea edi, [ebx - 2]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x100031c6
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [ebx - 2]
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x100031e3
mov ecx, dword [0x10152750]
mov dword [eax], ecx
mov dx, word [0x10152754]
mov word [eax + 4], dx
cmp dword [0x1017be54], 0
je 0x10003226
push ebx
push str.EnumFileAndDirW_1___s_
push str.AgentInfo
or ecx, 0xffffffff
mov edx, 0x1017bdc4
call fcn.10005f70
add esp, 0xc
push 0x24c
lea eax, [ebp - 0x63c]
push 0
push eax
mov dword [ebp - 0x640], 0
call fcn.10105240
mov ecx, dword [ebp - 0x648]
mov edi, dword [ebp - 0x654]
add esp, 0xc
push ecx
push edi
lea edx, [ebp - 0x640]
push edx
push ebx
call fcn.10003010
mov ecx, dword [ebp - 0x64c]
mov esi, eax
xor eax, eax
add esp, 0x10
mov word [ebx + ecx*2 - 2], ax
mov dword [ebp - 0x644], esi
cmp dword [0x1017be54], eax
je 0x100032a4
push esi
lea edx, [ebp - 0x3f0]
push edx
push ebx
push str.EnumFileAndDirW_2___s____s____d_
push str.AgentInfo
or ecx, 0xffffffff
mov edx, 0x1017bdc4
call fcn.10005f70
add esp, 0x14
test esi, esi
je 0x100032bf
mov eax, dword [ebp - 0x648]
push eax
lea ecx, [ebp - 0x3f0]
push ecx
push ebx
call edi
mov dword [ebp - 0x644], eax
lea edi, [ebx - 2]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x100032c2
mov edx, dword [0x1015264c]
mov dword [edi], edx
cmp dword [0x1017be54], 0
je 0x100032fa
push ebx
push str.EnumFileAndDirW_3___s_
push str.AgentInfo
or ecx, 0xffffffff
mov edx, 0x1017bdc4
call fcn.10005f70
add esp, 0xc
mov esi, dword [ebp - 0x658]
cmp dword [ebp - 0x644], 0
je 0x1000334c
mov ecx, dword [ebp - 0x650]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp dword [0x1017be54], 0
mov edi, eax
je 0x10003344
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.EnumFileAndDirW_4__error_:__d___bRet_:__d_
push str.AgentInfo
or ecx, 0xffffffff
mov edx, 0x1017bdc4
call fcn.10005f70
add esp, 0x10
test edi, edi
jne 0x10003101
mov edx, dword [ebp - 0x650]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [0x1017be54], 0
je 0x1000338a
mov eax, dword [ebp - 0x644]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.EnumFileAndDirW_4__error_:__d___bContinue_:__d_
push str.AgentInfo
or ecx, 0xffffffff
mov edx, 0x1017bdc4
call fcn.10005f70
add esp, 0x10
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x644]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101026e9
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x648]
push ecx
lea edx, [esi + 0x2c]
push edx
xor eax, eax
push ebx
mov word [ebx + edi*2 - 2], ax
call dword [ebp - 0x654]
mov dword [ebp - 0x644], eax
mov eax, 0x2a
mov word [ebx + edi*2 - 2], ax
jmp 0x10003300