Function at 0x402910
Capabilities:
Delete file
Enumerate files on windows
Write file on windows

Disassembly:
sub esp, 0x4c8
push ebx
push esi
push edi
lea eax, [esp + 0x44]
mov edi, ecx
push eax
mov dword [esp + 0x14], edi
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov ebx, dword [sym.imp.USER32.dll_wsprintfW]
push edi
lea ecx, [esp + 0x2d0]
push 0x40a578
push ecx
call ebx
add esp, 0xc
lea edx, [esp + 0x2cc]
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0xc], esi
je 0x402bc9
push ebp
lea eax, [edi + 0x11c]
lea ebp, [edi + 0x324]
push eax
push ebp
call fcn.00403bae
push 0
push 0x40a570
push ebp
call fcn.004035a0
add esp, 0x14
lea ecx, [esp + 0x80]
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x18], eax
je 0x402ba2
lea edx, [esp + 0xac]
push 0x40a56c
push edx
call fcn.00404022
add esp, 8
test eax, eax
je 0x402b7c
lea eax, [esp + 0xac]
push 0x40a564
push eax
call fcn.00404022
add esp, 8
test eax, eax
je 0x402b7c
mov eax, dword [esp + 0x4dc]
test eax, eax
je 0x402b20
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x94]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
mov eax, dword [esp + 0x1c]
cmp ax, word [esp + 0x48]
je 0x402a30
and eax, 0xffff
push eax
lea eax, [esp + 0x5c]
push str.__04d
push eax
call ebx
add esp, 0xc
jmp 0x402a55
mov ecx, dword [esp + 0x26]
mov edx, dword [esp + 0x24]
and ecx, 0xffff
and edx, 0xffff
push ecx
push edx
lea eax, [esp + 0x60]
push str._2d:_02d
push eax
call ebx
add esp, 0x10
lea ecx, [esp + 0xac]
push ecx
call fcn.00404005
mov cl, byte [esp + 0x84]
add esp, 4
test cl, 0x10
je 0x402a78
push str.drwxrwxrwx
jmp 0x402aa7
cmp eax, 4
jbe 0x402aa2
lea eax, [esp + eax*2 + 0xa4]
push str..EXE
push eax
call fcn.00403f85
add esp, 8
test eax, eax
jne 0x402aa2
lea ecx, [esp + 0x2c]
push str._rwxrwxrwx
push ecx
jmp 0x402aac
push str._rw_rw_rw_
lea edx, [esp + 0x30]
push edx
call fcn.00403bae
mov al, byte [esp + 0x88]
add esp, 8
test al, 1
je 0x402ad3
mov eax, 0x2d
mov word [esp + 0x3c], ax
mov word [esp + 0x36], ax
mov word [esp + 0x30], ax
mov edx, dword [esp + 0x22]
lea eax, [esp + 0xac]
push eax
mov eax, dword [esp + 0x22]
lea ecx, [esp + 0x5c]
and eax, 0xffff
and edx, 0xffff
push ecx
mov ecx, dword [eax*4 + 0x40a060]
push edx
mov edx, dword [esp + 0xac]
push ecx
push edx
push str.group
lea eax, [esp + 0x44]
push str.owner
push eax
push str._s___1__8s__8s_____10d__s__2d__s__s
push ebp
call ebx
add esp, 0x28
jmp 0x402b31
lea ecx, [esp + 0xac]
push ecx
push ebp
call fcn.00403bae
add esp, 8
lea esi, [edi + 0x52c]
push 0x104
push ebp
push esi
mov byte [esi], 0
call fcn.00403da8
mov al, byte [esi]
add esp, 0xc
test al, al
je 0x402b7c
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x44]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push eax
mov eax, dword [esp + 0x14]
push edx
mov byte [esi + ecx], 0xd
inc ecx
mov byte [esi + ecx], 0xa
inc ecx
push ecx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x80]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4029b2
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esp + 0x2d0]
push 0
push edx
mov ecx, edi
call fcn.00401e20
lea eax, [esp + 0x2d0]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x4c8
ret 4