Function at 0x10007885
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4bc
push ebx
push esi
push edi
xor esi, esi
push 0x498
lea eax, [ebp - 0x4bc]
push esi
push eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
call fcn.10014780
lea eax, [ebp - 0x4bc]
push eax
call fcn.10007805
add esp, 0x10
test eax, eax
jns 0x100078f7
call fcn.100087ec
cmp edx, esi
jg 0x100078d8
jl 0x100078d0
cmp eax, 0xe10
jae 0x100078d8
or eax, 0xffffffff
jmp 0x10007b3a
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ebx, 0x1001d4d8
push ebx
lea eax, [ebp - 0x4bc]
push eax
call edi
push ebx
lea eax, [ebp - 0x4ac]
push eax
call edi
mov edi, 0x100
lea eax, [ebp - 0x2ac]
push edi
push eax
call fcn.1001bb00
pop ecx
pop ecx
call fcn.1001a1a6
mov byte [ebp - 0x28], al
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1ac]
push eax
mov dword [ebp - 0x14], edi
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x24]
push eax
movzx eax, word [ebp - 0x22]
push eax
movzx eax, word [ebp - 0x1e]
push eax
movzx eax, word [ebp - 0x18]
push eax
movzx eax, word [ebp - 0x1a]
push eax
movzx eax, word [ebp - 0x1c]
push eax
push dword [0x1002a684]
lea eax, [ebp - 0xac]
push 0x3f
push eax
call fcn.100147fe
push 1
call fcn.10015c20
push dword [0x10025004]
mov dword [ebp - 0x6c], eax
movzx eax, word [section..data]
push eax
push str._04x._u
lea eax, [ebp - 0x68]
push 0x40
push eax
call fcn.100147fe
push 0x2f
call fcn.10015c20
add esp, 0x40
mov edx, eax
cmp eax, esi
jne 0x100079a0
mov edx, str.NULL
mov ecx, dword [ebp - 0x6c]
cmp ecx, esi
jne 0x100079ac
mov ecx, 0x1001d50c
cmp byte [ebp - 0x28], 1
mov eax, 0x1001d508
je 0x100079bc
mov eax, 0x1001d504
push edx
push 0x10029f28
push ecx
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x68]
push ecx
lea ecx, [ebp - 0x2ac]
push ecx
push eax
push 0x10028e88
push 0x10028e08
lea eax, [ebp - 0x1ac]
push eax
lea eax, [ebp - 0x4ac]
push eax
lea eax, [ebp - 0x4bc]
push eax
push dword [0x1002a910]
lea eax, [edi - 1]
push eax
push ebx
call fcn.100147fe
lea eax, [ebp - 0x10]
push eax
call fcn.1000aac8
add esp, 0x3c
cmp eax, esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 8], eax
jbe 0x10007b1e
xor eax, eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x10], eax
jbe 0x10007b11
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
test byte [eax + ecx], 4
jne 0x10007afe
push ebx
call esi
inc eax
cmp eax, edi
jae 0x10007b11
mov edi, dword [ebp - 4]
add edi, dword [ebp - 8]
push dword [edi + 0x38]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
push dword [edi + 8]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
push dword [ebp - 0xc]
push str._iface__d__s__s_
push ebx
call esi
mov edi, dword [ebp + 0xc]
mov ecx, edi
sub ecx, eax
dec ecx
push ecx
push ebx
call esi
add eax, ebx
push eax
call fcn.100147fe
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
add esp, 0x18
test byte [ecx + eax], 1
je 0x10007a9d
push 0x1001d4ec
jmp 0x10007aa2
push str._DOWN
push ebx
call esi
mov ecx, edi
sub ecx, eax
dec ecx
push ecx
push ebx
call esi
add eax, ebx
push eax
call fcn.100147fe
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
add esp, 0xc
test byte [ecx + eax], 8
je 0x10007ae1
push str._PPP
push ebx
call esi
mov ecx, edi
sub ecx, eax
dec ecx
push ecx
push ebx
call esi
add eax, ebx
push eax
call fcn.100147fe
add esp, 0xc
push 0x1001d2e0
push ebx
call esi
sub edi, eax
dec edi
push edi
push ebx
call esi
add eax, ebx
push eax
call fcn.100147fe
mov edi, dword [ebp + 0xc]
add esp, 0xc
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
add dword [ebp - 4], 0x4c
cmp eax, dword [ebp - 0x10]
jb 0x10007a32
lea eax, [ebp - 8]
push 0
push eax
call fcn.100145b0
pop ecx
pop ecx
push 0x1001d30c
push ebx
call esi
sub edi, eax
dec edi
push edi
push ebx
call esi
add eax, ebx
push eax
call fcn.100147fe
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret