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

Disassembly:
mov eax, 0x420dcc
call fcn.00414f70
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.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]
lea ecx, [ebp - 0x20]
call fcn.004010db
push ecx
lea eax, [ebp - 0x850]
mov ecx, esp
mov dword [ebp - 0x28], esp
push eax
mov byte [ebp - 4], 1
call fcn.00401126
lea eax, [ebp - 0x18]
push eax
call fcn.00412793
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.00401222
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.00401cbe
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x14]
push eax
call fcn.004010e7
push str._selfdestruct.bat
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.0040130a
mov edx, dword [0x434820]
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 - 0x14]
lea eax, [ebp - 0x234]
push eax
call fcn.004164cb
push dword [ebp - 0x14]
lea eax, [ebp - 0x43c]
push eax
call fcn.004164cb
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.00401126
lea eax, [ebp - 0x234]
mov byte [ebp - 4], 4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
push 0x80
push 2
push esi
push esi
lea eax, [ebp - 0x234]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x18], eax
je 0x412ab5
lea ecx, [ebp - 0x10]
call fcn.004010db
lea eax, [ebp - 0x234]
mov byte [ebp - 4], 5
push eax
push 0x487774
push dword [ebp - 0x1c]
lea eax, [ebp - 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x24]
push eax
call fcn.00401808
add esp, 0x18
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 0x412a3f
xor edi, edi
jmp 0x412a6c
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 - 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 - 0x10]
mov byte [ebp - 4], 4
call fcn.00401cbe
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 3
call fcn.00401cbe
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00401cbe
and byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.00401cbe
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
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