Function at 0x40eeb8
Capabilities:
Enumerate files on windows
Enumerate files recursively
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x30
push 0
push 0
dec ecx
jne 0x40eec0
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004044f8
mov edi, 0x42ab30
xor eax, eax
push ebp
push 0x40f4a5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edi
mov edx, 0x40f4bc
call fcn.004040c0
call fcn.00409b70
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 0x154]
mov ecx, 0x40f4e4
mov edx, dword [ebp - 4]
call fcn.00404354
mov eax, dword [ebp - 0x154]
call fcn.00404508
push eax
call sub.kernel32.dll_FindFirstFileA_1
mov esi, eax
mov eax, edi
mov edx, 0x40f4f0
call fcn.004040c0
cmp esi, 0xffffffff
je 0x40f45c
lea eax, [ebp - 8]
lea edx, [ebp - 0x124]
mov ecx, 0x104
call fcn.004042dc
test byte [ebp - 0x150], 0x10
je 0x40efa9
mov eax, dword [ebp - 8]
mov edx, 0x40f5b8
call fcn.00404454
je 0x40f447
mov eax, dword [ebp - 8]
mov edx, 0x40f5c4
call fcn.00404454
je 0x40f447
push dword [ebp - 4]
push dword [ebp - 8]
push 0x40f5d0
lea eax, [ebp - 0x158]
mov edx, 3
call fcn.004043c8
mov eax, dword [ebp - 0x158]
call fcn.0040eeb8
jmp 0x40f447
mov eax, edi
mov edx, 0x40f5dc
call fcn.004040c0
cmp word [0x429218], 0
jne 0x40efc5
inc dword [0x42ab5c]
mov eax, dword [0x42ab5c]
cmp eax, dword [0x42ab58]
jl 0x40f447
lea eax, [ebp - 0x15c]
push eax
mov eax, dword [ebp - 8]
call fcn.00404308
mov edx, eax
sub edx, 2
mov ecx, 3
mov eax, dword [ebp - 8]
call fcn.00404568
mov eax, dword [ebp - 0x15c]
lea edx, [ebp - 0xc]
call fcn.004069a4
mov edx, dword [0x42ab24]
mov eax, dword [ebp - 0xc]
call fcn.004045f0
test eax, eax
je 0x40f01b
mov bl, 3
jmp 0x40f01d
mov bl, 1
mov eax, edi
mov edx, 0x40f684
call fcn.004040c0
cmp bl, 3
jne 0x40f0f4
mov eax, dword [0x42ab20]
call fcn.00404308
test eax, eax
jne 0x40f047
mov bl, 2
jmp 0x40f0f4
cmp dword [ebp - 0x130], 0x9600000
jbe 0x40f05a
mov bl, 2
jmp 0x40f0f4
mov eax, dword [ebp - 0xc]
mov edx, 0x40f75c
call fcn.00404454
jne 0x40f09d
cmp dword [ebp - 0x130], 0x7530
jae 0x40f079
mov bl, 2
jmp 0x40f0f4
lea eax, [ebp - 0x160]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00404354
mov eax, dword [ebp - 0x160]
call fcn.00406c94
test al, al
jne 0x40f0f4
mov bl, 2
jmp 0x40f0f4
mov edx, dword [ebp - 8]
mov eax, 0x40f768
call fcn.004045f0
test eax, eax
je 0x40f0f4
mov edx, dword [ebp - 8]
mov eax, 0x40f778
call fcn.004045f0
test eax, eax
jne 0x40f0f4
mov edx, dword [ebp - 8]
mov eax, 0x40f78c
call fcn.004045f0
test eax, eax
jne 0x40f0f4
mov edx, dword [ebp - 8]
mov eax, 0x40f7a0
call fcn.004045f0
test eax, eax
jne 0x40f0f4
mov edx, dword [ebp - 8]
mov eax, 0x40f7b8
call fcn.004045f0
test eax, eax
jne 0x40f0f4
mov bl, 2
mov eax, edi
mov edx, 0x40f7d0
call fcn.004040c0
cmp bl, 3
jne 0x40f197
inc word [0x429218]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040e83c
test al, al
je 0x40f14d
mov eax, 0x42ab3c
mov edx, dword [ebp - 4]
call fcn.004040c0
lea eax, [ebp - 0x164]
mov ecx, 0x40f5d0
mov edx, dword [0x42ab1c]
call fcn.00404354
mov eax, dword [ebp - 0x164]
call fcn.0040eeb8
push dword [0x42aafc]
push 0x40f898
lea edx, [ebp - 0x16c]
movzx eax, word [0x429218]
call fcn.00406920
push dword [ebp - 0x16c]
push 0x40f8a4
lea eax, [ebp - 0x168]
mov edx, 4
call fcn.004043c8
mov eax, dword [ebp - 0x168]
call fcn.00406e4c
dec word [0x429218]
mov eax, edi
mov edx, 0x40f8b4
call fcn.004040c0
xor eax, eax
cmp bl, 1
jne 0x40f3f6
cmp dword [ebp - 0x130], 0xa00000
ja 0x40f3f6
cmp dword [0x42ab68], 0x64
setl dl
sub dl, 1
jb 0x40f1e3
jne 0x40f1f5
mov edx, 0x40f954
mov eax, dword [ebp - 0xc]
call fcn.004045f0
test eax, eax
sete al
jmp 0x40f1f5
mov edx, 0x40fa88
mov eax, dword [ebp - 0xc]
call fcn.004045f0
test eax, eax
setne al
test al, al
je 0x40f3f6
lea eax, [ebp - 0x170]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00404354
mov eax, dword [ebp - 0x170]
lea edx, [ebp - 0x10]
call fcn.0040d4b0
mov eax, dword [ebp - 0x10]
call fcn.00404308
test eax, eax
jle 0x40f3f6
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
mov eax, dword [0x42aaec]
call fcn.00404508
push eax
call sub.kernel32.dll_CreateFileA_1
mov dword [0x42ab84], eax
push 2
push 0
push 0
mov eax, dword [0x42ab84]
push eax
call sub.kernel32.dll_SetFilePointer_1
push 0
mov eax, dword [0x42ab84]
push eax
call sub.kernel32.dll_GetFileSize_1
mov dword [0x42ab6c], eax
cmp dword [0x42ab6c], 0xed800
jle 0x40f33a
push 0x40fad4
lea edx, [ebp - 0x178]
mov eax, dword [0x42ab6c]
call fcn.00406920
push dword [ebp - 0x178]
push 0x40fae8
lea edx, [ebp - 0x17c]
mov eax, 0xed800
call fcn.00406920
push dword [ebp - 0x17c]
lea eax, [ebp - 0x174]
mov edx, 4
call fcn.004043c8
mov eax, dword [ebp - 0x174]
call fcn.0041b548
push 0xc8
mov ecx, 0x40faf4
mov edx, 0x40fb04
mov eax, 0x80000002
call fcn.00407f58
push 0x40fb4c
mov edx, 0x40fb04
mov ecx, 0x40fb58
mov eax, 0x80000002
call fcn.00407e68
push 0
mov edx, 0x40fb04
mov ecx, 0x40fb68
mov eax, 0x80000002
call fcn.00407f58
push 0
mov edx, 0x40fb04
mov ecx, 0x40fb78
mov eax, 0x80000002
call fcn.00407f58
call fcn.00403f00
cmp word [0x429218], 0
jne 0x40f366
push 0x40fb88
push dword [ebp - 4]
push dword [ebp - 8]
push 0x40fb88
push dword [ebp - 0x10]
lea eax, [ebp - 0x10]
mov edx, 5
call fcn.004043c8
jmp 0x40f3b1
push 0x40fb88
lea edx, [ebp - 0x180]
movzx eax, word [0x429218]
call fcn.00406920
push dword [ebp - 0x180]
push 0x40fb94
push dword [0x42ab3c]
push dword [0x42ab2c]
push 0x40fba0
push dword [ebp - 8]
push 0x40fb88
push dword [ebp - 0x10]
lea eax, [ebp - 0x10]
mov edx, 9
call fcn.004043c8
push 0
push 0x42ab74
mov eax, dword [ebp - 0x10]
call fcn.00404308
push eax
lea eax, [ebp - 0x10]
call fcn.00404560
push eax
mov eax, dword [0x42ab84]
push eax
call sub.kernel32.dll_WriteFile_1
mov eax, edi
mov edx, 0x40fbac
call fcn.004040c0
mov eax, dword [0x42ab84]
push eax
call sub.kernel32.dll_CloseHandle_1
lea eax, [ebp - 0x10]
xor edx, edx
call fcn.00404638
cmp word [0x429218], 0
jne 0x40f43b
mov edx, 0x40fb68
mov ecx, dword [0x42ab5c]
mov eax, dword [0x42ab94]
call fcn.004081e8
lea eax, [ebp - 0x184]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00404354
mov ecx, dword [ebp - 0x184]
mov edx, 0x40fb58
mov eax, dword [0x42ab94]
call fcn.0040813c
mov eax, edi
mov edx, 0x40fbe0
call fcn.004040c0
lea eax, [ebp - 0x150]
push eax
push esi
call sub.kernel32.dll_FindNextFileA
test eax, eax
jne 0x40ef3c
mov eax, edi
mov edx, 0x40f684
call fcn.004040c0
push esi
call sub.kernel32.dll_FindClose_1
mov eax, edi
mov edx, 0x40fc24
call fcn.004040c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f4ac
lea eax, [ebp - 0x184]
mov edx, 0xd
call fcn.00404090
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00404090
ret