Function at 0x1001a460
Capabilities:
Set socket configuration

Disassembly:
push ecx
push ebx
mov ebx, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
mov ecx, dword [esi + 0xcb64]
test ecx, ecx
jne 0x1001a52e
mov eax, dword [esp + 0x1c]
cmp eax, 0xffffffff
jne 0x1001a49c
push str.Bad_socket_provided
push 0xffffffffffffffd3
push esi
call fcn.10013940
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
lea ecx, [esp + 0x18]
mov dword [esi + 0x144], eax
push ecx
lea ecx, [esp + 0x14]
mov dword [esp + 0x1c], 4
push ecx
push 0x1007
push 0xffff
lea ebp, [esi + 0x144]
push eax
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
je 0x1001a4e5
mov dword [esi + 0x150], 0
mov dword [esi + 0xcb64], 2
jmp 0x1001a53d
mov ecx, dword [esp + 0x10]
xor eax, eax
test ecx, ecx
sete al
mov dword [esi + 0x150], eax
test ecx, ecx
jne 0x1001a4d9
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 1
push eax
push 0x8004667e
push dword [ebp]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
je 0x1001a4d9
push str.Failed_changing_sockets_blocking_state_to_non_blocking
push eax
push esi
call fcn.10013940
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
lea ebp, [esi + 0x144]
cmp ecx, 2
jne 0x1001a64c
cmp dword [esi + 0xca50], 0
mov edx, str.SSH_2.0_libssh2_1.9.0_DEV_r_n
mov dword [esp + 0x18], edx
mov edi, 0x1b
jne 0x1001a57c
mov ecx, dword [esi + 0xf0]
test ecx, ecx
je 0x1001a572
mov edi, ecx
lea edx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x1001a563
sub edi, edx
mov dword [esp + 0x18], ecx
mov edx, ecx
mov dword [esi + 0xca50], 2
mov ecx, dword [esi + 0xcb54]
mov eax, edi
and dword [esi + 0x14c], 0xfffffffd
sub eax, ecx
push esi
push 0
push eax
lea eax, [ecx + edx]
push eax
push dword [ebp]
mov eax, dword [esi + 0x24]
call eax
add esp, 0x14
test eax, eax
js 0x1001a5c8
mov edx, dword [esi + 0xcb54]
mov ecx, edi
push edx
push dword [esp + 0x1c]
sub ecx, edx
push ecx
push eax
push str.Sent__d__d_bytes_at__p_d
push 0x200
push esi
call fcn.10001350
add esp, 0x1c
mov ecx, dword [esi + 0xcb54]
sub edi, ecx
cmp eax, edi
je 0x1001a62c
test eax, eax
jns 0x1001a607
cmp eax, 0xfffffff5
je 0x1001a607
push str.Failed_sending_banner
push 0xffffffffffffffd5
push esi
mov dword [esi + 0xca50], 0
mov dword [esi + 0xcb54], 0
call fcn.10013940
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov dword [esi + 0x14c], 2
test eax, eax
jle 0x1001a749
add eax, ecx
pop edi
mov dword [esi + 0xcb54], eax
mov eax, 0xffffffdb
pop esi
pop ebp
pop ebx
pop ecx
ret
mov dword [esi + 0xcb54], 0
mov dword [esi + 0xcb64], 3
mov dword [esi + 0xca50], 0
jmp 0x1001a651
cmp ecx, 3
jne 0x1001a69e
push esi
call fcn.100190b0
add esp, 4
cmp eax, 0xffffffdb
je 0x1001a749
test eax, eax
jne 0x1001a689
push 4
push dword [esi + 0xb8]
push str.SSH_
call ebx
add esp, 0xc
test eax, eax
jne 0x1001a651
mov dword [esi + 0xcb64], 4
jmp 0x1001a6a3
push str.Failed_getting_banner
push eax
push esi
call fcn.10013940
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
cmp ecx, 4
jne 0x1001a6e9
lea eax, [esi + 0xcb98]
push eax
push 0
push esi
call fcn.1000c300
add esp, 0xc
cmp eax, 0xffffffdb
je 0x1001a749
test eax, eax
je 0x1001a6d7
push str.Unable_to_exchange_encryption_keys
push eax
push esi
call fcn.10013940
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov dword [esi + 0xcb64], 5
lea edi, [esi + 0xcb70]
jmp 0x1001a6f4
lea edi, [esi + 0xcb70]
cmp ecx, 5
jne 0x1001a72f
lea eax, [esi + 0xcb71]
mov byte [edi], 5
push 0xc
push eax
call fcn.10013d60
movq xmm0, qword [str.ssh_userauth]
add esp, 8
movq qword [esi + 0xcb75], xmm0
mov eax, dword [0x10029f14]
mov dword [esi + 0xcb7d], eax
mov dword [esi + 0xcb64], 6
jmp 0x1001a734
cmp ecx, 6
jne 0x1001a779
push 0
push 0
push 0x11
push edi
push esi
call fcn.1001f6b0
add esp, 0x14
cmp eax, 0xffffffdb
jne 0x1001a754
pop edi
pop esi
pop ebp
mov eax, 0xffffffdb
pop ebx
pop ecx
ret
test eax, eax
je 0x1001a76d
push str.Unable_to_ask_for_ssh_userauth_service
push eax
push esi
call fcn.10013940
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov dword [esi + 0xcb64], 7
jmp 0x1001a782
cmp ecx, 7
jne 0x1001a83f
lea eax, [esi + 0xcb88]
push eax
push 0
push 0
push 0
lea ebp, [esi + 0xcb6c]
push ebp
lea edi, [esi + 0xcb68]
push edi
push 6
push esi
call fcn.10014f60
add esp, 0x20
test eax, eax
jne 0x1001a844
cmp dword [ebp], 5
jae 0x1001a7cc
push str.Unexpected_packet_length
push 0xfffffffffffffff2
push esi
call fcn.10013940
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov eax, dword [edi]
inc eax
push eax
call fcn.10013ed0
add esp, 4
mov dword [esi + 0xcb84], eax
cmp eax, 0xc
jne 0x1001a81b
push eax
mov eax, dword [edi]
add eax, 5
push eax
push str.ssh_userauth
call ebx
add esp, 0xc
test eax, eax
jne 0x1001a81b
mov eax, dword [esi + 0xc]
push esi
push dword [edi]
call eax
add esp, 8
mov dword [edi], 0
mov dword [esi + 0xcb64], 0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov eax, dword [esi + 0xc]
push esi
push dword [edi]
call eax
push str.Invalid_response_received_from_server
push 0xfffffffffffffff2
push esi
mov dword [edi], 0
call fcn.10013940
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov eax, 0xffffffde
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret