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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
push ebx
push esi
push edi
push str.:RepeatDEL___s_if_exist___s__goto_RepeatDEL___s_DEL___s_
lea ecx, [ebp - 0x14]
call fcn.0040108c
mov ax, word [0x41e7e0]
push 0x40
pop esi
mov word [ebp - 0x42c], ax
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0x42a]
mov ebx, 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x42c]
push ebx
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x10]
call fcn.00401041
push ecx
lea eax, [ebp - 0x42c]
mov ecx, esp
push eax
call fcn.0040108c
lea eax, [ebp - 4]
push eax
call fcn.004053a6
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.00401100
lea ecx, [ebp - 4]
call fcn.00401a9f
lea eax, [ebp - 0x10]
lea ecx, [ebp - 8]
push eax
call fcn.0040104d
push str._selfdestruct.bat
lea ecx, [ebp - 8]
call fcn.004011a4
mov dx, word [0x41e7e0]
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0x322]
mov word [ebp - 0x324], dx
mov word [ebp - 0x11c], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0x11a]
mov word [ebp - 0x220], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0x21e]
mov esi, dword [sym.imp.KERNEL32.dll_GetTempPathA]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x11c]
push eax
push ebx
call esi
lea eax, [ebp - 0x220]
push eax
push ebx
call esi
mov edi, dword [ebp - 8]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x11c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [ebp - 0x220]
and ecx, 3
push ebx
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp - 8]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [ebp - 0x324]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x324]
lea ecx, [ebp - 0xc]
push eax
call fcn.0040108c
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
push 0x80
push 2
push esi
push esi
lea eax, [ebp - 0x11c]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x40563d
lea ecx, [ebp - 4]
call fcn.00401041
lea eax, [ebp - 0x11c]
push eax
push 0x42dc2c
push dword [ebp - 0xc]
lea eax, [ebp - 4]
push dword [ebp - 0xc]
push dword [ebp - 0x14]
push eax
call fcn.0040164f
add esp, 0x18
lea ecx, [ebp - 4]
push 0x41a284
push 0x41a43c
call fcn.00401374
mov ebx, dword [ebp - 4]
lea eax, [ebp - 0x18]
push esi
push eax
lea ecx, [ebp - 4]
call fcn.004010e7
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x220]
push esi
push eax
lea eax, [ebp - 0x11c]
push esi
push eax
push str.open
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea ecx, [ebp - 4]
call fcn.00401a9f
lea ecx, [ebp - 0xc]
call fcn.00401a9f
lea ecx, [ebp - 8]
call fcn.00401a9f
lea ecx, [ebp - 0x10]
call fcn.00401a9f
lea ecx, [ebp - 0x14]
call fcn.00401a9f
pop edi
pop esi
pop ebx
leave
ret