Function at 0x1002c7cc
Capabilities:
Get hostname
Get mac address on windows
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x6dc
push ebx
push esi
push edi
xor eax, eax
mov esi, 0xc6
push esi
mov word [esp + 0x13c], ax
xor ebx, ebx
lea eax, [esp + 0x13e]
push ebx
push eax
call fcn.10131950
xor eax, eax
push esi
mov word [esp + 0x210], ax
lea eax, [esp + 0x212]
push ebx
push eax
call fcn.10131950
xor eax, eax
push esi
mov word [esp + 0x2e4], ax
lea eax, [esp + 0x2e6]
push ebx
push eax
call fcn.10131950
xor eax, eax
push esi
mov word [esp + 0x3b8], ax
lea eax, [esp + 0x3ba]
push ebx
push eax
call fcn.10131950
add esp, 0x30
lea eax, [esp + 0x558]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x1002c986
push 0xfe
lea eax, [esp + 0x45d]
push ebx
push eax
mov byte [esp + 0x464], bl
call fcn.10131950
add esp, 0xc
push 0xff
lea eax, [esp + 0x45c]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
lea eax, [esp + 0x458]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, eax
lea eax, [esp + 0x38]
mov dword [esp + 0x34], eax
push 3
lea eax, [esp + 0x45c]
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.1000d5be
push dword [esp + 0x34]
lea eax, [esp + 0x204]
push eax
call fcn.10131873
lea eax, [esp + 0x40]
pop ecx
pop ecx
cmp dword [esp + 0x34], eax
je 0x1002c8e7
push dword [esp + 0x34]
call fcn.10133c16
pop ecx
cmp esi, ebx
je 0x1002c980
mov eax, dword [esi + 0xc]
push 4
push dword [eax]
lea eax, [esp + 0x1c]
push eax
call fcn.10131ca0
add esp, 0xc
push ebx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], 0xf
call fcn.1000dcdd
push dword [esp + 0x14]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea ecx, [esp + 0x1c]
call fcn.1000c694
cmp dword [esp + 0x30], 0x10
mov eax, dword [esp + 0x1c]
jae 0x1002c938
lea eax, [esp + 0x1c]
push 3
push eax
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x40]
push eax
mov dword [esp + 0x40], ecx
call fcn.1000d5be
push dword [esp + 0x34]
lea eax, [esp + 0x2cc]
push eax
call fcn.10131873
lea eax, [esp + 0x40]
pop ecx
pop ecx
cmp dword [esp + 0x34], eax
je 0x1002c974
push dword [esp + 0x34]
call fcn.10133c16
pop ecx
push ebx
push 1
lea ecx, [esp + 0x20]
call fcn.1000d489
call dword [sym.imp.WS2_32.dll_WSACleanup]
lea eax, [esp + 0x10]
push eax
push ebx
mov dword [esp + 0x18], ebx
call sub.IPHLPAPI.DLL_GetAdaptersInfo
cmp eax, 0x6f
jne 0x1002caa9
push dword [esp + 0x10]
call fcn.101317de
mov esi, eax
pop ecx
lea eax, [esp + 0x10]
push eax
push esi
call sub.IPHLPAPI.DLL_GetAdaptersInfo
test eax, eax
je 0x1002c9eb
push esi
call fcn.101317e9
pop ecx
jmp 0x1002c9eb
lea eax, [esi + 0x10c]
push 0x1018b864
push eax
call fcn.10133e90
pop ecx
pop ecx
test eax, eax
ja 0x1002c9f1
mov eax, dword [esi + 0x1a0]
cmp eax, 0x47
je 0x1002c9f1
cmp eax, 6
je 0x1002c9f1
mov esi, dword [esi]
cmp esi, ebx
jne 0x1002c9c2
jmp 0x1002ca33
xor edi, edi
cmp dword [esi + 0x190], ebx
jbe 0x1002ca33
movzx eax, byte [esi + edi + 0x194]
push eax
push str._02X
lea eax, [esp + 0x20]
push 0xa
push eax
call fcn.1013192a
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x3a4]
push eax
call fcn.10131845
add esp, 0x18
inc edi
cmp edi, dword [esi + 0x190]
jb 0x1002c9fb
lea eax, [esp + 0x200]
push eax
lea eax, [esp + 0x13c]
push eax
call fcn.10131845
mov esi, 0x1018f2c0
lea eax, [esp + 0x140]
push esi
push eax
call fcn.10131845
lea eax, [esp + 0x2d8]
push eax
lea eax, [esp + 0x14c]
push eax
call fcn.10131845
lea eax, [esp + 0x150]
push esi
push eax
call fcn.10131845
lea eax, [esp + 0x3b0]
push eax
lea eax, [esp + 0x15c]
push eax
call fcn.10131845
add esp, 0x28
lea eax, [esp + 0x138]
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8