Function at 0x1401a7210
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x40
lea rsi, [rcx + 0x11570]
mov rbx, rcx
mov ecx, dword [rsi]
xor ebp, ebp
mov rax, rdx
test ecx, ecx
jne 0x1401a730a
cmp rax, 0xffffffffffffffff
jne 0x1401a7261
lea r8, str.Bad_socket_provided
mov rcx, rbx
lea edx, [rax - 0x2c]
mov rbx, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
jmp fcn.1401c1b80
lea rcx, [rsp + 0x70]
mov dword [rsp + 0x70], 4
mov qword [rsp + 0x20], rcx
lea r15, [rbx + 0x250]
mov rcx, rax
mov qword [r15], rax
lea r9, [rsp + 0x80]
mov edx, 0xffff
mov r8d, 0x1007
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
je 0x1401a72b2
mov dword [rbx + 0x260], ebp
mov dword [rsi], 2
lea rsi, [rbx + 0x11570]
jmp 0x1401a731a
mov ecx, dword [rsp + 0x80]
mov eax, ebp
test ecx, ecx
sete al
mov dword [rbx + 0x260], eax
test ecx, ecx
jne 0x1401a72a3
mov rcx, qword [r15]
lea r8, [rsp + 0x70]
mov edx, 0x8004667e
mov dword [rsp + 0x70], 1
call qword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
je 0x1401a72a3
lea r8, str.Failed_changing_sockets_blocking_state_to_non_blocking
mov edx, eax
mov rcx, rbx
mov rbx, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
jmp fcn.1401c1b80
lea r15, [rbx + 0x250]
cmp ecx, 2
jne 0x1401a7434
lea r14, [rbx + 0x11448]
mov edi, 0x18
lea rdx, str.SSH_2.0_libssh2_1.11.0_r_n
cmp dword [r14], ebp
jne 0x1401a7374
mov rax, qword [rbx + 0x1a8]
mov rcx, r14
test rax, rax
je 0x1401a736a
mov rdi, 0xffffffffffffffff
nop dword [rax + rax]
inc rdi
cmp byte [rax + rdi], bpl
jne 0x1401a7350
mov rdx, rax
lea rcx, [rbx + 0x11448]
lea rsi, [rbx + 0x11570]
mov dword [r14], 2
mov r14, rcx
mov rax, qword [rbx + 0x11550]
mov r8, rdi
mov rcx, qword [r15]
sub r8, rax
and dword [rbx + 0x25c], 0xfffffffd
add rdx, rax
xor r9d, r9d
mov qword [rsp + 0x20], rbx
call qword [rbx + 0x60]
mov rdx, qword [rbx + 0x11550]
sub rdi, rdx
cmp rax, rdi
je 0x1401a7422
movabs r8, 0x8000000000000000
lea rcx, [rax + r8]
test r8, rcx
jne 0x1401a73ef
cmp rax, 0xfffffffffffffff5
je 0x1401a73ef
lea r8, str.Failed_sending_banner
mov dword [r14], ebp
mov edx, 0xffffffd5
mov qword [rbx + 0x11550], rbp
mov rcx, rbx
mov rbx, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
jmp fcn.1401c1b80
mov dword [rbx + 0x25c], 2
test rax, rax
jle 0x1401a755c
add rax, rdx
mov qword [rbx + 0x11550], rax
mov eax, 0xffffffdb
mov rbx, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov dword [r14], ebp
mov qword [rbx + 0x11550], rbp
mov dword [rsi], 3
jmp 0x1401a7440
cmp ecx, 3
jne 0x1401a74a4
nop dword [rax]
mov rcx, rbx
call fcn.1401a6530
cmp eax, 0xffffffdb
je 0x1401a755c
test eax, eax
jne 0x1401a7483
mov rdx, qword [rbx + 0x138]
lea r8d, [rax + 4]
lea rcx, str.SSH_
call sub.api_ms_win_crt_string_l1_1_0.dll_strncmp
test eax, eax
jne 0x1401a7440
mov dword [rbx + 0x11570], 4
lea rsi, [rbx + 0x11570]
jmp 0x1401a74a9
lea r8, str.Failed_getting_banner
mov edx, eax
mov rcx, rbx
mov rbx, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
jmp fcn.1401c1b80
cmp ecx, 4
jne 0x1401a74f7
lea r8, [rbx + 0x115b8]
xor edx, edx
mov rcx, rbx
call fcn.1401a9a50
cmp eax, 0xffffffdb
je 0x1401a755c
test eax, eax
je 0x1401a74e8
lea r8, str.Unable_to_exchange_encryption_keys
mov edx, eax
mov rcx, rbx
mov rbx, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
jmp fcn.1401c1b80
mov dword [rsi], 5
lea rdi, [rbx + 0x11588]
jmp 0x1401a7503
lea rdi, [rbx + 0x11588]
cmp ecx, 5
jne 0x1401a753b
lea rcx, [rbx + 0x11589]
mov byte [rdi], 5
mov edx, reloc.WS2_32.dll_inet_ntoa
call fcn.1401c1ee0
movsd xmm0, qword [str.ssh_userauth]
movsd qword [rbx + 0x1158d], xmm0
mov eax, dword [0x1403ce7c8]
mov dword [rbx + 0x11595], eax
mov dword [rsi], 6
jmp 0x1401a7540
cmp ecx, 6
jne 0x1401a75a3
xor r9d, r9d
mov qword [rsp + 0x20], rbp
mov rdx, rdi
mov rcx, rbx
lea r8d, [r9 + 0x11]
call fcn.1401c44f0
cmp eax, 0xffffffdb
jne 0x1401a7572
mov eax, 0xffffffdb
mov rbx, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
test eax, eax
je 0x1401a7597
lea r8, str.Unable_to_ask_for_ssh_userauth_service
mov edx, eax
mov rcx, rbx
mov rbx, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
jmp fcn.1401c1b80
mov dword [rbx + 0x11570], 7
jmp 0x1401a75ac
cmp ecx, 7
jne 0x1401a76bd
lea rax, [rbx + 0x115a8]
mov dl, 6
mov qword [rsp + 0x38], rax
lea rdi, [rbx + 0x11578]
mov qword [rsp + 0x30], rbp
lea r9, [rbx + 0x11580]
mov qword [rsp + 0x28], rbp
mov r8, rdi
mov rcx, rbx
mov dword [rsp + 0x20], ebp
call fcn.1401c31e0
test eax, eax
je 0x1401a7606
lea r8, str.Failed_to_get_response_to_ssh_userauth_request
mov edx, eax
mov rcx, rbx
mov rbx, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
jmp fcn.1401c1b80
cmp qword [rbx + 0x11580], 5
jae 0x1401a7634
lea r8, str.Unexpected_packet_length
mov edx, 0xfffffff2
mov rcx, rbx
mov rbx, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
jmp fcn.1401c1b80
mov rcx, qword [rdi]
inc rcx
call fcn.1401c2060
mov eax, eax
mov qword [rbx + 0x115a0], rax
cmp rax, 0xc
jne 0x1401a768d
mov rdx, qword [rdi]
lea rcx, str.ssh_userauth
add rdx, 5
mov r8d, eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strncmp
test eax, eax
jne 0x1401a768d
mov rcx, qword [rdi]
mov rdx, rbx
call qword [rbx + 0x18]
xor eax, eax
mov qword [rdi], rbp
mov dword [rbx + 0x11570], ebp
mov rbx, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov rcx, qword [rdi]
mov rdx, rbx
call qword [rbx + 0x18]
lea r8, str.Invalid_response_received_from_server
mov qword [rdi], rbp
mov edx, 0xfffffff2
mov rcx, rbx
mov rbx, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
jmp fcn.1401c1b80
mov rbx, qword [rsp + 0x78]
mov eax, 0xffffffde
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret