Function at 0x4b7740
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x5bc684]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov ebx, ecx
jmp 0x4b7760
mov edi, eax
lea ecx, [ebx + 0x137c]
push 0x54f15a
mov dword [ebp - 0x28], edi
mov dword [ebx + 0x1394], 0
call fcn.004bfc00
mov eax, dword [ebx + 0x1398]
mov ecx, dword [str.EHLO]
mov dword [eax], ecx
mov dx, word [0x5759b8]
mov word [eax + 4], dx
test edi, edi
je 0x4b77d0
cmp byte [edi], 0
je 0x4b77d0
mov eax, edi
mov esi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4b77a5
mov edi, dword [ebx + 0x1398]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4b77b5
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp - 0x28]
jmp 0x4b7832
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x14]
push ecx
mov dword [ebp - 0x28], 0x10
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
lea eax, [ebp - 0x14]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4b7800
sub eax, edx
jne 0x4b781c
mov edx, dword [0x560e58]
mov eax, dword [0x560e5c]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], eax
mov eax, dword [ebx + 0x1398]
lea edx, [ebp - 0x14]
add eax, 5
mov cl, byte [edx]
mov byte [eax], cl
inc edx
inc eax
test cl, cl
jne 0x4b7828
mov eax, dword [ebx + 0x1398]
dec eax
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4b7840
mov cx, word [0x560e54]
mov word [eax], cx
mov dl, byte [0x560e56]
mov byte [eax + 2], dl
mov edx, dword [ebx + 0x1398]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4b7866
sub eax, esi
push eax
push edx
mov ecx, ebx
call fcn.004b6cd0
test eax, eax
jne 0x4b7990
push 2
mov ecx, ebx
call fcn.004b6ff0
mov esi, eax
test esi, esi
je 0x4b78dd
mov eax, dword [ebx + 0x1398]
mov byte [eax], 0x48
mov ecx, dword [ebx + 0x1398]
mov byte [ecx + 1], 0x45
mov esi, dword [ebx + 0x1398]
mov eax, esi
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4b78b0
sub eax, edx
push eax
push esi
mov ecx, ebx
call fcn.004b6cd0
test eax, eax
jne 0x4b7990
push 2
mov ecx, ebx
call fcn.004b6ff0
mov esi, eax
test esi, esi
jne 0x4b7995
cmp dword [ebx + 0x13a0], 0
je 0x4b7a93
mov ecx, ebx
call fcn.004b6170
test eax, eax
jne 0x4b7a93
mov eax, dword [ebx + 0x137c]
push str.250_STARTTLS
push eax
call fcn.004bef70
add esp, 8
test eax, eax
je 0x4b7a38
mov edx, dword [str.STARTTLS_r_n]
mov eax, dword [ebx + 0x1398]
mov dword [eax], edx
mov ecx, dword [0x57599c]
mov dword [eax + 4], ecx
mov dx, word [0x5759a0]
mov word [eax + 8], dx
mov cl, byte [0x5759a2]
mov byte [eax + 0xa], cl
mov edx, dword [ebx + 0x1398]
mov eax, edx
lea esi, [eax + 1]
jmp 0x4b7950
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4b7950
sub eax, esi
push eax
push edx
mov ecx, ebx
call fcn.004b6cd0
test eax, eax
jne 0x4b7a33
push 0xb
mov ecx, ebx
call fcn.004b6ff0
mov esi, eax
test esi, esi
jne 0x4b7a38
push eax
mov ecx, ebx
call fcn.004b6210
test eax, eax
jne 0x4b79c5
mov eax, edi
jmp 0x4b7760
mov esi, 6
mov ecx, dword [ebx + 0x1394]
mov edx, dword [ebx + 0x1368]
mov edx, dword [edx + 8]
push ecx
mov ecx, dword [ebx + 0x137c]
push ecx
push esi
lea eax, [ebx + 0x1368]
push str.SMTP::Helo___Error__d__Response__s_ReplyCode__d
push 0
push eax
call edx
add esp, 0x18
jmp 0x4b7a93
push eax
lea eax, [ebp - 0x24]
push str._SECURITY_STATUS__0x_X_
push eax
mov esi, 6
call fcn.004ff1e4
add esp, 0xc
push str.554_TLS_Handshake_Failed.
lea ecx, [ebx + 0x137c]
mov dword [ebx + 0x1394], 0x22a
call fcn.004bfc00
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebx + 0x137c]
call fcn.004bfd50
cmp dword [ebx + 0x1378], 0
je 0x4b7a38
mov ecx, dword [ebx + 0x137c]
mov edx, dword [ebx + 0x1368]
mov edx, dword [edx + 8]
push ecx
lea eax, [ebx + 0x1368]
push str.TLS:__s
push 3
push eax
call edx
add esp, 0x10
jmp 0x4b7a38
mov esi, 6
cmp dword [ebx + 0x13a0], 2
jne 0x4b7a93
mov ecx, ebx
call fcn.004b6170
test eax, eax
jne 0x4b7a93
lea edi, [ebx + 0x137c]
push str.554_TLS_required_by_client.
mov ecx, edi
lea esi, [eax + 6]
mov dword [ebx + 0x1394], 0x22a
call fcn.004bfc00
cmp dword [ebx + 0x1378], 0
je 0x4b7a93
mov ecx, dword [edi]
mov eax, dword [ebx + 0x1368]
mov edx, dword [eax + 8]
push ecx
add ebx, 0x1368
push str.TLS:__s
push 3
push ebx
call edx
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.004fe1f5
mov esp, ebp
pop ebp
ret 4