Function at 0x10021030
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100fba35
mov eax, dword fs:[0]
push eax
sub esp, 0x300
mov eax, dword [0x1013a098]
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 + 8]
lea ecx, [ebp - 0x70]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x2fc], eax
mov dword [ebp - 0x30c], eax
xor eax, eax
mov dword [ebp - 0x308], 0
push 0x108
mov dword [ebp - 0x304], esi
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
call fcn.10008f00
mov edx, eax
mov dword [ebp - 0x60], 0x104
xor eax, eax
mov dword [ebp - 0x5c], 0x107
mov ecx, 0x82
mov edi, edx
rep stosd dword es:[edi], eax
mov word [edx + 0x208], ax
mov dword [ebp - 0x70], edx
cmp dword [ebp - 0x5c], 8
mov dword [ebp - 4], eax
lea eax, [ebp - 0x70]
push 0x104
cmovae eax, edx
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp dword [esi + 0x14], 8
mov edx, esi
mov eax, dword [esi + 0x10]
jb 0x100210ed
mov edx, dword [esi]
test eax, eax
je 0x10021117
dec eax
or ecx, 0xffffffff
cmp eax, ecx
cmovb ecx, eax
cmp word [edx + ecx*2], 0x2f
lea edi, [edx + ecx*2]
je 0x10021111
cmp edi, edx
je 0x10021117
sub edi, 2
cmp word [edi], 0x2f
jne 0x10021104
sub edi, edx
sar edi, 1
jmp 0x1002111a
or edi, 0xffffffff
cmp edi, 0xffffffff
je 0x10021568
xor eax, eax
mov dword [ebp - 0x18], 0
cmp dword [esi + 0x10], edi
mov ecx, edi
mov word [ebp - 0x28], ax
mov eax, esi
cmovb ecx, dword [esi + 0x10]
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x14], 7
jb 0x1002114a
mov eax, dword [esi]
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.100091e0
push 0x10108bf0
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.1001ef40
add esp, 0xc
mov ecx, eax
mov eax, dword [ecx + 0x14]
mov edx, dword [ecx + 0x10]
sub eax, edx
mov esi, dword [ebp - 0x18]
mov byte [ebp - 4], 2
cmp esi, eax
jbe 0x100211a4
mov eax, dword [ebp - 0x14]
sub eax, esi
cmp eax, edx
jb 0x100211a4
cmp dword [ecx + 0x14], 8
jb 0x10021196
mov ecx, dword [ecx]
push edx
push ecx
push 0
lea ecx, [ebp - 0x28]
call fcn.10009a20
jmp 0x100211b6
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push esi
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.10008f70
movups xmm0, xmmword [eax]
xor ecx, ecx
movups xmmword [ebp - 0x40], xmm0
movq xmm0, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
movq qword [ebp - 0x30], xmm0
lea ecx, [ebp - 0x88]
call fcn.10006240
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 5
call fcn.10006240
push 0x10108bf4
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0xa0]
push eax
call fcn.1001ef40
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x10021211
mov eax, dword [eax]
lea ecx, [ebp - 0x2f0]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
lea ecx, [ebp - 0xa0]
mov dword [ebp - 0x300], esi
call fcn.10006240
cmp esi, 0xffffffff
jne 0x10021268
mov esi, dword [ebp - 0x2fc]
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
lea ecx, [ebp - 0x40]
call fcn.10006240
lea ecx, [ebp - 0x70]
call fcn.10006240
mov eax, esi
jmp 0x1002170d
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov esi, 0xc
mov byte [ebp - 4], 6
mov dword [ebp - 0x2f8], esi
nop word [eax + eax]
test byte [ebp - 0x2f0], 0x10
jne 0x1002131d
xor eax, eax
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
lea ecx, [edi + 1]
mov eax, dword [ebp - 0x304]
mov dword [ebp - 0x44], 7
mov eax, dword [eax + 0x10]
cmp eax, ecx
jb 0x10021728
sub eax, ecx
or edx, 0xffffffff
cmp eax, 0xffffffff
cmovb edx, eax
mov eax, dword [ebp - 0x304]
mov ecx, eax
cmp dword [ecx + 0x14], 8
lea ecx, [edi + 1]
jb 0x100212e3
mov eax, dword [eax]
lea eax, [eax + ecx*2]
push edx
push eax
lea ecx, [ebp - 0x58]
call fcn.100091e0
or esi, 0x12
lea eax, [ebp - 0x58]
cmp dword [ebp - 0x44], 8
mov dword [ebp - 0x2f8], esi
cmovae eax, dword [ebp - 0x58]
push eax
lea eax, [ebp - 0x2c4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
mov byte [ebp - 0x2f1], 0
test eax, eax
je 0x10021324
mov byte [ebp - 0x2f1], 1
mov eax, dword [ebp - 0x2f8]
test al, 2
je 0x10021377
mov edx, dword [ebp - 0x44]
and eax, 0xfffffffd
mov dword [ebp - 0x2f8], eax
cmp edx, 8
jb 0x10021377
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10021367
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002172d
push edx
push ecx
call fcn.100d26ef
mov eax, dword [ebp - 0x2f8]
add esp, 8
cmp byte [ebp - 0x2f1], 0
mov dword [ebp - 0x30c], eax
je 0x10021502
mov esi, dword [ebp - 0x30]
or eax, 0x20
xor ecx, ecx
mov dword [ebp - 0x308], eax
mov word [ebp - 0x58], cx
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 7
lea eax, [esi + 1]
mov dword [ebp - 0x48], 0
push eax
mov dword [ebp - 0x44], 7
call fcn.100223b0
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push esi
cmovae eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x58]
push eax
call fcn.10008f70
push 1
push 0x10108bf0
lea ecx, [ebp - 0x58]
call fcn.10008f70
lea ecx, [ebp - 0x2c4]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100213e7
sub ecx, edx
lea eax, [ebp - 0x2c4]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x58]
call fcn.10008f70
mov esi, dword [ebp - 0x30c]
xor ecx, ecx
or esi, 0x60
mov dword [ebp - 0x308], esi
movups xmm0, xmmword [eax]
movq xmm1, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
movups xmmword [ebp - 0x88], xmm0
mov word [eax], cx
movq qword [ebp - 0x78], xmm1
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 8
cmp dword [ebp - 0x14], eax
je 0x10021468
mov dword [eax + 0x10], ecx
lea edx, [ecx + 7]
mov dword [eax + 0x14], ecx
movups xmmword [eax], xmm0
mov word [ebp - 0x88], cx
movq qword [eax + 0x10], xmm1
add eax, 0x18
mov dword [ebp - 0x18], eax
jmp 0x1002147b
lea ecx, [ebp - 0x88]
push ecx
push eax
lea ecx, [ebp - 0x1c]
call fcn.1001f2a0
mov edx, dword [ebp - 0x74]
mov byte [ebp - 4], 7
cmp edx, 8
jb 0x100214b9
mov ecx, dword [ebp - 0x88]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100214af
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002172d
push edx
push ecx
call fcn.100d26ef
add esp, 8
mov edx, dword [ebp - 0x44]
and esi, 0xffffffdf
mov dword [ebp - 0x2f8], esi
mov byte [ebp - 4], 6
cmp edx, 8
jb 0x10021508
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100214f6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002172d
push edx
push ecx
call fcn.100d26ef
add esp, 8
jmp 0x10021508
mov esi, dword [ebp - 0x2f8]
lea eax, [ebp - 0x2f0]
push eax
push dword [ebp - 0x300]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10021290
push dword [ebp - 0x300]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [ebp - 0x2fc]
lea ecx, [ebp - 0x1c]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
mov dword [esi], eax
mov eax, dword [ebp - 0x18]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esi + 8], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call fcn.1001fea0
jmp 0x10021251
cmp dword [esi + 0x14], 8
jb 0x10021570
mov esi, dword [esi]
lea eax, [ebp - 0x2f0]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov dword [ebp - 0x300], esi
cmp esi, 0xffffffff
jne 0x100215b4
mov esi, dword [ebp - 0x2fc]
lea ecx, [ebp - 0x70]
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call fcn.10006240
mov eax, esi
jmp 0x1002170d
xor esi, esi
mov dword [ebp - 0x1c], 0
xor edi, edi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], edi
mov byte [ebp - 4], 9
nop dword [eax]
test byte [ebp - 0x2f0], 0x10
jne 0x100216aa
xor eax, eax
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
lea eax, [ebp - 0x2c4]
mov dword [ebp - 0x2c], 7
lea edx, [eax + 2]
nop word [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10021600
sub eax, edx
lea ecx, [ebp - 0x40]
sar eax, 1
push eax
lea eax, [ebp - 0x2c4]
push eax
call fcn.100091e0
mov byte [ebp - 4], 0xa
cmp edi, esi
je 0x10021659
movups xmm0, xmmword [ebp - 0x40]
mov dword [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov edx, 7
movups xmmword [esi], xmm0
mov word [ebp - 0x40], ax
movq xmm0, qword [ebp - 0x30]
movq qword [esi + 0x10], xmm0
add esi, 0x18
mov dword [ebp - 0x18], esi
jmp 0x1002166f
lea eax, [ebp - 0x40]
push eax
push esi
lea ecx, [ebp - 0x1c]
call fcn.1001f2a0
mov edi, dword [ebp - 0x14]
mov esi, dword [ebp - 0x18]
mov edx, dword [ebp - 0x2c]
mov byte [ebp - 4], 9
cmp edx, 8
jb 0x100216aa
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100216a0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002172d
push edx
push ecx
call fcn.100d26ef
add esp, 8
lea eax, [ebp - 0x2f0]
push eax
push dword [ebp - 0x300]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x100215d0
push dword [ebp - 0x300]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0x2fc]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ecx], eax
mov dword [ecx + 4], esi
mov dword [ecx + 8], edi
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x14], 0
call fcn.1001fea0
lea ecx, [ebp - 0x70]
call fcn.10006240
mov eax, dword [ebp - 0x2fc]
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.100d2719
mov esp, ebp
pop ebp
ret
call fcn.10008e20
call fcn.100dd9c9
int3