Function at 0x100f1160
Capabilities:
Get hostname

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101eb6e8
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x8d0
mov eax, dword [0x10285124]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
mov dword [ebp - 0x8c4], edi
xor eax, eax
mov dword [ebp - 0x8c8], 0
mov dword [ebp - 0x848], 7
mov dword [ebp - 0x84c], 0
mov word [ebp - 0x85c], ax
mov dword [ebp - 4], eax
xorps xmm0, xmm0
mov word [ebp - 0x34], ax
mov dword [ebp - 0x1a], eax
mov word [ebp - 0x16], ax
lea eax, [ebp - 0x890]
push eax
lea eax, [ebp - 0x34]
movq qword [ebp - 0x22], xmm0
push eax
movups xmmword [ebp - 0x32], xmm0
mov dword [ebp - 0x890], 0x10
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x100f123f
cmp word [ebp - 0x34], 0
jne 0x100f1216
xor ecx, ecx
jmp 0x100f122f
lea ecx, [ebp - 0x34]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100f1220
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x85c]
call fcn.100a7e70
test esi, esi
je 0x100f127a
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov ecx, edi
mov word [edi], ax
lea eax, [ebp - 0x85c]
push eax
call fcn.100a7dd0
mov ecx, dword [ebp - 0x848]
cmp ecx, 8
jb 0x100f1652
inc ecx
push ecx
jmp 0x100f1641
push 0
push 0x10244f88
lea ecx, [ebp - 0x85c]
call fcn.100a7e70
push 0x800
lea eax, [ebp - 0x838]
push 0
push eax
call fcn.101b7960
add esp, 8
lea eax, [ebp - 0x838]
mov edx, str.SOFTWAREMicrosoftWindows_NTCurrentVersion
mov ecx, reloc.WS2_32.dll_bind
push 0x400
push eax
push 0x1024ce14
call fcn.100a63c0
add esp, 0x10
lea eax, [ebp - 0x838]
cmp word [ebp - 0x838], 0
je 0x100f131d
push eax
lea edx, [ebp - 0x85c]
lea ecx, [ebp - 0x8c0]
call fcn.100ab160
add esp, 4
lea ecx, [ebp - 0x85c]
push eax
call fcn.100abd10
mov eax, dword [ebp - 0x8ac]
cmp eax, 8
jb 0x100f1613
inc eax
lea ecx, [ebp - 0x8c0]
push eax
push dword [ebp - 0x8c0]
call fcn.100a5620
jmp 0x100f1613
push ecx
push 0x400
push eax
push str.CurrentVersion
mov edx, str.SOFTWAREMicrosoftWindows_NTCurrentVersion
mov ecx, reloc.WS2_32.dll_bind
call fcn.100a63c0
add esp, 0x10
cmp word [ebp - 0x838], 0
je 0x100f1613
lea eax, [ebp - 0x838]
push eax
lea ecx, [ebp - 0x8c0]
call fcn.100a7530
push 0x1024ceac
lea ecx, [ebp - 0x8c0]
mov byte [ebp - 4], 1
call fcn.100ab740
xor eax, eax
mov dword [ebp - 0x878], 7
mov dword [ebp - 0x87c], 0
mov word [ebp - 0x88c], ax
mov dword [ebp - 0x894], 7
mov dword [ebp - 0x898], eax
mov word [ebp - 0x8a8], ax
push 0x1024ceac
lea ecx, [ebp - 0x8a8]
mov byte [ebp - 4], 3
call fcn.100a7f70
xorps xmm0, xmm0
mov dword [ebp - 0x83c], 0
movq qword [ebp - 0x844], xmm0
mov dword [ebp - 0x844], 0
mov dword [ebp - 0x840], 0
mov dword [ebp - 0x83c], 0
mov byte [ebp - 4], 4
nop
push dword [ebp - 0x898]
cmp dword [ebp - 0x894], 8
lea eax, [ebp - 0x8a8]
push 0
cmovae eax, dword [ebp - 0x8a8]
lea ecx, [ebp - 0x8c0]
push eax
call fcn.100a7630
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov dword [ebp - 0x8c4], ecx
cmp eax, 0xffffffff
je 0x100f14ea
push ecx
push 0
lea eax, [ebp - 0x874]
push eax
lea ecx, [ebp - 0x8c0]
call fcn.100ab5d0
mov esi, eax
lea eax, [ebp - 0x88c]
cmp eax, esi
je 0x100f1497
mov eax, dword [ebp - 0x878]
cmp eax, 8
jb 0x100f146e
inc eax
lea ecx, [ebp - 0x88c]
push eax
push dword [ebp - 0x88c]
call fcn.100a5620
xor eax, eax
mov dword [ebp - 0x878], 7
push esi
lea ecx, [ebp - 0x88c]
mov dword [ebp - 0x87c], 0
mov word [ebp - 0x88c], ax
call fcn.100a7dd0
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x860]
cmp eax, 8
jb 0x100f14b9
inc eax
lea ecx, [ebp - 0x874]
push eax
push dword [ebp - 0x874]
call fcn.100a5620
lea eax, [ebp - 0x88c]
push eax
lea ecx, [ebp - 0x844]
call fcn.100f73f0
mov eax, dword [ebp - 0x898]
lea ecx, [ebp - 0x8c0]
add eax, dword [ebp - 0x8c4]
push eax
push 0
call fcn.100a5120
jmp 0x100f13f0
mov ecx, dword [ebp - 0x840]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0x844]
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 2
jb 0x100f15e7
xor eax, eax
mov dword [ebp - 0x860], 7
mov dword [ebp - 0x864], 0
mov word [ebp - 0x874], ax
mov byte [ebp - 4], 6
cmp dword [esi + 0x14], 8
jb 0x100f153d
mov eax, dword [esi]
jmp 0x100f153f
mov eax, esi
push eax
call fcn.101c48a9
add esi, 0x18
mov dword [ebp - 0x8c4], eax
add esp, 4
cmp dword [esi + 0x14], 8
jb 0x100f1559
mov esi, dword [esi]
push esi
call fcn.101c48a9
add esp, 4
cmp dword [ebp - 0x8c4], 6
jne 0x100f159a
test eax, eax
jne 0x100f1576
push 0x1024ceb0
jmp 0x100f159f
cmp eax, 1
jne 0x100f1582
push str.Windows_7
jmp 0x100f159f
cmp eax, 2
jne 0x100f158e
push str.Windows_8
jmp 0x100f159f
cmp eax, 3
jne 0x100f159a
push str.Windows_8.1
jmp 0x100f159f
push str.UnKnown
lea ecx, [ebp - 0x874]
call fcn.100a7f70
lea eax, [ebp - 0x874]
push eax
lea edx, [ebp - 0x85c]
lea ecx, [ebp - 0x8e0]
call fcn.100ab270
add esp, 4
lea ecx, [ebp - 0x85c]
push eax
call fcn.100abd10
lea ecx, [ebp - 0x8e0]
call fcn.100a5560
lea ecx, [ebp - 0x874]
call fcn.100a5560
lea ecx, [ebp - 0x844]
call fcn.100f74e0
lea ecx, [ebp - 0x8a8]
call fcn.100a5560
lea ecx, [ebp - 0x88c]
call fcn.100a5560
lea ecx, [ebp - 0x8c0]
call fcn.100a5560
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov ecx, edi
mov word [edi], ax
lea eax, [ebp - 0x85c]
push eax
call fcn.100a7dd0
mov eax, dword [ebp - 0x848]
cmp eax, 8
jb 0x100f1652
inc eax
push eax
push dword [ebp - 0x85c]
lea ecx, [ebp - 0x85c]
call fcn.100a5620
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.101b451c
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret