Function at 0x100c07b
Capabilities:
Get hostname

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push dword [ebp + 8]
and dword [ebp - 8], 0
mov byte [ebp - 1], 0
call fcn.0100bfaa
test eax, eax
mov dword [ebp + 8], eax
jne 0x100c0a0
xor al, al
jmp 0x100c43f
push 7
push eax
push 0x1002268
call dword [sym.imp.msvcrt.dll__strnicmp]
add esp, 0xc
test eax, eax
jne 0x100c433
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetComputerNameExA]
lea eax, [ebp - 8]
push eax
push 0
push 2
call esi
test eax, eax
je 0x100c0d7
mov byte [ebp - 1], 0
jmp 0x100c432
push ebx
push edi
push dword [ebp - 8]
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
test ebx, ebx
pop ecx
jne 0x100c0f1
mov byte [ebp - 1], 0
jmp 0x100c425
mov ecx, dword [ebp - 8]
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [ebp - 8]
push eax
push ebx
push 2
call esi
test eax, eax
je 0x100c12f
push dword [ebp - 8]
mov eax, dword [ebp + 8]
add eax, 7
push ebx
push eax
call dword [sym.imp.msvcrt.dll__strnicmp]
add esp, 0xc
test eax, eax
je 0x100c421
push ebx
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
and dword [ebp - 8], 0
pop ecx
lea eax, [ebp - 8]
push eax
push 0
push 3
call esi
test eax, eax
jne 0x100c3ce
push dword [ebp - 8]
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
test ebx, ebx
pop ecx
je 0x100c0e8
mov ecx, dword [ebp - 8]
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [ebp - 8]
push eax
push ebx
push 3
call esi
test eax, eax
je 0x100c199
push dword [ebp - 8]
mov eax, dword [ebp + 8]
add eax, 7
push ebx
push eax
call dword [sym.imp.msvcrt.dll__strnicmp]
add esp, 0xc
test eax, eax
je 0x100c421
push ebx
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
and dword [ebp - 8], 0
pop ecx
lea eax, [ebp - 8]
push eax
push 0
push 1
call esi
test eax, eax
jne 0x100c3ce
push dword [ebp - 8]
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
test ebx, ebx
pop ecx
je 0x100c0e8
mov ecx, dword [ebp - 8]
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [ebp - 8]
push eax
push ebx
push 1
call esi
test eax, eax
je 0x100c207
push dword [ebp - 8]
mov eax, dword [ebp + 8]
add eax, 7
push ebx
push eax
call dword [sym.imp.msvcrt.dll__strnicmp]
add esp, 0xc
test eax, eax
je 0x100c421
push ebx
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
lea eax, [ebp - 8]
xor edi, edi
push eax
push edi
push edi
mov dword [ebp - 8], edi
call esi
test eax, eax
jne 0x100c3ce
push dword [ebp - 8]
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
cmp ebx, edi
pop ecx
je 0x100c0e8
mov ecx, dword [ebp - 8]
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [ebp - 8]
push eax
push ebx
xor edi, edi
push edi
call esi
test eax, eax
je 0x100c275
push dword [ebp - 8]
mov eax, dword [ebp + 8]
add eax, 7
push ebx
push eax
call dword [sym.imp.msvcrt.dll__strnicmp]
add esp, 0xc
test eax, eax
je 0x100c421
push ebx
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
lea eax, [ebp - 8]
push eax
push edi
push 6
mov dword [ebp - 8], edi
call esi
test eax, eax
jne 0x100c3ce
push dword [ebp - 8]
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
cmp ebx, edi
pop ecx
je 0x100c0e8
mov ecx, dword [ebp - 8]
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [ebp - 8]
push eax
push ebx
push 6
call esi
test eax, eax
je 0x100c2e1
push dword [ebp - 8]
mov eax, dword [ebp + 8]
add eax, 7
push ebx
push eax
call dword [sym.imp.msvcrt.dll__strnicmp]
add esp, 0xc
test eax, eax
je 0x100c421
push ebx
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
and dword [ebp - 8], 0
pop ecx
lea eax, [ebp - 8]
push eax
push 0
push 7
call esi
test eax, eax
jne 0x100c3ce
push dword [ebp - 8]
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
test ebx, ebx
pop ecx
je 0x100c0e8
mov ecx, dword [ebp - 8]
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [ebp - 8]
push eax
push ebx
push 7
call esi
test eax, eax
je 0x100c34f
push dword [ebp - 8]
mov eax, dword [ebp + 8]
add eax, 7
push ebx
push eax
call dword [sym.imp.msvcrt.dll__strnicmp]
add esp, 0xc
test eax, eax
je 0x100c421
push ebx
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
and dword [ebp - 8], 0
pop ecx
lea eax, [ebp - 8]
push eax
push 0
push 5
call esi
test eax, eax
jne 0x100c3ce
push dword [ebp - 8]
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
test ebx, ebx
pop ecx
je 0x100c0e8
mov ecx, dword [ebp - 8]
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [ebp - 8]
push eax
push ebx
push 5
call esi
test eax, eax
je 0x100c3b5
push dword [ebp - 8]
mov eax, dword [ebp + 8]
add eax, 7
push ebx
push eax
call dword [sym.imp.msvcrt.dll__strnicmp]
add esp, 0xc
test eax, eax
je 0x100c421
push ebx
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
and dword [ebp - 8], 0
pop ecx
lea eax, [ebp - 8]
push eax
push 0
push 4
call esi
test eax, eax
je 0x100c3d4
mov byte [ebp - 1], 0
jmp 0x100c430
push dword [ebp - 8]
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
test ebx, ebx
pop ecx
je 0x100c0e8
mov ecx, dword [ebp - 8]
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [ebp - 8]
push eax
push ebx
push 4
call esi
test eax, eax
je 0x100c425
push dword [ebp - 8]
mov eax, dword [ebp + 8]
add eax, 7
push ebx
push eax
call dword [sym.imp.msvcrt.dll__strnicmp]
add esp, 0xc
test eax, eax
jne 0x100c425
mov byte [ebp - 1], 1
test ebx, ebx
je 0x100c430
push ebx
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
pop edi
pop ebx
pop esi
push dword [ebp + 8]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov al, byte [ebp - 1]
pop ecx
leave
ret 4