Function at 0x1400013c0
Capabilities:
Connect socket
Convert ip address from string
Execute command
Receive data
Receive data on socket
Send data
Send data on socket
Send http request
Send http request with host header
Terminate process

Disassembly:
push rbx
push rbp
push rsi
push rdi
mov eax, 0x1058
call fcn.1400033f0
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov rsi, rdx
mov rdi, rcx
mov ebp, 2
xor r8d, r8d
mov ecx, ebp
mov edx, 1
call qword [sym.imp.WS2_32.dll_socket]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x14000143f
mov ecx, 4
call fcn.140001390
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea rcx, str.Could_not_create_socket:__d_n
call fcn.140001270
lea rcx, str.pause
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov ecx, 0x50
mov word [rsp + 0x28], bp
call qword [sym.imp.WS2_32.dll_htons]
lea r8, [rsp + 0x2c]
mov rdx, rdi
mov ecx, ebp
mov word [rsp + 0x2a], ax
call qword [sym.imp.WS2_32.dll_inet_pton]
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x28]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
jns 0x1400014af
mov ecx, 4
call fcn.140001390
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea rcx, str.Error_code:__d_n
call fcn.140001270
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
lea r8, str.GET___HTTP_1.1_r_nHost:_myip.electro_r_nConnection:_close_r_n_r_n
mov edx, 0x1000
lea rcx, [rsp + 0x40]
call fcn.1400012d0
lea rax, [rsp + 0x40]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x1400014d1
xor r9d, r9d
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x140001523
mov ecx, 4
call fcn.140001390
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea rcx, str.Error_code:__d_n
call fcn.140001270
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
xor r9d, r9d
mov qword [rsp + 0x1090], r14
mov r8d, 0xfff
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_recv]
movsxd r14, eax
test eax, eax
jg 0x14000157a
mov ecx, 4
call fcn.140001390
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea rcx, str.Error_code:__d_n
call fcn.140001270
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov qword [rsp + 0x1050], r15
lea rdx, str.Content_Length:
lea r15, [rsi + r14]
mov rcx, rsi
mov byte [r15], 0
call qword [sym.imp.VCRUNTIME140.dll_strstr]
test rax, rax
jne 0x1400015ca
mov ecx, 4
call fcn.140001390
lea rcx, str.Error_code:_30030_n
call fcn.140001270
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
lea r8, [rsp + 0x20]
mov rcx, rax
lea rdx, str.Content_Length:__d
call fcn.140001330
lea rdx, str._r_n_r_n
mov rcx, rsi
call qword [sym.imp.VCRUNTIME140.dll_strstr]
mov rdi, rax
test rax, rax
jne 0x140001621
mov ecx, 4
call fcn.140001390
lea rcx, str.Error_code:_30040_n
call fcn.140001270
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
lea r8d, [rax + 4]
sub r8d, esi
sub r8d, r14d
add r8d, dword [rsp + 0x20]
test r8d, r8d
jle 0x140001685
xor r9d, r9d
mov rdx, r15
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jg 0x14000167b
mov ecx, 4
call fcn.140001390
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea rcx, str.Error_code:__d_n
call fcn.140001270
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
add eax, r14d
movsxd rcx, eax
mov byte [rcx + rsi], 0
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
mov r15, qword [rsp + 0x1050]
lea rax, [rdi + 4]
mov r14, qword [rsp + 0x1090]
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400025f0
add rsp, 0x1058
pop rdi
pop rsi
pop rbp
pop rbx
ret