Function at 0x1004d8a
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 [0x100c028]
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov esi, 0x1002618
push esi
push eax
mov dword [ebp - 0x848], eax
mov dword [ebp - 0x844], 1
call fcn.010068f7
xor ebx, ebx
jmp 0x1004fcd
push 0x3e8
lea eax, [ebp - 0x6f8]
push eax
push ebx
push edi
mov dword [ebp - 0x83c], ebx
call fcn.010067e2
test eax, eax
je 0x1004fba
cmp dword [0x100c4c0], ebx
jne 0x1004e07
lea eax, [ebp - 0x6f8]
push eax
push ebx
push 0xc
push 0x68
push dword [0x100ce24]
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x6f8]
push eax
push 0x100d0c0
call fcn.01002c4b
push 0x3e8
lea eax, [ebp - 0x6f8]
push eax
push 1
push edi
call fcn.010067e2
test eax, eax
je 0x1004fba
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x6f8]
push eax
push 0x100d0c0
call fcn.01002c4b
push 0x3e8
lea eax, [ebp - 0x6f8]
push eax
push 2
push edi
call fcn.010067e2
test eax, eax
je 0x1004e85
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x6f8]
push eax
push 0x100d0c0
call fcn.01002c4b
jmp 0x1004e8b
mov byte [ebp - 0x20c], bl
lea eax, [ebp - 0x108]
push 0x1002610
push eax
call dword [sym.imp.msvcrt.dll_strstr]
test eax, eax
pop ecx
pop ecx
jne 0x1004fba
push ebx
push ebx
lea eax, [ebp - 0x108]
push eax
call fcn.01004c61
lea eax, [ebp - 0x108]
push eax
push 0x100c004
call fcn.01004b50
push 0x80
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [ebp - 0x848]
call fcn.01003693
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 [0x100c040]
cmp eax, ebx
mov dword [ebp - 0x83c], eax
jne 0x1004fba
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x1004fba
push 0x100c3a0
push 0x100ce40
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.01004c10
test eax, eax
je 0x1004fba
cmp byte [0x100c3a0], bl
mov ecx, 0x100c3a0
jne 0x1004f5c
lea ecx, [ebp - 0x108]
cmp byte [0x100ce40], bl
je 0x1004f6b
mov eax, 0x100ce40
jmp 0x1004f7d
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 [0x100c040]
push 0x100c3a0
mov dword [ebp - 0x83c], eax
push 0x100ce40
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.010037c3
test eax, eax
jne 0x1004fba
mov dword [ebp - 0x83c], ebx
mov eax, dword [ebp - 0x83c]
and dword [ebp - 0x844], eax
push esi
push edi
call fcn.010067b3
mov edi, eax
cmp edi, ebx
jne 0x1004dc6
push 0x1002608
push dword [ebp - 0x848]
call fcn.010068f7
cmp eax, ebx
mov dword [ebp - 0x840], eax
mov edi, 0x100ce40
je 0x10051b4
mov esi, 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.010067e2
test eax, eax
je 0x100518a
cmp dword [0x100c4c0], ebx
jne 0x1005046
lea eax, [ebp - 0x6f8]
push eax
push ebx
push 0xc
push 0x68
push dword [0x100ce24]
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x6f8]
push eax
push 0x100d0c0
call fcn.01002c4b
push 0x3e8
lea eax, [ebp - 0x6f8]
push eax
push 1
push dword [ebp - 0x840]
call fcn.010067e2
test eax, eax
je 0x100518a
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x6f8]
push eax
push 0x100d0c0
call fcn.01002c4b
lea eax, [ebp - 0x108]
push 0x1002610
push eax
call dword [sym.imp.msvcrt.dll_strstr]
test eax, eax
pop ecx
pop ecx
jne 0x100518a
push ebx
push ebx
lea eax, [ebp - 0x108]
push eax
call fcn.01004c61
lea eax, [ebp - 0x108]
push eax
push 0x100c004
call fcn.01004b50
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 esi
cmp eax, ebx
mov dword [ebp - 0x83c], eax
jne 0x1005178
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x1005178
push 0x100c3a0
push edi
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.01004c10
test eax, eax
je 0x1005178
cmp byte [0x100c3a0], bl
mov ecx, 0x100c3a0
jne 0x100513a
lea ecx, [ebp - 0x108]
cmp byte [0x100ce40], bl
mov eax, edi
jne 0x100514a
lea eax, [ebp - 0x20c]
push ebx
push ecx
push eax
call esi
push 0x100c3a0
mov dword [ebp - 0x83c], eax
push edi
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.010037c3
test eax, eax
jne 0x1005178
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 0x1002608
push dword [ebp - 0x840]
call fcn.010067b3
cmp eax, ebx
mov dword [ebp - 0x840], eax
jne 0x1005000
push 0x1002600
push dword [ebp - 0x848]
call fcn.010068f7
cmp eax, ebx
mov dword [ebp - 0x840], eax
je 0x100537d
jmp 0x10051d9
mov edi, 0x100ce40
push 0x3e8
lea eax, [ebp - 0x6f8]
push eax
push ebx
push dword [ebp - 0x840]
mov esi, 0x104
mov dword [ebp - 0x83c], ebx
call fcn.010067e2
test eax, eax
je 0x1005353
cmp dword [0x100c4c0], ebx
jne 0x1005224
lea eax, [ebp - 0x6f8]
push eax
push ebx
push 0xc
push 0x68
push dword [0x100ce24]
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x6f8]
push eax
push 0x100d0c0
call fcn.01002c4b
push esi
lea eax, [ebp - 0x108]
push eax
push 1
push dword [ebp - 0x840]
call fcn.010067e2
test eax, eax
je 0x1005353
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.msvcrt.dll__strlwr]
pop ecx
push dword [ebp - 0x848]
call fcn.01003693
lea eax, [ebp - 0x310]
push eax
push esi
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x1470000
lea eax, [ebp - 0x20c]
push eax
call dword [0x100c044]
cmp eax, ebx
mov dword [ebp - 0x83c], eax
jne 0x1005308
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x1005300
push edi
lea eax, [ebp - 0x20c]
push eax
call fcn.01004b7e
test eax, eax
je 0x1005300
push edi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
je 0x1005300
lea eax, [ebp - 0x310]
push eax
push esi
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x1470000
push edi
call dword [0x100c044]
mov dword [ebp - 0x83c], eax
lea eax, [ebp - 0x20c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x1005300
mov dword [ebp - 0x83c], ebx
cmp dword [ebp - 0x83c], ebx
je 0x1005353
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.msvcrt.dll__strlwr]
pop ecx
lea edi, [ebp - 0x310]
lea esi, [ebp - 0x108]
mov cl, byte [esi]
mov al, cl
cmp cl, byte [edi]
jne 0x1005344
cmp al, bl
je 0x1005340
mov cl, byte [esi + 1]
mov al, cl
cmp cl, byte [edi + 1]
jne 0x1005344
inc esi
inc esi
inc edi
inc edi
cmp al, bl
jne 0x1005322
xor eax, eax
jmp 0x1005349
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x1005353
mov dword [ebp - 0x83c], ebx
mov eax, dword [ebp - 0x83c]
and dword [ebp - 0x844], eax
push 0x1002600
push dword [ebp - 0x840]
call fcn.010067b3
cmp eax, ebx
mov dword [ebp - 0x840], eax
jne 0x10051d4
call fcn.01003792
mov edi, 0x10025f8
push edi
push dword [ebp - 0x848]
call fcn.010068f7
jmp 0x10054e5
push 0x3e8
lea ecx, [ebp - 0x6f8]
push ecx
push 1
push eax
call fcn.010067e2
test eax, eax
je 0x10054d9
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x6f8]
push eax
push 0x100d0c0
call fcn.01002c4b
lea eax, [ebp - 0x108]
push 0x1002610
push eax
call dword [sym.imp.msvcrt.dll_strstr]
test eax, eax
pop ecx
pop ecx
jne 0x10054d9
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 0x10054d9
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 0x10054b2
cmp dword [0x100c4c0], ebx
jne 0x100544c
lea eax, [ebp - 0x80c]
push eax
push ebx
push 0xc
push 0x68
push dword [0x100ce24]
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 0x1005458
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x10054b2
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 0x10054b2
lea eax, [ebp - 0x108]
push eax
push 0x100c004
call fcn.01004b50
lea eax, [ebp - 0x838]
push eax
push dword [ebp - 0x83c]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x100541f
push dword [ebp - 0x83c]
call dword [sym.imp.KERNEL32.dll_FindClose]
push edi
push dword [ebp - 0x840]
call fcn.010067b3
cmp eax, ebx
mov dword [ebp - 0x840], eax
jne 0x1005398
push 0x10025f0
mov esi, 0x10023c8
push esi
push dword [ebp - 0x848]
call fcn.0100691d
cmp eax, ebx
mov edi, 0x10022cf
je 0x1005579
push 0x3e8
lea ecx, [ebp - 0x6f8]
push ecx
push eax
call fcn.010068b1
test eax, eax
je 0x1005579
lea eax, [ebp - 0x6f8]
push 0x3d
push eax
call dword [sym.imp.msvcrt.dll_strchr]
cmp eax, ebx
pop ecx
pop ecx
mov dword [0x100d09c], eax
je 0x1005608
jmp 0x100554d
cmp cl, 0x20
jg 0x1005559
inc eax
mov dword [0x100d09c], eax
mov cl, byte [eax]
cmp cl, bl
jne 0x1005548
push eax
mov dword [0x100ce2c], edi
call fcn.0100450b
mov dword [0x100d09c], eax
mov dword [0x101d424], 0x100d0c0
jmp 0x1005608
push 0x10025ec
push esi
push dword [ebp - 0x848]
call fcn.0100691d
cmp eax, ebx
je 0x1005608
push 0x3e8
lea ecx, [ebp - 0x6f8]
push ecx
push 1
push eax
call fcn.010067e2
test eax, eax
je 0x1005608
lea eax, [ebp - 0x6f8]
push eax
call fcn.0100450b
mov dword [0x100ce2c], eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x6f8]
push eax
push 0x100d0c0
call fcn.01002c4b
lea eax, [ebp - 0x108]
push eax
call fcn.0100450b
mov dword [0x100d09c], eax
lea eax, [ebp - 0x108]
push 0x5c
push eax
call dword [sym.imp.msvcrt.dll_strrchr]
cmp eax, ebx
pop ecx
pop ecx
je 0x10055f7
mov byte [eax], bl
lea eax, [ebp - 0x108]
push eax
call fcn.0100450b
mov dword [0x101d424], eax
cmp dword [0x100c4c0], ebx
jne 0x1005622
push edi
push ebx
push 0xc
push 0x68
push dword [0x100ce24]
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x844]
pop edi
pop esi
pop ebx
call fcn.01006a23
leave
ret 4