Function at 0x408a71
Capabilities:
Create process on windows
Get common file path
Write and execute a file
Write file on windows

Disassembly:
mov eax, 0x40c10c
call fcn.0040b8a0
sub esp, 0x844
push ebx
push esi
push edi
push str.:RepeatDEL___s_if_exist___s__goto_RepeatDEL___s_DEL___s_
lea ecx, [ebp - 0x24]
call fcn.004010f3
mov eax, dword [0x42571c]
mov ebx, 0x81
mov dword [ebp - 0x850], eax
mov ecx, ebx
xor eax, eax
lea edi, [ebp - 0x84c]
rep stosd dword es:[edi], eax
and dword [ebp - 4], 0
mov esi, 0x104
stosw word es:[edi], ax
lea eax, [ebp - 0x850]
push esi
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x20]
call fcn.004010a8
push ecx
lea eax, [ebp - 0x850]
mov ecx, esp
mov dword [ebp - 0x28], esp
push eax
mov byte [ebp - 4], 1
call fcn.004010f3
lea eax, [ebp - 0x18]
push eax
call fcn.004089cd
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.004011e6
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.004019e0
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x10]
push eax
call fcn.004010b4
push str._selfdestruct.bat
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.004012ce
mov edx, dword [0x42571c]
mov ecx, ebx
xor eax, eax
lea edi, [ebp - 0x640]
mov dword [ebp - 0x644], edx
mov dword [ebp - 0x234], edx
rep stosd dword es:[edi], eax
mov ecx, ebx
lea edi, [ebp - 0x230]
rep stosd dword es:[edi], eax
mov ecx, ebx
lea edi, [ebp - 0x438]
mov dword [ebp - 0x43c], edx
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x234]
push eax
push esi
call edi
lea eax, [ebp - 0x43c]
push eax
push esi
call edi
push dword [ebp - 0x10]
lea eax, [ebp - 0x234]
push eax
call sub.MSVCRT.dll_wcscat
push dword [ebp - 0x10]
lea eax, [ebp - 0x43c]
push eax
call sub.MSVCRT.dll_wcscat
add esp, 0x10
lea eax, [ebp - 0x644]
push esi
xor esi, esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x644]
lea ecx, [ebp - 0x1c]
push eax
call fcn.004010f3
push esi
push 0x80
push 2
push esi
push esi
lea eax, [ebp - 0x234]
push 0x40000000
push eax
mov byte [ebp - 4], 4
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x18], eax
je 0x408ca5
lea ecx, [ebp - 0x14]
call fcn.004010a8
push 0x4217fc
lea eax, [ebp - 0x14]
push dword [ebp - 0x10]
mov byte [ebp - 4], 5
push dword [ebp - 0x1c]
push dword [ebp - 0x1c]
push dword [ebp - 0x24]
push eax
call fcn.00401525
add esp, 0x18
lea ecx, [ebp - 0x14]
push 0x4141c4
push 0x414af0
call fcn.004012fe
mov eax, dword [ebp - 0x14]
cmp eax, esi
mov dword [ebp - 0x28], eax
jne 0x408c2f
xor edi, edi
jmp 0x408c5c
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ebx, [eax + eax + 2]
mov eax, ebx
add eax, 3
and al, 0xfc
call fcn.0040b940
mov edi, esp
push esi
push esi
push ebx
and byte [edi], 0
push edi
push 0xffffffffffffffff
push dword [ebp - 0x28]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [ebp - 0x2c]
push esi
push eax
lea ecx, [ebp - 0x14]
call fcn.0040119c
push eax
push edi
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x43c]
push esi
push eax
lea eax, [ebp - 0x234]
push esi
push eax
push str.open
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call fcn.004019e0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 3
call fcn.004019e0
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.004019e0
and byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.004019e0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.004019e0
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x85c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret