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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [ebp + 8]
mov dword [ebp - 0x28], eax
mov ecx, 2
shl ecx, 0
mov edx, dword [ebp - 0x28]
movzx eax, word [edx + ecx]
cmp eax, 0x3a
jne 0x408315
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x2c], ecx
mov edx, 2
shl edx, 1
mov eax, dword [ebp - 0x2c]
movzx ecx, word [eax + edx]
cmp ecx, 0x5c
je 0x408299
mov edx, dword [ebp + 8]
mov dword [ebp - 0x30], edx
mov eax, 2
shl eax, 1
mov ecx, dword [ebp - 0x30]
movzx edx, word [ecx + eax]
cmp edx, 0x2f
jne 0x408315
mov eax, dword [ebp + 8]
mov dword [ebp - 0x34], eax
mov ecx, 2
imul edx, ecx, 0
mov eax, 2
imul ecx, eax, 0
mov eax, dword [ebp - 0x34]
mov dx, word [eax + edx]
mov word [ebp + ecx - 0x18], dx
mov eax, 2
shl eax, 0
mov ecx, 0x3a
mov word [ebp + eax - 0x18], cx
mov edx, 2
shl edx, 1
mov eax, 0x5c
mov word [ebp + edx - 0x18], ax
mov ecx, 2
imul edx, ecx, 3
xor eax, eax
mov word [ebp + edx - 0x18], ax
lea ecx, [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x408313
mov edx, dword [ebp + 8]
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x38]
push eax
call fcn.0042eaf0
add esp, 4
jmp 0x408516
jmp 0x40832c
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x3c]
push edx
call fcn.0042eaf0
add esp, 4
jmp 0x408516
push str.7ZSfx_03x.cmd
lea eax, [ebp - 0x24]
push eax
call fcn.004048b0
add esp, 8
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x40], ecx
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
mov edx, dword [ebp - 0x40]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x4084f2
lea ecx, [ebp - 0xc]
call fcn.0041bc40
push str.:Repeat_r_n
lea ecx, [ebp - 0xc]
call fcn.0041bef0
push str.del__
lea ecx, [ebp - 0xc]
call fcn.0041c280
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0xc]
call fcn.0041c210
push 0x43262c
lea ecx, [ebp - 0xc]
call fcn.0041c280
push str.if_exist__
lea ecx, [ebp - 0xc]
call fcn.0041c280
lea ecx, [ebp + 8]
push ecx
lea ecx, [ebp - 0xc]
call fcn.0041c210
push str.__goto_Repeat_r_n
lea ecx, [ebp - 0xc]
call fcn.0041c280
push str.del__
lea ecx, [ebp - 0xc]
call fcn.0041c280
lea edx, [ebp - 0x24]
push edx
lea ecx, [ebp - 0xc]
call fcn.0041c210
push 0x43262c
lea ecx, [ebp - 0xc]
call fcn.0041c280
mov eax, dword [ebp - 8]
mov dword [ebp - 0x48], eax
push 1
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 0x8c]
push edx
call fcn.00407050
add esp, 0xc
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax]
mov dword [ebp - 0x4c], ecx
push 0
lea edx, [ebp - 0x58]
push edx
mov eax, dword [ebp - 0x48]
push eax
mov ecx, dword [ebp - 0x4c]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x50]
push ecx
call fcn.0042eaf0
add esp, 4
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x54], 0
je 0x408467
mov eax, dword [ebp - 8]
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x58]
cmp ecx, dword [ebp - 0x5c]
je 0x4084b1
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x60], edx
mov eax, dword [ebp - 0x60]
push eax
call fcn.00404c20
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x64], ecx
mov edx, dword [ebp - 0x64]
push edx
call fcn.0042eaf0
add esp, 4
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x68], eax
mov ecx, dword [ebp - 0x68]
push ecx
call fcn.0042eaf0
add esp, 4
mov edx, dword [ebp + 8]
mov dword [ebp - 0x6c], edx
mov eax, dword [ebp - 0x6c]
push eax
call fcn.0042eaf0
add esp, 4
jmp 0x408516
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x70], ecx
push 0
mov edx, dword [ebp - 0x70]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x74], eax
push 0
push 0
push 0
mov ecx, dword [ebp - 0x74]
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x78], edx
mov eax, dword [ebp - 0x78]
push eax
call fcn.0042eaf0
add esp, 4
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x7c], ecx
mov edx, dword [ebp - 0x7c]
push edx
call fcn.0042eaf0
add esp, 4
mov eax, dword [ebp + 8]
mov dword [ebp - 0x80], eax
mov ecx, dword [ebp - 0x80]
push ecx
call fcn.0042eaf0
add esp, 4
mov esp, ebp
pop ebp
ret