Function at 0x406240
Capabilities:
Create process on windows
Terminate process
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x598
mov eax, dword [0x508164]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x104
lea eax, [ebp - 0x320]
mov edi, ecx
push 0
push eax
call fcn.004a5f00
push 0x104
lea eax, [ebp - 0x110]
push 0
push eax
call fcn.004a5f00
push 0x104
lea eax, [ebp - 0x530]
push 0
push eax
call fcn.004a5f00
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x320]
add esp, 0x24
push 0x208
push eax
push 0
call esi
lea eax, [ebp - 0x320]
push 0x5c
push eax
call fcn.004a4f80
add esp, 8
test eax, eax
je 0x406428
mov byte [eax], 0
lea eax, [ebp - 0x320]
push eax
push str._sdel.bat
lea eax, [ebp - 0x110]
push 0x104
push eax
call fcn.0040c260
lea eax, [ebp - 0x110]
push eax
push str.cmd__c_call___s_
lea eax, [ebp - 0x530]
push 0x104
push eax
call fcn.0040c260
lea ecx, [ebp - 0x110]
mov dword [ebp - 0x538], 0
add esp, 0x20
mov dword [ebp - 0x534], 0xf
mov byte [ebp - 0x548], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406326
sub ecx, edx
lea eax, [ebp - 0x110]
push ecx
push eax
lea ecx, [ebp - 0x548]
call fcn.0040e3a0
push 0x104
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004a5f00
push 0x104
lea eax, [ebp - 0x428]
push 0
push eax
call fcn.004a5f00
add esp, 0x18
lea eax, [ebp - 0x428]
push 0x104
push eax
push 0
call esi
test edi, edi
je 0x4063a1
lea eax, [ebp - 0x428]
push eax
push str._echo_off_r_nping_127.0.0.1__n_5___nul_r_nsc_delete_vcollectorfile_r_ndel___s__r_ndel___0_r_n
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0040c260
add esp, 0x10
jmp 0x4063ba
push str._echo_off_r_nping_127.0.0.1__n_5___nul_r_nsc_delete_vcollectorfile_r_ndel___0_r_n
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0040c260
add esp, 0xc
cmp dword [ebp - 0x534], 0x10
lea eax, [ebp - 0x548]
push 0
cmovae eax, dword [ebp - 0x548]
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40643a
mov edx, dword [ebp - 0x534]
cmp edx, 0x10
jb 0x406428
mov ecx, dword [ebp - 0x548]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40641e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40658a
push edx
push ecx
call fcn.0048d8eb
add esp, 8
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048d8b2
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x54c], 0
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406450
push 0
lea eax, [ebp - 0x54c]
sub ecx, edx
push eax
push ecx
lea eax, [ebp - 0x218]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4063ee
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
mov edx, dword [ebp - 0x534]
cmp edx, 0x10
jb 0x4064bc
mov ecx, dword [ebp - 0x548]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4064b2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40658a
push edx
push ecx
call fcn.0048d8eb
add esp, 8
xor eax, eax
mov dword [ebp - 0x598], 0x44
mov word [ebp - 0x556], ax
xorps xmm0, xmm0
mov word [ebp - 0x568], ax
lea eax, [ebp - 0x540]
push eax
lea eax, [ebp - 0x598]
movlpd qword [ebp - 0x594], xmm0
push eax
push 0
push 0
push 0x10
push 0
push 0
push 0
lea eax, [ebp - 0x530]
movlpd qword [ebp - 0x58c], xmm0
push eax
push 0
movlpd qword [ebp - 0x584], xmm0
movlpd qword [ebp - 0x57c], xmm0
movlpd qword [ebp - 0x574], xmm0
movlpd qword [ebp - 0x566], xmm0
movlpd qword [ebp - 0x55e], xmm0
movups xmmword [ebp - 0x540], xmm0
mov dword [ebp - 0x56c], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x406575
push 0xffffffffffffffff
push dword [ebp - 0x540]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
push dword [ebp - 0x540]
call esi
push dword [ebp - 0x53c]
call esi
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
xor ecx, ebp
pop esi
call fcn.0048d8b2
mov esp, ebp
pop ebp
ret
call fcn.004b0023
int3