Function at 0x1001a6c0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x40
mov dword [esp + 4], 0x10
mov dword [esp], 1
call dword [sym.imp.ucrtbase.dll_calloc]
test eax, eax
je 0x1001a963
mov edi, eax
mov eax, dword [ebp + 8]
movzx ebx, word [eax]
cmp bx, 0x5c
je 0x1001a7f8
mov edx, dword [ebp + 8]
test bx, bx
je 0x1001a8f0
cmp bx, 0x2e
je 0x1001a8f0
nop
movzx ebx, word [edx + 2]
add edx, 2
test bx, bx
je 0x1001a722
cmp bx, 0x2e
jne 0x1001a710
mov esi, edx
sub esi, dword [ebp + 8]
lea eax, [esi + 2]
mov ecx, esi
sar ecx, 1
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x34], edx
mov dword [esp], eax
mov eax, dword [sym.imp.ucrtbase.dll_malloc]
mov dword [ebp - 0x40], eax
call eax
mov edx, dword [ebp - 0x34]
test eax, eax
mov ecx, eax
mov dword [edi], eax
je 0x1001a95a
mov dword [ebp - 0x38], edx
mov dword [esp + 8], esi
mov eax, dword [ebp + 8]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [ebp - 0x34], ecx
call sub.ucrtbase.dll_memcpy
mov ecx, dword [ebp - 0x34]
xor edx, edx
cmp bx, 0x2e
mov eax, dword [ebp - 0x3c]
mov word [ecx + esi], dx
mov edx, dword [ebp - 0x38]
mov dword [edi + 4], eax
je 0x1001a790
mov eax, dword [ebp + 0xc]
mov dword [eax], edi
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
cmp word [edx + 2], 0
je 0x1001a781
lea eax, [edx + 2]
mov dword [ebp - 0x34], eax
lea esi, [esi]
mov esi, eax
add eax, 2
cmp word [eax], 0
jne 0x1001a7a0
sub esi, edx
mov dword [ebp - 0x3c], ecx
mov eax, esi
sar eax, 1
mov dword [ebp - 0x38], eax
lea eax, [esi + 2]
mov dword [esp], eax
mov eax, dword [ebp - 0x40]
call eax
mov ecx, dword [ebp - 0x3c]
test eax, eax
mov ebx, eax
mov dword [edi + 8], eax
je 0x1001a96d
mov dword [esp + 8], esi
mov eax, dword [ebp - 0x34]
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.ucrtbase.dll_memcpy
xor eax, eax
mov word [ebx + esi], ax
mov eax, dword [ebp - 0x38]
mov dword [edi + 0xc], eax
jmp 0x1001a781
cmp word [eax + 2], 0x5c
mov dword [ebp - 0x30], 0x10
jne 0x1001a8d4
mov eax, dword [ebp + 8]
lea ecx, [eax + 4]
movzx eax, word [eax + 4]
mov ebx, ecx
test ax, ax
jne 0x1001a830
jmp 0x1001a836
movzx eax, word [ebx + 2]
add ebx, 2
test ax, ax
je 0x1001a8d4
cmp ax, 0x5c
jne 0x1001a820
test ax, ax
je 0x1001a8d4
lea edx, [ebp - 0x2c]
mov esi, ebx
mov dword [ebp - 0x34], ecx
lea eax, [ebp - 0x30]
sub esi, ecx
mov dword [esp], edx
mov dword [esp + 4], eax
sar esi, 1
call dword [sym.imp.kernel32.dll_GetComputerNameW]
mov ecx, dword [ebp - 0x34]
lea edx, [ebp - 0x2c]
sub esp, 8
test eax, eax
je 0x1001a86f
mov eax, dword [ebp - 0x30]
cmp eax, esi
je 0x1001a885
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll_free]
lea esp, [ebp - 0xc]
mov eax, 0x8004100c
pop ebx
pop esi
pop edi
pop ebp
ret
mov esi, dword [sym.imp.ucrtbase.dll__wcsnicmp]
mov dword [esp + 8], eax
mov dword [esp + 4], edx
mov dword [esp], ecx
call esi
test eax, eax
jne 0x1001a86f
lea eax, [ebx + 2]
mov ecx, eax
mov dword [ebp - 0x34], eax
movzx eax, word [ebx + 2]
test ax, ax
je 0x1001a8d4
cmp ax, 0x3a
je 0x1001a942
mov eax, ecx
jmp 0x1001a8c6
cmp dx, 0x3a
je 0x1001a903
mov ecx, eax
movzx edx, word [eax + 2]
add eax, 2
test dx, dx
jne 0x1001a8c0
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll_free]
lea esp, [ebp - 0xc]
mov eax, 0x8004103a
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [ebp - 0x3c], 0
mov eax, 2
xor esi, esi
jmp 0x1001a731
test dx, dx
je 0x1001a8d4
mov eax, ecx
sub eax, ebx
cmp eax, 0x14
jne 0x1001a947
mov dword [ebp - 0x38], ecx
mov dword [esp + 8], 0xa
mov dword [esp + 4], str.ROOTCIMV2
mov eax, dword [ebp - 0x34]
mov dword [esp], eax
call esi
test eax, eax
jne 0x1001a947
mov ecx, dword [ebp - 0x38]
lea eax, [ecx + 4]
movzx ebx, word [ecx + 4]
mov dword [ebp + 8], eax
jmp 0x1001a6f8
test ax, ax
je 0x1001a8d4
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll_free]
mov eax, 0x8004100e
jmp 0x1001a788
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll_free]
mov eax, 0x8007000e
jmp 0x1001a788
mov ebx, dword [sym.imp.ucrtbase.dll_free]
mov dword [esp], ecx
call ebx
mov dword [esp], edi
call ebx
jmp 0x1001a963