Function at 0x4e8520
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.0x4e85a4.53
jmp dword [ecx*4 + 0xa5d3a0]
mov eax, dword [esp + 0x4c]
cmp eax, 0xffffffff
je 0x4e8655
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 0x4e861f
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 0x4e861f
push str.Failed_changing_sockets_blocking_state_to_non_blocking
jmp 0x4e8a00
mov dword [ebp + 0x11434], 2
cmp dword [ebp + 0x11320], 0
je 0x4e863e
mov ebx, 0x18
mov edi, str.SSH_2.0_libssh2_1.11.0_r_n
jmp 0x4e8675
mov edi, dword [ebp + 0x108]
test edi, edi
je 0x4e8661
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov ebx, eax
jmp 0x4e866b
push str.Bad_socket_provided
push 0xffffffffffffffd3
jmp 0x4e8a01
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 0x4e89bb
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 0x4e86f0
mov ebx, dword [ebp + 0x11424]
cmp ebx, 0xff
ja 0x4e87d7
jmp 0x4e86fc
mov dword [ebp + 0x11320], 2
xor ebx, ebx
mov edi, ebx
jmp 0x4e871c
test al, al
je 0x4e8861
mov byte [esi + edi], al
inc edi
mov ebx, edi
mov edi, ebx
cmp ebx, 0x100
jae 0x4e87d7
test edi, edi
je 0x4e872b
cmp byte [edi + esi - 1], 0xa
je 0x4e87bd
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 0x4e876e
je 0x4e879d
movzx eax, byte [esp + 3]
cmp al, 0xd
sete cl
cmp al, 0xa
sete dl
test edi, edi
jne 0x4e8700
xor ebx, ebx
or cl, dl
jne 0x4e870e
jmp 0x4e8700
cmp eax, 0xfffffff5
mov ebx, dword [esp + 4]
jne 0x4e883f
mov dword [ebp + 0x164], 1
mov dword [ebp + 0x11424], edi
mov eax, 0xffffffdb
test eax, eax
je 0x4e88b0
jmp 0x4e8aae
mov dword [ebp + 0x160], 0xffffffff
mov eax, 0xfffffff3
mov ebx, dword [esp + 4]
test eax, eax
je 0x4e88b0
jmp 0x4e8aae
mov ebx, edi
jmp 0x4e87d7
dec ebx
je 0x4e8990
movzx eax, byte [ebp + ebx + 0x11323]
cmp eax, 0xd
je 0x4e87d0
cmp eax, 0xa
je 0x4e87d0
mov dword [ebp + 0x11320], 0
mov dword [ebp + 0x11424], 0
mov eax, dword [ebp + 0xd0]
test eax, eax
je 0x4e880f
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 0x4e8887
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 0x4e88b0
mov dword [ebp + 0x11320], 0
mov dword [ebp + 0x11424], 0
mov eax, 0xffffffd5
test eax, eax
je 0x4e88b0
jmp 0x4e8aae
mov dword [ebp + 0x11320], 0
mov dword [ebp + 0x11424], 0
mov eax, 0xfffffffe
mov ebx, dword [esp + 4]
test eax, eax
je 0x4e88b0
jmp 0x4e8aae
push str.Error_allocating_space_for_remote_banner
push 0xfffffffffffffffa
push ebp
call fcn.004e28e0
add esp, 0xc
mov ebx, dword [esp + 4]
test eax, eax
jne 0x4e8aae
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.0x4e85a4.55
mov dword [ebp + 0x11434], 4
push dword [esp + 8]
push 0
push ebp
call fcn.004d9f90
add esp, 0xc
cmp eax, 0xffffffdb
je 0x4e8a13
test eax, eax
jne 0x4e89f4
mov dword [ebp + 0x11434], 5
mov byte [ebp + 0x11440], 5
push 0xc
push dword [esp + 0x14]
call fcn.004e2a30
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.004ef280
add esp, 0x14
cmp eax, 0xffffffdb
je 0x4e8a13
test eax, eax
jne 0x4e89b4
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.004e4bf0
add esp, 0x20
test eax, eax
je 0x4e89e6
push str.Failed_to_get_response_to_ssh_userauth_request
jmp 0x4e8a00
mov dword [ebp + 0x11320], 0
mov dword [ebp + 0x11424], 0
mov eax, 0xfffffffe
mov ebx, dword [esp + 4]
push str.Failed_getting_banner
jmp 0x4e8a00
push str.Unable_to_ask_for_ssh_userauth_service
jmp 0x4e8a00
test eax, eax
sets dl
cmp eax, 0xfffffff5
setne dh
test dl, dh
mov ebx, dword [esp + 4]
jne 0x4e8a3b
mov dword [ebp + 0x164], 2
test eax, eax
jle 0x4e8a13
add ecx, eax
mov dword [ebp + 0x11424], ecx
jmp 0x4e8a13
cmp dword [ebx], 4
ja 0x4e8a58
push str.Unexpected_packet_length
push 0xfffffffffffffff2
jmp 0x4e8a01
push str.Unable_to_exchange_encryption_keys
nop dword [eax]
push eax
push ebp
call fcn.004e28e0
add esp, 0xc
cmp eax, 0xffffffdb
jne case.0x4e85a4.53
cmp dword [ebp + 0x60], 0
je 0x4e8ac1
push dword [esp + 0x20]
push dword [esp + 0x28]
push ebp
call fcn.004e83a0
add esp, 0xc
test eax, eax
je 0x4e8590
jmp case.0x4e85a4.53
mov dword [ebp + 0x11320], 0
mov dword [ebp + 0x11424], 0
push str.Failed_sending_banner
push 0xffffffffffffffd5
jmp 0x4e8a01
mov eax, dword [ebp + 0x11438]
inc eax
push eax
call fcn.004e2a10
add esp, 4
mov dword [ebp + 0x11454], eax
mov edi, dword [ebp + 0x11438]
cmp eax, 0xc
jne 0x4e8a90
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 0x4e8ace
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 0x4e8a01
cmp eax, 0xffffffdb
je 0x4e8a13
push str.Failed_getting_banner
jmp 0x4e8a00
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.0x4e85a4.53