Function at 0x1001ecc
Capabilities:
Copy file
Create directory
Enumerate files on windows
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x358
mov eax, dword [0x1006074]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov ecx, ebx
mov dword [ebp - 0x354], ebx
call fcn.0100171c
lea eax, [ebx + 0x124]
push 0
push eax
mov dword [ebp - 0x350], eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [ebx + 0x20]
lea ecx, [ebp - 0x20c]
sub ecx, eax
mov dl, byte [eax]
mov byte [ecx + eax], dl
inc eax
test dl, dl
jne 0x1001f14
lea edi, [ebp - 0x20c]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1001f25
mov esi, 0x1001330
lea eax, [ebp - 0x34c]
movsd dword es:[edi], dword [esi]
push eax
lea eax, [ebp - 0x20c]
push eax
movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x358], eax
je 0x1002005
test byte [ebp - 0x34c], 0x10
jne 0x1001fea
mov eax, dword [ebp - 0x350]
lea edx, [ebp - 0x108]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x1001f72
lea edi, [ebp - 0x108]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1001f83
mov esi, 0x100132c
lea eax, [ebp - 0x320]
movsw word es:[edi], word [esi]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1001f9a
lea edi, [ebp - 0x108]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1001faa
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0x80
lea eax, [ebp - 0x108]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x320]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea eax, [ebp - 0x34c]
push eax
push dword [ebp - 0x358]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1001f57
mov ecx, ebx
call fcn.0100171c
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0x69
push 0
call ebx
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
mov esi, dword [ebp - 0x350]
lea eax, [ebp - 0x108]
sub eax, esi
mov cl, byte [esi]
mov byte [eax + esi], cl
inc esi
test cl, cl
jne 0x1002039
lea edi, [ebp - 0x108]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x100204a
mov esi, 0x100132c
lea eax, [ebp - 0x20c]
movsw word es:[edi], word [esi]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1002061
lea edi, [ebp - 0x108]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1002071
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor esi, esi
push esi
push esi
push esi
push esi
push esi
push 1
push dword [ebp - 0x350]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.SETUPAPI.dll_SetupCopyOEMInfA]
test eax, eax
jne 0x10020b8
push 0x1001294
call fcn.010030a9
jmp 0x100217f
mov ecx, dword [ebp - 0x354]
call fcn.0100171c
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0x6a
push esi
call ebx
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
mov esi, dword [ebp - 0x350]
lea eax, [ebp - 0x108]
sub eax, esi
mov cl, byte [esi]
mov byte [eax + esi], cl
inc esi
test cl, cl
jne 0x10020e9
lea edi, [ebp - 0x108]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10020fa
mov esi, 0x100132c
lea eax, [ebp - 0x20c]
movsw word es:[edi], word [esi]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1002111
lea edi, [ebp - 0x108]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1002121
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x354]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.01001796
mov ecx, dword [ebp - 0x354]
call fcn.0100171c
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0x6d
push 0
call ebx
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x350]
call fcn.01002aff
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.01003ba3
leave
ret 4