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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x103ac2d9
mov eax, dword fs:[0]
push eax
sub esp, 0x494
mov eax, dword [0x1049b0c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x498], ebx
push pe_nt_image_headers32
lea eax, [ebp - 0x48c]
mov dword [ebp - 0x49c], 0
push 0
push eax
call fcn.1034c920
mov edi, dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
add esp, 0xc
cmp dword [ebp + 8], 0
je 0x10387431
lea eax, [ebp - 0x494]
push eax
lea eax, [ebp - 0x31c]
push eax
push 0x104
push ebx
call edi
test eax, eax
je 0x103874cc
mov ecx, dword [ebp - 0x494]
lea edx, [ebp - 0x218]
sub edx, ecx
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x10387142
lea eax, [ebp - 0x334]
mov ecx, 0x10534c20
push eax
call fcn.10092d90
mov esi, dword [ebp - 0x320]
lea ecx, [ebp - 0x334]
mov edi, dword [ebp - 0x334]
cmp esi, 0xf
mov edx, dword [ebp - 0x494]
mov ebx, 0x10
cmova ecx, edi
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx], al
lea edx, [edx + 1]
test al, al
jne 0x10387183
cmp esi, 0xf
jbe 0x103871a7
push esi
lea eax, [ebp - 0x334]
push edi
push eax
call fcn.10034640
add esp, 0xc
lea eax, [ebp - 0x48c]
mov dword [ebp - 0x48c], ebx
push eax
lea eax, [ebp - 0x31c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
mov dword [ebp - 0x4a0], esi
cmp esi, 0xffffffff
je 0x10387425
lea eax, [ebp - 0x334]
mov ecx, 0x105345e0
push eax
call fcn.1004f340
or ebx, 4
mov dword [ebp - 4], 0
lea eax, [ebp - 0x334]
or ebx, 1
cmp dword [ebp - 0x320], 0xf
push 1
cmova eax, dword [ebp - 0x334]
push eax
lea eax, [ebp - 0x460]
mov dword [ebp - 0x49c], ebx
push eax
call fcn.1036adb0
add esp, 0xc
test eax, eax
je 0x10387275
lea eax, [ebp - 0x34c]
mov ecx, 0x10533700
push eax
call fcn.1004f260
or ebx, 8
mov dword [ebp - 4], 1
lea eax, [ebp - 0x34c]
or ebx, 2
cmp dword [ebp - 0x338], 0xf
push 2
cmova eax, dword [ebp - 0x34c]
push eax
lea eax, [ebp - 0x460]
mov dword [ebp - 0x49c], ebx
push eax
call fcn.1036adb0
add esp, 0xc
mov byte [ebp - 0x48d], 0
test eax, eax
jne 0x1038727c
mov byte [ebp - 0x48d], 1
test bl, 2
je 0x103872c0
mov eax, dword [ebp - 0x338]
and ebx, 0xfffffffd
cmp eax, 0xf
jbe 0x103872a5
push eax
push dword [ebp - 0x34c]
lea eax, [ebp - 0x34c]
push eax
call fcn.10034640
add esp, 0xc
mov dword [ebp - 0x33c], 0
mov dword [ebp - 0x338], 0xf
mov byte [ebp - 0x34c], 0
mov dword [ebp - 4], 0xffffffff
test bl, 1
je 0x103872f0
mov eax, dword [ebp - 0x320]
and ebx, 0xfffffffe
cmp eax, 0xf
jbe 0x103872f0
push eax
push dword [ebp - 0x334]
lea eax, [ebp - 0x334]
push eax
call fcn.10034640
add esp, 0xc
cmp byte [ebp - 0x48d], 0
jne 0x10387408
test byte [ebp - 0x48c], 0x10
je 0x10387408
lea eax, [ebp - 0x494]
push eax
lea eax, [ebp - 0x114]
push eax
push 0x104
push dword [ebp - 0x498]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
je 0x103874cc
mov edx, dword [ebp - 0x494]
lea ecx, [ebp - 0x460]
nop dword [eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx], al
lea edx, [edx + 1]
test al, al
jne 0x10387340
lea eax, [ebp - 0x334]
mov ecx, 0x105338d0
push eax
call fcn.1004f340
or ebx, 0x20
lea edx, [ebp - 0x334]
cmp dword [ebp - 0x320], 0xf
cmova edx, dword [ebp - 0x334]
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x10387378
lea edi, [ebp - 0x114]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10387388
mov eax, dword [ebp - 0x320]
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]
cmp eax, 0xf
jbe 0x103873bf
push eax
push dword [ebp - 0x334]
lea eax, [ebp - 0x334]
push eax
call fcn.10034640
add esp, 0xc
lea edx, [ebp - 0x218]
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x103873c7
lea edi, [ebp - 0x114]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x103873d7
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, fcn.101476e0
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 1
lea ecx, [ebp - 0x114]
call fcn.103870b0
mov esi, dword [ebp - 0x4a0]
add esp, 4
lea eax, [ebp - 0x48c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x103871d2
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edi, dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
mov ebx, dword [ebp - 0x498]
lea eax, [ebp - 0x48c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x103874ab
test byte [ebp - 0x48c], 0x10
jne 0x10387492
lea eax, [ebp - 0x494]
push eax
lea eax, [ebp - 0x218]
push eax
push 0x104
push ebx
call edi
test eax, eax
je 0x103874cc
mov eax, dword [ebp - 0x494]
lea edx, [ebp - 0x460]
mov cl, byte [edx]
lea edx, [edx + 1]
mov byte [eax], cl
lea eax, [eax + 1]
test cl, cl
jne 0x10387475
lea eax, [ebp - 0x460]
push eax
call fcn.101476e0
add esp, 4
lea eax, [ebp - 0x48c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x10387446
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.102fe398
mov esp, ebp
pop ebp
ret
xor eax, eax
jmp 0x103874b0