Function at 0x49701d
Capabilities:
Copy file
Create directory
Get disk information
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc20
mov dword [ebp - 0x404], 0
mov dword [0x5b84b8], 0
jmp 0x497049
mov eax, dword [0x5b84b8]
add eax, 1
mov dword [0x5b84b8], eax
cmp dword [0x5b84b8], 0x200
jge 0x497073
mov ecx, dword [0x5b84b8]
mov byte [ebp + ecx - 0xa04], 0
mov edx, dword [0x5b84b8]
mov byte [ebp + edx - 0x804], 0
jmp 0x49703c
lea eax, [ebp - 0x804]
push eax
push 0x200
call dword [sym.imp.KERNEL32.DLL_GetLogicalDriveStringsA]
mov dword [ebp - 0x404], eax
mov dword [ebp - 0xc14], 0
jmp 0x4970a6
mov ecx, dword [ebp - 0xc14]
add ecx, 4
mov dword [ebp - 0xc14], ecx
mov edx, dword [ebp - 0xc14]
cmp edx, dword [ebp - 0x404]
jge 0x49756f
mov eax, dword [ebp - 0xc14]
movsx ecx, byte [ebp + eax - 0x804]
push ecx
push 0x561878
lea edx, [ebp - 0xa04]
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea eax, [ebp - 0xa04]
push eax
call dword [sym.imp.KERNEL32.DLL_GetDriveTypeA]
cmp eax, 5
jne 0x4970f0
jmp 0x497097
mov ecx, dword [ebp - 0xc14]
movsx edx, byte [ebp + ecx - 0x804]
push edx
push str._c:Autorun.inf
lea eax, [ebp - 0xa04]
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
push ecx
mov ecx, esp
mov dword [ebp - 0xc18], esp
lea edx, [ebp - 0xa04]
push edx
call sub.MFC42.DLL_CString::CString_2
mov dword [ebp - 0xc1c], eax
call fcn.004ae7b8
add esp, 4
mov dword [ebp - 0xc20], eax
cmp dword [ebp - 0xc20], 0
jne 0x49714b
jmp 0x497097
lea eax, [ebp - 0xa04]
push eax
call fcn.004ff498
add esp, 4
test eax, eax
je 0x497163
jmp 0x497097
push 0x561890
lea ecx, [ebp - 0xa04]
push ecx
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
mov dword [ebp - 0xc10], eax
cmp dword [ebp - 0xc10], 0
jne 0x49718c
jmp 0x497097
mov dword [0x5b84b8], 0
jmp 0x4971a7
mov edx, dword [0x5b84b8]
add edx, 1
mov dword [0x5b84b8], edx
cmp dword [0x5b84b8], 0x200
jge 0x4971eb
mov eax, dword [0x5b84b8]
mov byte [ebp + eax - 0x400], 0
mov ecx, dword [0x5b84b8]
mov byte [ebp + ecx - 0x604], 0
mov edx, dword [0x5b84b8]
mov byte [ebp + edx - 0x200], 0
mov eax, dword [0x5b84b8]
mov byte [ebp + eax - 0xc04], 0
jmp 0x497198
mov ecx, dword [ebp - 0xc10]
push ecx
push 0x200
lea edx, [ebp - 0x400]
push edx
call dword [sym.imp.MSVCRT.dll_fgets]
add esp, 0xc
lea eax, [ebp - 0x400]
push eax
lea ecx, [ebp - 0x604]
push ecx
call sub.MSVCRT.dll_strcpy
add esp, 8
lea edx, [ebp - 0x604]
push edx
call fcn.00401fca
add esp, 4
push str.OPEN
lea eax, [ebp - 0x604]
push eax
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
test eax, eax
jne 0x497262
push str.SHELLEXECUTE
lea ecx, [ebp - 0x604]
push ecx
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
test eax, eax
je 0x49753b
push str.OPEN_n
lea edx, [ebp - 0x604]
push edx
call sub.MSVCRT.dll_strcmp
add esp, 8
test eax, eax
je 0x497292
push str.OPENSETUPSNK.EXE_n
lea eax, [ebp - 0x604]
push eax
call sub.MSVCRT.dll_strcmp
add esp, 8
test eax, eax
jne 0x497297
jmp 0x49754d
push 0x5618c8
lea ecx, [ebp - 0x604]
push ecx
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
test eax, eax
je 0x4974ea
push 0x5b7ba4
push 0x5618d8
push 0x5b6504
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
push 0
push 0x5b6504
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
lea edx, [ebp - 0x400]
push edx
call sub.MSVCRT.dll_strlen
add esp, 4
mov dword [ebp - 0xc0c], eax
mov eax, dword [ebp - 0xc14]
movsx ecx, byte [ebp + eax - 0x804]
push ecx
push str._c:_
lea edx, [ebp - 0x200]
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
mov dword [0x5b84b8], 5
mov dword [ebp - 0xc08], 3
jmp 0x497344
mov eax, dword [0x5b84b8]
add eax, 1
mov dword [0x5b84b8], eax
mov ecx, dword [ebp - 0xc08]
add ecx, 1
mov dword [ebp - 0xc08], ecx
mov edx, dword [ebp - 0xc0c]
sub edx, 1
cmp dword [0x5b84b8], edx
jge 0x497371
mov eax, dword [ebp - 0xc08]
mov ecx, dword [0x5b84b8]
mov dl, byte [ebp + ecx - 0x400]
mov byte [ebp + eax - 0x200], dl
jmp 0x497328
lea eax, [ebp - 0x200]
push eax
call sub.MSVCRT.dll_strlen
add esp, 4
mov dword [ebp - 0xc0c], eax
mov ecx, dword [ebp - 0xc0c]
mov dword [0x5b84b8], ecx
jmp 0x4973a3
mov edx, dword [0x5b84b8]
sub edx, 1
mov dword [0x5b84b8], edx
cmp dword [0x5b84b8], 0
jl 0x4973c2
mov eax, dword [0x5b84b8]
movsx ecx, byte [ebp + eax - 0x200]
cmp ecx, 0x5c
jne 0x4973c0
jmp 0x4973c2
jmp 0x497394
mov dword [ebp - 0xc08], 0
jmp 0x4973ec
mov edx, dword [0x5b84b8]
add edx, 1
mov dword [0x5b84b8], edx
mov eax, dword [ebp - 0xc08]
add eax, 1
mov dword [ebp - 0xc08], eax
mov ecx, dword [0x5b84b8]
cmp ecx, dword [ebp - 0xc0c]
jge 0x497414
mov edx, dword [ebp - 0xc08]
mov eax, dword [0x5b84b8]
mov cl, byte [ebp + eax - 0x200]
mov byte [edx + 0x5b6504], cl
jmp 0x4973ce
mov edx, dword [ebp - 0xc08]
mov byte [edx + 0x5b6504], 0
push 0x5b6504
push 0x5b7ba4
push str._sMuestras_s_AutorunRecycled_.vir
lea eax, [ebp - 0xc04]
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
push 0
lea ecx, [ebp - 0xc04]
push ecx
lea edx, [ebp - 0x200]
push edx
call dword [sym.imp.KERNEL32.DLL_CopyFileA]
test eax, eax
je 0x497499
push 0
lea eax, [ebp - 0xc04]
push eax
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
push 0x5b7ba4
lea ecx, [ebp - 0x400]
push ecx
mov edx, dword [ebp - 0xc14]
movsx eax, byte [ebp + edx - 0x804]
push eax
push str.Detectado_AUTORUN.INF_en_la_Unidad___c__n__sPor_favor_envienos_el_Ejecutable__copiado_en__sMuestras__nacompa
push 0x5b6504
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x14
jmp 0x4974c2
lea ecx, [ebp - 0x400]
push ecx
mov edx, dword [ebp - 0xc14]
movsx eax, byte [ebp + edx - 0x804]
push eax
push str.Detectado_AUTORUN.INF_en_la_Unidad___c__n__sEl_Fichero_al_que_Apunta__no_ha_sido_Posible_Localizarlo.
push 0x5b6504
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
cmp dword [0x5b851c], 0
jne 0x4974d9
push 0
push 0
push 0x5b6504
call sub.MFC42.DLL_AfxMessageBox
push 0x5b6504
mov ecx, 0x5b5b78
call fcn.0050f680
jmp 0x49755a
lea ecx, [ebp - 0x400]
push ecx
mov edx, dword [ebp - 0xc14]
movsx eax, byte [ebp + edx - 0x804]
push eax
push str.Detectado_AUTORUN.INF_en_la_Unidad___c__n__sSi_Desconoce_la_Aplicaci
push 0x5b6504
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
cmp dword [0x5b851c], 0
jne 0x49752a
push 0
push 0
push 0x5b6504
call sub.MFC42.DLL_AfxMessageBox
push 0x5b6504
mov ecx, 0x5b5b78
call fcn.0050f680
jmp 0x49755a
mov ecx, dword [ebp - 0xc10]
mov edx, dword [ecx + 0xc]
and edx, 0x10
test edx, edx
je 0x49754d
jmp 0x49755a
mov eax, 1
test eax, eax
jne 0x49718c
mov ecx, dword [ebp - 0xc10]
push ecx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
jmp 0x497097
mov dword [0x5b8524], 1
mov esp, ebp
pop ebp
ret