Function at 0x406fb0
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, 0x38
lea ecx, [ebp + 8]
call fcn.00401330
mov ecx, 2
shl ecx, 0
movzx edx, word [eax + ecx]
cmp edx, 0x3a
jne 0x407074
lea ecx, [ebp + 8]
call fcn.00401330
mov ecx, 2
shl ecx, 1
movzx edx, word [eax + ecx]
cmp edx, 0x5c
je 0x407003
lea ecx, [ebp + 8]
call fcn.00401330
mov ecx, 2
shl ecx, 1
movzx edx, word [eax + ecx]
cmp edx, 0x2f
jne 0x407074
lea ecx, [ebp + 8]
call fcn.00401330
mov ecx, 2
imul edx, ecx, 0
mov ecx, 2
imul ecx, ecx, 0
mov dx, word [eax + edx]
mov word [ebp + ecx - 0x14], dx
mov eax, 2
shl eax, 0
mov ecx, 0x3a
mov word [ebp + eax - 0x14], cx
mov edx, 2
shl edx, 1
mov eax, 0x5c
mov word [ebp + edx - 0x14], ax
mov ecx, 2
imul edx, ecx, 3
xor eax, eax
mov word [ebp + edx - 0x14], ax
lea ecx, [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x407072
lea ecx, [ebp + 8]
call fcn.004017d0
jmp 0x407212
jmp 0x407081
lea ecx, [ebp + 8]
call fcn.004017d0
jmp 0x407212
push str.7ZSfx_03x.cmd
lea edx, [ebp - 0x2c]
push edx
call fcn.004047a0
add esp, 8
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea ecx, [ebp - 0x2c]
call fcn.00401330
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x407202
lea ecx, [ebp - 0x20]
call fcn.004012a0
push str.:Repeat_r_n
lea ecx, [ebp - 0x20]
call fcn.00402100
push str.del__
lea ecx, [ebp - 0x20]
call fcn.00418ee0
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x20]
call fcn.00418e80
push 0x425598
lea ecx, [ebp - 0x20]
call fcn.00418ee0
push str.if_exist__
lea ecx, [ebp - 0x20]
call fcn.00418ee0
lea ecx, [ebp + 8]
push ecx
lea ecx, [ebp - 0x20]
call fcn.00418e80
push str.__goto_Repeat_r_n
lea ecx, [ebp - 0x20]
call fcn.00418ee0
push str.del__
lea ecx, [ebp - 0x20]
call fcn.00418ee0
lea edx, [ebp - 0x2c]
push edx
lea ecx, [ebp - 0x20]
call fcn.00418e80
push 0x425598
lea ecx, [ebp - 0x20]
call fcn.00418ee0
push 0
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x20]
call fcn.004026f0
push eax
push 1
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x38]
push edx
call fcn.00406b20
add esp, 0xc
mov ecx, eax
call fcn.00403c60
push eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 8], eax
lea ecx, [ebp - 0x38]
call fcn.004017d0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], 0
je 0x4071a2
lea ecx, [ebp - 0x20]
call fcn.004026f0
cmp dword [ebp - 0xc], eax
je 0x4071cd
lea ecx, [ebp - 0x2c]
call fcn.00401330
push eax
call fcn.00404aa0
add esp, 4
lea ecx, [ebp - 0x20]
call fcn.004017d0
lea ecx, [ebp - 0x2c]
call fcn.004017d0
lea ecx, [ebp + 8]
call fcn.004017d0
jmp 0x407212
push 0
lea ecx, [ebp + 8]
call fcn.00401330
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
push 0
push 0
lea ecx, [ebp - 0x2c]
call fcn.00401330
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp - 0x20]
call fcn.004017d0
lea ecx, [ebp - 0x2c]
call fcn.004017d0
lea ecx, [ebp + 8]
call fcn.004017d0
mov esp, ebp
pop ebp
ret