Function at 0x1001a4c0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x48
mov edi, dword [ebp + 8]
mov dword [esp + 4], 0x10
mov dword [esp], 1
call dword [sym.imp.ucrtbase.dll_calloc]
mov dword [ebp - 0x34], eax
test eax, eax
je 0x1001a8ba
movzx ebx, word [edi]
cmp bx, 0x5c
je 0x1001a640
test bx, bx
je 0x1001a830
mov esi, edi
cmp bx, 0x2e
jne 0x1001a52a
jmp 0x1001a830
movzx ebx, word [esi + 2]
add esi, 2
test bx, bx
je 0x1001a6d8
cmp bx, 0x2e
je 0x1001a6d8
cmp bx, 0x3d
jne 0x1001a510
mov ebx, esi
sub ebx, edi
lea eax, [ebx + 2]
mov dword [esp], eax
mov eax, dword [sym.imp.ucrtbase.dll_malloc]
mov dword [ebp - 0x40], eax
call eax
mov edx, eax
mov eax, dword [ebp - 0x34]
mov dword [eax], edx
test edx, edx
je 0x1001a8c4
mov dword [esp + 8], ebx
mov dword [esp], edx
mov dword [esp + 4], edi
mov dword [ebp - 0x38], edx
call sub.ucrtbase.dll_memcpy
mov edx, dword [ebp - 0x38]
xor eax, eax
mov word [edx + ebx], ax
sar ebx, 1
mov eax, dword [ebp - 0x34]
cmp word [esi + 2], 0
mov dword [eax + 4], ebx
je 0x1001a810
lea esi, [esi]
add edi, 2
cmp word [edi], 0
jne 0x1001a588
sub edi, esi
mov dword [ebp - 0x38], edi
mov ebx, edi
mov dword [esp + 4], edx
sar ebx, 1
mov dword [esp], 0
call fcn.1001d710
mov edi, eax
test eax, eax
je 0x1001a89c
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_wcslen]
mov dword [ebp - 0x44], eax
add eax, ebx
lea ebx, [eax + eax + 2]
mov dword [ebp - 0x3c], eax
mov dword [esp], ebx
mov eax, dword [ebp - 0x40]
call eax
mov edx, dword [ebp - 0x34]
mov dword [edx + 8], eax
test eax, eax
je 0x1001a8a9
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_wcscpy]
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x38]
mov eax, dword [eax + 8]
mov dword [esp + 4], esi
mov dword [esp + 8], edx
lea eax, [eax + ecx*2]
mov dword [esp], eax
call sub.ucrtbase.dll_memcpy
mov eax, dword [ebp - 0x34]
xor edx, edx
mov ecx, dword [ebp - 0x3c]
mov dword [eax + 0xc], ecx
mov eax, dword [eax + 8]
mov word [eax + ebx - 2], dx
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll_free]
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x34]
mov dword [eax], edx
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
cmp word [edi + 2], 0x5c
mov dword [ebp - 0x30], 0x10
jne 0x1001a7fb
movzx eax, word [edi + 4]
lea edx, [edi + 4]
mov ebx, edx
test ax, ax
jne 0x1001a678
jmp 0x1001a67e
movzx eax, word [ebx + 2]
add ebx, 2
test ax, ax
je 0x1001a7f8
cmp ax, 0x5c
jne 0x1001a668
test ax, ax
je 0x1001a7f8
lea eax, [ebp - 0x30]
mov esi, ebx
mov dword [ebp - 0x38], edx
lea edi, [ebp - 0x2c]
sub esi, edx
mov dword [esp + 4], eax
mov dword [esp], edi
sar esi, 1
call dword [sym.imp.kernel32.dll_GetComputerNameW]
mov edx, dword [ebp - 0x38]
sub esp, 8
test eax, eax
je 0x1001a6b8
mov eax, dword [ebp - 0x30]
cmp eax, esi
je 0x1001a7a3
mov eax, dword [ebp - 0x34]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
lea esp, [ebp - 0xc]
mov eax, 0x8004100c
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, esi
sub ecx, edi
mov dword [ebp - 0x38], ecx
lea eax, [ecx + 2]
sar ecx, 1
mov dword [ebp - 0x44], ecx
mov dword [esp], eax
mov eax, dword [sym.imp.ucrtbase.dll_malloc]
mov dword [ebp - 0x40], eax
call eax
mov ecx, eax
mov eax, dword [ebp - 0x34]
mov dword [eax], ecx
test ecx, ecx
je 0x1001a8c4
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x48], ecx
mov dword [esp + 4], edi
xor edi, edi
mov dword [esp], ecx
mov dword [esp + 8], eax
mov dword [ebp - 0x3c], ecx
call sub.ucrtbase.dll_memcpy
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x44]
mov word [ecx + eax], di
mov eax, dword [ebp - 0x34]
mov dword [eax + 4], edx
cmp bx, 0x2e
jne 0x1001a627
cmp word [esi + 2], 0
mov edx, dword [ebp - 0x48]
je 0x1001a810
lea edi, [esi + 2]
mov eax, edi
nop
mov ebx, eax
add eax, 2
cmp word [eax], 0
jne 0x1001a750
sub ebx, esi
mov eax, ebx
sar eax, 1
mov dword [ebp - 0x38], eax
lea eax, [ebx + 2]
mov dword [esp], eax
mov eax, dword [ebp - 0x40]
call eax
mov esi, eax
mov eax, dword [ebp - 0x34]
mov dword [eax + 8], esi
test esi, esi
je 0x1001a8b5
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call sub.ucrtbase.dll_memcpy
xor ecx, ecx
mov eax, dword [ebp - 0x34]
mov word [esi + ebx], cx
mov ecx, dword [ebp - 0x38]
mov dword [eax + 0xc], ecx
jmp 0x1001a627
mov dword [esp + 4], edi
mov edi, dword [sym.imp.ucrtbase.dll__wcsnicmp]
mov dword [esp + 8], eax
mov dword [esp], edx
call edi
test eax, eax
jne 0x1001a6b8
movzx eax, word [ebx + 2]
lea ecx, [ebx + 2]
test ax, ax
je 0x1001a7f8
cmp ax, 0x3a
je 0x1001a87d
mov eax, ecx
jmp 0x1001a7e6
cmp dx, 0x3a
je 0x1001a84a
mov esi, eax
movzx edx, word [eax + 2]
add eax, 2
test dx, dx
jne 0x1001a7e0
lea esi, [esi]
mov eax, dword [ebp - 0x34]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
mov eax, 0x8004103a
jmp 0x1001a631
mov ebx, dword [sym.imp.ucrtbase.dll_free]
mov dword [esp], edx
call ebx
mov edi, dword [ebp - 0x34]
mov eax, dword [edi + 8]
mov dword [esp], eax
call ebx
mov dword [esp], edi
call ebx
jmp 0x1001a804
mov esi, edi
mov dword [ebp - 0x44], 0
mov eax, 2
mov dword [ebp - 0x38], 0
jmp 0x1001a6e7
test dx, dx
je 0x1001a7f8
mov eax, esi
sub eax, ebx
cmp eax, 0x14
jne 0x1001a886
mov dword [esp + 8], 0xa
mov dword [esp + 4], str.ROOTCIMV2
mov dword [esp], ecx
call edi
test eax, eax
jne 0x1001a886
movzx ebx, word [esi + 4]
lea edi, [esi + 4]
jmp 0x1001a4f9
test ax, ax
je 0x1001a7f8
mov eax, dword [ebp - 0x34]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
mov eax, 0x8004100e
jmp 0x1001a631
mov eax, dword [ebp - 0x34]
call fcn.100177c0
jmp 0x1001a804
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll_free]
mov eax, dword [ebp - 0x34]
call fcn.100177c0
mov eax, 0x8007000e
jmp 0x1001a631
mov eax, dword [ebp - 0x34]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
jmp 0x1001a8ba