Function at 0x1004b04
Capabilities:
Copy file
Delete file
Enumerate files on windows
Move file
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x848
mov eax, dword [0x100c024]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, 0x1002624
push esi
push eax
mov dword [ebp - 0x848], eax
mov dword [ebp - 0x844], 1
call fcn.01006816
xor ebx, ebx
jmp 0x1004d49
push 0x3e8
lea eax, [ebp - 0x6f8]
push eax
push ebx
push edi
mov dword [ebp - 0x83c], ebx
call fcn.01006701
test eax, eax
je 0x1004d36
cmp dword [0x100c7b4], ebx
jne 0x1004b83
lea eax, [ebp - 0x6f8]
push eax
push ebx
push 0xc
push 0x68
push dword [0x100d104]
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x6f8]
push eax
push 0x100d380
call fcn.01002d05
push 0x3e8
lea eax, [ebp - 0x6f8]
push eax
push 1
push edi
call fcn.01006701
test eax, eax
je 0x1004d36
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x6f8]
push eax
push 0x100d380
call fcn.01002d05
push 0x3e8
lea eax, [ebp - 0x6f8]
push eax
push 2
push edi
call fcn.01006701
test eax, eax
je 0x1004c01
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x6f8]
push eax
push 0x100d380
call fcn.01002d05
jmp 0x1004c07
mov byte [ebp - 0x20c], bl
lea eax, [ebp - 0x108]
push 0x100261c
push eax
call dword [sym.imp.msvcrt.dll_strstr]
test eax, eax
pop ecx
pop ecx
jne 0x1004d36
push ebx
push ebx
lea eax, [ebp - 0x108]
push eax
call fcn.010049da
lea eax, [ebp - 0x108]
push eax
push 0x100c004
call fcn.010048ca
push 0x80
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [ebp - 0x848]
call fcn.010038dd
push ebx
lea eax, [ebp - 0x108]
push eax
mov al, byte [ebp - 0x20c]
neg al
lea ecx, [ebp - 0x20c]
sbb eax, eax
and eax, ecx
push eax
lea eax, [ebp - 0x310]
push eax
call dword [0x100c340]
cmp eax, ebx
mov dword [ebp - 0x83c], eax
jne 0x1004d36
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x1004d36
push 0x100c6a0
push 0x100d120
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.01004989
test eax, eax
je 0x1004d36
cmp byte [0x100c6a0], bl
mov ecx, 0x100c6a0
jne 0x1004cd8
lea ecx, [ebp - 0x108]
cmp byte [0x100d120], bl
je 0x1004ce7
mov eax, 0x100d120
jmp 0x1004cf9
mov al, byte [ebp - 0x20c]
neg al
lea edx, [ebp - 0x20c]
sbb eax, eax
and eax, edx
push ebx
push ecx
push eax
lea eax, [ebp - 0x310]
push eax
call dword [0x100c340]
push 0x100c6a0
mov dword [ebp - 0x83c], eax
push 0x100d120
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.01003a11
test eax, eax
jne 0x1004d36
mov dword [ebp - 0x83c], ebx
mov eax, dword [ebp - 0x83c]
and dword [ebp - 0x844], eax
push esi
push edi
call fcn.010066d2
mov edi, eax
cmp edi, ebx
jne 0x1004b42
push 0x1002614
push dword [ebp - 0x848]
call fcn.01006816
cmp eax, ebx
mov dword [ebp - 0x840], eax
mov esi, 0x100d120
je 0x1004f30
mov edi, dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0x3e8
lea eax, [ebp - 0x6f8]
push eax
push ebx
push dword [ebp - 0x840]
mov dword [ebp - 0x83c], ebx
call fcn.01006701
test eax, eax
je 0x1004f06
cmp dword [0x100c7b4], ebx
jne 0x1004dc2
lea eax, [ebp - 0x6f8]
push eax
push ebx
push 0xc
push 0x68
push dword [0x100d104]
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x6f8]
push eax
push 0x100d380
call fcn.01002d05
push 0x3e8
lea eax, [ebp - 0x6f8]
push eax
push 1
push dword [ebp - 0x840]
call fcn.01006701
test eax, eax
je 0x1004f06
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x6f8]
push eax
push 0x100d380
call fcn.01002d05
lea eax, [ebp - 0x108]
push 0x100261c
push eax
call dword [sym.imp.msvcrt.dll_strstr]
test eax, eax
pop ecx
pop ecx
jne 0x1004f06
push ebx
push ebx
lea eax, [ebp - 0x108]
push eax
call fcn.010049da
lea eax, [ebp - 0x108]
push eax
push 0x100c004
call fcn.010048ca
push 0x80
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebx
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push eax
call edi
cmp eax, ebx
mov dword [ebp - 0x83c], eax
jne 0x1004ef4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x1004ef4
push 0x100c6a0
push esi
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.01004989
test eax, eax
je 0x1004ef4
cmp byte [0x100c6a0], bl
mov ecx, 0x100c6a0
jne 0x1004eb6
lea ecx, [ebp - 0x108]
cmp byte [0x100d120], bl
mov eax, esi
jne 0x1004ec6
lea eax, [ebp - 0x20c]
push ebx
push ecx
push eax
call edi
push 0x100c6a0
mov dword [ebp - 0x83c], eax
push esi
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.01003a11
test eax, eax
jne 0x1004ef4
mov dword [ebp - 0x83c], ebx
push 0x80
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [ebp - 0x83c]
and dword [ebp - 0x844], eax
push 0x1002614
push dword [ebp - 0x840]
call fcn.010066d2
cmp eax, ebx
mov dword [ebp - 0x840], eax
jne 0x1004d7c
push 0x100260c
push dword [ebp - 0x848]
call fcn.01006816
cmp eax, ebx
mov dword [ebp - 0x840], eax
je 0x10050f5
mov edi, 0x104
jmp 0x1004f5a
mov esi, 0x100d120
push 0x3e8
lea eax, [ebp - 0x6f8]
push eax
push ebx
push dword [ebp - 0x840]
mov dword [ebp - 0x83c], ebx
call fcn.01006701
test eax, eax
je 0x10050cb
cmp dword [0x100c7b4], ebx
jne 0x1004fa0
lea eax, [ebp - 0x6f8]
push eax
push ebx
push 0xc
push 0x68
push dword [0x100d104]
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x6f8]
push eax
push 0x100d380
call fcn.01002d05
push edi
lea eax, [ebp - 0x108]
push eax
push 1
push dword [ebp - 0x840]
call fcn.01006701
test eax, eax
je 0x10050cb
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.msvcrt.dll__strlwr]
pop ecx
push dword [ebp - 0x848]
call fcn.010038dd
lea eax, [ebp - 0x310]
push eax
push edi
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x1470000
lea eax, [ebp - 0x20c]
push eax
call dword [0x100c344]
cmp eax, ebx
mov dword [ebp - 0x83c], eax
jne 0x1005084
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x100507c
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.010048f8
test eax, eax
je 0x100507c
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
je 0x100507c
lea eax, [ebp - 0x310]
push eax
push edi
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x1470000
push esi
call dword [0x100c344]
mov dword [ebp - 0x83c], eax
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x100507c
mov dword [ebp - 0x83c], ebx
cmp dword [ebp - 0x83c], ebx
je 0x10050cb
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.msvcrt.dll__strlwr]
pop ecx
lea esi, [ebp - 0x310]
lea eax, [ebp - 0x108]
mov cl, byte [eax]
cmp cl, byte [esi]
jne 0x10050bc
cmp cl, bl
je 0x10050b8
mov cl, byte [eax + 1]
cmp cl, byte [esi + 1]
jne 0x10050bc
inc eax
inc eax
inc esi
inc esi
cmp cl, bl
jne 0x100509e
xor eax, eax
jmp 0x10050c1
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x10050cb
mov dword [ebp - 0x83c], ebx
mov eax, dword [ebp - 0x83c]
and dword [ebp - 0x844], eax
push 0x100260c
push dword [ebp - 0x840]
call fcn.010066d2
cmp eax, ebx
mov dword [ebp - 0x840], eax
jne 0x1004f55
call fcn.010039e0
mov edi, 0x1002604
push edi
push dword [ebp - 0x848]
call fcn.01006816
jmp 0x100525d
push 0x3e8
lea ecx, [ebp - 0x6f8]
push ecx
push 1
push eax
call fcn.01006701
test eax, eax
je 0x1005251
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x6f8]
push eax
push 0x100d380
call fcn.01002d05
lea eax, [ebp - 0x108]
push 0x100261c
push eax
call dword [sym.imp.msvcrt.dll_strstr]
test eax, eax
pop ecx
pop ecx
jne 0x1005251
lea eax, [ebp - 0x838]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x83c], eax
je 0x1005251
lea eax, [ebp - 0x108]
push 0x5c
push eax
call dword [sym.imp.msvcrt.dll_strrchr]
pop ecx
mov esi, eax
pop ecx
inc esi
test byte [ebp - 0x838], 0x10
jne 0x100522a
cmp dword [0x100c7b4], ebx
jne 0x10051c4
lea eax, [ebp - 0x80c]
push eax
push ebx
push 0xc
push 0x68
push dword [0x100d104]
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
lea eax, [ebp - 0x80c]
mov edx, esi
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x10051d0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x100522a
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x80
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x100522a
lea eax, [ebp - 0x108]
push eax
push 0x100c004
call fcn.010048ca
lea eax, [ebp - 0x838]
push eax
push dword [ebp - 0x83c]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1005197
push dword [ebp - 0x83c]
call dword [sym.imp.KERNEL32.dll_FindClose]
push edi
push dword [ebp - 0x840]
call fcn.010066d2
cmp eax, ebx
mov dword [ebp - 0x840], eax
jne 0x1005110
push 0x10025fc
mov esi, 0x1002438
push esi
push dword [ebp - 0x848]
call fcn.0100683c
cmp eax, ebx
mov edi, 0x100227f
je 0x10052f1
push 0x3e8
lea ecx, [ebp - 0x6f8]
push ecx
push eax
call fcn.010067d0
test eax, eax
je 0x10052f1
lea eax, [ebp - 0x6f8]
push 0x3d
push eax
call dword [sym.imp.msvcrt.dll_strchr]
cmp eax, ebx
pop ecx
pop ecx
mov dword [0x100d37c], eax
je 0x1005380
jmp 0x10052c5
cmp cl, 0x20
jg 0x10052d1
inc eax
mov dword [0x100d37c], eax
mov cl, byte [eax]
cmp cl, bl
jne 0x10052c0
push eax
mov dword [0x100d10c], edi
call fcn.01004284
mov dword [0x100d37c], eax
mov dword [0x101d6e4], 0x100d380
jmp 0x1005380
push 0x10025f8
push esi
push dword [ebp - 0x848]
call fcn.0100683c
cmp eax, ebx
je 0x1005380
push 0x3e8
lea ecx, [ebp - 0x6f8]
push ecx
push 1
push eax
call fcn.01006701
test eax, eax
je 0x1005380
lea eax, [ebp - 0x6f8]
push eax
call fcn.01004284
mov dword [0x100d10c], eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x6f8]
push eax
push 0x100d380
call fcn.01002d05
lea eax, [ebp - 0x108]
push eax
call fcn.01004284
mov dword [0x100d37c], eax
lea eax, [ebp - 0x108]
push 0x5c
push eax
call dword [sym.imp.msvcrt.dll_strrchr]
cmp eax, ebx
pop ecx
pop ecx
je 0x100536f
mov byte [eax], bl
lea eax, [ebp - 0x108]
push eax
call fcn.01004284
mov dword [0x101d6e4], eax
cmp dword [0x100c7b4], ebx
jne 0x100539a
push edi
push ebx
push 0xc
push 0x68
push dword [0x100d104]
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x844]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.010068cd
leave
ret 4