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

Disassembly:
mov eax, 0x4207ac
call fcn.00414f70
sub esp, 0x844
push ebx
push esi
push edi
push str.:RepeatDEL___s_if_exist___s__goto_RepeatDEL___s_
lea ecx, [ebp - 0x1c]
call fcn.00401126
mov eax, dword [0x434820]
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]
push ecx
lea eax, [ebp - 0x850]
mov ecx, esp
mov dword [ebp - 0x28], esp
push eax
call fcn.00401126
lea eax, [ebp - 0x24]
push eax
call fcn.0040adc6
pop ecx
pop ecx
lea eax, [ebp - 0x24]
push str._selfdestruct.bat
push eax
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 4], 1
call fcn.0040ba78
mov edx, dword [0x434820]
mov ecx, ebx
xor eax, eax
lea edi, [ebp - 0x438]
mov dword [ebp - 0x43c], 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 - 0x640]
mov dword [ebp - 0x644], edx
mov byte [ebp - 4], 2
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 - 0x644]
push eax
push esi
call edi
push dword [ebp - 0x18]
lea eax, [ebp - 0x234]
push eax
call fcn.004164cb
pop ecx
lea eax, [ebp - 0x43c]
pop ecx
push esi
xor esi, esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x43c]
lea ecx, [ebp - 0x14]
push eax
call fcn.00401126
push esi
push 0x80
push 2
push esi
push esi
lea eax, [ebp - 0x234]
push 0x40000000
push eax
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x20], eax
je 0x40b0c5
lea ecx, [ebp - 0x10]
call fcn.004010db
push dword [ebp - 0x18]
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 4
push dword [ebp - 0x14]
push dword [ebp - 0x14]
push dword [ebp - 0x1c]
push eax
call fcn.00401808
add esp, 0x14
lea ecx, [ebp - 0x10]
push 0x426ba8
push 0x426ba0
call fcn.0040153e
mov eax, dword [ebp - 0x10]
cmp eax, esi
mov dword [ebp - 0x28], eax
jne 0x40b04f
xor edi, edi
jmp 0x40b07c
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.00416200
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 - 0x10]
call fcn.004011cb
push eax
push edi
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x644]
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 - 0x10]
mov byte [ebp - 4], 3
call fcn.00401cbe
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.00401cbe
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.00401cbe
and byte [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.00401cbe
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00401cbe
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x85c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret