Function at 0x403020
Capabilities:
Create process on windows
Create process suspended
Get common file path
Self delete
Set current directory
Write and execute a file
Write file on windows

Disassembly:
mov eax, dword [0x40e8fc]
sub esp, 0x56c
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 [0x40e8fc]
push eax
call fcn.004012f0
mov ecx, dword [0x40e900]
mov edx, dword [0x40e94c]
add esp, 4
push 0x104
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov eax, dword [0x40e900]
push 0x104
push eax
push eax
call esi
lea eax, [esp + 0x168]
push 0x208
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [esp + 0x168]
push ecx
call fcn.004012f0
add esp, 4
lea edx, [esp + 0x168]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov ecx, dword [0x40e8fc]
push 0
push 0
lea eax, [esp + 0x6c]
push 0
push eax
push ecx
call fcn.00404c5e
lea edx, [esp + 0x78]
push edx
call fcn.004012a0
mov edi, str.Delme.bat
or ecx, 0xffffffff
xor eax, eax
add esp, 0x18
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x64]
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 eax
push 0x80
push 2
mov ecx, ebx
push eax
push eax
and ecx, 3
lea eax, [esp + 0x78]
push 0x40000000
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40324e
mov edx, dword [0x40e8fc]
mov eax, dword [0x40e900]
lea ecx, [esp + 0x64]
push ebp
push ecx
push edx
push eax
push eax
lea eax, [esp + 0x17c]
push str._echo_off_r_n:Repeat_r_ndel__s_r_nif_exist__s_goto_Repeat_r_nrmdir__s_r_ndel__s_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
lea ecx, [esp + 0x20]
lea edi, [esp + 0x16c]
xor eax, eax
push 0
push ecx
or ecx, 0xffffffff
lea edx, [esp + 0x174]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call ebx
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x24]
lea edx, [esp + 0x16c]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], eax
mov edi, str.command.com__C
mov dword [esp + 0x14], eax
or ecx, 0xffffffff
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], 0x44
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x1c], eax
mov word [esp + 0x54], ax
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
lea edx, [esp + 0x16c]
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x68]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x50], 1
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x28]
push ecx
push 0
push 0
push 0
push 0
push 0
lea edx, [esp + 0x188]
push 0
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
pop ebp
je 0x403241
mov eax, dword [esp + 0xc]
push eax
call ebx
mov ecx, dword [esp + 0x10]
push ecx
call ebx
pop edi
pop esi
pop ebx
add esp, 0x56c
ret
lea edx, [esp + 0x64]
push edx
call fcn.0040498a
add esp, 4
pop edi
pop esi
pop ebx
add esp, 0x56c
ret