Function at 0x14001150a
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Convert ip address from string
Create tcp socket
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
jmp 0x14001bf20
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0xde8
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x282
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xe08]
mov rax, qword [0x140033040]
xor rax, rbp
mov qword [rbp + 0xdb8], rax
lea rcx, reloc.WS2_32.dll_accept
call fcn.140011992
nop
mov qword [rbp + 8], 0xffffffffffffffff
lea rdx, str.Cration_du_socket_pour_le_proxy_SOCKS5...
lea rcx, [rbp + 0x5f8]
call fcn.140011401
nop
lea rcx, [rbp + 0x5f8]
call fcn.1400118ca
nop
lea rcx, [rbp + 0x5f8]
call fcn.1400111db
nop
mov r8d, 6
mov edx, 1
mov ecx, 2
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0xffffffffffffffff
jne 0x14001c05e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea rcx, [rbp + 0x638]
call fcn.140011136
mov qword [rbp + 0xd68], rax
mov rax, qword [rbp + 0xd68]
mov qword [rbp + 0xd70], rax
mov r8, qword [rbp + 0xd70]
lea rdx, str.Erreur_lors_de_la_cration_du_socket_:
lea rcx, [rbp + 0x678]
call fcn.1400119dd
mov qword [rbp + 0xd78], rax
mov rax, qword [rbp + 0xd78]
mov qword [rbp + 0xd80], rax
mov rcx, qword [rbp + 0xd80]
call fcn.1400118ca
nop
lea rcx, [rbp + 0x678]
call fcn.1400111db
nop
lea rcx, [rbp + 0x638]
call fcn.1400111db
nop
mov rax, 0xffffffffffffffff
jmp 0x14001c90a
mov eax, 2
mov word [rbp + 0x28], ax
movzx ecx, word [rbp + 0xdf8]
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp + 0x2a], ax
lea r8, [rbp + 0x2c]
mov rdx, qword [rbp + 0xdf0]
mov ecx, 2
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jg 0x14001c0d7
lea rdx, str.Adresse_invalide___Adresse_non_supporte
lea rcx, [rbp + 0x6b8]
call fcn.140011401
nop
lea rcx, [rbp + 0x6b8]
call fcn.1400118ca
nop
lea rcx, [rbp + 0x6b8]
call fcn.1400111db
nop
mov rcx, qword [rbp + 8]
call qword [sym.imp.WS2_32.dll_closesocket]
nop
mov rax, 0xffffffffffffffff
jmp 0x14001c90a
lea rdx, str.Tentative_de_connexion_au_proxy_SOCKS5...
lea rcx, [rbp + 0x6f8]
call fcn.140011401
nop
lea rcx, [rbp + 0x6f8]
call fcn.1400118ca
nop
lea rcx, [rbp + 0x6f8]
call fcn.1400111db
nop
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rbp + 0x28]
mov rcx, qword [rbp + 8]
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x14001c1b8
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea rcx, [rbp + 0x738]
call fcn.140011136
mov qword [rbp + 0xd68], rax
mov rax, qword [rbp + 0xd68]
mov qword [rbp + 0xd70], rax
mov r8, qword [rbp + 0xd70]
lea rdx, str.Erreur_de_connexion_au_proxy_SOCKS5_:
lea rcx, [rbp + 0x778]
call fcn.1400119dd
mov qword [rbp + 0xd78], rax
mov rax, qword [rbp + 0xd78]
mov qword [rbp + 0xd80], rax
mov rcx, qword [rbp + 0xd80]
call fcn.1400118ca
nop
lea rcx, [rbp + 0x778]
call fcn.1400111db
nop
lea rcx, [rbp + 0x738]
call fcn.1400111db
nop
mov rcx, qword [rbp + 8]
call qword [sym.imp.WS2_32.dll_closesocket]
nop
mov rax, 0xffffffffffffffff
jmp 0x14001c90a
lea rdx, str.Connexion_au_proxy_SOCKS5_russie
lea rcx, [rbp + 0x7b8]
call fcn.140011401
nop
lea rcx, [rbp + 0x7b8]
call fcn.1400118ca
nop
lea rcx, [rbp + 0x7b8]
call fcn.1400111db
nop
mov byte [rbp + 0x54], 5
mov byte [rbp + 0x55], 1
mov byte [rbp + 0x56], 0
lea rdx, str.Envoi_de_la_requte_dinitialisation_SOCKS5...
lea rcx, [rbp + 0x7f8]
call fcn.140011401
nop
lea rcx, [rbp + 0x7f8]
call fcn.1400118ca
nop
lea rcx, [rbp + 0x7f8]
call fcn.1400111db
nop
xor r9d, r9d
mov r8d, 3
lea rdx, [rbp + 0x54]
mov rcx, qword [rbp + 8]
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x14001c2d6
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea rcx, [rbp + 0x838]
call fcn.140011136
mov qword [rbp + 0xd68], rax
mov rax, qword [rbp + 0xd68]
mov qword [rbp + 0xd70], rax
mov r8, qword [rbp + 0xd70]
lea rdx, str.Erreur_lors_de_lenvoi_de_la_requte_dinitialisation_SOCKS5_:
lea rcx, [rbp + 0x878]
call fcn.1400119dd
mov qword [rbp + 0xd78], rax
mov rax, qword [rbp + 0xd78]
mov qword [rbp + 0xd80], rax
mov rcx, qword [rbp + 0xd80]
call fcn.1400118ca
nop
lea rcx, [rbp + 0x878]
call fcn.1400111db
nop
lea rcx, [rbp + 0x838]
call fcn.1400111db
nop
mov rcx, qword [rbp + 8]
call qword [sym.imp.WS2_32.dll_closesocket]
nop
mov rax, 0xffffffffffffffff
jmp 0x14001c90a
lea rdx, str.Attente_de_la_rponse_dinitialisation_SOCKS5...
lea rcx, [rbp + 0x8b8]
call fcn.140011401
nop
lea rcx, [rbp + 0x8b8]
call fcn.1400118ca
nop
lea rcx, [rbp + 0x8b8]
call fcn.1400111db
nop
xor r9d, r9d
mov r8d, 2
lea rdx, [rbp + 0x74]
mov rcx, qword [rbp + 8]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jg 0x14001c364
lea rdx, str.Erreur_lors_de_la_rception_de_la_rponse_dinitialisation_SOCKS5
lea rcx, [rbp + 0x8f8]
call fcn.140011401
nop
lea rcx, [rbp + 0x8f8]
call fcn.1400118ca
nop
lea rcx, [rbp + 0x8f8]
call fcn.1400111db
nop
mov rcx, qword [rbp + 8]
call qword [sym.imp.WS2_32.dll_closesocket]
nop
mov rax, 0xffffffffffffffff
jmp 0x14001c90a
mov eax, 1
imul rax, rax, 1
movzx eax, byte [rbp + rax + 0x74]
mov edx, eax
lea rcx, [rbp + 0x938]
call fcn.140011136
mov qword [rbp + 0xd68], rax
mov rax, qword [rbp + 0xd68]
mov qword [rbp + 0xd70], rax
mov eax, 1
imul rax, rax, 0
movzx eax, byte [rbp + rax + 0x74]
mov edx, eax
lea rcx, [rbp + 0x978]
call fcn.140011136
mov qword [rbp + 0xd78], rax
mov rax, qword [rbp + 0xd78]
mov qword [rbp + 0xd80], rax
mov r8, qword [rbp + 0xd80]
lea rdx, str.Rponse_dinitialisation_SOCKS5_reue_:
lea rcx, [rbp + 0x9b8]
call fcn.1400119dd
mov qword [rbp + 0xd88], rax
mov rax, qword [rbp + 0xd88]
mov qword [rbp + 0xd90], rax
lea r8, [0x14002caa4]
mov rdx, qword [rbp + 0xd90]
lea rcx, [rbp + 0x9f8]
call fcn.1400118d9
mov qword [rbp + 0xd98], rax
mov rax, qword [rbp + 0xd98]
mov qword [rbp + 0xda0], rax
mov r8, qword [rbp + 0xd70]
mov rdx, qword [rbp + 0xda0]
lea rcx, [rbp + 0xa38]
call fcn.140011104
mov qword [rbp + 0xda8], rax
mov rax, qword [rbp + 0xda8]
mov qword [rbp + 0xdb0], rax
mov rcx, qword [rbp + 0xdb0]
call fcn.1400118ca
nop
lea rcx, [rbp + 0xa38]
call fcn.1400111db
nop
lea rcx, [rbp + 0x9f8]
call fcn.1400111db
nop
lea rcx, [rbp + 0x9b8]
call fcn.1400111db
nop
lea rcx, [rbp + 0x978]
call fcn.1400111db
nop
lea rcx, [rbp + 0x938]
call fcn.1400111db
nop
mov eax, 1
imul rax, rax, 0
movzx eax, byte [rbp + rax + 0x74]
cmp eax, 5
jne 0x14001c4c6
mov eax, 1
imul rax, rax, 1
movzx eax, byte [rbp + rax + 0x74]
test eax, eax
je 0x14001c50b
lea rdx, str.Rponse_dinitialisation_SOCKS5_invalide
lea rcx, [rbp + 0xa78]
call fcn.140011401
nop
lea rcx, [rbp + 0xa78]
call fcn.1400118ca
nop
lea rcx, [rbp + 0xa78]
call fcn.1400111db
nop
mov rcx, qword [rbp + 8]
call qword [sym.imp.WS2_32.dll_closesocket]
nop
mov rax, 0xffffffffffffffff
jmp 0x14001c90a
mov byte [rbp + 0xa0], 5
mov byte [rbp + 0xa1], 1
mov byte [rbp + 0xa2], 0
mov byte [rbp + 0xa3], 3
lea rax, [rbp + 0xa4]
mov rdi, rax
xor eax, eax
mov ecx, 0x102
rep stosb byte [rdi], al
mov rcx, qword [rbp + 0xde0]
call fcn.1400113f7
mov qword [rbp + 0x1c8], rax
mov eax, 1
imul rax, rax, 4
movzx ecx, byte [rbp + 0x1c8]
mov byte [rbp + rax + 0xa0], cl
lea rax, [rbp + 0xa5]
mov r8, qword [rbp + 0x1c8]
mov rdx, qword [rbp + 0xde0]
mov rcx, rax
call fcn.14001145b
nop
mov eax, dword [rbp + 0xde8]
sar eax, 8
and eax, 0xff
mov rcx, qword [rbp + 0x1c8]
mov byte [rbp + rcx + 0xa5], al
mov eax, dword [rbp + 0xde8]
and eax, 0xff
mov rcx, qword [rbp + 0x1c8]
mov byte [rbp + rcx + 0xa6], al
lea rdx, str.Envoi_de_la_requte_de_connexion_SOCKS5...
lea rcx, [rbp + 0xab8]
call fcn.140011401
nop
lea rcx, [rbp + 0xab8]
call fcn.1400118ca
nop
lea rcx, [rbp + 0xab8]
call fcn.1400111db
nop
mov rax, qword [rbp + 0x1c8]
add rax, 7
xor r9d, r9d
mov r8d, eax
lea rdx, [rbp + 0xa0]
mov rcx, qword [rbp + 8]
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x14001c6a6
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea rcx, [rbp + 0xaf8]
call fcn.140011136
mov qword [rbp + 0xd68], rax
mov rax, qword [rbp + 0xd68]
mov qword [rbp + 0xd70], rax
mov r8, qword [rbp + 0xd70]
lea rdx, str.Erreur_lors_de_lenvoi_de_la_requte_de_connexion_SOCKS5_:
lea rcx, [rbp + 0xb38]
call fcn.1400119dd
mov qword [rbp + 0xd78], rax
mov rax, qword [rbp + 0xd78]
mov qword [rbp + 0xd80], rax
mov rcx, qword [rbp + 0xd80]
call fcn.1400118ca
nop
lea rcx, [rbp + 0xb38]
call fcn.1400111db
nop
lea rcx, [rbp + 0xaf8]
call fcn.1400111db
nop
mov rcx, qword [rbp + 8]
call qword [sym.imp.WS2_32.dll_closesocket]
nop
mov rax, 0xffffffffffffffff
jmp 0x14001c90a
lea rdx, str.Attente_de_la_rponse_de_connexion_SOCKS5...
lea rcx, [rbp + 0xb78]
call fcn.140011401
nop
lea rcx, [rbp + 0xb78]
call fcn.1400118ca
nop
lea rcx, [rbp + 0xb78]
call fcn.1400111db
nop
xor r9d, r9d
mov r8d, 0xa
lea rdx, [rbp + 0x1e8]
mov rcx, qword [rbp + 8]
call qword [sym.imp.WS2_32.dll_recv]
mov dword [rbp + 0x214], eax
cmp dword [rbp + 0x214], 0
jg 0x14001c797
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea rcx, [rbp + 0xbb8]
call fcn.140011136
mov qword [rbp + 0xd68], rax
mov rax, qword [rbp + 0xd68]
mov qword [rbp + 0xd70], rax
mov r8, qword [rbp + 0xd70]
lea rdx, str.Erreur_lors_de_la_rception_de_la_rponse_de_connexion_SOCKS5_:
lea rcx, [rbp + 0xbf8]
call fcn.1400119dd
mov qword [rbp + 0xd78], rax
mov rax, qword [rbp + 0xd78]
mov qword [rbp + 0xd80], rax
mov rcx, qword [rbp + 0xd80]
call fcn.1400118ca
nop
lea rcx, [rbp + 0xbf8]
call fcn.1400111db
nop
lea rcx, [rbp + 0xbb8]
call fcn.1400111db
nop
mov rcx, qword [rbp + 8]
call qword [sym.imp.WS2_32.dll_closesocket]
nop
mov rax, 0xffffffffffffffff
jmp 0x14001c90a
mov eax, 1
imul rax, rax, 1
movzx eax, byte [rbp + rax + 0x1e8]
mov edx, eax
lea rcx, [rbp + 0xc38]
call fcn.140011136
mov qword [rbp + 0xd68], rax
mov rax, qword [rbp + 0xd68]
mov qword [rbp + 0xd70], rax
mov r8, qword [rbp + 0xd70]
lea rdx, str.Rponse_de_connexion_SOCKS5_reue_:
lea rcx, [rbp + 0xc78]
call fcn.1400119dd
mov qword [rbp + 0xd78], rax
mov rax, qword [rbp + 0xd78]
mov qword [rbp + 0xd80], rax
mov rcx, qword [rbp + 0xd80]
call fcn.1400118ca
nop
lea rcx, [rbp + 0xc78]
call fcn.1400111db
nop
lea rcx, [rbp + 0xc38]
call fcn.1400111db
nop
mov eax, 1
imul rax, rax, 1
movzx eax, byte [rbp + rax + 0x1e8]
test eax, eax
je 0x14001c8d8
mov eax, 1
imul rax, rax, 1
movzx eax, byte [rbp + rax + 0x1e8]
mov edx, eax
lea rcx, [rbp + 0xcb8]
call fcn.140011136
mov qword [rbp + 0xd68], rax
mov rax, qword [rbp + 0xd68]
mov qword [rbp + 0xd70], rax
mov r8, qword [rbp + 0xd70]
lea rdx, str.La_connexion_SOCKS5_a_chou_avec_la_rponse_:
lea rcx, [rbp + 0xcf8]
call fcn.1400119dd
mov qword [rbp + 0xd78], rax
mov rax, qword [rbp + 0xd78]
mov qword [rbp + 0xd80], rax
mov rcx, qword [rbp + 0xd80]
call fcn.1400118ca
nop
lea rcx, [rbp + 0xcf8]
call fcn.1400111db
nop
lea rcx, [rbp + 0xcb8]
call fcn.1400111db
nop
mov rcx, qword [rbp + 8]
call qword [sym.imp.WS2_32.dll_closesocket]
nop
mov rax, 0xffffffffffffffff
jmp 0x14001c90a
lea rdx, str.Connexion_SOCKS5_tablie_avec_succs
lea rcx, [rbp + 0xd38]
call fcn.140011401
nop
lea rcx, [rbp + 0xd38]
call fcn.1400118ca
nop
lea rcx, [rbp + 0xd38]
call fcn.1400111db
nop
mov rax, qword [rbp + 8]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x14002b9b0]
call fcn.1400117e4
mov rax, rdi
mov rcx, qword [rbp + 0xdb8]
xor rcx, rbp
call fcn.140011456
lea rsp, [rbp + 0xdc8]
pop rdi
pop rbp
ret