Function at 0x1006d34
Capabilities:
Get hostname

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x100cdf4]
push ebx
push esi
push edi
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x214]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xor edi, edi
push ecx
push eax
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x224], edi
mov dword [ebp - 0x214], edi
mov dword [ebp - 0x218], edi
mov dword [ebp - 0x21c], edi
call fcn.01005f79
push 0x101eea8
mov esi, eax
call fcn.01005463
lea ebx, [esi*4 + 0xc]
push ebx
mov dword [0x101eea8], edi
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
test edi, edi
pop ecx
mov dword [0x101eeac], edi
jne 0x1006dc6
push 0x4de
call fcn.0100484c
mov dword [ebp - 0x224], 0x8007000e
jmp 0x1007093
mov ecx, ebx
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
test esi, esi
mov esi, dword [sym.imp.msvcrt.dll_wcslen]
rep stosb byte es:[edi], al
jle 0x1006e78
mov eax, dword [ebp - 0x214]
test eax, eax
je 0x1006e78
jmp 0x1006e66
push eax
call dword [sym.imp.msvcrt.dll__wcsupr]
mov ebx, eax
push ebx
call esi
lea eax, [eax + eax + 2]
push eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, dword [0x101eeac]
mov edx, dword [0x101eea8]
push ebx
mov dword [ecx + edx*4], eax
call esi
mov edx, dword [0x101eeac]
mov edi, dword [0x101eea8]
mov edi, dword [edx + edi*4]
lea ecx, [eax + eax + 2]
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [0x101eea8]
mov ecx, dword [0x101eeac]
push ebx
push dword [ecx + eax*4]
call dword [sym.imp.msvcrt.dll_wcscpy]
push ebx
call esi
add esp, 0x1c
inc dword [0x101eea8]
lea eax, [ebx + eax*2 + 2]
cmp word [eax], 0
jne 0x1006df6
push dword [ebp - 0x214]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, dword [ebp - 0x218]
test eax, eax
je 0x1006f30
cmp word [eax], 0
je 0x1006f30
push eax
call dword [sym.imp.msvcrt.dll__wcsupr]
xor edi, edi
cmp edi, dword [0x101eea8]
mov ebx, eax
pop ecx
mov dword [ebp - 0x218], ebx
jae 0x1006ece
mov eax, dword [0x101eeac]
push dword [eax + edi*4]
push ebx
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
je 0x1006ec8
inc edi
cmp edi, dword [0x101eea8]
jb 0x1006eaa
cmp edi, dword [0x101eea8]
jne 0x1006f30
push ebx
call esi
lea eax, [eax + eax + 2]
push eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, dword [0x101eeac]
mov edx, dword [0x101eea8]
push ebx
mov dword [ecx + edx*4], eax
call esi
mov edx, dword [0x101eeac]
mov edi, dword [0x101eea8]
mov edi, dword [edx + edi*4]
lea ecx, [eax + eax + 2]
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [0x101eea8]
mov ecx, dword [0x101eeac]
push ebx
push dword [ecx + eax*4]
call dword [sym.imp.msvcrt.dll_wcscpy]
add esp, 0x14
inc dword [0x101eea8]
lea eax, [ebp - 0x21c]
push eax
push 0x65
mov ebx, 0x1001d28
push ebx
push dword [ebp - 0x220]
call dword [sym.imp.msvcrt.dll__wcsicmp]
neg eax
pop ecx
sbb eax, eax
and eax, dword [ebp - 0x220]
pop ecx
push eax
call sub.NETAPI32.dll_NetServerGetInfo
mov eax, dword [ebp - 0x21c]
test eax, eax
je 0x1006f71
test byte [eax + 0x10], 0x18
jne 0x1007093
push ebx
mov ebx, dword [ebp - 0x220]
xor eax, eax
mov ecx, 0x83
lea edi, [ebp - 0x210]
push ebx
rep stosd dword es:[edi], eax
mov dword [ebp - 0x214], 0x20c
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
je 0x1006ff3
push ebx
call esi
cmp eax, 0x102
pop ecx
ja 0x1007093
push 2
mov edi, 0x1001d20
push edi
push ebx
call dword [sym.imp.msvcrt.dll_wcsncmp]
add esp, 0xc
test eax, eax
je 0x1006fd3
lea eax, [ebp - 0x210]
push edi
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
lea eax, [ebp - 0x210]
push ebx
push eax
call dword [sym.imp.msvcrt.dll_wcscat]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.msvcrt.dll__wcsupr]
add esp, 0xc
jmp 0x1007021
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x1007093
mov word [ebp - 0x210], 0x5c
mov word [ebp - 0x20e], 0x5c
lea eax, [ebp - 0x210]
push eax
call esi
lea eax, [eax + eax + 2]
push eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, dword [0x101eeac]
mov edx, dword [0x101eea8]
mov dword [ecx + edx*4], eax
lea eax, [ebp - 0x210]
push eax
call esi
mov edx, dword [0x101eeac]
mov esi, dword [0x101eea8]
mov edi, dword [edx + esi*4]
lea ecx, [eax + eax + 2]
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [0x101eeac]
lea eax, [ebp - 0x210]
push eax
mov eax, dword [0x101eea8]
push dword [ecx + eax*4]
call dword [sym.imp.msvcrt.dll_wcscpy]
add esp, 0x14
inc dword [0x101eea8]
cmp dword [ebp - 0x21c], 0
pop edi
pop esi
pop ebx
je 0x10070aa
push dword [ebp - 0x21c]
call sub.NETAPI32.dll_NetApiBufferFree
cmp dword [ebp - 0x218], 0
je 0x10070bf
push dword [ebp - 0x218]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x224]
call fcn.01009832
leave
ret 4