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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10027b22
mov eax, dword fs:[0]
push eax
sub esp, 0x4c4
mov eax, dword [0x1003a064]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x38]
mov dword [ebp - 0x4bc], eax
push 0
push 0x100293de
lea ecx, [ebp - 0x260]
mov dword [ebp - 4], 1
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 0xf
mov byte [ebp - 0x260], 0
call fcn.10001520
push 0x208
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 2
push 0
push eax
call fcn.10012430
add esp, 0xc
lea edx, [ebp + 8]
cmp dword [ebp + 0x1c], 8
cmovae edx, dword [ebp + 8]
mov esi, edx
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x100099d1
lea edi, [ebp - 0x218]
sub edx, esi
add edi, 0xfffffffe
nop word [eax + eax]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x100099f0
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x218]
add ecx, 0xfffffffe
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x10009a13
mov eax, dword [0x10029964]
mov dword [ecx], eax
mov eax, dword [0x10029968]
mov dword [ecx + 4], eax
lea eax, [ebp - 0x4b0]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov dword [ebp - 0x4d0], esi
cmp esi, 0xffffffff
je 0x10009eca
xor eax, eax
mov dword [ebp - 0x220], 0
test byte [ebp - 0x4b0], 0x10
lea ecx, [ebp - 0x484]
mov dword [ebp - 0x21c], 7
lea edx, [ecx + 2]
mov word [ebp - 0x230], ax
je 0x10009c1b
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10009a86
sub ecx, edx
lea eax, [ebp - 0x484]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.10002740
mov eax, dword [ebp - 0x21c]
lea esi, [ebp - 0x230]
mov edi, dword [ebp - 0x230]
cmp eax, 8
mov ecx, dword [ebp - 0x220]
cmovae esi, edi
mov byte [ebp - 4], 3
cmp ecx, 1
jne 0x10009b02
mov edx, ecx
mov ecx, 0x1002996c
sub esi, ecx
nop dword [eax + eax]
mov ax, word [esi + ecx]
cmp ax, word [ecx]
jne 0x10009af6
add ecx, 2
sub edx, 1
jne 0x10009ae0
jmp 0x10009bdc
mov eax, dword [ebp - 0x21c]
mov ecx, dword [ebp - 0x220]
cmp eax, 8
lea esi, [ebp - 0x230]
cmovae esi, edi
cmp ecx, 2
jne 0x10009b35
mov edx, ecx
mov ecx, 0x10029970
sub esi, ecx
nop dword [eax]
mov ax, word [esi + ecx]
cmp ax, word [ecx]
jne 0x10009b35
add ecx, 2
sub edx, 1
jne 0x10009b20
mov al, 1
jmp 0x10009b37
xor al, al
test al, al
jne 0x10009bdc
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x248]
call fcn.100023c0
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push dword [ebp - 0x220]
cmovae eax, edi
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x248]
call fcn.100025c0
push 1
push 0x10029460
lea ecx, [ebp - 0x248]
call fcn.100025c0
cmp dword [ebp + 0x3c], 0
jne 0x10009bcb
push 0
push 0
push dword [ebp - 0x4bc]
lea eax, [ebp + 0x20]
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x4c8], esp
push eax
call fcn.100023c0
sub esp, 0x18
mov byte [ebp - 4], 5
lea eax, [ebp - 0x248]
mov ecx, esp
push eax
call fcn.100023c0
mov byte [ebp - 4], 4
call fcn.10009940
add esp, 0x3c
lea ecx, [ebp - 0x248]
call fcn.10002470
mov edi, dword [ebp - 0x230]
mov eax, dword [ebp - 0x21c]
mov byte [ebp - 4], 2
cmp eax, 8
jb 0x10009ea7
lea ecx, [eax*2 + 2]
mov eax, edi
cmp ecx, 0x1000
jb 0x10009c14
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10009f9f
push ecx
push edi
jmp 0x10009e9f
mov dword [ebp - 0x4b4], 0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10009c25
sub ecx, edx
lea eax, [ebp - 0x484]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.10002740
cmp dword [ebp + 0x34], 8
lea edx, [ebp + 0x20]
mov byte [ebp - 4], 6
cmovae edx, dword [ebp + 0x20]
mov edi, edx
mov dword [ebp - 0x4b8], edx
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x10009c61
mov eax, dword [ebp - 0x230]
sub edi, ecx
sar edi, 1
lea ecx, [ebp - 0x230]
cmp dword [ebp - 0x21c], 8
mov dword [ebp - 0x4c0], eax
cmovae ecx, eax
mov dword [ebp - 0x4cc], edi
mov eax, dword [ebp - 0x220]
mov dword [ebp - 0x4c8], ecx
cmp edi, eax
ja 0x10009cd0
test edi, edi
je 0x10009d4e
sub eax, edi
inc eax
lea esi, [ecx + eax*2]
mov eax, ecx
mov dword [ebp - 0x4c4], esi
mov ecx, esi
sub ecx, eax
sar ecx, 1
je 0x10009cd0
movzx edx, word [edx]
cmp word [eax], dx
je 0x10009d16
add eax, 2
sub ecx, 1
jne 0x10009cc3
mov eax, dword [ebp - 0x4b4]
test eax, eax
je 0x10009e63
cmp dword [ebp + 0x1c], 8
lea edi, [ebp + 8]
mov eax, dword [ebp + 0x18]
cmovae edi, dword [ebp + 8]
mov dword [ebp - 0x4b8], eax
cmp eax, 8
jae 0x10009d6f
movups xmm0, xmmword [edi]
mov ecx, dword [ebp - 0x4c0]
mov dword [ebp - 0x234], 7
movups xmmword [ebp - 0x248], xmm0
jmp 0x10009dc1
test eax, eax
je 0x10009cd0
mov ecx, dword [ebp - 0x4b8]
mov esi, edi
mov edx, ecx
test edi, edi
je 0x10009d41
mov edi, eax
sub edi, ecx
nop dword [eax]
mov cx, word [edi + edx]
cmp cx, word [edx]
jne 0x10009d55
add edx, 2
sub esi, 1
jne 0x10009d30
sub eax, dword [ebp - 0x4c8]
sar eax, 1
cmp eax, 0xffffffff
je 0x10009cd0
mov eax, 1
jmp 0x10009cd6
mov edi, dword [ebp - 0x4cc]
add eax, 2
mov edx, dword [ebp - 0x4b8]
mov esi, dword [ebp - 0x4c4]
jmp 0x10009cb8
mov esi, eax
lea ecx, [ebp - 0x248]
or esi, 7
mov eax, 0x7ffffffe
cmp esi, 0x7ffffffe
cmova esi, eax
lea eax, [esi + 1]
push eax
call fcn.10002550
mov ecx, dword [ebp - 0x4b8]
mov dword [ebp - 0x248], eax
lea ecx, [ecx*2 + 2]
push ecx
push edi
push eax
call fcn.10011930
mov eax, dword [ebp - 0x4b8]
add esp, 0xc
mov ecx, dword [ebp - 0x230]
mov dword [ebp - 0x234], esi
mov dword [ebp - 0x238], eax
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push dword [ebp - 0x220]
cmovae eax, ecx
mov byte [ebp - 4], 8
push eax
lea ecx, [ebp - 0x248]
call fcn.100025c0
mov esi, dword [ebp - 0x4bc]
lea ecx, [ebp - 0x248]
push ecx
mov eax, dword [esi + 4]
cmp dword [esi + 8], eax
je 0x10009e0f
mov ecx, eax
call fcn.100023c0
add dword [esi + 4], 0x18
jmp 0x10009e17
push eax
mov ecx, esi
call fcn.10009740
mov edx, dword [ebp - 0x234]
mov byte [ebp - 4], 6
cmp edx, 8
jb 0x10009e5b
mov ecx, dword [ebp - 0x248]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10009e51
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10009f9f
push edx
push ecx
call fcn.1000fe4c
add esp, 8
mov edx, dword [ebp - 0x230]
jmp 0x10009e69
mov edx, dword [ebp - 0x4c0]
mov eax, dword [ebp - 0x21c]
mov byte [ebp - 4], 2
cmp eax, 8
jb 0x10009ea7
lea ecx, [eax*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10009e9d
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10009f9f
push ecx
push edx
call fcn.1000fe4c
add esp, 8
mov esi, dword [ebp - 0x4d0]
lea eax, [ebp - 0x4b0]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10009a53
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [ebp - 0x24c]
cmp edx, 0x10
jb 0x10009f04
mov ecx, dword [ebp - 0x260]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10009efa
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10009f9f
push edx
push ecx
call fcn.1000fe4c
add esp, 8
mov edx, dword [ebp + 0x1c]
cmp edx, 8
jb 0x10009f3a
mov ecx, dword [ebp + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10009f30
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10009fa4
push edx
push ecx
call fcn.1000fe4c
add esp, 8
mov edx, dword [ebp + 0x34]
xor eax, eax
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 7
mov word [ebp + 8], ax
cmp edx, 8
jb 0x10009f84
mov ecx, dword [ebp + 0x20]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10009f7a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10009fa9
push edx
push ecx
call fcn.1000fe4c
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1000fe5f
mov esp, ebp
pop ebp
ret
call fcn.100142d9
call fcn.100142d9
call fcn.100142d9
int3