Function at 0x4024e0
Capabilities:
Create process on windows
Delete file
Get common file path
Move file
Resolve function by parsing pe exports
Resume thread
Self delete
Set current directory
Write and execute a file
Write file on windows

Disassembly:
mov eax, dword [0x40a86c]
sub esp, 0x574
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push edi
push 0x104
push eax
push eax
call esi
mov eax, dword [0x40a86c]
push eax
call fcn.004012f0
mov ecx, dword [0x40a870]
mov edx, dword [0x40a8a4]
add esp, 4
push 0x104
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov eax, dword [0x40a870]
push 0x104
push eax
push eax
call esi
mov ecx, dword [0x40a86c]
push 0
push 0
lea eax, [esp + 0x74]
push 0
push eax
push ecx
call fcn.00403a3e
lea edx, [esp + 0x80]
push edx
call fcn.004012a0
add esp, 0x18
lea eax, [esp + 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov edi, str.Delme.bat
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x6c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x80
push 2
mov ecx, ebx
push eax
push eax
and ecx, 3
lea eax, [esp + 0x80]
push 0x40000000
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x402831
mov edx, dword [0x40a86c]
mov eax, dword [0x40a870]
lea ecx, [esp + 0x6c]
push ebp
push ecx
push edx
push eax
push eax
lea eax, [esp + 0x288]
push str._echo_off_r_n:Repeat_r_ndel__s_r_nif_exist__s_goto_Repeat_r_nrmdir__s_r_n_cls_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
lea ecx, [esp + 0x28]
lea edi, [esp + 0x278]
xor eax, eax
push 0
push ecx
or ecx, 0xffffffff
lea edx, [esp + 0x280]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x40a89c]
test eax, eax
je 0x402630
push 4
lea eax, [esp + 0x74]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
jmp 0x402774
lea ecx, [esp + 0x174]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edx, [esp + 0x174]
push str.WININIT.INI
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
lea eax, [esp + 0x174]
lea ecx, [esp + 0x70]
push eax
push ecx
push 0x40a108
push str.Rename
call esi
lea edx, [esp + 0x174]
push edx
push 0
push 0
push 0
call esi
lea eax, [esp + 0x174]
push 2
push eax
call dword [sym.imp.KERNEL32.dll__lopen]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x402774
mov esi, dword [sym.imp.KERNEL32.dll__llseek]
push 2
push 0
push ebp
call esi
push 0
push 0
push ebp
mov ebx, eax
call esi
lea ecx, [esp + 0x10]
lea edx, [ebx + 0x200]
push ecx
push edx
call fcn.00401320
add esp, 8
test eax, eax
je 0x40276d
mov eax, dword [esp + 0x10]
push ebx
push eax
push ebp
call dword [sym.imp.KERNEL32.dll__lread]
test eax, eax
je 0x402760
mov edx, dword [esp + 0x10]
lea eax, [ebx - 4]
test eax, eax
jbe 0x402760
mov ecx, 0xfffffffe
sub ecx, edx
mov dword [esp + 0x24], ecx
cmp byte [edx], 0x78
jne 0x40272f
cmp byte [edx + 1], 0x79
jne 0x40272f
cmp byte [edx + 2], 0x7a
jne 0x40272f
cmp byte [edx + 3], 0x3d
jne 0x40272f
lea edi, [esp + 0x70]
or ecx, 0xffffffff
xor eax, eax
lea esi, [edx + 4]
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x70]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x40273d
mov ecx, dword [esp + 0x24]
inc edx
lea eax, [ebx - 4]
lea esi, [ecx + edx + 2]
cmp esi, eax
jb 0x4026f9
jmp 0x402760
push 0
push 0
push ebp
mov byte [edx], 0x4e
mov byte [edx + 1], 0x55
mov byte [edx + 2], 0x4c
call dword [sym.imp.KERNEL32.dll__llseek]
mov ecx, dword [esp + 0x10]
push ebx
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll__lwrite]
lea edx, [esp + 0x10]
push edx
call fcn.004013a0
add esp, 4
push ebp
call dword [sym.imp.KERNEL32.dll__lclose]
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x2c]
lea edx, [esp + 0x2c]
rep stosd dword es:[edi], eax
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], eax
push ecx
mov dword [esp + 0x20], eax
push edx
push eax
push eax
push 0x44
push eax
push eax
mov dword [esp + 0x3c], eax
mov word [esp + 0x78], ax
push eax
lea eax, [esp + 0x90]
mov dword [esp + 0x4c], 0x44
push eax
push 0
mov dword [esp + 0x80], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
pop ebp
je 0x402824
mov ecx, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push 0xfffffffffffffff1
push ecx
call esi
push 0xf
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
push 0x80
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
mov edx, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [esp + 0x14]
push ecx
call esi
pop edi
pop esi
pop ebx
add esp, 0x574
ret
lea edx, [esp + 0x6c]
push edx
call fcn.0040376d
add esp, 4
pop edi
pop esi
pop ebx
add esp, 0x574
ret