Function at 0x4e8ad0
Capabilities:
Set socket configuration

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x34
mov ebp, dword [esp + 0x48]
push 0
call sub.api_ms_win_crt_time_l1_1_0.dll__time64
add esp, 4
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], edx
lea esi, [ebp + 0x11324]
lea eax, [ebp + 0x11468]
mov dword [esp + 8], eax
lea eax, [ebp + 0x11440]
mov dword [esp + 0x1c], eax
lea eax, [ebp + 0x11441]
mov dword [esp + 0x10], eax
lea eax, [ebp + 0x11445]
mov dword [esp + 0xc], eax
lea eax, [ebp + 0x11438]
mov dword [esp + 0x18], eax
lea ebx, [ebp + 0x1143c]
lea eax, [ebp + 0x11458]
mov dword [esp + 0x14], eax
mov dword [esp + 4], ebx
nop dword [eax]
mov ecx, dword [ebp + 0x11434]
mov eax, 0xffffffde
cmp ecx, 7
ja case.0x4e8b54.53
jmp dword [ecx*4 + 0x93b800]
mov eax, dword [esp + 0x4c]
cmp eax, 0xffffffff
je 0x4e8c05
mov dword [ebp + 0x15c], eax
mov dword [esp + 0x28], 4
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x30]
push ecx
push 0x1007
push 0xffff
push eax
call dword [sym.imp.WS2_32.dll_getsockopt]
xor ecx, ecx
or eax, dword [esp + 0x2c]
sete cl
mov dword [ebp + 0x168], ecx
jne 0x4e8bcf
mov eax, dword [ebp + 0x15c]
mov dword [esp + 0x30], 1
lea ecx, [esp + 0x30]
push ecx
push 0x8004667e
push eax
call dword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
je 0x4e8bcf
push str.Failed_changing_sockets_blocking_state_to_non_blocking
jmp 0x4e8fb0
mov dword [ebp + 0x11434], 2
cmp dword [ebp + 0x11320], 0
je 0x4e8bee
mov ebx, 0x18
mov edi, str.SSH_2.0_libssh2_1.11.0_r_n
jmp 0x4e8c25
mov edi, dword [ebp + 0x108]
test edi, edi
je 0x4e8c11
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov ebx, eax
jmp 0x4e8c1b
push str.Bad_socket_provided
push 0xffffffffffffffd3
jmp 0x4e8fb1
mov ebx, 0x18
mov edi, str.SSH_2.0_libssh2_1.11.0_r_n
mov dword [ebp + 0x11320], 2
and byte [ebp + 0x164], 0xfd
mov eax, dword [ebp + 0x11424]
add edi, eax
mov ecx, ebx
sub ecx, eax
push ebp
push 0
push ecx
push edi
push dword [ebp + 0x15c]
call dword [ebp + 0x30]
add esp, 0x14
mov ecx, dword [ebp + 0x11424]
sub ebx, ecx
cmp eax, ebx
jne 0x4e8f6b
mov dword [ebp + 0x11424], 0
mov dword [ebp + 0x11434], 3
mov dword [ebp + 0x11320], 0
nop word [eax + eax]
cmp dword [ebp + 0x11320], 0
je 0x4e8ca0
mov ebx, dword [ebp + 0x11424]
cmp ebx, 0xff
ja 0x4e8d87
jmp 0x4e8cac
mov dword [ebp + 0x11320], 2
xor ebx, ebx
mov edi, ebx
jmp 0x4e8ccc
test al, al
je 0x4e8e11
mov byte [esi + edi], al
inc edi
mov ebx, edi
mov edi, ebx
cmp ebx, 0x100
jae 0x4e8d87
test edi, edi
je 0x4e8cdb
cmp byte [edi + esi - 1], 0xa
je 0x4e8d6d
mov byte [esp + 3], 0
and byte [ebp + 0x164], 0xfe
push ebp
push 0
push 1
lea eax, [esp + 0xf]
push eax
push dword [ebp + 0x15c]
call dword [ebp + 0x34]
add esp, 0x14
test eax, eax
js 0x4e8d1e
je 0x4e8d4d
movzx eax, byte [esp + 3]
cmp al, 0xd
sete cl
cmp al, 0xa
sete dl
test edi, edi
jne 0x4e8cb0
xor ebx, ebx
or cl, dl
jne 0x4e8cbe
jmp 0x4e8cb0
cmp eax, 0xfffffff5
mov ebx, dword [esp + 4]
jne 0x4e8def
mov dword [ebp + 0x164], 1
mov dword [ebp + 0x11424], edi
mov eax, 0xffffffdb
test eax, eax
je 0x4e8e60
jmp 0x4e905e
mov dword [ebp + 0x160], 0xffffffff
mov eax, 0xfffffff3
mov ebx, dword [esp + 4]
test eax, eax
je 0x4e8e60
jmp 0x4e905e
mov ebx, edi
jmp 0x4e8d87
dec ebx
je 0x4e8f40
movzx eax, byte [ebp + ebx + 0x11323]
cmp eax, 0xd
je 0x4e8d80
cmp eax, 0xa
je 0x4e8d80
mov dword [ebp + 0x11320], 0
mov dword [ebp + 0x11424], 0
mov eax, dword [ebp + 0xd0]
test eax, eax
je 0x4e8dbf
push ebp
push eax
call dword [ebp + 0xc]
add esp, 8
lea eax, [ebx + 1]
push ebp
push eax
call dword [ebp + 4]
add esp, 8
mov dword [ebp + 0xd0], eax
test eax, eax
je 0x4e8e37
push ebx
push esi
push eax
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
mov eax, dword [ebp + 0xd0]
mov byte [eax + ebx], 0
mov ebx, dword [esp + 4]
jmp 0x4e8e60
mov dword [ebp + 0x11320], 0
mov dword [ebp + 0x11424], 0
mov eax, 0xffffffd5
test eax, eax
je 0x4e8e60
jmp 0x4e905e
mov dword [ebp + 0x11320], 0
mov dword [ebp + 0x11424], 0
mov eax, 0xfffffffe
mov ebx, dword [esp + 4]
test eax, eax
je 0x4e8e60
jmp 0x4e905e
push str.Error_allocating_space_for_remote_banner
push 0xfffffffffffffffa
push ebp
call fcn.004e2e90
add esp, 0xc
mov ebx, dword [esp + 4]
test eax, eax
jne 0x4e905e
nop word cs:[eax + eax]
push 4
push dword [ebp + 0xd0]
push str.SSH_
call sub.api_ms_win_crt_string_l1_1_0.dll_strncmp
add esp, 0xc
test eax, eax
jne case.0x4e8b54.55
mov dword [ebp + 0x11434], 4
push dword [esp + 8]
push 0
push ebp
call fcn.004da540
add esp, 0xc
cmp eax, 0xffffffdb
je 0x4e8fc3
test eax, eax
jne 0x4e8fa4
mov dword [ebp + 0x11434], 5
mov byte [ebp + 0x11440], 5
push 0xc
push dword [esp + 0x14]
call fcn.004e2fe0
add esp, 8
mov eax, dword [esp + 0xc]
mov dword [eax + 8], 0x68747561
mov dword [eax + 4], 0x72657375
mov dword [eax], 0x2d687373
mov dword [ebp + 0x11434], 6
push 0
push 0
push 0x11
push dword [esp + 0x28]
push ebp
call fcn.004ef830
add esp, 0x14
cmp eax, 0xffffffdb
je 0x4e8fc3
test eax, eax
jne 0x4e8f64
mov dword [ebp + 0x11434], 7
push dword [esp + 0x14]
push 0
push 0
push 0
push ebx
push dword [esp + 0x2c]
push 6
push ebp
call fcn.004e51a0
add esp, 0x20
test eax, eax
je 0x4e8f96
push str.Failed_to_get_response_to_ssh_userauth_request
jmp 0x4e8fb0
mov dword [ebp + 0x11320], 0
mov dword [ebp + 0x11424], 0
mov eax, 0xfffffffe
mov ebx, dword [esp + 4]
push str.Failed_getting_banner
jmp 0x4e8fb0
push str.Unable_to_ask_for_ssh_userauth_service
jmp 0x4e8fb0
test eax, eax
sets dl
cmp eax, 0xfffffff5
setne dh
test dl, dh
mov ebx, dword [esp + 4]
jne 0x4e8feb
mov dword [ebp + 0x164], 2
test eax, eax
jle 0x4e8fc3
add ecx, eax
mov dword [ebp + 0x11424], ecx
jmp 0x4e8fc3
cmp dword [ebx], 4
ja 0x4e9008
push str.Unexpected_packet_length
push 0xfffffffffffffff2
jmp 0x4e8fb1
push str.Unable_to_exchange_encryption_keys
nop dword [eax]
push eax
push ebp
call fcn.004e2e90
add esp, 0xc
cmp eax, 0xffffffdb
jne case.0x4e8b54.53
cmp dword [ebp + 0x60], 0
je 0x4e9071
push dword [esp + 0x20]
push dword [esp + 0x28]
push ebp
call fcn.004e8950
add esp, 0xc
test eax, eax
je 0x4e8b40
jmp case.0x4e8b54.53
mov dword [ebp + 0x11320], 0
mov dword [ebp + 0x11424], 0
push str.Failed_sending_banner
push 0xffffffffffffffd5
jmp 0x4e8fb1
mov eax, dword [ebp + 0x11438]
inc eax
push eax
call fcn.004e2fc0
add esp, 4
mov dword [ebp + 0x11454], eax
mov edi, dword [ebp + 0x11438]
cmp eax, 0xc
jne 0x4e9040
lea eax, [edi + 5]
push 0xc
push eax
push str.ssh_userauth
call sub.api_ms_win_crt_string_l1_1_0.dll_strncmp
add esp, 0xc
test eax, eax
je 0x4e907e
push ebp
push edi
call dword [ebp + 0xc]
add esp, 8
mov dword [ebp + 0x11438], 0
push str.Invalid_response_received_from_server
push 0xfffffffffffffff2
jmp 0x4e8fb1
cmp eax, 0xffffffdb
je 0x4e8fc3
push str.Failed_getting_banner
jmp 0x4e8fb0
mov eax, 0xffffffdb
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret
push ebp
push edi
call dword [ebp + 0xc]
add esp, 8
mov dword [ebp + 0x11438], 0
mov dword [ebp + 0x11434], 0
xor eax, eax
jmp case.0x4e8b54.53