Function at 0x46a400
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8bc
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x890], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x8b0], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x8ac], eax
mov eax, 0x18
push ebx
mov dword [ebp - 0x888], eax
mov ebx, edx
mov dword [ebp - 0x894], ecx
lea eax, [ebp - 0x64]
mov ecx, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x880], eax
push edi
mov al, byte [ecx + 4]
and al, 1
mov dword [ebp - 0x88c], ebx
push 0x400
mov byte [ebp - 0x871], al
lea eax, [ebp - 0x86f]
push 0
push eax
mov dword [ebp - 0x878], ecx
mov dword [ebp - 0x8a0], 0
mov byte [ebp - 0x870], 0
call sub.MSVCR120.dll_memset
add esp, 0xc
mov dword [ebp - 0x898], 0x4e9f94
xor edi, edi
mov dword [ebp - 0x89c], edi
mov dword [ebp - 0x87c], edi
push 0x5c
push ebx
call dword [sym.imp.MSVCR120.dll_strchr]
mov esi, eax
add esp, 8
test esi, esi
jne 0x46a4d4
push 0x2f
push ebx
call dword [sym.imp.MSVCR120.dll_strchr]
mov esi, eax
add esp, 8
test esi, esi
jne 0x46a4d4
mov esi, ebx
mov dword [ebp - 0x88c], ebx
jmp 0x46a4ef
mov dword [ebp - 0x898], ebx
mov ebx, esi
sub ebx, dword [ebp - 0x88c]
inc esi
mov dword [ebp - 0x87c], ebx
mov dword [ebp - 0x88c], esi
test esi, esi
je 0x46a507
mov edi, esi
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x46a4f8
sub edi, ecx
mov dword [ebp - 0x89c], edi
push 0x401
lea eax, [ebp - 0x870]
mov byte [ebp - 0x870], 0
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
mov byte [ebp - 0x470], 0
test eax, eax
jne 0x46a55b
lea eax, [ebp - 0x870]
push 0x2e
push eax
call dword [sym.imp.MSVCR120.dll_strchr]
add esp, 8
test eax, eax
je 0x46a544
mov byte [eax], 0
lea ebx, [ebp - 0x870]
lea ecx, [ebx + 1]
lea ecx, [ecx]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x46a550
sub ebx, ecx
jmp 0x46a570
push str.gethostname___failed__continuing_without__n
push dword [ebp - 0x894]
call fcn.00443730
add esp, 8
xor ebx, ebx
mov eax, dword [ebp - 0x878]
mov dword [ebp - 0x884], ebx
cmp dword [eax + 0x14], 0
je 0x46a64a
mov ecx, dword [ebp - 0x894]
call fcn.00452ef0
mov ecx, dword [ebp - 0x894]
mov dword [ebp - 0x8a8], eax
call fcn.00452ef0
mov edx, dword [ebp - 0x890]
mov dword [ebp - 0x8a4], eax
lea eax, [ebp - 0x4c]
push eax
call fcn.0046acb0
add esp, 4
test eax, eax
jne 0x46aa6d
lea eax, [ebp - 0x1c]
mov edx, edi
push eax
lea eax, [ebp - 0x4c]
mov ecx, esi
push eax
push dword [ebp - 0x87c]
push dword [ebp - 0x898]
call fcn.0046ae30
add esp, 0x10
test eax, eax
jne 0x46aa6d
mov esi, dword [ebp - 0x878]
lea eax, [ebp - 0x34]
push eax
lea edx, [ebp - 0x8a8]
lea ecx, [ebp - 0x1c]
lea eax, [esi + 8]
push eax
call fcn.0046b040
add esp, 8
test eax, eax
jne 0x46aa6d
lea eax, [ebp - 0x888]
push eax
lea eax, [ebp - 0x8a0]
push eax
push esi
lea edx, [ebp - 0x8a8]
lea ecx, [ebp - 0x1c]
call fcn.0046aed0
add esp, 0xc
test eax, eax
jne 0x46aa6d
mov eax, dword [ebp - 0x8a0]
mov dword [ebp - 0x880], eax
jmp 0x46a6ed
mov edx, dword [ebp - 0x890]
lea eax, [ebp - 0x4c]
push eax
call fcn.0046acb0
add esp, 4
test eax, eax
jne 0x46aa6d
mov esi, dword [ebp - 0x878]
lea eax, [ebp - 0x4c]
add esi, 8
lea edx, [ebp - 0x64]
push eax
mov ecx, esi
call fcn.0046ab10
add esp, 4
lea eax, [ebp - 0x45]
lea edx, [ebp - 0x5c]
mov ecx, esi
push eax
call fcn.0046ab10
add esp, 4
lea eax, [ebp - 0x3e]
lea edx, [ebp - 0x54]
mov ecx, esi
push eax
call fcn.0046ab10
mov edx, dword [ebp - 0x890]
lea eax, [ebp - 0x1c]
add esp, 4
push eax
call fcn.0046ac00
add esp, 4
test eax, eax
jne 0x46aa6d
lea eax, [ebp - 0x1c]
mov ecx, esi
push eax
lea edx, [ebp - 0x34]
call fcn.0046ab10
add esp, 4
lea eax, [ebp - 0x15]
lea edx, [ebp - 0x2c]
mov ecx, esi
push eax
call fcn.0046ab10
add esp, 4
lea eax, [ebp - 0xe]
lea edx, [ebp - 0x24]
mov ecx, esi
push eax
call fcn.0046ab10
add esp, 4
cmp byte [ebp - 0x871], 0
je 0x46a714
mov eax, dword [ebp - 0x87c]
add edi, edi
add eax, eax
mov dword [ebp - 0x89c], edi
add ebx, ebx
mov dword [ebp - 0x87c], eax
mov dword [ebp - 0x884], ebx
mov eax, dword [ebp - 0x888]
mov esi, ebx
add eax, 0x58
shr esi, 8
add eax, dword [ebp - 0x87c]
and esi, 0xff
mov dword [ebp - 0x890], eax
mov ecx, ebx
and ecx, 0xff
mov ebx, edi
shr ebx, 8
lea edx, [edi + eax]
and ebx, 0xff
mov eax, dword [ebp - 0x87c]
and edi, 0xff
shr eax, 8
and eax, 0xff
mov dword [ebp - 0x8bc], eax
mov eax, dword [ebp - 0x87c]
and eax, 0xff
mov dword [ebp - 0x8b8], eax
mov eax, dword [ebp - 0x888]
shr eax, 8
and eax, 0xff
mov dword [ebp - 0x8b4], eax
mov eax, dword [ebp - 0x888]
and eax, 0xff
mov dword [ebp - 0x8a4], eax
mov eax, dword [ebp - 0x878]
movzx eax, byte [eax + 7]
push eax
mov eax, dword [ebp - 0x878]
movzx eax, byte [eax + 6]
push eax
mov eax, dword [ebp - 0x878]
movzx eax, byte [eax + 5]
push eax
mov eax, dword [ebp - 0x878]
movzx eax, byte [eax + 4]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, edx
shr eax, 8
and eax, 0xff
push eax
movzx eax, dl
push eax
push esi
push ecx
push esi
mov esi, dword [ebp - 0x888]
push ecx
mov ecx, dword [ebp - 0x890]
mov eax, ecx
push 0
push 0
shr eax, 8
and eax, 0xff
push eax
movzx eax, cl
lea ecx, [esi + 0x58]
push eax
push ebx
push edi
push ebx
push edi
mov eax, ecx
push 0
shr eax, 8
push 0
and eax, 0xff
push eax
movzx eax, cl
mov ecx, dword [ebp - 0x8bc]
push eax
mov eax, dword [ebp - 0x8b8]
push ecx
push eax
push ecx
push eax
mov ecx, dword [ebp - 0x8b4]
mov eax, dword [ebp - 0x8a4]
push 0
push 0
push 0
push 0x58
push ecx
push eax
push ecx
push eax
push 0
push 0
push 0
push 0x40
push 0
push 0x18
push 0
push 0x18
push 0
push 0
push 0
push 0
push str.NTLMSSP_c
lea eax, [ebp - 0x468]
push 0x400
push eax
call fcn.004506b0
mov ebx, eax
add esp, 0xec
cmp ebx, 0x3e8
jae 0x46a8ab
movdqu xmm0, xmmword [ebp - 0x34]
movdqu xmmword [ebp + ebx - 0x468], xmm0
movq xmm0, qword [ebp - 0x24]
movq qword [ebp + ebx - 0x458], xmm0
add ebx, 0x18
mov eax, 0x400
sub eax, esi
cmp ebx, eax
jae 0x46a8d0
push esi
push dword [ebp - 0x880]
lea eax, [ebp - 0x468]
add eax, ebx
push eax
call sub.MSVCR120.dll_memcpy
add esp, 0xc
add ebx, esi
push dword [ebp - 0x8a0]
call dword [0x5007b0]
mov edx, dword [ebp - 0x87c]
add esp, 4
mov esi, dword [ebp - 0x89c]
mov edi, dword [ebp - 0x884]
lea eax, [ebx + edx]
mov dword [ebp - 0x880], eax
add eax, esi
add eax, edi
cmp eax, 0x400
jb 0x46a92e
push str.user__domain__host_name_too_big
push dword [ebp - 0x894]
call fcn.004437f0
add esp, 8
mov eax, 0x1b
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046bea8
mov esp, ebp
pop ebp
ret
cmp byte [ebp - 0x871], 0
je 0x46a968
lea ecx, [ebp - 0x468]
add ebx, ecx
shr edx, 1
mov ecx, 0
je 0x46a980
mov edi, dword [ebp - 0x898]
mov edi, edi
mov al, byte [ecx + edi]
mov byte [ebx + ecx*2], al
mov byte [ebx + ecx*2 + 1], 0
inc ecx
cmp ecx, edx
jb 0x46a950
mov edi, dword [ebp - 0x884]
jmp 0x46a980
push edx
push dword [ebp - 0x898]
lea eax, [ebp - 0x468]
add eax, ebx
push eax
call sub.MSVCR120.dll_memcpy
add esp, 0xc
cmp byte [ebp - 0x871], 0
mov ebx, dword [ebp - 0x880]
je 0x46a9ce
mov eax, esi
mov ecx, 0
shr eax, 1
mov dword [ebp - 0x8a4], eax
je 0x46a9e7
mov edx, dword [ebp - 0x88c]
lea edi, [ebp - 0x468]
add edi, ebx
mov esi, eax
mov al, byte [ecx + edx]
mov byte [edi + ecx*2], al
mov byte [edi + ecx*2 + 1], 0
inc ecx
cmp ecx, esi
jb 0x46a9b0
mov esi, dword [ebp - 0x89c]
mov edi, dword [ebp - 0x884]
jmp 0x46a9e7
mov edx, dword [ebp - 0x88c]
lea eax, [ebp - 0x468]
push esi
push edx
add eax, ebx
push eax
call sub.MSVCR120.dll_memcpy
add esp, 0xc
add ebx, esi
cmp byte [ebp - 0x871], 0
je 0x46aa26
lea edx, [ebp - 0x468]
mov esi, edi
add edx, ebx
mov ecx, 0
shr esi, 1
je 0x46aa3f
jmp 0x46aa10
mov al, byte [ebp + ecx - 0x870]
mov byte [edx + ecx*2], al
mov byte [edx + ecx*2 + 1], 0
inc ecx
cmp ecx, esi
jb 0x46aa10
jmp 0x46aa3f
push edi
lea eax, [ebp - 0x870]
push eax
lea eax, [ebp - 0x468]
add eax, ebx
push eax
call sub.MSVCR120.dll_memcpy
add esp, 0xc
push dword [ebp - 0x8ac]
lea eax, [ebx + edi]
push dword [ebp - 0x8b0]
push eax
lea eax, [ebp - 0x468]
push eax
call fcn.00466940
mov ecx, dword [ebp - 0x878]
add esp, 0x10
mov esi, eax
call fcn.00467f40
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046bea8
mov esp, ebp
pop ebp
ret