Function at 0x4016e0
Capabilities:
Create process on windows
Resume thread
Write and execute a file
Write file on windows

Disassembly:
sub esp, 0x580
push ebp
push esi
push edi
push 0
push 0x8000080
push 2
push 0
push 0
push 0x40000000
push str.DirectoryRemovalutility.bat
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x401910
mov dl, byte [0x40ada0]
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x26d]
mov byte [esp + 0x26c], dl
mov byte [esp + 0x168], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0x169]
mov byte [esp + 0x64], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, pe_nt_image_headers32
xor eax, eax
lea edi, [esp + 0x65]
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x270]
mov dword [esp + 0x10], eax
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x16c]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x68]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x16c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x401910
lea ecx, [esp + 0x168]
lea edx, [esp + 0x64]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 0x64]
push 0x5c
push eax
call fcn.00402ef8
mov byte [eax], 0
mov edi, str.Delay.exe
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x6c]
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, [esp + 0x47c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x70]
push ecx
call fcn.004029d0
add esp, 0x10
mov esi, eax
cmp esi, 0xffffffff
push str.DirectoryRemovalutility.bat
je 0x40184b
lea edx, [esp + 0x16c]
lea eax, [esp + 0x16c]
push edx
lea ecx, [esp + 0x6c]
push eax
lea edx, [esp + 0x70]
push ecx
push edx
lea eax, [esp + 0x280]
push str.__s__r_ndel___s__r_n:Repeat_r_ndel___s__r_nif_exist___s__goto_Repeat_r_ndel___s__r_n
push eax
call fcn.0040309f
add esp, 0x1c
jmp 0x401870
lea ecx, [esp + 0x16c]
lea edx, [esp + 0x16c]
push ecx
push edx
lea eax, [esp + 0x278]
push str.:Repeat_r_ndel___s__r_nif_exist___s__goto_Repeat_r_ndel___s__r_n
push eax
call fcn.0040309f
add esp, 0x14
push esi
call fcn.00402a9a
add esp, 4
lea ecx, [esp + 0xc]
lea edx, [esp + 0x26c]
push 0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [esp + 0x278]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x401910
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x20]
lea edx, [esp + 0x20]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 0x44
push ecx
push edx
push 0x40a0d0
push eax
push 0x24
push eax
push eax
push eax
push str.DirectoryRemovalutility.bat
push eax
mov dword [esp + 0x74], 1
mov word [esp + 0x78], ax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
cmp eax, 1
jne 0x401910
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [esp + 0x14]
push ecx
call esi
mov edx, dword [esp + 0x10]
push edx
call esi
pop edi
pop esi
pop ebp
add esp, 0x580
ret