Function at 0x10012870
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10046823
mov eax, dword fs:[0]
push eax
sub esp, 0x318
mov eax, dword [0x1005a280]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov dword [ebp - 0x324], edi
mov dword [ebp - 0x314], edi
mov dword [ebp - 0x30c], 0
mov dword [ebp - 4], 1
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
lea eax, [ebp + 0xc]
mov esi, 1
push eax
lea eax, [ebp - 0xa0]
mov dword [ebp - 0x30c], esi
push eax
call fcn.10013d60
push str._.
push eax
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 2
push eax
call fcn.1000fb40
add esp, 0x14
mov ecx, dword [ebp - 0x8c]
mov byte [ebp - 4], 4
cmp ecx, 7
jbe 0x10012946
mov edx, dword [ebp - 0xa0]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1001293c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10012edc
push ecx
push edx
call fcn.100278c5
add esp, 8
xor eax, eax
mov dword [ebp - 0x90], 0
cmp dword [ebp - 0x5c], 7
lea ecx, [ebp - 0x308]
mov word [ebp - 0xa0], ax
lea eax, [ebp - 0x70]
cmova eax, dword [ebp - 0x70]
push ecx
push eax
mov dword [ebp - 0x8c], 7
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x310], eax
cmp eax, 0xffffffff
je 0x10012e45
nop dword [eax + eax]
test byte [ebp - 0x308], 0x10
je 0x10012e1c
mov ecx, 0x1004ab4c
lea eax, [ebp - 0x2dc]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x100129ce
test dx, dx
je 0x100129ca
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x100129ce
add eax, 4
add ecx, 4
test dx, dx
jne 0x100129a8
xor eax, eax
jmp 0x100129d3
sbb eax, eax
or eax, 1
test eax, eax
je 0x10012e16
mov ecx, 0x1004ab50
lea eax, [ebp - 0x2dc]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10012a0c
test dx, dx
je 0x10012a08
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10012a0c
add eax, 4
add ecx, 4
test dx, dx
jne 0x100129e6
xor eax, eax
jmp 0x10012a11
sbb eax, eax
or eax, 1
test eax, eax
je 0x10012e16
xorps xmm0, xmm0
mov dword [ebp - 0x48], 0
lea ecx, [ebp - 0x2dc]
mov dword [ebp - 0x44], 0
movups xmmword [ebp - 0x58], xmm0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10012a37
sub ecx, edx
lea eax, [ebp - 0x2dc]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x58]
call fcn.1000fbb0
mov ecx, dword [ebp + 0x1c]
mov byte [ebp - 4], 5
test ecx, ecx
jne 0x10012a86
xor eax, eax
mov dword [ebp - 0x18], ecx
xorps xmm0, xmm0
mov dword [ebp - 0x14], 7
or esi, 2
movups xmmword [ebp - 0x28], xmm0
mov word [ebp - 0x28], ax
mov dword [ebp - 0x30c], esi
jmp 0x10012b43
cmp dword [ebp + 0x20], 0xf
lea eax, [ebp + 0xc]
push 0
cmova eax, dword [ebp + 0xc]
push 0
push ecx
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, eax
push 0
test edi, edi
jne 0x10012ad1
xorps xmm0, xmm0
mov dword [ebp - 0x18], eax
push 0x1004ab38
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], eax
movups xmmword [ebp - 0x28], xmm0
call fcn.1000fbb0
or esi, 2
mov dword [ebp - 0x30c], esi
jmp 0x10012b43
push edi
lea ecx, [ebp - 0x88]
call fcn.100105f0
cmp dword [ebp - 0x74], 7
lea ecx, [ebp - 0x88]
push edi
cmova ecx, dword [ebp - 0x88]
lea eax, [ebp + 0xc]
cmp dword [ebp + 0x20], 0xf
push ecx
push dword [ebp + 0x1c]
cmova eax, dword [ebp + 0xc]
push eax
push 0
push 0xfde9
mov byte [ebp - 4], 6
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
or esi, 2
lea ecx, [ebp - 0x28]
test eax, eax
jne 0x10012b26
push 0x1004ab38
call fcn.100106f0
jmp 0x10012b32
lea eax, [ebp - 0x88]
push eax
call fcn.100105a0
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x30c], esi
call fcn.10005b30
push 0x1004ab48
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0xb8]
push eax
call fcn.1000fb40
add esp, 0xc
cmp dword [ebp - 0x44], 7
lea ecx, [ebp - 0x58]
push dword [ebp - 0x48]
cmova ecx, dword [ebp - 0x58]
push ecx
mov ecx, eax
mov byte [ebp - 4], 8
call fcn.10011b00
mov dword [ebp - 0x30], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x2c], 0
xor ecx, ecx
movups xmm0, xmmword [eax]
or esi, 4
mov dword [ebp - 0x30c], esi
movups xmmword [ebp - 0x40], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x30], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov ecx, dword [ebp - 0xa4]
mov byte [ebp - 4], 0xa
cmp ecx, 7
jbe 0x10012bff
mov edx, dword [ebp - 0xb8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10012bf5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10012edc
push ecx
push edx
call fcn.100278c5
add esp, 8
xor eax, eax
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xa4], 7
mov word [ebp - 0xb8], ax
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 0xb
cmp ecx, 7
jbe 0x10012c5a
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10012c50
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10012edc
push ecx
push edx
call fcn.100278c5
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x320]
mov dword [ebp - 0x14], 7
push eax
call fcn.10011500
add esp, 8
mov edx, dword [eax]
xorps xmm0, xmm0
mov ecx, edx
mov byte [ebp - 4], 0xc
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10012ca1
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.10002af0
mov edi, dword [ebp - 0x314]
mov byte [ebp - 4], 0xd
mov eax, dword [edi + 4]
cmp eax, dword [edi + 8]
je 0x10012ce6
movups xmm0, xmmword [ebp - 0x28]
mov ecx, 0xf
mov byte [ebp - 0x28], 0
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x18]
movq qword [eax + 0x10], xmm0
add dword [edi + 4], 0x18
jmp 0x10012cf5
lea ecx, [ebp - 0x28]
push ecx
push eax
mov ecx, edi
call fcn.1000fc50
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 0xc
cmp ecx, 0xf
jbe 0x10012d2a
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10012d20
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10012edc
push ecx
push edx
call fcn.100278c5
add esp, 8
mov ecx, dword [ebp - 0x320]
mov byte [ebp - 4], 0xb
test ecx, ecx
je 0x10012d86
mov edx, dword [ebp - 0x318]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x10012d5e
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10012edc
push edx
push ecx
call fcn.100278c5
add esp, 8
mov dword [ebp - 0x320], 0
mov dword [ebp - 0x31c], 0
mov dword [ebp - 0x318], 0
mov ecx, dword [ebp - 0x2c]
mov byte [ebp - 4], 5
cmp ecx, 7
jbe 0x10012dc4
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10012dba
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10012edc
push ecx
push edx
call fcn.100278c5
add esp, 8
mov ecx, dword [ebp - 0x44]
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov byte [ebp - 4], 4
cmp ecx, 7
jbe 0x10012e16
mov edx, dword [ebp - 0x58]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10012e0c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10012edc
push ecx
push edx
call fcn.100278c5
add esp, 8
mov eax, dword [ebp - 0x310]
lea ecx, [ebp - 0x308]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x10012e39
mov eax, dword [ebp - 0x310]
jmp 0x10012990
push dword [ebp - 0x310]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0x5c]
cmp ecx, 7
jbe 0x10012e7b
mov edx, dword [ebp - 0x70]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10012e71
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10012ee1
push ecx
push edx
call fcn.100278c5
add esp, 8
mov ecx, dword [ebp + 0x20]
xor eax, eax
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
cmp ecx, 0xf
jbe 0x10012ebf
mov edx, dword [ebp + 0xc]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10012eb5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10012ee1
push ecx
push edx
call fcn.100278c5
add esp, 8
mov eax, edi
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.100278e1
mov esp, ebp
pop ebp
ret
call fcn.1002caaf
call fcn.1002caaf
int3