Function at 0x10083317
Capabilities:
Get hostname

Disassembly:
push 0x64
mov eax, 0x10169bed
call fcn.10163edf
mov dword [ebp - 0x4c], edx
mov ebx, ecx
mov edi, dword [ebp + 8]
xor ecx, ecx
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x5c], ecx
lea eax, [ebp - 0x5c]
mov dword [ebp - 4], ecx
mov esi, dword [esi]
push eax
push ecx
push 1
push 1
push 0x10019760
push ebx
mov ecx, esi
call dword [0x101a27b8]
call esi
mov esi, eax
test esi, esi
js 0x10083651
and dword [ebp - 0x58], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
mov eax, dword [edi]
push ecx
push edi
mov esi, dword [eax + 0x88]
mov ecx, esi
call dword [0x101a27b8]
call esi
mov esi, eax
test esi, esi
jns 0x100833af
mov ecx, dword [0x101923c0]
cmp ecx, 0x101923c0
je 0x10083679
test byte [ecx + 0x44], 1
je 0x10083679
push esi
push dword [ecx + 0x3c]
mov edx, 0x1001cba0
push dword [ecx + 0x38]
push 0xb
jmp 0x10083673
xor esi, esi
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x64], esi
push 0x10
pop eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x6c]
push eax
mov dword [ebp - 0x70], eax
call fcn.1004a002
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x6c]
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x10083420
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x100833f3
movzx esi, si
or esi, 0x80070000
mov eax, dword [0x101923c0]
cmp eax, 0x101923c0
je 0x10083679
test byte [eax + 0x44], 1
je 0x10083679
push esi
push dword [eax + 0x3c]
mov edx, 0x1001cba0
push dword [eax + 0x38]
push 0xc
jmp 0x10083673
push 2
xor eax, eax
mov dword [ebp - 0x18], 7
push 0x10019364
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], esi
mov word [ebp - 0x2c], ax
call fcn.10045aa5
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x68]
sub eax, dword [ebp - 0x6c]
sar eax, 1
je 0x1008368f
push dword [ebp - 0x6c]
lea ecx, [ebp - 0x2c]
call fcn.10045515
push 0x10018fc0
lea ecx, [ebp - 0x2c]
call fcn.10045515
push ebx
lea ecx, [ebp - 0x2c]
call fcn.10045515
xor ebx, ebx
mov dword [ebp - 0x50], ebx
push ebx
push ebx
sub esp, 0x10
mov byte [ebp - 4], 4
mov edi, esp
mov edx, dword [ebp - 0x58]
mov esi, 0x10018c3c
lea eax, [ebp - 0x50]
lea ecx, [ebp - 0x2c]
push 0x10018c4c
push eax
movsd dword es:[edi], dword [esi]
sub esp, 0x10
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, esp
mov esi, 0x10018be4
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.1005e6c3
push dword [ebp - 0x50]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
push ebx
add eax, 0x168
lea ecx, [ebp - 0x48]
push eax
call fcn.10071b7d
mov byte [ebp - 4], 5
lea eax, [ebp - 0x48]
mov ecx, dword [ebp - 0x4c]
push eax
push dword [ebp - 0x50]
mov ecx, dword [ecx]
call fcn.1009523e
mov dword [ebp - 0x54], ebx
mov byte [ebp - 4], 6
cmp dword [ebp - 0x34], 8
mov edx, dword [ebp - 0x48]
jae 0x100834ed
lea edx, [ebp - 0x48]
lea eax, [ebp - 0x54]
push eax
mov eax, dword [ebp - 0x38]
lea eax, [eax*2 + 2]
push eax
call fcn.10083903
mov esi, eax
test esi, esi
jns 0x10083536
mov ecx, dword [0x101923c0]
cmp ecx, 0x101923c0
je 0x10083679
test byte [ecx + 0x44], 1
je 0x10083679
push esi
push dword [ecx + 0x3c]
mov edx, 0x1001cba0
push dword [ecx + 0x38]
push 0xd
jmp 0x10083673
mov eax, dword [ebp - 0x5c]
push dword [ebp - 0x54]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x101a27b8]
call esi
mov esi, eax
test esi, esi
jns 0x10083581
mov ecx, dword [0x101923c0]
cmp ecx, 0x101923c0
je 0x10083679
test byte [ecx + 0x44], 1
je 0x10083679
push esi
push dword [ecx + 0x3c]
mov edx, 0x1001cba0
push dword [ecx + 0x38]
push 0xe
jmp 0x10083673
mov eax, dword [0x101923c0]
mov esi, 0x101923c0
cmp eax, esi
je 0x100835e3
test byte [eax + 0x44], 4
mov edi, 0x1001cba0
je 0x100835bc
cmp dword [ebp - 0x18], 8
mov ecx, dword [ebp - 0x2c]
jae 0x100835a6
lea ecx, [ebp - 0x2c]
push ecx
push dword [eax + 0x3c]
mov edx, edi
push dword [eax + 0x38]
push 0xf
pop ecx
call fcn.10040085
mov eax, dword [0x101923c0]
cmp eax, esi
je 0x100835e3
test byte [eax + 0x44], 8
je 0x100835e3
cmp dword [ebp - 0x34], 8
mov ecx, dword [ebp - 0x48]
jae 0x100835d2
lea ecx, [ebp - 0x48]
push ecx
push dword [eax + 0x3c]
mov edx, edi
push dword [eax + 0x38]
push 0x10
pop ecx
call fcn.10040085
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x100835fe
mov ecx, dword [eax]
push eax
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x101a27b8]
call esi
push ebx
push 1
lea ecx, [ebp - 0x48]
call fcn.10045ee3
push dword [ebp - 0x50]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.10045ee3
lea ecx, [ebp - 0x6c]
call fcn.10044cdb
push dword [ebp - 0x58]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x10083649
mov ecx, dword [eax]
push eax
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x101a27b8]
call esi
call fcn.10163e8e
ret 8
mov ecx, dword [0x101923c0]
cmp ecx, 0x101923c0
je 0x10083679
test byte [ecx + 0x44], 1
je 0x10083679
push esi
push dword [ecx + 0x3c]
mov edx, 0x1001cba0
push dword [ecx + 0x38]
push 0xa
pop ecx
call fcn.100401e4
push esi
lea ecx, [ebp - 0x4c]
call fcn.1003f8d8
push 0x10191580
mov eax, ecx
push eax
call sub.msvcrt.dll__CxxThrowException
call fcn.100548d6
int3