Function at 0x1001a5a0
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 0x1001a935
movzx ebx, word [edi]
cmp bx, 0x5c
je 0x1001a690
test bx, bx
je 0x1001a940
mov esi, edi
cmp bx, 0x2e
jne 0x1001a60a
jmp 0x1001a940
movzx ebx, word [esi + 2]
add esi, 2
test bx, bx
je 0x1001a730
cmp bx, 0x2e
je 0x1001a730
cmp bx, 0x3d
jne 0x1001a5f0
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 0x1001a929
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
jne 0x1001a810
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
lea esp, [ebp - 0xc]
mov eax, 0x8004103a
pop ebx
pop esi
pop edi
pop ebp
ret
cmp word [edi + 2], 0x5c
mov dword [ebp - 0x30], 0x10
jne 0x1001a91b
movzx eax, word [edi + 4]
lea edx, [edi + 4]
mov ebx, edx
test ax, ax
jne 0x1001a6d0
jmp 0x1001a6d6
movzx eax, word [ebx + 2]
add ebx, 2
test ax, ax
je 0x1001a918
cmp ax, 0x5c
jne 0x1001a6c0
test ax, ax
je 0x1001a918
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 0x1001a710
mov eax, dword [ebp - 0x30]
cmp eax, esi
je 0x1001a8b4
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 eax, esi
sub eax, edi
mov edx, eax
mov dword [ebp - 0x38], eax
add eax, 2
sar edx, 1
mov dword [ebp - 0x44], edx
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 0x1001a929
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 word [ecx + eax], di
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x44]
mov dword [eax + 4], ecx
cmp bx, 0x2e
je 0x1001a7a8
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x34]
mov dword [eax], ecx
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
cmp word [esi + 2], 0
mov edx, dword [ebp - 0x48]
je 0x1001a662
lea edi, [esi + 2]
mov eax, edi
lea esi, cs:[esi]
mov ebx, eax
add eax, 2
cmp word [eax], 0
jne 0x1001a7c0
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 0x1001a9c1
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 0x1001a791
add edi, 2
cmp word [edi], 0
jne 0x1001a810
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.1001d820
mov edi, eax
test eax, eax
je 0x1001a9a8
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 ecx, dword [ebp - 0x34]
mov dword [ecx + 8], eax
test eax, eax
je 0x1001a9b5
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 eax, dword [eax + 8]
lea eax, [eax + ecx*2]
mov ecx, dword [ebp - 0x38]
mov dword [esp + 4], esi
mov dword [esp], eax
mov dword [esp + 8], ecx
call sub.ucrtbase.dll_memcpy
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x3c]
mov dword [eax + 0xc], edx
mov eax, dword [eax + 8]
xor edx, edx
mov word [eax + ebx - 2], dx
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll_free]
jmp 0x1001a791
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 0x1001a710
movzx eax, word [ebx + 2]
lea ecx, [ebx + 2]
test ax, ax
je 0x1001a918
cmp ax, 0x3a
je 0x1001a98d
mov eax, ecx
jmp 0x1001a906
cmp dx, 0x3a
je 0x1001a95a
mov esi, eax
movzx edx, word [eax + 2]
add eax, 2
test dx, dx
jne 0x1001a900
lea esi, [esi]
mov eax, dword [ebp - 0x34]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
jmp 0x1001a67d
mov eax, dword [ebp - 0x34]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
mov eax, 0x8007000e
jmp 0x1001a79b
mov esi, edi
mov eax, 2
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x44], 0
jmp 0x1001a741
test dx, dx
je 0x1001a918
mov eax, esi
sub eax, ebx
cmp eax, 0x14
jne 0x1001a992
mov dword [esp + 8], 0xa
mov dword [esp + 4], str.ROOTCIMV2
mov dword [esp], ecx
call edi
test eax, eax
jne 0x1001a992
movzx ebx, word [esi + 4]
lea edi, [esi + 4]
jmp 0x1001a5d9
test ax, ax
je 0x1001a918
mov eax, dword [ebp - 0x34]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
mov eax, 0x8004100e
jmp 0x1001a79b
mov eax, dword [ebp - 0x34]
call fcn.100178a0
jmp 0x1001a67d
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll_free]
mov eax, dword [ebp - 0x34]
call fcn.100178a0
jmp 0x1001a935