Function at 0x4d6151
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x5f2e68]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
xor eax, eax
lea edi, [ebp - 0x116]
push 0x103
mov word [ebp - 0x118], bx
stosw word es:[edi], ax
lea eax, [ebp - 0x10f]
mov esi, ecx
push ebx
push eax
mov dword [ebp - 0x120], esi
mov byte [ebp - 0x110], bl
call fcn.005306b0
add esp, 0xc
mov edx, esi
call fcn.004ccc0d
test eax, eax
je 0x4d61b8
push str.:7:Empty_string_was_passed_into_OpenTelNetSession__.
call fcn.0042bd38
pop ecx
jmp 0x4d663d
push esi
mov ecx, 0x104
lea eax, [ebp - 0x110]
call fcn.004ccc3f
pop ecx
mov esi, 0x55e608
push esi
push eax
mov dword [ebp - 0x11c], ebx
call fcn.00531210
test eax, eax
pop ecx
pop ecx
je 0x4d621f
push esi
lea eax, [ebp - 0x114]
lea ecx, [ebp - 0x110]
mov dword [ebp - 0x114], ebx
call fcn.004ce974
cmp eax, ebx
pop ecx
je 0x4d621f
push esi
lea eax, [ebp - 0x114]
xor ecx, ecx
call fcn.004ce974
cmp eax, ebx
pop ecx
je 0x4d621f
push eax
call fcn.005317e2
pop ecx
mov dword [ebp - 0x11c], eax
mov edi, 0x7093c4
mov eax, edi
call fcn.004ccb8b
push dword [ebp + 8]
lea ecx, [ebp - 0x110]
push dword [ebp - 0x11c]
call fcn.004d8cda
mov esi, eax
cmp esi, 0xffffffff
pop ecx
pop ecx
mov dword [ebp - 0x114], esi
jne 0x4d6331
call fcn.00418463
test eax, eax
jne 0x4d663d
call fcn.004935a3
test eax, eax
jne 0x4d663d
call fcn.004187ab
test eax, eax
je 0x4d6284
inc dword [0x7093e4]
cmp dword [0x7093e4], 3
jg 0x4d6296
push dword [ebp - 0x120]
push str.OpenTelNetSession___FAILED_to_connect_to___s_
call fcn.0042bd38
pop ecx
pop ecx
call fcn.0046ed85
test eax, eax
je 0x4d663d
push ebx
mov esi, str.NAVAPSVC.EXE
call fcn.00412f38
test eax, eax
pop ecx
jle 0x4d62bc
push str.Norton_AntiVirus
mov eax, edi
jmp 0x4d6301
push ebx
mov esi, str.Mcshield.exe
call fcn.00412f38
test eax, eax
pop ecx
jle 0x4d62d3
push str.McAfee_AntiVirus
jmp 0x4d62b8
push ebx
mov esi, str.MsMpEng.exe
call fcn.00412f38
test eax, eax
pop ecx
jle 0x4d62ea
push str.Windows_Defender
jmp 0x4d62b8
push ebx
mov esi, str.Kavss.exe
call fcn.00412f38
test eax, eax
pop ecx
mov eax, edi
jle 0x4d630c
push str.Kaspersky_AntiVirus
push 0x20
pop ecx
call fcn.004ccc3f
pop ecx
jmp 0x4d6311
call fcn.004ccb8b
mov edx, edi
call fcn.004ccc0d
test eax, eax
jne 0x4d663d
push edi
push str.:5:_s_may_be_blocking_TAMS_TelNet_access.
call fcn.0042bd38
pop ecx
jmp 0x4d61b2
push ebx
push 1
push ebx
push 3
push 0xc0000000
call dword [sym.imp.KERNEL32.dll_CreateConsoleScreenBuffer]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4d6364
push str.OpenTelNetSession___FAILED:_Could_not_create_console_screen_buffer___GetLastError_
call fcn.0042b70b
pop ecx
push esi
call sub.WSOCK32.dll_closesocket
call sub.WSOCK32.dll_WSACleanup
jmp 0x4d663d
mov word [ebp - 0x118], 0x50
mov word [ebp - 0x116], 0xfb
push dword [ebp - 0x118]
mov ebx, edi
call fcn.00414aac
test eax, eax
pop ecx
jne 0x4d63a9
push 0xfb
push 0x50
push str.OpenTelNetSession___FAILED:_Could_not_create_screen_buffer_of_size__dx_d_
call fcn.0042b70b
add esp, 0xc
push esi
call sub.WSOCK32.dll_closesocket
call fcn.00435716
jmp 0x4d635a
push 3
push edi
call dword [sym.imp.KERNEL32.dll_SetConsoleMode]
push 1
push 0
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
push 1
mov esi, 0x1050
push esi
call fcn.00530848
mov ebx, eax
test ebx, ebx
pop ecx
pop ecx
jne 0x4d63e9
push 1
push esi
push str.OpenTelNetSession___FAILED:_Could_not_calloc__d___d__
call fcn.0042b70b
add esp, 0xc
push dword [ebp - 0x114]
jmp 0x4d639d
push esi
push 0
push ebx
call fcn.005306b0
mov ecx, dword [ebp - 0x114]
and dword [ebx + 0xaa8], 0
and dword [ebx + 0xd2c], 0
add esp, 0xc
push 0x50
pop eax
mov dword [ebx + 0x104], edi
mov dword [ebx + 0xe8], eax
mov dword [ebx + 0xd8], eax
mov edi, str..TelNet.c
lea eax, [ebx + 0xb20]
push edi
push eax
mov dword [ebx + 0xec], 0xfb
mov dword [ebx + 0xacc], ecx
mov dword [ebx + 0xdc], 0x19
mov word [ebx + 0x100], 7
call fcn.0043a19c
test eax, eax
pop ecx
pop ecx
jne 0x4d6464
push str.:5:OpenTelNetSession_Sub___EAP:_InitializeLock_LockParams__FAILED.
call fcn.0042b70b
pop ecx
mov esi, str.A_TelNet_handle_had_to_be_forced_to_unlock___
lea eax, [ebx + 0xb20]
call fcn.0043a49b
mov eax, 0xfa0
lea ecx, [ebx + 0xb20]
call fcn.0043a4d8
lea eax, [ebx + 0xd44]
push edi
push eax
call fcn.0043a19c
test eax, eax
pop ecx
pop ecx
jne 0x4d64a2
push str.:5:OpenTelNetSession_Sub___EAP:_InitializeLock_LockParamsConsole__FAILED.
call fcn.0042b70b
pop ecx
lea edi, [ebx + 0xd44]
mov esi, str.A_TelNet_handles_CONSOLE_had_to_be_forced_to_unlock___
mov eax, edi
call fcn.0043a49b
mov eax, 0xbb8
mov ecx, edi
call fcn.0043a4d8
push 0x50
lea eax, [ebp - 0x110]
push ebx
push eax
call fcn.004708b9
add esp, 0xc
test eax, eax
jne 0x4d64fb
lea eax, [ebp - 0x110]
push eax
push str.:4:OpenTelNetSession__:_ResolveHostNameToIP___s___FAILED.
call fcn.0042bd38
lea eax, [ebp - 0x110]
push eax
push 0x50
pop ecx
mov eax, ebx
call fcn.004ccc3f
add esp, 0xc
mov eax, dword [ebp - 0x11c]
xor edi, edi
mov dword [ebx + 0x54], eax
mov esi, 0x61a80
mov dword [ebx + 0xa80], edi
mov dword [ebx + 0xa84], edi
lea eax, [esi + 1]
push eax
push 1
call fcn.00530848
cmp eax, edi
pop ecx
pop ecx
mov dword [ebx + 0xa80], eax
je 0x4d6545
lea eax, [esi + 1]
push eax
push 4
call fcn.00530848
cmp eax, edi
pop ecx
pop ecx
mov dword [ebx + 0xa84], eax
jne 0x4d65a5
mov eax, dword [ebx + 0xa80]
shr esi, 1
cmp eax, edi
je 0x4d655e
push eax
call fcn.0053061e
pop ecx
mov dword [ebx + 0xa80], edi
mov eax, dword [ebx + 0xa84]
cmp eax, edi
je 0x4d6575
push eax
call fcn.0053061e
pop ecx
mov dword [ebx + 0xa84], edi
cmp esi, 0x9c40
jb 0x4d662b
push esi
push 0x50
pop ecx
xor edx, edx
mov eax, esi
div ecx
push 0x19
pop ecx
xor edx, edx
div ecx
push eax
push str.OpenTelNetSession___could_not_create_a__ld_page_receive_buffer_of_size__ld_bytes:__OUT_OF_MEMORY__
call fcn.0042bd38
add esp, 0xc
jmp 0x4d6517
mov dword [ebx + 0xa88], esi
mov dword [ebx + 0xa8c], edi
mov dword [eax + esi*4 - 4], edi
mov eax, dword [0x7093b4]
cmp eax, edi
mov dword [ebx + 0xd0], edi
mov dword [ebx + 0xd4], edi
jne 0x4d65d4
call fcn.004b2094
mov dword [0x7093b4], eax
push ebx
call fcn.004b218d
pop ecx
mov eax, ebx
call fcn.004d8ac4
test eax, eax
jne 0x4d661b
mov eax, ebx
call fcn.004d66c5
mov eax, dword [0x7093b4]
call fcn.004b22ff
mov esi, dword [0x7093b4]
call fcn.004b2561
test eax, eax
jg 0x4d663d
push dword [0x7093b4]
call fcn.004b2137
and dword [0x7093b4], 0
pop ecx
jmp 0x4d663d
mov esi, ebx
call fcn.004d6683
call fcn.004d4e50
mov eax, ebx
jmp 0x4d663f
push str.OpenTelNetSession___FAILED:_Could_not_create_20_page_data_receive_buffer:__OUT_OF_MEMORY__
call fcn.0042b70b
pop ecx
mov eax, ebx
call fcn.004d66c5
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005317e7
leave
ret