Function at 0x4ea0e0
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.0x4ea164.53
jmp dword [ecx*4 + 0x9d7000]
mov eax, dword [esp + 0x4c]
cmp eax, 0xffffffff
je 0x4ea215
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 0x4ea1df
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 0x4ea1df
push str.Failed_changing_sockets_blocking_state_to_non_blocking
jmp 0x4ea5c0
mov dword [ebp + 0x11434], 2
cmp dword [ebp + 0x11320], 0
je 0x4ea1fe
mov ebx, 0x18
mov edi, str.SSH_2.0_libssh2_1.11.0_r_n
jmp 0x4ea235
mov edi, dword [ebp + 0x108]
test edi, edi
je 0x4ea221
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov ebx, eax
jmp 0x4ea22b
push str.Bad_socket_provided
push 0xffffffffffffffd3
jmp 0x4ea5c1
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 0x4ea57b
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 0x4ea2b0
mov ebx, dword [ebp + 0x11424]
cmp ebx, 0xff
ja 0x4ea397
jmp 0x4ea2bc
mov dword [ebp + 0x11320], 2
xor ebx, ebx
mov edi, ebx
jmp 0x4ea2dc
test al, al
je 0x4ea421
mov byte [esi + edi], al
inc edi
mov ebx, edi
mov edi, ebx
cmp ebx, 0x100
jae 0x4ea397
test edi, edi
je 0x4ea2eb
cmp byte [edi + esi - 1], 0xa
je 0x4ea37d
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 0x4ea32e
je 0x4ea35d
movzx eax, byte [esp + 3]
cmp al, 0xd
sete cl
cmp al, 0xa
sete dl
test edi, edi
jne 0x4ea2c0
xor ebx, ebx
or cl, dl
jne 0x4ea2ce
jmp 0x4ea2c0
cmp eax, 0xfffffff5
mov ebx, dword [esp + 4]
jne 0x4ea3ff
mov dword [ebp + 0x164], 1
mov dword [ebp + 0x11424], edi
mov eax, 0xffffffdb
test eax, eax
je 0x4ea470
jmp 0x4ea66e
mov dword [ebp + 0x160], 0xffffffff
mov eax, 0xfffffff3
mov ebx, dword [esp + 4]
test eax, eax
je 0x4ea470
jmp 0x4ea66e
mov ebx, edi
jmp 0x4ea397
dec ebx
je 0x4ea550
movzx eax, byte [ebp + ebx + 0x11323]
cmp eax, 0xd
je 0x4ea390
cmp eax, 0xa
je 0x4ea390
mov dword [ebp + 0x11320], 0
mov dword [ebp + 0x11424], 0
mov eax, dword [ebp + 0xd0]
test eax, eax
je 0x4ea3cf
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 0x4ea447
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 0x4ea470
mov dword [ebp + 0x11320], 0
mov dword [ebp + 0x11424], 0
mov eax, 0xffffffd5
test eax, eax
je 0x4ea470
jmp 0x4ea66e
mov dword [ebp + 0x11320], 0
mov dword [ebp + 0x11424], 0
mov eax, 0xfffffffe
mov ebx, dword [esp + 4]
test eax, eax
je 0x4ea470
jmp 0x4ea66e
push str.Error_allocating_space_for_remote_banner
push 0xfffffffffffffffa
push ebp
call fcn.004e44a0
add esp, 0xc
mov ebx, dword [esp + 4]
test eax, eax
jne 0x4ea66e
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.0x4ea164.55
mov dword [ebp + 0x11434], 4
push dword [esp + 8]
push 0
push ebp
call fcn.004dbb50
add esp, 0xc
cmp eax, 0xffffffdb
je 0x4ea5d3
test eax, eax
jne 0x4ea5b4
mov dword [ebp + 0x11434], 5
mov byte [ebp + 0x11440], 5
push 0xc
push dword [esp + 0x14]
call fcn.004e45f0
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.004f0e40
add esp, 0x14
cmp eax, 0xffffffdb
je 0x4ea5d3
test eax, eax
jne 0x4ea574
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.004e67b0
add esp, 0x20
test eax, eax
je 0x4ea5a6
push str.Failed_to_get_response_to_ssh_userauth_request
jmp 0x4ea5c0
mov dword [ebp + 0x11320], 0
mov dword [ebp + 0x11424], 0
mov eax, 0xfffffffe
mov ebx, dword [esp + 4]
push str.Failed_getting_banner
jmp 0x4ea5c0
push str.Unable_to_ask_for_ssh_userauth_service
jmp 0x4ea5c0
test eax, eax
sets dl
cmp eax, 0xfffffff5
setne dh
test dl, dh
mov ebx, dword [esp + 4]
jne 0x4ea5fb
mov dword [ebp + 0x164], 2
test eax, eax
jle 0x4ea5d3
add ecx, eax
mov dword [ebp + 0x11424], ecx
jmp 0x4ea5d3
cmp dword [ebx], 4
ja 0x4ea618
push str.Unexpected_packet_length
push 0xfffffffffffffff2
jmp 0x4ea5c1
push str.Unable_to_exchange_encryption_keys
nop dword [eax]
push eax
push ebp
call fcn.004e44a0
add esp, 0xc
cmp eax, 0xffffffdb
jne case.0x4ea164.53
cmp dword [ebp + 0x60], 0
je 0x4ea681
push dword [esp + 0x20]
push dword [esp + 0x28]
push ebp
call fcn.004e9f60
add esp, 0xc
test eax, eax
je 0x4ea150
jmp case.0x4ea164.53
mov dword [ebp + 0x11320], 0
mov dword [ebp + 0x11424], 0
push str.Failed_sending_banner
push 0xffffffffffffffd5
jmp 0x4ea5c1
mov eax, dword [ebp + 0x11438]
inc eax
push eax
call fcn.004e45d0
add esp, 4
mov dword [ebp + 0x11454], eax
mov edi, dword [ebp + 0x11438]
cmp eax, 0xc
jne 0x4ea650
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 0x4ea68e
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 0x4ea5c1
cmp eax, 0xffffffdb
je 0x4ea5d3
push str.Failed_getting_banner
jmp 0x4ea5c0
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.0x4ea164.53