Function at 0x100066ed
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c8
push ebx
push esi
push edi
xor edi, edi
push 0x498
lea eax, [ebp - 0x4c4]
push edi
push eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
call sub.msvcrt.dll_memset
add esp, 0xc
lea ebx, [ebp - 0x4c4]
call fcn.10006632
test eax, eax
jns 0x1000675e
call fcn.10007489
cmp edx, edi
jg 0x1000673f
jl 0x10006737
cmp eax, 0xe10
jae 0x1000673f
or eax, 0xffffffff
jmp 0x100069bd
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ebx, 0x10020e28
push ebx
lea eax, [ebp - 0x4c4]
push eax
call esi
push ebx
lea eax, [ebp - 0x4b4]
push eax
call esi
mov esi, 0x100
lea eax, [ebp - 0x2b4]
push esi
push eax
call fcn.10017e5a
pop ecx
pop ecx
call fcn.10016c2b
mov byte [ebp - 0x30], al
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1b4]
push eax
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, 0x33b6
call fcn.10012bb6
movzx ecx, word [ebp - 0x28]
push ecx
movzx ecx, word [ebp - 0x26]
push ecx
movzx ecx, word [ebp - 0x22]
push ecx
movzx ecx, word [ebp - 0x1c]
push ecx
movzx ecx, word [ebp - 0x1e]
push ecx
movzx ecx, word [ebp - 0x20]
push ecx
push eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xb4]
push 0x3f
push eax
call fcn.10010b7c
add esp, 0x24
lea eax, [ebp - 8]
call fcn.10012c54
push 1
call fcn.1001169a
pop ecx
push dword [0x1002b004]
mov dword [ebp - 0x74], eax
movzx eax, word [section..data]
push eax
push str._04x._u
lea eax, [ebp - 0x70]
push 0x40
push eax
call fcn.10010b7c
add esp, 0x14
push 0x2f
call fcn.1001169a
mov esi, eax
pop ecx
mov eax, 0x3e4
call fcn.10012bb6
mov dword [ebp - 8], eax
cmp eax, edi
je 0x10006737
cmp esi, edi
jne 0x10006831
mov esi, str.NULL
mov ecx, dword [ebp - 0x74]
cmp ecx, edi
jne 0x1000683d
mov ecx, 0x10020e3c
cmp byte [ebp - 0x30], 1
mov eax, 0x10020e40
je 0x1000684d
mov eax, 0x10020e44
push esi
push 0x1002e958
push ecx
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x70]
push ecx
lea ecx, [ebp - 0x2b4]
push ecx
push eax
push 0x1002d088
push 0x1002d008
lea eax, [ebp - 0x1b4]
push eax
lea eax, [ebp - 0x4b4]
push eax
lea eax, [ebp - 0x4c4]
push eax
push dword [ebp - 8]
mov edi, 0x3ffff
push edi
push esi
call fcn.10010b7c
lea eax, [ebp - 8]
call fcn.10012c54
lea eax, [ebp - 0x10]
push eax
call fcn.10009cff
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
add esp, 0x3c
mov dword [ebp - 0x18], eax
test eax, eax
je 0x100069a2
and dword [ebp - 8], 0
cmp dword [ebp - 0x10], 0
jbe 0x10006995
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
test byte [eax], 4
jne 0x10006982
push esi
call ebx
inc eax
cmp eax, 0x40000
jae 0x10006995
mov eax, dword [ebp - 0xc]
push dword [eax + 0x38]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
mov eax, dword [ebp - 0xc]
push dword [eax + 8]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
push dword [ebp - 8]
push str._iface__d__s__s_
push esi
call ebx
mov ecx, edi
sub ecx, eax
push ecx
push esi
call ebx
add eax, esi
push eax
call fcn.10010b7c
mov eax, dword [ebp - 0xc]
add esp, 0x18
test byte [eax], 1
je 0x10006929
push 0x10020e5c
jmp 0x1000692e
push str._DOWN
push esi
call ebx
mov ecx, edi
sub ecx, eax
push ecx
push esi
call ebx
add eax, esi
push eax
call fcn.10010b7c
mov eax, dword [ebp - 0xc]
add esp, 0xc
test byte [eax], 8
je 0x10006967
push str._PPP
push esi
call ebx
mov ecx, edi
sub ecx, eax
push ecx
push esi
call ebx
add eax, esi
push eax
call fcn.10010b7c
add esp, 0xc
push str.__n_0
push esi
call ebx
mov ecx, edi
sub ecx, eax
push ecx
push esi
call ebx
add eax, esi
push eax
call fcn.10010b7c
add esp, 0xc
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
add dword [ebp - 0xc], 0x4c
cmp eax, dword [ebp - 0x10]
jb 0x100068c7
xor eax, eax
lea esi, [ebp - 0x18]
call fcn.10010a5b
mov esi, dword [ebp + 8]
push 0x10020c2c
push esi
call ebx
sub edi, eax
push edi
push esi
call ebx
add eax, esi
push eax
call fcn.10010b7c
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret