Function at 0x1016fd90
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x6a4
push ebx
push ebp
push esi
mov esi, dword [esp + 0x6d4]
push edi
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x34]
rep stosd dword es:[edi], eax
mov ecx, 0x94
lea edi, [esp + 0x25c]
rep stosd dword es:[edi], eax
mov cl, byte [esi + 0x24]
xor ebx, ebx
cmp cl, 0x20
mov dword [esp + 0x20], ebx
mov dword [esp + 0x10], ebx
jne 0x1016fdd8
mov dx, word [esi + 0x10]
shl dx, 4
jmp 0x1016fddd
mov edx, 0x200
xor eax, eax
cmp dx, bx
mov ebx, dword [esp + 0x6d0]
mov dword [esp + 0x1c], edx
mov byte [esp + 0x40], 0
mov byte [esp + 0x41], 0x44
jbe 0x1016fe13
mov edi, dword [ebx + 4]
mov ebp, eax
and ebp, 0xffff
shl ebp, 5
cmp byte [edi + ebp], 0
je 0x1016fe13
inc eax
cmp ax, dx
jb 0x1016fdfc
mov edx, dword [esi + 0x18]
mov edi, dword [esi + 0x20]
mov dword [esp + 0x18], eax
lea ebp, [edi + edx*2]
mov edx, dword [esi + 0x1c]
mov edi, dword [esi + 0x14]
add ebp, edx
add ebp, edi
cmp cl, 0x20
mov dword [esp + 0x2c], ebp
jne 0x1016fe7b
mov dword [esp + 0x20], 2
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x54]
lea edx, [esp + 0x54]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x6d4]
push ecx
push edx
call fcn.10033da9
lea eax, [esp + 0x5c]
push eax
call fcn.10033dce
add esp, 0xc
cmp word [esp + eax*2 + 0x52], 0x5c
je 0x1016fe98
lea ecx, [esp + 0x54]
push 0x1028bc3c
push ecx
jmp 0x1016fea2
cmp ax, 0x200
jb 0x1016fe3b
mov eax, dword [esp + 0x6cc]
mov byte [eax], 0x5a
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6a4
ret
lea edx, [esp + 0x54]
push 0x1028bc34
push edx
call fcn.10033d7f
mov ecx, 0x94
xor eax, eax
lea edi, [esp + 0x264]
add esp, 8
rep stosd dword es:[edi], eax
lea eax, [esp + 0x25c]
lea ecx, [esp + 0x54]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
je 0x101704ef
mov ecx, dword [esp + 0x6bd]
mov esi, dword [esp + 0x6c4]
and ecx, 0xff
mov byte [esp + 0x6c8], 0
cmp ecx, esi
mov byte [esp + 0x6c9], 0
jbe 0x1016ff12
mov eax, ecx
xor edx, edx
mov byte [esp + 0x6c8], 1
div esi
jmp 0x1016ff18
mov eax, esi
xor edx, edx
div ecx
mov byte [esp + 0x6be], al
mov dword [esp + 0x30], 0
push 2
lea edx, [esp + 0x28c]
push 0x1028bc2c
push edx
call fcn.101469a3
add esp, 0xc
test eax, eax
je 0x10170385
push 3
lea eax, [esp + 0x28c]
push 0x1028bc24
push eax
call fcn.101469a3
add esp, 0xc
test eax, eax
je 0x10170385
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x54]
lea edx, [esp + 0x54]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x6d4]
push ecx
push edx
call fcn.10033da9
lea eax, [esp + 0x5c]
push eax
call fcn.10033dce
add esp, 0xc
cmp word [esp + eax*2 + 0x52], 0x5c
je 0x1016ffab
lea ecx, [esp + 0x54]
push 0x1028bc08
push ecx
call fcn.10033d7f
add esp, 8
lea edx, [esp + 0x288]
lea eax, [esp + 0x54]
push edx
push eax
call fcn.10033d7f
mov ecx, dword [esp + 0x264]
add esp, 8
and ecx, 0x10
cmp cl, 0x10
jne 0x10170008
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x4ac]
lea edx, [esp + 0x54]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x4ac]
push edx
push eax
call fcn.10033da9
lea ecx, [esp + 0x4b4]
push 0x102295ec
push ecx
call fcn.10033d7f
add esp, 0x10
jmp 0x10170032
push 0
push 0x80
push 3
push 0
push 1
lea edx, [esp + 0x68]
push SysReAllocString
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
je 0x10170385
lea eax, [esp + 0x25c]
lea ecx, [esp + 0x34]
push eax
push ecx
push ebx
call fcn.10170780
mov esi, dword [esp + 0x6e4]
add esp, 0xc
mov dword [esp + 0x28], eax
cmp byte [esi + 0x24], 0x20
je 0x1017007f
mov edx, dword [esp + 0x18]
mov ecx, eax
and edx, 0xffff
and ecx, 0xffff
add edx, ecx
mov ecx, dword [esp + 0x1c]
and ecx, 0xffff
cmp edx, ecx
jge 0x10170385
mov edi, dword [esp + 0x18]
mov dword [esp + 0x24], 0
test ax, ax
jbe 0x10170150
mov edx, dword [ebx + 4]
mov eax, dword [esp + 0x24]
push edi
push edx
mov edx, dword [ebx + 0x10]
and eax, 0xffff
add eax, edx
push eax
call fcn.10170b20
mov al, byte [esi + 0x24]
add esp, 0xc
inc edi
cmp al, 0x20
jne 0x1017012f
mov ecx, dword [esp + 0x1c]
mov eax, edi
and eax, 0xffff
and ecx, 0xffff
cdq
idiv ecx
test edx, edx
jne 0x1017012f
mov edx, dword [esp + 0x6c0]
cmp byte [edx], 0
jne 0x101703dc
mov eax, dword [esp + 0x6dc]
mov ecx, dword [ebx + 4]
push eax
push esi
push ecx
push ebp
call fcn.10170590
add esp, 0x10
test eax, eax
je 0x1017040d
push esi
push ebx
push 2
call fcn.10170b50
mov edx, dword [ebx]
mov ecx, dword [esp + 0x2c]
lea ebp, [eax - 2]
add esp, 0xc
mov dword [edx + ecx*4], eax
mov edx, dword [ebx]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x20], eax
mov dword [edx + eax*4], 0xfffffff
imul ebp, dword [esi + 0x10]
add ebp, ecx
xor edi, edi
mov eax, dword [esp + 0x24]
add eax, 0x20
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x28]
add eax, 0xffff
test ax, ax
mov dword [esp + 0x28], eax
ja 0x10170094
mov eax, dword [esp + 0x50]
test eax, eax
jne 0x10170166
mov al, byte [esp + 0x3f]
and al, 0x10
cmp al, 0x10
je 0x10170166
xor esi, esi
jmp 0x10170174
push esi
push ebx
push 2
call fcn.10170b50
add esp, 0xc
mov esi, eax
mov edx, dword [ebx + 4]
mov ecx, esi
push edi
lea eax, [esp + 0x38]
shr ecx, 0x10
push edx
push eax
mov word [esp + 0x54], cx
mov word [esp + 0x5a], si
call fcn.10170b20
mov ecx, dword [esp + 0x268]
add esp, 0xc
and ecx, 0x10
inc edi
cmp cl, 0x10
mov dword [esp + 0x18], edi
jne 0x101701fd
mov edx, dword [esp + 0x6dc]
mov eax, dword [esp + 0x6d8]
push edx
push eax
push ebx
push 0
lea ecx, [esp + 0x4bc]
push esi
push ecx
mov ecx, 8
sub esp, 0x20
lea esi, [esp + 0x6c]
mov edi, esp
sub esp, 0x18
rep movsd dword es:[edi], dword [esi]
mov ecx, 6
lea esi, [esp + 0x708]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.10170be0
add esp, 0x50
test eax, eax
je 0x1017043e
jmp 0x101702e3
mov cl, byte [esp + 0x6c9]
mov edi, dword [esp + 0x6b8]
inc cl
mov byte [esp + 0x6c9], cl
mov cl, byte [esp + 0x6bd]
test cl, cl
je 0x1017028b
mov al, byte [edi]
mov dl, byte [esp + 0x6bc]
cmp al, dl
jae 0x1017028b
mov dl, byte [esp + 0x6c8]
test dl, dl
je 0x10170264
mov dl, byte [esp + 0x6be]
cmp cl, dl
jb 0x10170251
add al, dl
sub cl, dl
mov byte [edi], al
mov byte [esp + 0x6bd], cl
jmp 0x10170294
mov dl, byte [esp + 0x6bc]
mov byte [esp + 0x6bd], 0
mov byte [edi], dl
jmp 0x10170294
mov dl, byte [esp + 0x6c9]
cmp dl, byte [esp + 0x6be]
jb 0x10170294
inc al
dec cl
mov byte [edi], al
mov byte [esp + 0x6bd], cl
mov byte [esp + 0x6c9], 0
jmp 0x10170294
mov al, byte [esp + 0x6bc]
mov byte [edi], al
mov edi, dword [esp + 0x6d8]
mov ecx, dword [esp + 0x50]
push edi
push ebx
push esi
push ecx
call fcn.101714a0
mov edx, dword [esp + 0x6ec]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x60]
add esp, 0x10
push edx
push edi
push ebx
push eax
push esi
push ecx
sub esp, 0x18
mov ecx, 6
lea esi, [esp + 0x6e8]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.10171520
add esp, 0x30
test eax, eax
je 0x10170465
mov esi, dword [esp + 0x6d8]
cmp byte [esi + 0x24], 0x20
jne 0x10170375
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
and eax, 0xffff
and ecx, 0xffff
cdq
idiv ecx
test edx, edx
jne 0x10170385
mov edx, dword [esp + 0x6c0]
cmp byte [edx], 0
jne 0x1017048c
mov eax, dword [esp + 0x6dc]
mov ecx, dword [ebx + 4]
push eax
push esi
push ecx
push ebp
call fcn.10170590
add esp, 0x10
test eax, eax
je 0x101704bd
push esi
push ebx
push 2
call fcn.10170b50
mov edx, dword [ebx]
mov ecx, dword [esp + 0x2c]
lea ebp, [eax - 2]
add esp, 0xc
mov dword [edx + ecx*4], eax
mov edx, dword [ebx]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x20], eax
mov dword [edx + eax*4], 0xfffffff
imul ebp, dword [esi + 0x10]
add ebp, ecx
mov dword [esp + 0x18], 0
jmp 0x10170385
mov ax, word [esp + 0x1c]
cmp word [esp + 0x18], ax
je 0x101704ce
mov edx, dword [esp + 0x14]
mov ecx, 0x94
xor eax, eax
lea edi, [esp + 0x25c]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x25c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x101703b4
mov dword [esp + 0x30], 1
mov eax, dword [esp + 0x10]
test eax, eax
je 0x101703cb
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x30]
test eax, eax
je 0x1016ff27
jmp 0x101704dd
mov eax, dword [esp + 0x6cc]
mov byte [eax], 0x36
mov eax, dword [esp + 0x10]
test eax, eax
je 0x101703f5
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6a4
ret
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1017041c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x6cc]
mov eax, dword [esp + 0x14]
push eax
mov byte [edx], 0x5c
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6a4
ret
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1017044d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6a4
ret
mov eax, dword [esp + 0x10]
test eax, eax
je 0x10170474
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6a4
ret
mov eax, dword [esp + 0x6cc]
mov byte [eax], 0x36
mov eax, dword [esp + 0x10]
test eax, eax
je 0x101704a5
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6a4
ret
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1017041c
jmp 0x10170415
mov eax, dword [esp + 0x10]
test eax, eax
je 0x101704dd
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [esp + 0x6d8]
mov edx, dword [esp + 0x6c0]
cmp byte [edx], 0
je 0x10170512
mov eax, dword [esp + 0x6cc]
mov byte [eax], 0x36
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6a4
ret
mov ecx, dword [esp + 0x6dc]
mov al, byte [esi + 0x24]
mov edx, dword [ebx + 4]
push ecx
push esi
cmp al, 0x20
push edx
push ebp
jne 0x1017052e
call fcn.10170590
jmp 0x10170533
call fcn.101705e0
add esp, 0x10
test eax, eax
jne 0x10170551
mov eax, dword [esp + 0x6cc]
mov byte [eax], 0x5c
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6a4
ret
mov ecx, dword [esp + 0x6dc]
mov edx, dword [esp + 0x6d8]
push ecx
push edx
push ebx
mov ecx, 6
sub esp, 0x18
lea esi, [esp + 0x6dc]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.10170620
add esp, 0x24
neg eax
pop edi
pop esi
sbb eax, eax
pop ebp
neg eax
pop ebx
add esp, 0x6a4
ret