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

Disassembly:
mov word [rsp + 0x18], r8w
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0x90
mov rax, qword [0x180011020]
xor rax, rsp
mov qword [rbp + 0x1f], rax
mov rbx, rdx
mov r12, rcx
mov qword [rbp - 0x39], rdx
mov word [rbp + 7], 0x105
mov byte [rbp + 9], 2
xor r9d, r9d
lea r8d, [r9 + 3]
lea rdx, [rbp + 7]
call qword [sym.imp.WS2_32.dll_send]
mov r9d, 8
lea r8d, [r9 - 6]
lea rdx, [rbp - 0x19]
mov rcx, r12
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jg 0x1800026d6
lea rdx, str._1__Impossible_de_se_connecter_au_serveur_proxy_SOCKS5__
jmp 0x180002c88
cmp byte [rbp - 0x19], 5
jne 0x180002c81
cmp byte [rbp - 0x18], 2
jne 0x180002c81
lfence
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x11], xmm1
xor r15d, r15d
mov qword [rbp - 1], r15
mov byte [rbp - 0x49], 1
lea r8, [rbp - 0x49]
xor edx, edx
lea rcx, [rbp - 0x11]
call fcn.180006410
mov rax, qword [0x180011078]
mov byte [rbp - 0x48], al
mov rcx, qword [rbp - 9]
cmp rcx, qword [rbp - 1]
je 0x18000272e
mov byte [rcx], al
inc rcx
mov qword [rbp - 9], rcx
jmp 0x180002742
lea r8, [rbp - 0x48]
mov rdx, rcx
lea rcx, [rbp - 0x11]
call fcn.180006410
mov rcx, qword [rbp - 9]
mov edi, r15d
cmp qword [0x180011078], rdi
jbe 0x1800027b0
mov rsi, r15
lea r14, [0x180011068]
nop dword [rax + rax]
mov rax, r14
cmp qword [reloc.WS2_32.dll_ntohs], 0x10
cmovae rax, qword [0x180011068]
movzx edx, byte [rsi + rax]
mov byte [rbp - 0x47], dl
cmp rcx, qword [rbp - 1]
je 0x18000278b
mov byte [rcx], dl
inc rcx
mov qword [rbp - 9], rcx
jmp 0x18000279f
lea r8, [rbp - 0x47]
mov rdx, rcx
lea rcx, [rbp - 0x11]
call fcn.180006410
mov rcx, qword [rbp - 9]
inc edi
inc rsi
movsxd rax, edi
cmp rax, qword [0x180011078]
jb 0x180002760
mov rax, qword [0x1800110d8]
mov byte [rbp - 0x46], al
cmp rcx, qword [rbp - 1]
je 0x1800027cb
mov byte [rcx], al
inc rcx
mov qword [rbp - 9], rcx
jmp 0x1800027df
lea r8, [rbp - 0x46]
mov rdx, rcx
lea rcx, [rbp - 0x11]
call fcn.180006410
mov rcx, qword [rbp - 9]
mov edi, r15d
cmp qword [0x1800110d8], rdi
jbe 0x180002845
mov rsi, r15
lea r14, [0x1800110c8]
mov rax, r14
cmp qword [reloc.WS2_32.dll_ntohs], 0x10
cmovae rax, qword [0x1800110c8]
movzx edx, byte [rsi + rax]
mov byte [rbp - 0x45], dl
cmp rcx, qword [rbp - 1]
je 0x180002820
mov byte [rcx], dl
inc rcx
mov qword [rbp - 9], rcx
jmp 0x180002834
lea r8, [rbp - 0x45]
mov rdx, rcx
lea rcx, [rbp - 0x11]
call fcn.180006410
mov rcx, qword [rbp - 9]
inc edi
inc rsi
movsxd rax, edi
cmp rax, qword [0x1800110d8]
jb 0x1800027f5
mov rdx, qword [rbp - 0x11]
sub rcx, rdx
xor r9d, r9d
mov r8d, ecx
mov rcx, r12
call qword [sym.imp.WS2_32.dll_send]
mov r9d, 8
lea r8d, [r9 - 6]
lea rdx, [rbp - 0x15]
mov rcx, r12
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jg 0x180002929
lfence
xor r9d, r9d
lea r8, [0x18000d5fd]
lea rdx, str._3__Impossible_de_se_connecter_au_serveur_proxy_SOCKS5__
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov rcx, r12
call qword [sym.imp.WS2_32.dll_closesocket]
nop
mov rcx, qword [rbp - 0x11]
test rcx, rcx
je 0x1800028db
mov rdx, qword [rbp - 1]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800028d5
mov rcx, qword [rcx - 8]
sub rax, rcx
add rdx, 0x27
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180002c7a
call fcn.18000b86c
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x180002915
inc rdx
cmp rdx, 0x1000
mov rcx, qword [rbx]
jb 0x180002910
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x180002d0d
mov rcx, r8
call fcn.18000b86c
mov qword [rbx + 0x10], r15
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbx], 0
jmp 0x180002cef
cmp byte [rbp - 0x15], 1
jne 0x180002c17
cmp byte [rbp - 0x14], 0
jne 0x180002c17
lfence
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x31], xmm1
mov qword [rbp - 0x21], r15
mov byte [rbp - 0x44], 5
lea r8, [rbp - 0x44]
xor edx, edx
lea rcx, [rbp - 0x31]
call fcn.180006410
mov byte [rbp - 0x43], 1
mov rcx, qword [rbp - 0x29]
mov rdi, qword [rbp - 0x21]
cmp rcx, rdi
je 0x18000297c
mov byte [rcx], 1
inc rcx
mov qword [rbp - 0x29], rcx
jmp 0x180002994
lea r8, [rbp - 0x43]
mov rdx, rcx
lea rcx, [rbp - 0x31]
call fcn.180006410
mov rdi, qword [rbp - 0x21]
mov rcx, qword [rbp - 0x29]
mov byte [rbp - 0x42], 0
cmp rcx, rdi
je 0x1800029a9
mov byte [rcx], 0
inc rcx
mov qword [rbp - 0x29], rcx
jmp 0x1800029c1
lea r8, [rbp - 0x42]
mov rdx, rcx
lea rcx, [rbp - 0x31]
call fcn.180006410
mov rdi, qword [rbp - 0x21]
mov rcx, qword [rbp - 0x29]
mov byte [rbp - 0x41], 3
cmp rcx, rdi
je 0x1800029d6
mov byte [rcx], 3
inc rcx
mov qword [rbp - 0x29], rcx
jmp 0x1800029ee
lea r8, [rbp - 0x41]
mov rdx, rcx
lea rcx, [rbp - 0x31]
call fcn.180006410
mov rdi, qword [rbp - 0x21]
mov rcx, qword [rbp - 0x29]
mov rax, qword [rbx + 0x10]
mov byte [rbp - 0x40], al
cmp rcx, rdi
je 0x180002a05
mov byte [rcx], al
inc rcx
mov qword [rbp - 0x29], rcx
jmp 0x180002a1d
lea r8, [rbp - 0x40]
mov rdx, rcx
lea rcx, [rbp - 0x31]
call fcn.180006410
mov rdi, qword [rbp - 0x21]
mov rcx, qword [rbp - 0x29]
mov r14d, r15d
cmp qword [rbx + 0x10], r14
jbe 0x180002a7b
mov rsi, r15
nop dword [rax]
mov rax, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x180002a3d
mov rax, qword [rbx]
movzx edx, byte [rsi + rax]
mov byte [rbp - 0x3f], dl
cmp rcx, rdi
je 0x180002a54
mov byte [rcx], dl
inc rcx
mov qword [rbp - 0x29], rcx
jmp 0x180002a6c
lea r8, [rbp - 0x3f]
mov rdx, rcx
lea rcx, [rbp - 0x31]
call fcn.180006410
mov rdi, qword [rbp - 0x21]
mov rcx, qword [rbp - 0x29]
inc r14d
inc rsi
movsxd rax, r14d
cmp rax, qword [rbx + 0x10]
jb 0x180002a30
cmp rcx, rdi
je 0x180002a8f
movzx eax, byte [rbp + 0x78]
mov byte [rcx], al
inc rcx
mov qword [rbp - 0x29], rcx
jmp 0x180002aa7
lea r8, [rbp + 0x78]
mov rdx, rcx
lea rcx, [rbp - 0x31]
call fcn.180006410
mov rdi, qword [rbp - 0x21]
mov rcx, qword [rbp - 0x29]
cmp rcx, rdi
je 0x180002ab7
movzx eax, byte [rbp + 0x77]
mov byte [rcx], al
inc rcx
jmp 0x180002acf
lea r8, [rbp + 0x77]
mov rdx, rcx
lea rcx, [rbp - 0x31]
call fcn.180006410
mov rdi, qword [rbp - 0x21]
mov rcx, qword [rbp - 0x29]
mov rsi, qword [rbp - 0x31]
sub rcx, rsi
xor r9d, r9d
mov r8d, ecx
mov rdx, rsi
mov rcx, r12
call qword [sym.imp.WS2_32.dll_send]
mov r9d, 8
lea r8d, [r9 + 2]
lea rdx, [rbp + 0xf]
mov rcx, r12
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jg 0x180002b6c
lfence
xor r9d, r9d
lea r8, [0x18000d5fd]
lea rdx, str._5__Impossible_de_se_connecter_au_serveur_proxy_SOCKS5__
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov rcx, r12
call qword [sym.imp.WS2_32.dll_closesocket]
nop
mov rcx, qword [rbp - 0x31]
test rcx, rcx
je 0x1800028a0
mov rdx, qword [rbp - 0x21]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x180002b62
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180002c10
call fcn.18000b86c
jmp 0x1800028a0
cmp byte [rbp + 0xf], 5
jne 0x180002bb5
cmp byte [rbp + 0x10], 0
jne 0x180002bb5
test rsi, rsi
je 0x1800028a0
sub rdi, rsi
mov rax, rsi
cmp rdi, 0x1000
jb 0x180002ba5
add rdi, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180002c10
mov rdx, rdi
mov rcx, rsi
call fcn.18000b86c
jmp 0x1800028a0
lfence
xor r9d, r9d
lea r8, [0x18000d5fd]
lea rdx, str._6__Impossible_de_se_connecter_au_serveur_proxy_SOCKS5__
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov rcx, r12
call qword [sym.imp.WS2_32.dll_closesocket]
nop
mov rcx, qword [rbp - 0x31]
test rcx, rcx
je 0x1800028a0
mov rdx, qword [rbp - 0x21]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x180002bab
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180002bab
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
lfence
xor r9d, r9d
lea r8, [0x18000d5fd]
lea rdx, str._4__Impossible_de_se_connecter_au_serveur_proxy_SOCKS5__
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov rcx, r12
call qword [sym.imp.WS2_32.dll_closesocket]
nop
mov rcx, qword [rbp - 0x11]
test rcx, rcx
je 0x1800028db
mov rdx, qword [rbp - 1]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800028d5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800028d5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
lea rdx, str._2__Impossible_de_se_connecter_au_serveur_proxy_SOCKS5__
lea r8, [0x18000d5fd]
xor r9d, r9d
lfence
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov rcx, r12
call qword [sym.imp.WS2_32.dll_closesocket]
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x180002cdd
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x180002cd8
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x180002d0d
mov rcx, r8
call fcn.18000b86c
xor r15d, r15d
mov qword [rbx + 0x10], r15
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbx], r15b
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.18000b1f0
add rsp, 0x90
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3