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

Disassembly:
mov eax, 0x43896c
call fcn.00437bf0
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.00402cdf
mov eax, dword [0x45689c]
mov ecx, 0x81
mov dword [ebp - 0x850], eax
xor eax, eax
lea edi, [ebp - 0x84c]
mov esi, 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x850]
xor ebx, ebx
push esi
push eax
push ebx
mov dword [ebp - 4], ebx
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.00402cdf
lea eax, [ebp - 0x24]
push eax
call fcn.004086b9
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.004074af
mov edx, dword [0x45689c]
mov ecx, 0x81
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, 0x81
lea edi, [ebp - 0x230]
rep stosd dword es:[edi], eax
mov ecx, 0x81
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 sub.MSVCRT.dll_wcscat
pop ecx
lea eax, [ebp - 0x43c]
pop ecx
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x43c]
lea ecx, [ebp - 0x14]
push eax
call fcn.00402cdf
push ebx
push 0x80
push 2
push ebx
push ebx
lea eax, [ebp - 0x234]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x20], eax
je 0x4089da
mov eax, dword [0x444130]
mov dword [ebp - 0x10], eax
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.004030fb
add esp, 0x14
lea ecx, [ebp - 0x10]
push 0x445334
push 0x44532c
call fcn.0040348c
mov eax, dword [ebp - 0x10]
cmp eax, ebx
mov dword [ebp - 0x28], eax
jne 0x408967
xor esi, esi
jmp 0x408996
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.00437c10
mov esi, esp
push ebx
push ebx
push edi
push esi
push 0xffffffffffffffff
push dword [ebp - 0x28]
mov byte [esi], bl
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax - 8]
lea ecx, [ebp - 0x2c]
push ebx
push ecx
push eax
push esi
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 ebx
push eax
lea eax, [ebp - 0x234]
push ebx
push eax
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.00402cb3
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.00402cb3
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.00402cb3
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], bl
call fcn.00402cb3
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00402cb3
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x85c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret