Function at 0x40a750
Capabilities:
Set file attributes

Disassembly:
sub esp, 0x9c8
mov dl, byte [0x41b8cc]
push ebx
push esi
push edi
mov ecx, 0xc7
xor eax, eax
lea edi, [esp + 0x269]
mov byte [esp + 0x268], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0xc7
xor eax, eax
lea edi, [esp + 0x6b5]
mov byte [esp + 0x6b4], dl
rep stosd dword es:[edi], eax
mov esi, dword [esp + 0x9dc]
push 0x12b
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x26c]
push esi
push eax
call fcn.0040d1a0
lea ecx, [esp + 0x274]
push ecx
call fcn.00402050
add esp, 0x10
test eax, eax
jne 0x40a7de
lea edx, [esp + 0x268]
push str.autorun.inf
push edx
call fcn.00414ec0
add esp, 8
test eax, eax
je 0x40ab6f
push 0x12b
lea eax, [esp + 0x26c]
push esi
push eax
call fcn.0040d1a0
lea ecx, [esp + 0x274]
push ecx
call fcn.00402050
add esp, 0x10
test eax, eax
je 0x40a861
mov dl, byte [0x41b8cc]
mov ecx, 0x4a
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], dl
push 0x80
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x26c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [esp + 0x268]
lea edx, [esp + 0x10]
push ecx
push str.Remove_attribute__s
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esp + 0x1c]
push eax
call fcn.00404fc0
add esp, 0x10
pop edi
pop esi
pop ebx
add esp, 0x9c8
ret
push 0x12b
lea ecx, [esp + 0x26c]
push esi
push ecx
call fcn.0040d1a0
mov edi, 0x417aa8
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x274]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x274]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.0040c080
mov cl, byte [0x41b8cc]
mov esi, eax
mov byte [esp + 0x14c], cl
mov ecx, 0x4a
xor eax, eax
lea edi, [esp + 0x14d]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [0x41d218]
add esp, 0x10
inc eax
mov dword [esp + 0xc], esi
cmp eax, 4
mov dword [0x41d218], eax
jg 0x40ab6f
push ebp
push esi
call fcn.0040c220
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x40ab65
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov edi, dword [ebp]
mov esi, 0x417aa4
mov eax, edi
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40a937
test cl, cl
je 0x40a933
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40a937
add eax, 2
add esi, 2
test cl, cl
jne 0x40a913
xor eax, eax
jmp 0x40a93c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40ab4a
mov esi, 0x417aa0
mov eax, edi
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40a96f
test cl, cl
je 0x40a96b
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40a96f
add eax, 2
add esi, 2
test cl, cl
jne 0x40a94b
xor eax, eax
jmp 0x40a974
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40ab4a
lea eax, [esp + 0x26c]
push 0x12b
lea ecx, [esp + 0x6bc]
push eax
push ecx
call fcn.0040d1a0
mov edi, dword [ebp]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x6c4]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x6c4]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.0040c080
add esp, 0x10
test eax, eax
je 0x40aa64
push eax
call fcn.0040c1d0
mov ecx, dword [ebp]
push str.autorun.inf
push ecx
call fcn.00414ec0
add esp, 0xc
test eax, eax
je 0x40ab4a
mov dl, byte [0x41b8cc]
mov ecx, 0x4a
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], dl
push 0x80
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x6bc]
push eax
call ebx
lea ecx, [esp + 0x6b8]
lea edx, [esp + 0x14]
push ecx
push str.Remove_attribute__s
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esp + 0x20]
push eax
call fcn.00404fc0
mov edx, dword [esp + 0x9ec]
lea ecx, [esp + 0x6c8]
push ecx
push edx
call fcn.0040a750
add esp, 0x18
jmp 0x40ab4a
lea eax, [esp + 0x26c]
push 0x12b
lea ecx, [esp + 0x144]
push eax
push ecx
call fcn.0040d1a0
mov edi, 0x417aa8
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x14c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x14c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00402050
add esp, 0x10
test eax, eax
je 0x40ab4a
mov cl, byte [0x41b8cc]
xor eax, eax
mov byte [esp + 0x58c], cl
mov ecx, 0x4a
lea edi, [esp + 0x58d]
lea edx, [esp + 0x140]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x80
push edx
stosb byte es:[edi], al
call ebx
lea eax, [esp + 0x140]
lea ecx, [esp + 0x58c]
push eax
push str.Remove_attribute__s
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
lea edx, [esp + 0x598]
push edx
call fcn.00404fc0
add esp, 0x10
mov eax, dword [esp + 0x10]
push eax
call fcn.0040c220
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x40a909
mov esi, dword [esp + 0x10]
push esi
call fcn.0040c1d0
add esp, 4
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x9c8
ret