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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50b0bf
mov eax, dword fs:[0]
push eax
sub esp, 0x2d8
mov eax, dword [0x72400c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
test edi, edi
je 0x421936
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x421936
mov al, 1
jmp 0x421bf3
lea eax, [ebp - 0x118]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x421953
xor al, al
jmp 0x421bf3
mov dword [ebp - 0x224], 0xf
mov dword [ebp - 0x228], 0
mov byte [ebp - 0x238], 0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0
push eax
lea ecx, [ebp - 0x2c8]
call fcn.0041cb10
add esp, 8
mov esi, eax
mov byte [ebp - 4], 1
cmp byte [ebp - 0x118], 0
mov dword [ebp - 0x23c], 0xf
mov dword [ebp - 0x240], 0
mov byte [ebp - 0x250], 0
jne 0x4219ba
xor ecx, ecx
jmp 0x4219cc
lea ecx, [ebp - 0x118]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4219c3
sub ecx, edx
push ecx
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x250]
call fcn.00407f60
push 0x70febc
lea edx, [ebp - 0x250]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x298]
call fcn.00428290
push esi
mov edx, eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x280]
call fcn.00428780
push str..bat
mov edx, eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x268]
call fcn.00428290
add esp, 0xc
mov esi, eax
lea eax, [ebp - 0x238]
cmp eax, esi
je 0x421a75
mov eax, dword [ebp - 0x224]
cmp eax, 0x10
jb 0x421a4e
inc eax
lea ecx, [ebp - 0x238]
push eax
push dword [ebp - 0x238]
call fcn.00408600
push esi
lea ecx, [ebp - 0x238]
mov dword [ebp - 0x224], 0xf
mov dword [ebp - 0x228], 0
mov byte [ebp - 0x238], 0
call fcn.00408190
mov eax, dword [ebp - 0x254]
cmp eax, 0x10
jb 0x421a93
inc eax
lea ecx, [ebp - 0x268]
push eax
push dword [ebp - 0x268]
call fcn.00408600
mov eax, dword [ebp - 0x26c]
mov dword [ebp - 0x254], 0xf
mov dword [ebp - 0x258], 0
mov byte [ebp - 0x268], 0
cmp eax, 0x10
jb 0x421acc
inc eax
lea ecx, [ebp - 0x280]
push eax
push dword [ebp - 0x280]
call fcn.00408600
mov eax, dword [ebp - 0x284]
mov dword [ebp - 0x26c], 0xf
mov dword [ebp - 0x270], 0
mov byte [ebp - 0x280], 0
cmp eax, 0x10
jb 0x421b05
inc eax
lea ecx, [ebp - 0x298]
push eax
push dword [ebp - 0x298]
call fcn.00408600
mov eax, dword [ebp - 0x23c]
mov dword [ebp - 0x284], 0xf
mov dword [ebp - 0x288], 0
mov byte [ebp - 0x298], 0
cmp eax, 0x10
jb 0x421b3e
inc eax
lea ecx, [ebp - 0x250]
push eax
push dword [ebp - 0x250]
call fcn.00408600
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x2b4]
mov dword [ebp - 0x23c], 0xf
mov dword [ebp - 0x240], 0
mov byte [ebp - 0x250], 0
cmp eax, 0x10
jb 0x421b7b
inc eax
lea ecx, [ebp - 0x2c8]
push eax
push dword [ebp - 0x2c8]
call fcn.00408600
cmp dword [ebp - 0x224], 0x10
lea eax, [ebp - 0x238]
push 0
cmovae eax, dword [ebp - 0x238]
push 0x80
push 2
push 0
push 7
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x421bd1
lea eax, [ebp - 0x220]
test edi, edi
jne 0x421c0f
push 0x104
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x421c1e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor bl, bl
mov ecx, dword [ebp - 0x224]
cmp ecx, 0x10
jb 0x421bf1
inc ecx
push ecx
push dword [ebp - 0x238]
lea ecx, [ebp - 0x238]
call fcn.00408600
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ce564
mov esp, ebp
pop ebp
ret
push 0x105
push edi
push eax
call fcn.004ee5e8
add esp, 0xc
push str.:m_r_n_ping__n_3_127.0.0.1___NUL_r_n_del__
lea ecx, [ebp - 0x2e0]
call fcn.00407af0
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 6
push ecx
mov edx, eax
lea ecx, [ebp - 0x2c8]
call fcn.00428290
push str.____NUL_r_n_if_exist__
mov edx, eax
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x250]
call fcn.00428290
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 8
push ecx
mov edx, eax
lea ecx, [ebp - 0x268]
call fcn.00428290
push str.__goto_m_r_n_del__
mov edx, eax
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x280]
call fcn.00428290
lea ecx, [ebp - 0x238]
mov byte [ebp - 4], 0xa
push ecx
mov edx, eax
lea ecx, [ebp - 0x298]
call fcn.00414bd0
push str.____NUL_r_n
mov edx, eax
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x2b0]
call fcn.00428290
mov eax, dword [ebp - 0x284]
add esp, 0x18
cmp eax, 0x10
jb 0x421cd9
inc eax
lea ecx, [ebp - 0x298]
push eax
push dword [ebp - 0x298]
call fcn.00408600
mov eax, dword [ebp - 0x26c]
mov dword [ebp - 0x284], 0xf
mov dword [ebp - 0x288], 0
mov byte [ebp - 0x298], 0
cmp eax, 0x10
jb 0x421d12
inc eax
lea ecx, [ebp - 0x280]
push eax
push dword [ebp - 0x280]
call fcn.00408600
mov eax, dword [ebp - 0x254]
mov dword [ebp - 0x26c], 0xf
mov dword [ebp - 0x270], 0
mov byte [ebp - 0x280], 0
cmp eax, 0x10
jb 0x421d4b
inc eax
lea ecx, [ebp - 0x268]
push eax
push dword [ebp - 0x268]
call fcn.00408600
mov eax, dword [ebp - 0x23c]
mov dword [ebp - 0x254], 0xf
mov dword [ebp - 0x258], 0
mov byte [ebp - 0x268], 0
cmp eax, 0x10
jb 0x421d84
inc eax
lea ecx, [ebp - 0x250]
push eax
push dword [ebp - 0x250]
call fcn.00408600
mov eax, dword [ebp - 0x2b4]
mov dword [ebp - 0x23c], 0xf
mov dword [ebp - 0x240], 0
mov byte [ebp - 0x250], 0
cmp eax, 0x10
jb 0x421dbd
inc eax
lea ecx, [ebp - 0x2c8]
push eax
push dword [ebp - 0x2c8]
call fcn.00408600
mov eax, dword [ebp - 0x2cc]
mov dword [ebp - 0x2b4], 0xf
mov dword [ebp - 0x2b8], 0
mov byte [ebp - 0x2c8], 0
cmp eax, 0x10
jb 0x421df6
inc eax
lea ecx, [ebp - 0x2e0]
push eax
push dword [ebp - 0x2e0]
call fcn.00408600
cmp dword [ebp - 0x29c], 0x10
lea ecx, [ebp - 0x2e4]
push 0
push ecx
push dword [ebp - 0x2a0]
lea eax, [ebp - 0x2b0]
cmovae eax, dword [ebp - 0x2b0]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
test eax, eax
jne 0x421e30
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor bl, bl
jmp 0x421e7d
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x224], 0x10
lea eax, [ebp - 0x238]
push 0
cmovae eax, dword [ebp - 0x238]
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
cmp eax, 0x1f
jae 0x421e5c
xor bl, bl
jmp 0x421e7d
cmp dword [ebp - 0x224], 0x10
lea eax, [ebp - 0x238]
push 4
cmovae eax, dword [ebp - 0x238]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
mov bl, 1
mov eax, dword [ebp - 0x29c]
cmp eax, 0x10
jb 0x421e9b
inc eax
lea ecx, [ebp - 0x2b0]
push eax
push dword [ebp - 0x2b0]
call fcn.00408600
mov dword [ebp - 0x29c], 0xf
mov dword [ebp - 0x2a0], 0
mov byte [ebp - 0x2b0], 0
jmp 0x421bd3