Function at 0x4049ca
Capabilities:
Create process on windows
Get disk information
Self delete
Set file attributes
Write and execute a file
Write file on windows

Disassembly:
mov eax, 0x4131df
call fcn.00412810
sub esp, 0x34
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp word [esi + 2], 0x3a
mov dword [ebp - 4], ebx
jne 0x404ba3
mov ax, word [esi + 4]
cmp ax, 0x5c
je 0x404a00
cmp ax, 0x2f
jne 0x404ba3
mov ax, word [esi]
mov word [ebp - 0x1c], ax
lea eax, [ebp - 0x1c]
push eax
mov word [ebp - 0x1a], 0x3a
mov word [ebp - 0x18], 0x5c
mov word [ebp - 0x16], bx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x404ba3
lea eax, [ebp - 0x34]
push str.7ZSfx_03x.cmd
push eax
call fcn.004042d7
pop ecx
pop ecx
push ebx
push pe_nt_image_headers32
push 2
push ebx
push ebx
push 0x40000000
push dword [ebp - 0x34]
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
je 0x404b5b
push edi
lea ecx, [ebp - 0x28]
call fcn.004015d5
push str.:Repeat_r_n
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.004014ed
mov edi, str.del__
push edi
lea ecx, [ebp - 0x28]
call fcn.004023bc
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x28]
call fcn.004015a6
mov esi, 0x4160e8
push esi
lea ecx, [ebp - 0x28]
call fcn.004023bc
push str.if_exist__
lea ecx, [ebp - 0x28]
call fcn.004023bc
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x28]
call fcn.004015a6
push str.__goto_Repeat_r_n
lea ecx, [ebp - 0x28]
call fcn.004023bc
push edi
lea ecx, [ebp - 0x28]
call fcn.004023bc
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x28]
call fcn.004015a6
push esi
lea ecx, [ebp - 0x28]
call fcn.004023bc
push 1
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00402641
mov eax, dword [eax]
add esp, 0xc
push ebx
lea ecx, [ebp - 0x14]
push ecx
push dword [ebp - 0x24]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x40]
mov esi, eax
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, ebx
pop edi
je 0x404b73
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x24]
jne 0x404b73
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
push ebx
push ebx
push dword [ebp - 0x34]
push 0x4160a4
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push dword [ebp - 0x28]
mov byte [ebp - 4], 1
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov esi, dword [ebp + 8]
pop ecx
push dword [ebp - 0x34]
mov byte [ebp - 4], bl
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
or dword [ebp - 4], 0xffffffff
push esi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x404bad
push dword [ebp - 0x34]
call fcn.00402c3b
push dword [ebp - 0x28]
mov byte [ebp - 4], 1
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x34]
mov byte [ebp - 4], bl
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
push dword [ebp + 8]
or dword [ebp - 4], 0xffffffff
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 0x10
jmp 0x404bae
or dword [ebp - 4], 0xffffffff
push esi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret