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

Disassembly:
mov qword [rsp + 0x10], rbx
mov word [rsp + 0x18], r8w
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0x90
mov rax, qword [0x180011020]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rbx, rdx
mov r14, rcx
mov word [rbp - 9], 0x105
mov byte [rbp - 7], 2
xor r9d, r9d
lea r8d, [r9 + 3]
lea rdx, [rbp - 9]
call qword [sym.imp.WS2_32.dll_send]
mov r9d, 8
lea r8d, [r9 - 6]
lea rdx, [rbp - 0x2d]
mov rcx, r14
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jg 0x180002214
lea rdx, str._1__Impossible_de_se_connecter_au_serveur_proxy_SOCKS5__
jmp 0x18000261a
cmp byte [rbp - 0x2d], 5
jne 0x180002613
cmp byte [rbp - 0x2c], 2
jne 0x180002613
lfence
xor eax, eax
xorps xmm1, xmm1
movdqu xmmword [rbp - 1], xmm1
mov qword [rbp + 0xf], rax
mov byte [rbp - 0x39], 1
lea r8, [rbp - 0x39]
xor edx, edx
lea rcx, [rbp - 1]
call fcn.180006410
mov rax, qword [0x180011078]
mov byte [rbp - 0x38], al
mov rcx, qword [rbp + 7]
cmp rcx, qword [rbp + 0xf]
je 0x18000226b
mov byte [rcx], al
inc rcx
mov qword [rbp + 7], rcx
jmp 0x18000227f
lea r8, [rbp - 0x38]
mov rdx, rcx
lea rcx, [rbp - 1]
call fcn.180006410
mov rcx, qword [rbp + 7]
xor edi, edi
cmp qword [0x180011078], rdi
jbe 0x1800022e3
xor esi, esi
lea r15, [0x180011068]
mov rax, r15
cmp qword [reloc.WS2_32.dll_ntohs], 0x10
cmovae rax, qword [0x180011068]
movzx edx, byte [rsi + rax]
mov byte [rbp - 0x37], dl
cmp rcx, qword [rbp + 0xf]
je 0x1800022be
mov byte [rcx], dl
inc rcx
mov qword [rbp + 7], rcx
jmp 0x1800022d2
lea r8, [rbp - 0x37]
mov rdx, rcx
lea rcx, [rbp - 1]
call fcn.180006410
mov rcx, qword [rbp + 7]
inc edi
inc rsi
movsxd rax, edi
cmp rax, qword [0x180011078]
jb 0x180002293
mov rax, qword [0x1800110d8]
mov byte [rbp - 0x36], al
cmp rcx, qword [rbp + 0xf]
je 0x1800022fe
mov byte [rcx], al
inc rcx
mov qword [rbp + 7], rcx
jmp 0x180002312
lea r8, [rbp - 0x36]
mov rdx, rcx
lea rcx, [rbp - 1]
call fcn.180006410
mov rcx, qword [rbp + 7]
xor edi, edi
cmp qword [0x1800110d8], rdi
jbe 0x180002380
xor esi, esi
lea r15, [0x1800110c8]
nop word [rax + rax]
mov rax, r15
cmp qword [reloc.WS2_32.dll_ntohs], 0x10
cmovae rax, qword [0x1800110c8]
movzx edx, byte [rsi + rax]
mov byte [rbp - 0x35], dl
cmp rcx, qword [rbp + 0xf]
je 0x18000235b
mov byte [rcx], dl
inc rcx
mov qword [rbp + 7], rcx
jmp 0x18000236f
lea r8, [rbp - 0x35]
mov rdx, rcx
lea rcx, [rbp - 1]
call fcn.180006410
mov rcx, qword [rbp + 7]
inc edi
inc rsi
movsxd rax, edi
cmp rax, qword [0x1800110d8]
jb 0x180002330
mov rdx, qword [rbp - 1]
sub rcx, rdx
xor r9d, r9d
mov r8d, ecx
mov rcx, r14
call qword [sym.imp.WS2_32.dll_send]
mov r9d, 8
lea r8d, [r9 - 6]
lea rdx, [rbp - 0x29]
mov rcx, r14
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jg 0x1800023bd
lea rdx, str._3__Impossible_de_se_connecter_au_serveur_proxy_SOCKS5__
jmp 0x1800025b5
cmp byte [rbp - 0x29], 1
jne 0x1800025ae
cmp byte [rbp - 0x28], 0
jne 0x1800025ae
lfence
xor eax, eax
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x21], xmm1
mov qword [rbp - 0x11], rax
mov byte [rbp - 0x34], 5
lea r8, [rbp - 0x34]
xor edx, edx
lea rcx, [rbp - 0x21]
call fcn.180006410
mov byte [rbp - 0x33], 1
mov rax, qword [rbp - 0x19]
cmp rax, qword [rbp - 0x11]
je 0x18000240f
mov byte [rax], 1
inc rax
mov qword [rbp - 0x19], rax
jmp 0x180002423
lea r8, [rbp - 0x33]
mov rdx, rax
lea rcx, [rbp - 0x21]
call fcn.180006410
mov rax, qword [rbp - 0x19]
mov byte [rbp - 0x32], 0
cmp rax, qword [rbp - 0x11]
je 0x180002439
mov byte [rax], 0
inc rax
mov qword [rbp - 0x19], rax
jmp 0x18000244d
lea r8, [rbp - 0x32]
mov rdx, rax
lea rcx, [rbp - 0x21]
call fcn.180006410
mov rax, qword [rbp - 0x19]
mov byte [rbp - 0x31], 1
cmp rax, qword [rbp - 0x11]
je 0x180002463
mov byte [rax], 1
inc rax
mov qword [rbp - 0x19], rax
jmp 0x180002477
lea r8, [rbp - 0x31]
mov rdx, rax
lea rcx, [rbp - 0x21]
call fcn.180006410
mov rax, qword [rbp - 0x19]
mov edi, 4
nop dword [rax]
cmp rax, qword [rbp - 0x11]
je 0x180002494
movzx ecx, byte [rbx]
mov byte [rax], cl
inc rax
mov qword [rbp - 0x19], rax
jmp 0x1800024a7
mov r8, rbx
mov rdx, rax
lea rcx, [rbp - 0x21]
call fcn.180006410
mov rax, qword [rbp - 0x19]
inc rbx
sub rdi, 1
jne 0x180002480
cmp rax, qword [rbp - 0x11]
je 0x1800024c5
movzx ecx, byte [rbp + 0x78]
mov byte [rax], cl
inc rax
mov qword [rbp - 0x19], rax
jmp 0x1800024d9
lea r8, [rbp + 0x78]
mov rdx, rax
lea rcx, [rbp - 0x21]
call fcn.180006410
mov rax, qword [rbp - 0x19]
cmp rax, qword [rbp - 0x11]
je 0x1800024ea
movzx ecx, byte [rbp + 0x77]
mov byte [rax], cl
inc rax
jmp 0x1800024fe
lea r8, [rbp + 0x77]
mov rdx, rax
lea rcx, [rbp - 0x21]
call fcn.180006410
mov rax, qword [rbp - 0x19]
mov rbx, qword [rbp - 0x21]
sub rax, rbx
xor r9d, r9d
mov r8d, eax
mov rdx, rbx
mov rcx, r14
call qword [sym.imp.WS2_32.dll_send]
mov r9d, 8
lea r8d, [r9 + 2]
lea rdx, [rbp + 0x17]
mov rcx, r14
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jg 0x18000253b
lea rdx, str._5__Impossible_de_se_connecter_au_serveur_proxy_SOCKS5__
jmp 0x18000254e
cmp byte [rbp + 0x17], 5
jne 0x180002547
cmp byte [rbp + 0x18], 0
je 0x180002570
lea rdx, str._6__Impossible_de_se_connecter_au_serveur_proxy_SOCKS5__
lfence
xor r9d, r9d
lea r8, [0x18000d5fd]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov rcx, r14
call qword [sym.imp.WS2_32.dll_closesocket]
mov rbx, qword [rbp - 0x21]
test rbx, rbx
je 0x1800025d4
mov rdx, qword [rbp - 0x11]
sub rdx, rbx
mov rax, rbx
cmp rdx, 0x1000
jb 0x1800025a4
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800025a4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rbx
call fcn.18000b86c
jmp 0x1800025d4
lea rdx, str._4__Impossible_de_se_connecter_au_serveur_proxy_SOCKS5__
lfence
xor r9d, r9d
lea r8, [0x18000d5fd]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov rcx, r14
call qword [sym.imp.WS2_32.dll_closesocket]
nop
mov rcx, qword [rbp - 1]
test rcx, rcx
je 0x180002638
mov rdx, qword [rbp + 0xf]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000260c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18000260c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18000b86c
jmp 0x180002638
lea rdx, str._2__Impossible_de_se_connecter_au_serveur_proxy_SOCKS5__
lfence
xor r9d, r9d
lea r8, [0x18000d5fd]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov rcx, r14
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.18000b1f0
mov rbx, qword [rsp + 0xc8]
add rsp, 0x90
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret