Function at 0x14015e430
Capabilities:
Set socket configuration

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
mov eax, dword [rcx + 0xcca0]
mov rbx, rcx
test eax, eax
jne 0x14015e570
cmp rdx, 0xffffffffffffffff
je 0x14015e981
lea rsi, [rsp + 0x5c]
lea r9, [rsp + 0x58]
mov qword [rcx + 0x238], rdx
movsxd rcx, edx
mov qword [rsp + 0x20], rsi
mov r8d, 0x1007
mov edx, 0xffff
mov dword [rsp + 0x5c], 4
call qword [sym.imp.ws2_32.dll_getsockopt]
test eax, eax
jne 0x14015ea08
mov ecx, dword [rsp + 0x58]
xor eax, eax
mov rbp, qword [rbx + 0x238]
test ecx, ecx
sete al
mov dword [rbx + 0x248], eax
jne 0x14015e4d3
mov dword [rsp + 0x5c], 1
mov r8, rsi
mov edx, 0x8004667e
mov rcx, rbp
call qword [sym.imp.ws2_32.dll_ioctlsocket]
test eax, eax
jne 0x14015ea4f
mov rbp, qword [rbx + 0x238]
mov dword [rbx + 0xcca0], 2
mov edx, dword [rbx + 0xcb78]
mov esi, 0x1c
lea rdi, str.SSH_2.0_libssh2_1.10.1_DEV_r_n
test edx, edx
je 0x14015e992
mov rax, qword [rbx + 0xcc80]
mov r8, rsi
xor r9d, r9d
mov rcx, rbp
and dword [rbx + 0x244], 0xfffffffd
lea rdx, [rdi + rax]
mov qword [rsp + 0x20], rbx
sub r8, rax
call qword [rbx + 0x48]
mov rdx, qword [rbx + 0xcc80]
sub rsi, rdx
cmp rax, rsi
je 0x14015e6a7
test rax, rax
jns 0x14015ea1e
cmp rax, 0xfffffffffffffff5
je 0x14015ea1e
mov dword [rbx + 0xcb78], 0
lea r8, str.Failed_sending_banner
mov edx, 0xffffffd5
mov qword [rbx + 0xcc80], 0
jmp 0x14015e693
cmp eax, 2
je 0x14015ea5d
cmp eax, 3
je 0x14015e6c6
cmp eax, 4
je 0x14015e89a
cmp eax, 5
je 0x14015e8cf
cmp eax, 6
je 0x14015e90c
cmp eax, 7
jne 0x14015ea39
lea rax, [rbx + 0xccd8]
mov edx, 6
mov rcx, rbx
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], rax
lea r9, [rbx + 0xccb0]
lea r8, [rbx + 0xcca8]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
call fcn.140092db0
test eax, eax
jne 0x14015e666
cmp qword [rbx + 0xccb0], 4
lea r8, str.Unexpected_packet_length
jbe 0x14015e68e
mov rax, qword [rbx + 0xcca8]
lea rcx, [rax + 1]
call fcn.1400906b0
mov rsi, qword [rbx + 0xcca8]
mov eax, eax
mov qword [rbx + 0xccd0], rax
cmp rax, 0xc
jne 0x14015e673
lea rdx, [rsi + 5]
mov r8d, 0xc
lea rcx, str.ssh_userauth
call sub.msvcrt.dll_strncmp
test eax, eax
jne 0x14015e673
mov dword [rsp + 0x4c], eax
mov rdx, rbx
mov rcx, rsi
call qword [rbx + 0x18]
mov eax, dword [rsp + 0x4c]
mov qword [rbx + 0xcca8], 0
mov dword [rbx + 0xcca0], 0
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov rdx, rbx
mov rcx, rsi
call qword [rbx + 0x18]
lea r8, str.Invalid_response_received_from_server
mov qword [rbx + 0xcca8], 0
mov edx, 0xfffffff2
mov rcx, rbx
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp fcn.14008f440
mov qword [rbx + 0xcc80], 0
mov dword [rbx + 0xcca0], 3
mov dword [rbx + 0xcb78], 0
lea rbp, [rsp + 0x5c]
lea r12, str.SSH_
nop word [rax + rax]
mov eax, dword [rbx + 0xcb78]
test eax, eax
jne 0x14015e7a0
mov dword [rbx + 0xcb78], 2
xor r13d, r13d
movsxd rsi, r13d
jmp 0x14015e72a
je 0x14015e960
movzx eax, byte [rsp + 0x5c]
test al, al
je 0x14015e7ec
mov byte [rbx + rsi + 0xcb7c], al
add rsi, 1
cmp esi, 0xff
jg 0x14015e978
mov edi, esi
movsxd r13, esi
test esi, esi
je 0x14015e742
lea eax, [rsi - 1]
cdqe
cmp byte [rbx + rax + 0xcb7c], 0xa
je 0x14015e7b8
and dword [rbx + 0x244], 0xfffffffe
mov rcx, qword [rbx + 0x238]
xor r9d, r9d
mov rdx, rbp
mov byte [rsp + 0x5c], 0
mov r8d, 1
mov qword [rsp + 0x20], rbx
call qword [rbx + 0x50]
test eax, eax
jns 0x14015e700
cmp eax, 0xfffffff5
je 0x14015e9bc
mov dword [rbx + 0xcb78], 0
mov eax, 0xffffffd5
mov qword [rbx + 0xcc80], 0
lea r8, str.Failed_getting_banner
mov edx, eax
jmp 0x14015e693
mov rax, qword [rbx + 0xcc80]
mov r13d, eax
cmp eax, 0xff
jle 0x14015e6f3
nop dword [rax]
movsxd rsi, r13d
mov r13d, r13d
mov rcx, rsi
sub rcx, r13
jmp 0x14015e7e7
movzx eax, byte [rbx + rsi + 0xcb7b]
lea rdx, [rsi - 1]
cmp al, 0xa
je 0x14015e7e4
cmp al, 0xd
jne 0x14015e810
mov rsi, rdx
cmp rcx, rsi
jne 0x14015e7d0
mov dword [rbx + 0xcb78], 0
mov eax, 0xfffffffe
mov qword [rbx + 0xcc80], 0
jmp 0x14015e790
mov rcx, qword [rbx + 0x120]
mov dword [rbx + 0xcb78], 0
mov qword [rbx + 0xcc80], 0
test rcx, rcx
je 0x14015e837
mov rdx, rbx
call qword [rbx + 0x18]
lea ecx, [rsi + 1]
mov rdx, rbx
movsxd rcx, ecx
call qword [rbx + 8]
mov qword [rbx + 0x120], rax
mov rcx, rax
test rax, rax
je 0x14015e9df
movsxd rsi, esi
lea rdx, [rbx + 0xcb7c]
mov r8, rsi
call sub.msvcrt.dll_memcpy
mov rax, qword [rbx + 0x120]
mov byte [rax + rsi], 0
mov rdx, qword [rbx + 0x120]
mov r8d, 4
mov rcx, r12
call sub.msvcrt.dll_strncmp
test eax, eax
jne 0x14015e6d8
mov dword [rbx + 0xcca0], 4
xor edx, edx
lea r8, [rbx + 0xcce8]
mov rcx, rbx
call fcn.14008f780
cmp eax, 0xffffffdb
je 0x14015e9cd
lea r8, str.Unable_to_exchange_encryption_keys
mov edx, eax
test eax, eax
jne 0x14015e693
mov dword [rbx + 0xcca0], 5
mov byte [rbx + 0xccb8], 5
lea rcx, [rbx + 0xccb9]
mov edx, 0xc
call fcn.14008f740
movabs rax, 0x726573752d687373
mov dword [rbx + 0xccc5], 0x68747561
mov qword [rbx + 0xccbd], rax
mov dword [rbx + 0xcca0], 6
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea rdx, [rbx + 0xccb8]
mov rcx, rbx
mov r8d, 0x11
call fcn.1400948b0
cmp eax, 0xffffffdb
je 0x14015e9cd
lea r8, str.Unable_to_ask_for_ssh_userauth_service
mov edx, eax
test eax, eax
jne 0x14015e693
mov dword [rbx + 0xcca0], 7
jmp 0x14015e5a6
mov dword [rbx + 0x240], 0xffffffff
mov eax, 0xfffffff3
jmp 0x14015e790
lea r13d, [rdi + 1]
jmp 0x14015e7b8
lea r8, str.Bad_socket_provided
mov edx, 0xffffffd3
jmp 0x14015e693
mov rdi, qword [rbx + 0x190]
test rdi, rdi
je 0x14015ea43
mov rcx, rdi
call sub.msvcrt.dll_strlen
movsxd rsi, eax
mov dword [rbx + 0xcb78], 2
jmp 0x14015e4f7
mov dword [rbx + 0x244], 1
mov qword [rbx + 0xcc80], r13
mov eax, 0xffffffdb
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
lea r8, str.Error_allocating_space_for_remote_banner
mov edx, 0xfffffffa
mov rcx, rbx
call fcn.14008f440
cmp eax, 0xffffffdb
je 0x14015e9cd
test eax, eax
je 0x14015e873
jmp 0x14015e790
mov dword [rbx + 0x248], 0
mov rbp, qword [rbx + 0x238]
jmp 0x14015e4d3
mov dword [rbx + 0x244], 2
test rax, rax
jle 0x14015e9cd
add rax, rdx
mov qword [rbx + 0xcc80], rax
jmp 0x14015e9cd
mov eax, 0xffffffde
jmp 0x14015e666
lea rdi, str.SSH_2.0_libssh2_1.10.1_DEV_r_n
jmp 0x14015e9ad
lea r8, str.Failed_changing_sockets_blocking_state_to_non_blocking
mov edx, eax
jmp 0x14015e693
mov rbp, qword [rcx + 0x238]
jmp 0x14015e4dd