Function at 0x101842e
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1294
call fcn.01003a3d
push ebx
push esi
lea eax, [ebp - 0xc]
push edi
push eax
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0xc], 0x10
call dword [sym.imp.KERNEL32.DLL_GetComputerNameW]
test eax, eax
jne 0x10184eb
xor esi, esi
mov word [ebp - 0x2c], si
cmp dword [0x102103c], esi
mov edi, dword [ebp + 8]
push 0xd
pop ecx
je 0x1018475
mov dword [edi + 0x450], ecx
mov eax, dword [edi + 0x450]
mov ebx, dword [ebp + 0xc]
cmp eax, ecx
jne 0x101848d
push dword [ebx + 4]
push dword [ebx]
push edi
call fcn.0101a2f1
cmp eax, esi
jne 0x1018712
test byte [edi + 0x455], 0x80
lea eax, [edi + 0x454]
jne 0x1018712
push eax
push esi
push 0x10091b0
push dword [ebx]
push dword [ebx + 4]
push dword [ebp + 0x10]
push dword [ebp + 0x10]
call fcn.010084dd
push eax
call dword [0x102306c]
test al, al
jne 0x10184f2
cmp dword [0x102103c], esi
jne 0x10184f2
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push dword [ebx + 4]
push dword [ebx]
push esi
push eax
push esi
push edi
call fcn.010157bd
jmp 0x1018690
xor esi, esi
jmp 0x1018461
mov eax, dword [ebx]
mov edi, dword [sym.imp.MSVCRT.DLL_wcslen]
cmp eax, esi
mov dword [ebp + 0x10], 0x2d
je 0x1018514
push eax
call edi
shl eax, 1
mov dword [ebp - 4], eax
add eax, 0x3a
pop ecx
mov dword [ebp + 0x10], eax
mov eax, dword [ebx + 4]
cmp eax, esi
je 0x101852e
push eax
call edi
pop ecx
mov ecx, dword [ebp + 0x10]
shl eax, 1
mov dword [ebp - 8], eax
lea eax, [ecx + eax + 0xd]
mov dword [ebp + 0x10], eax
push dword [ebp + 0x10]
push 0x40
call dword [sym.imp.KERNEL32.DLL_LocalAlloc]
mov edx, eax
cmp edx, esi
mov dword [ebp + 0xc], edx
je 0x1018608
lea eax, [edx + 4]
mov dword [edx], 0x29
push 8
lea esi, [ebp - 0x2c]
mov byte [eax + 8], 1
mov ecx, dword [0x100c598]
mov dword [eax], ecx
mov ecx, dword [0x100c59c]
mov dword [eax + 4], ecx
pop ecx
lea edi, [eax + 9]
add eax, 0x29
rep movsd dword es:[edi], dword [esi]
cmp dword [ebx], 0
je 0x10185b3
mov ecx, dword [ebp - 4]
lea edx, [ecx + 9]
mov dword [eax], edx
add eax, 4
mov dword [ebp - 4], edx
mov byte [eax + 8], 1
mov edx, dword [0x100c590]
mov dword [eax], edx
mov edx, dword [0x100c594]
mov dword [eax + 4], edx
mov esi, dword [ebx]
mov edx, ecx
lea edi, [eax + 9]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [ebp + 0xc]
and ecx, 3
add eax, dword [ebp - 4]
rep movsb byte es:[edi], byte [esi]
cmp dword [ebx + 4], 0
je 0x10185ed
mov ecx, dword [ebp - 8]
lea esi, [ecx + 9]
mov dword [eax], esi
add eax, 4
mov byte [eax + 8], 1
mov esi, dword [0x100c588]
mov dword [eax], esi
mov esi, dword [0x100c58c]
mov dword [eax + 4], esi
mov esi, dword [ebx + 4]
lea edi, [eax + 9]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push dword [ebp + 0x10]
push edx
push 0x15
push 0xffffffffffffffff
push 0
call dword [0x1023058]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_LocalFree]
xor esi, esi
cmp dword [0x102103c], esi
jne 0x10186bf
lea eax, [ebp + 0x10]
or edi, 0xffffffff
push eax
lea eax, [ebp - 0x1294]
push 0xa68
push eax
push 1
push edi
push esi
call dword [0x102304c]
test al, al
je 0x10186bf
cmp byte [ebp - 0xd20], 0
je 0x1018695
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x82c]
push 0x800
push eax
push 6
push edi
push esi
call dword [0x102304c]
movzx eax, al
cmp eax, esi
je 0x101867b
cmp word [ebp - 0x33c], 2
je 0x1018695
mov al, byte [ebp - 0xd20]
cmp al, byte [ebp - 0x388]
jbe 0x1018695
push 0x30
push 0x5dd
push 0x7dd
push esi
push dword [ebp + 8]
call fcn.01011b97
push 4
pop eax
jmp 0x10186d3
lea eax, [ebp - 0x1294]
push eax
push dword [ebp + 8]
push esi
call fcn.0101037d
cmp eax, 1
jne 0x1018690
test byte [ebp - 0x1216], 0x20
push esi
push esi
jne 0x10186da
push 0xc
push edi
push esi
call dword [0x1023058]
push 1
pop edi
push dword [ebp + 8]
call fcn.010105cc
test eax, eax
je 0x10186de
push 0xf
pop edi
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0xc
push 0xb
jmp 0x10186b7
cmp dword [0x102103c], esi
jne 0x10186d1
mov eax, dword [0x1023050]
cmp eax, esi
je 0x10186d1
push 0xffffffffffffffff
push esi
call eax
test al, al
jne 0x10186d1
push dword [ebx + 4]
push dword [ebx]
push esi
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push esi
push dword [ebp + 8]
call fcn.010157bd
push 4
jmp 0x10186d0
push dword [ebx + 4]
push dword [ebx]
push esi
push 0x1b7d
jmp 0x10184df