Function at 0x407f00
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, 0x40
lea ecx, [ebp + 8]
call fcn.004013a0
mov ecx, 2
shl ecx, 0
movzx edx, word [eax + ecx]
cmp edx, 0x3a
jne 0x407fc4
lea ecx, [ebp + 8]
call fcn.004013a0
mov ecx, 2
shl ecx, 1
movzx edx, word [eax + ecx]
cmp edx, 0x5c
je 0x407f53
lea ecx, [ebp + 8]
call fcn.004013a0
mov ecx, 2
shl ecx, 1
movzx edx, word [eax + ecx]
cmp edx, 0x2f
jne 0x407fc4
lea ecx, [ebp + 8]
call fcn.004013a0
mov ecx, 2
imul edx, ecx, 0
mov ecx, 2
imul ecx, ecx, 0
mov dx, word [eax + edx]
mov word [ebp + ecx - 0x1c], dx
mov eax, 2
shl eax, 0
mov ecx, 0x3a
mov word [ebp + eax - 0x1c], cx
mov edx, 2
shl edx, 1
mov eax, 0x5c
mov word [ebp + edx - 0x1c], ax
mov ecx, 2
imul edx, ecx, 3
xor eax, eax
mov word [ebp + edx - 0x1c], ax
lea ecx, [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x407fc2
lea ecx, [ebp + 8]
call fcn.00401880
jmp 0x40816e
jmp 0x407fd1
lea ecx, [ebp + 8]
call fcn.00401880
jmp 0x40816e
push str.7ZSfx_03x.cmd
lea edx, [ebp - 0x34]
push edx
call fcn.00404a20
add esp, 8
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea ecx, [ebp - 0x34]
call fcn.004013a0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x40815e
lea ecx, [ebp - 0x28]
call fcn.00401310
push str.:Repeat_r_n
lea ecx, [ebp - 0x28]
call fcn.004021b0
push str.del__
lea ecx, [ebp - 0x28]
call fcn.0041aed0
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x28]
call fcn.0041ae70
push 0x43163c
lea ecx, [ebp - 0x28]
call fcn.0041aed0
push str.if_exist__
lea ecx, [ebp - 0x28]
call fcn.0041aed0
lea ecx, [ebp + 8]
push ecx
lea ecx, [ebp - 0x28]
call fcn.0041ae70
push str.__goto_Repeat_r_n
lea ecx, [ebp - 0x28]
call fcn.0041aed0
push str.del__
lea ecx, [ebp - 0x28]
call fcn.0041aed0
lea edx, [ebp - 0x34]
push edx
lea ecx, [ebp - 0x28]
call fcn.0041ae70
push 0x43163c
lea ecx, [ebp - 0x28]
call fcn.0041aed0
lea ecx, [ebp - 0x28]
call fcn.004027b0
mov dword [ebp - 8], eax
push 1
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x40]
push ecx
call fcn.00406e40
add esp, 0xc
mov ecx, eax
call fcn.00403e50
mov dword [ebp - 0xc], eax
push 0
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x40]
call fcn.00401880
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x10], 0
je 0x4080fe
lea ecx, [ebp - 0x28]
call fcn.004027b0
cmp dword [ebp - 0x14], eax
je 0x408129
lea ecx, [ebp - 0x34]
call fcn.004013a0
push eax
call fcn.00404d30
add esp, 4
lea ecx, [ebp - 0x28]
call fcn.00401880
lea ecx, [ebp - 0x34]
call fcn.00401880
lea ecx, [ebp + 8]
call fcn.00401880
jmp 0x40816e
push 0
lea ecx, [ebp + 8]
call fcn.004013a0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
push 0
push 0
lea ecx, [ebp - 0x34]
call fcn.004013a0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp - 0x28]
call fcn.00401880
lea ecx, [ebp - 0x34]
call fcn.00401880
lea ecx, [ebp + 8]
call fcn.00401880
mov esp, ebp
pop ebp
ret