Function at 0x1001aaa0
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 0x1001ad1f
mov esi, eax
mov eax, dword [ebp + 8]
movzx ebx, word [eax]
cmp bx, 0x5c
je 0x1001abd3
mov edi, dword [ebp + 8]
test bx, bx
je 0x1001ac70
cmp bx, 0x2e
je 0x1001ac70
nop
add edi, 2
movzx ebx, word [edi]
test bx, bx
je 0x1001ab01
cmp bx, 0x2e
jne 0x1001aaf0
mov eax, edi
sub eax, dword [ebp + 8]
mov dword [ebp - 0x34], eax
sar eax, 1
mov dword [ebp - 0x38], eax
lea eax, [eax + eax + 2]
mov dword [esp], eax
mov eax, dword [sym.imp.ucrtbase.dll_malloc]
mov dword [ebp - 0x40], eax
call eax
mov edx, eax
mov dword [esi], eax
test eax, eax
je 0x1001ad29
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x34]
mov dword [esp], edx
mov dword [ebp - 0x3c], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call sub.ucrtbase.dll_memcpy
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x3c]
xor ecx, ecx
mov word [edx + eax], cx
mov eax, dword [ebp - 0x38]
mov dword [esi + 4], eax
cmp bx, 0x2e
je 0x1001ab70
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
cmp word [edi + 2], 0
je 0x1001ab5c
lea ebx, [edi + 2]
mov edi, ebx
lea esi, [esi]
add edi, 2
cmp word [edi], 0
jne 0x1001ab80
sub edi, ebx
mov dword [ebp - 0x38], edx
mov eax, edi
sar eax, 1
mov dword [ebp - 0x34], eax
lea eax, [eax + eax + 2]
mov dword [esp], eax
mov eax, dword [ebp - 0x40]
call eax
mov edx, dword [ebp - 0x38]
test eax, eax
mov dword [esi + 8], eax
je 0x1001ad3c
mov dword [esp + 8], edi
mov dword [esp + 4], ebx
mov dword [esp], eax
mov dword [ebp - 0x38], eax
call sub.ucrtbase.dll_memcpy
mov ecx, dword [ebp - 0x38]
xor eax, eax
mov word [ecx + edi], ax
mov eax, dword [ebp - 0x34]
mov dword [esi + 0xc], eax
jmp 0x1001ab5c
cmp word [eax + 2], 0x5c
mov dword [ebp - 0x30], 0x10
jne 0x1001ac5a
mov eax, dword [ebp + 8]
lea ebx, [eax + 4]
movzx eax, word [eax + 4]
mov edx, ebx
test ax, ax
jne 0x1001abff
jmp 0x1001ac05
add edx, 2
movzx eax, word [edx]
test ax, ax
je 0x1001ac05
cmp ax, 0x5c
jne 0x1001abf4
test ax, ax
je 0x1001ac5a
mov edi, edx
lea eax, [ebp - 0x30]
mov dword [ebp - 0x34], edx
sub edi, ebx
mov dword [esp + 4], eax
sar edi, 1
mov dword [ebp - 0x38], edi
lea edi, [ebp - 0x2c]
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_GetComputerNameW]
mov edx, dword [ebp - 0x34]
sub esp, 8
test eax, eax
je 0x1001ac3b
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0x38]
je 0x1001ac88
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_free]
lea esp, [ebp - 0xc]
mov eax, 0x8004100c
pop ebx
pop esi
pop edi
pop ebp
ret
test ax, ax
jne 0x1001ad0c
mov dword [esp], esi
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 - 0x38], 0
mov eax, 2
mov dword [ebp - 0x34], 0
jmp 0x1001ab12
mov dword [esp + 4], edi
mov edi, dword [sym.imp.ucrtbase.dll__wcsnicmp]
mov dword [ebp - 0x34], edx
mov dword [esp + 8], eax
mov dword [esp], ebx
call edi
test eax, eax
jne 0x1001ac3b
mov edx, dword [ebp - 0x34]
movzx eax, word [edx + 2]
lea ecx, [edx + 2]
cmp ax, 0x3a
je 0x1001ac51
test ax, ax
je 0x1001ac51
mov ebx, ecx
jmp 0x1001acc8
cmp ax, 0x3a
je 0x1001acd4
mov ebx, edx
movzx eax, word [ebx + 2]
lea edx, [ebx + 2]
test ax, ax
jne 0x1001acc0
test ax, ax
je 0x1001ac5a
sub edx, ecx
cmp edx, 0x14
jne 0x1001ad0c
mov dword [esp + 8], 0xa
mov dword [esp + 4], str.ROOTCIMV2
mov dword [esp], ecx
call edi
test eax, eax
jne 0x1001ad0c
lea eax, [ebx + 4]
movzx ebx, word [ebx + 4]
mov dword [ebp + 8], eax
jmp 0x1001aad8
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_free]
mov eax, 0x8004100e
jmp 0x1001ab63
mov eax, 0x8007000e
jmp 0x1001ab63
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_free]
mov eax, 0x8007000e
jmp 0x1001ab63
mov dword [esp], edx
mov ebx, dword [sym.imp.ucrtbase.dll_free]
call ebx
mov dword [esp], esi
call ebx
mov eax, 0x8007000e
jmp 0x1001ab63