Function at 0x1400029c0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Convert ip address from string
Create tcp socket
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x110]
sub rsp, 0x210
mov rax, qword [0x140037080]
xor rax, rsp
mov qword [rbp + 0x100], rax
mov ecx, 0x202
lea rdx, [rsp + 0x60]
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov edx, 1
mov ebx, 2
mov r8d, 6
mov ecx, ebx
call qword [sym.imp.WS2_32.dll_socket]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140002b65
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xor eax, eax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rax
mov r8d, 0x19
lea rdx, str.____Error_creating_socket
lea rcx, [rsp + 0x20]
call fcn.1400072e0
nop
mov ebx, 0xc
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
movzx edx, bx
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
lea rdx, [rsp + 0x20]
cmp qword [rsp + 0x38], 0xf
cmova rdx, qword [rsp + 0x20]
mov r8, qword [rsp + 0x30]
lea rbx, [0x140038440]
mov rcx, rbx
call fcn.140008050
mov rax, qword [0x140038440]
movsxd rax, dword [rax + 4]
mov rax, qword [rax + rbx + 0x40]
mov rcx, qword [rax + 8]
mov qword [rsp + 0x48], rcx
mov rax, qword [rcx]
call qword [rax + htons]
nop
lea rcx, [rsp + 0x40]
call fcn.140006c60
mov r8, qword [rax]
mov dl, 0xa
mov rcx, rax
call qword [r8 + 0x40]
movzx edi, al
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140002aed
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, rax
test rax, rax
je 0x140002aed
mov rax, qword [rax]
mov edx, 1
call qword [rax]
movzx edx, dil
mov rcx, rbx
call fcn.140007b00
mov rcx, rbx
call fcn.140007990
mov ebx, 7
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
movzx edx, bx
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
nop
mov rdx, qword [rsp + 0x38]
cmp rdx, 0xf
jbe 0x140002b5b
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002b56
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002e5a
call fcn.1400096c0
mov eax, 1
jmp 0x140002e2c
mov word [rsp + 0x50], bx
mov ecx, 0x50
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x52], ax
lea r8, [rsp + 0x54]
lea rdx, str.198.251.81.124
mov ecx, ebx
call qword [sym.imp.WS2_32.dll_inet_pton]
mov r8d, 0x10
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_connect]
xorps xmm0, xmm0
lea rcx, [rsp + 0x20]
movups xmmword [rsp + 0x20], xmm0
cmp eax, 0xffffffff
jne 0x140002cf5
xor eax, eax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rax
mov r8d, 0x1e
lea rdx, str.____Error_connecting_to_server
call fcn.1400072e0
nop
mov ebx, 0xc
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
movzx edx, bx
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
lea rdx, [rsp + 0x20]
cmp qword [rsp + 0x38], 0xf
cmova rdx, qword [rsp + 0x20]
mov r8, qword [rsp + 0x30]
lea rbx, [0x140038440]
mov rcx, rbx
call fcn.140008050
mov rax, qword [0x140038440]
movsxd rax, dword [rax + 4]
mov rax, qword [rax + rbx + 0x40]
mov rcx, qword [rax + 8]
mov qword [rsp + 0x48], rcx
mov rax, qword [rcx]
call qword [rax + htons]
nop
lea rcx, [rsp + 0x40]
call fcn.140006c60
mov r8, qword [rax]
mov dl, 0xa
mov rcx, rax
call qword [r8 + 0x40]
movzx esi, al
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140002c74
mov rdx, qword [rcx]
call qword [rdx + 0x10]
test rax, rax
je 0x140002c74
mov r8, qword [rax]
mov edx, 1
mov rcx, rax
call qword [r8]
movzx edx, sil
mov rcx, rbx
call fcn.140007b00
mov rcx, rbx
call fcn.140007990
mov ebx, 7
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
movzx edx, bx
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
nop
mov rdx, qword [rsp + 0x38]
cmp rdx, 0xf
jbe 0x140002ce2
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002cdd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002e60
call fcn.1400096c0
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, 1
jmp 0x140002e2c
xor eax, eax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rax
mov r8d, 0x10
lea rdx, str.___Ping_success
call fcn.1400072e0
nop
mov ebx, 0xa
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
movzx edx, bx
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
lea rdx, [rsp + 0x20]
cmp qword [rsp + 0x38], 0xf
cmova rdx, qword [rsp + 0x20]
mov r8, qword [rsp + 0x30]
lea rbx, [0x140038440]
mov rcx, rbx
call fcn.140008050
mov rax, qword [0x140038440]
movsxd rax, dword [rax + 4]
mov rax, qword [rax + rbx + 0x40]
mov rcx, qword [rax + 8]
mov qword [rsp + 0x48], rcx
mov rax, qword [rcx]
call qword [rax + htons]
nop
lea rcx, [rsp + 0x40]
call fcn.140006c60
mov r8, qword [rax]
mov dl, 0xa
mov rcx, rax
call qword [r8 + 0x40]
movzx esi, al
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140002db1
mov rdx, qword [rcx]
call qword [rdx + 0x10]
test rax, rax
je 0x140002db1
mov r8, qword [rax]
mov edx, 1
mov rcx, rax
call qword [r8]
movzx edx, sil
mov rcx, rbx
call fcn.140007b00
mov rcx, rbx
call fcn.140007990
mov ebx, 7
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
movzx edx, bx
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
nop
mov rdx, qword [rsp + 0x38]
cmp rdx, 0xf
jbe 0x140002e1b
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002e16
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002e54
call fcn.1400096c0
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
mov rcx, qword [rbp + 0x100]
xor rcx, rsp
call fcn.1400096a0
lea r11, [rsp + 0x210]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
call fcn.1400113a4
int3
call fcn.1400113a4
int3
call fcn.1400113a4
int3