Function at 0x48f2f0
Capabilities:
Get hostname
Get session user name
Resolve dns
Set socket configuration

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x589b01
push eax
mov dword fs:[0], esp
sub esp, 0x410
xor eax, eax
push ebx
push ebp
push esi
mov ebp, ecx
push edi
mov edi, 0x5fe7d8
or ecx, 0xffffffff
lea edx, [ebp + 0x20]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea ebx, [edx + 0x32]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x5fe7d8
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
xor ebx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [edx + 0x64], ebx
mov dword [edx + 0x68], ebx
mov dword [ebp + 0xa0], ebx
mov dword [ebp + 8], ebx
call fcn.0043a600
mov edx, dword [esp + 0x434]
mov ecx, dword [esp + 0x430]
push edx
mov dword [ebp + 0xc], eax
mov dword [ebp + 4], 0xffffffff
mov dword [ebp], 0xffffffff
mov dword [ebp + 0x14], ebx
mov dword [ebp + 0x84], ecx
call sub.WSOCK32.dll_htons
and eax, 0xffff
mov edi, 0x5fe7d8
mov dword [ebp + 0x88], eax
mov eax, dword [esp + 0x438]
mov dword [ebp + 0x10], eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp + 0x8c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x430]
and ecx, 3
cmp eax, ebx
rep movsb byte es:[edi], byte [esi]
jne 0x48f48e
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x48f48e
cmp dword [eax + 0x1d4], ebx
je 0x48f410
mov ecx, dword [eax + 0x1d8]
cmp ecx, ebx
je 0x48f410
push ecx
call sub.WSOCK32.dll_htonl
jmp 0x48f46f
cmp eax, ebx
je 0x48f48e
cmp dword [eax + 0x1dc], ebx
je 0x48f48e
lea edi, [eax + 0x1e0]
mov esi, 0x5fe7d8
mov eax, edi
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x48f44d
test cl, cl
je 0x48f449
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x48f44d
add eax, 2
add esi, 2
test cl, cl
jne 0x48f429
xor eax, eax
jmp 0x48f452
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x48f48e
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push edi
call fcn.0056877a
call fcn.00440f80
add esp, 4
cmp eax, ebx
je 0x48f48e
mov ecx, dword [ebp + 0x10]
mov dword [ebp + 0x84], eax
mov dword [ecx + 0x4d2c], eax
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0x4d2c]
mov dword [esp + 0x430], eax
mov edi, dword [ebp + 0x10]
xor edx, edx
cmp edi, ebx
lea ecx, [esp + 0x430]
setne dl
push ecx
push edx
mov ecx, ebp
call fcn.0048f7a0
test eax, eax
je 0x48f766
lea eax, [esp + 0x18]
lea ebx, [ebp + 0x52]
push eax
push ebx
mov dword [esp + 0x20], 0x32
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
jne 0x48f4de
push eax
push str.GetComputerName__
call fcn.0043aa00
add esp, 8
jmp 0x48f766
mov eax, dword [esp + 0x430]
test eax, eax
jne 0x48f637
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x48f5e6
mov ecx, dword [eax + 0x1d4]
test ecx, ecx
je 0x48f526
mov ecx, dword [eax + 0x1d8]
test ecx, ecx
je 0x48f526
push ecx
call sub.WSOCK32.dll_htonl
mov ecx, dword [ebp + 0x10]
mov dword [ebp + 0x84], eax
mov dword [ecx + 0x4d2c], eax
jmp 0x48f637
test eax, eax
je 0x48f5e6
mov ecx, dword [eax + 0x1dc]
test ecx, ecx
je 0x48f5e6
lea edi, [eax + 0x1e0]
mov esi, 0x5fe7d8
mov eax, edi
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x48f56d
test cl, cl
je 0x48f569
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x48f56d
add eax, 2
add esi, 2
test cl, cl
jne 0x48f549
xor eax, eax
jmp 0x48f572
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x48f5e6
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push edi
call fcn.0056877a
call fcn.00440f80
add esp, 4
test eax, eax
jne 0x48f5d5
lea eax, [esp + 0x20]
push 0x400
push eax
call sub.WSOCK32.dll_gethostname
cmp eax, 0xffffffff
jne 0x48f5c5
or ecx, eax
mov edi, ebx
xor eax, eax
lea edx, [esp + 0x20]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x20]
push ecx
call sub.WSOCK32.dll_gethostbyname
test eax, eax
je 0x48f637
jmp 0x48f62a
mov edx, dword [ebp + 0x10]
mov dword [ebp + 0x84], eax
mov dword [edx + 0x4d2c], eax
jmp 0x48f637
lea eax, [esp + 0x20]
push 0x400
push eax
call sub.WSOCK32.dll_gethostname
cmp eax, 0xffffffff
jne 0x48f61c
or ecx, eax
mov edi, ebx
xor eax, eax
lea edx, [esp + 0x20]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x20]
push ecx
call sub.WSOCK32.dll_gethostbyname
test eax, eax
je 0x48f637
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
mov dword [ebp + 0x84], ecx
lea edx, [esp + 0x18]
lea eax, [ebp + 0x20]
push edx
push eax
mov dword [esp + 0x20], 0x32
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
mov ebx, 1
cmp eax, ebx
je 0x48f66a
push 0x32
lea eax, [ebp + 0x20]
push 0x5efb8c
push eax
call fcn.0043a0b0
add esp, 0xc
mov eax, dword [0x5f9f88]
mov dword [esp + 0x10], eax
mov ecx, dword [ebp + 0x10]
xor eax, eax
cmp ecx, eax
mov dword [esp + 0x428], eax
je 0x48f689
mov eax, dword [ecx + 0x1f4]
mov ecx, dword [ebp + 0x84]
push eax
lea edx, [esp + 0x18]
push ecx
push edx
call fcn.00440790
add esp, 0xc
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x42c], bl
call fcn.00568845
lea ecx, [esp + 0x14]
mov byte [esp + 0x428], 0
call fcn.0056870c
mov eax, dword [esp + 0x10]
mov eax, dword [eax - 8]
cmp eax, 0xc
jle 0x48f6ff
lea ecx, [esp + 0x14]
push 0xc
push ecx
lea ecx, [esp + 0x18]
call fcn.00563a94
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x42c], 2
call fcn.00568845
lea ecx, [esp + 0x14]
mov byte [esp + 0x428], 0
call fcn.0056870c
mov edi, dword [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
lea edi, [ebp + 0x8c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 0x10]
mov dword [ebp + 8], ebx
test eax, eax
je 0x48f73c
mov eax, dword [eax + 0x1fc]
push eax
call sub.WSOCK32.dll_ntohl
jmp 0x48f74c
push str.226.81.9.8
call sub.WSOCK32.dll_inet_addr
push eax
call sub.WSOCK32.dll_htonl
lea ecx, [esp + 0x10]
mov dword [ebp + 0x9c], eax
mov dword [esp + 0x428], 0xffffffff
call fcn.0056870c
mov ecx, dword [esp + 0x420]
pop edi
mov eax, ebp
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x41c
ret 0xc