Function at 0x1001a0c0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x44
mov dword [esp + 4], 0x10
mov dword [esp], 1
call dword [sym.imp.ucrtbase.dll_calloc]
test eax, eax
je 0x1001a50d
mov edi, eax
mov eax, dword [ebp + 8]
mov cx, word [eax]
cmp cx, 0x5c
je 0x1001a1b0
test cx, cx
je 0x1001a487
mov esi, dword [ebp + 8]
mov ebx, ecx
cmp cx, 0x2e
jne 0x1001a132
jmp 0x1001a487
mov bx, word [esi + 2]
add esi, 2
test bx, bx
je 0x1001a248
cmp bx, 0x2e
je 0x1001a248
cmp bx, 0x3d
jne 0x1001a118
mov eax, dword [ebp + 8]
mov ebx, esi
sub ebx, eax
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 dword [edi], eax
test eax, eax
je 0x1001a338
mov eax, dword [ebp + 8]
mov dword [esp + 8], ebx
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [ebp - 0x34], edx
call sub.ucrtbase.dll_memcpy
mov edx, dword [ebp - 0x34]
mov word [edx + ebx], 0
sar ebx, 1
mov dword [edi + 4], ebx
cmp word [esi + 2], 0
jne 0x1001a3c8
mov dword [esp], edx
mov ebx, dword [sym.imp.ucrtbase.dll_free]
call ebx
mov eax, dword [edi + 8]
mov dword [esp], eax
call ebx
mov dword [esp], edi
call ebx
mov eax, 0x8004103a
jmp 0x1001a2ca
cmp word [eax + 2], 0x5c
mov dword [ebp - 0x30], 0x10
jne 0x1001a39f
mov eax, dword [ebp + 8]
lea edx, [eax + 4]
mov ax, word [eax + 4]
test ax, ax
mov ebx, edx
jne 0x1001a1e8
jmp 0x1001a1ee
mov ax, word [ebx + 2]
add ebx, 2
test ax, ax
je 0x1001a39f
cmp ax, 0x5c
jne 0x1001a1d8
test ax, ax
je 0x1001a39f
mov esi, ebx
lea eax, [ebp - 0x30]
sub esi, edx
mov dword [esp + 4], eax
sar esi, 1
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x38], esi
lea esi, [ebp - 0x2c]
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_GetComputerNameW]
test eax, eax
push edx
push edx
mov edx, dword [ebp - 0x34]
je 0x1001a22b
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0x38]
je 0x1001a34e
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll_free]
lea esp, [ebp - 0xc]
pop ebx
mov eax, 0x8004100c
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 8]
mov edx, esi
sub edx, eax
mov dword [ebp - 0x34], edx
lea eax, [edx + 2]
sar edx, 1
mov dword [ebp - 0x44], edx
mov dword [esp], eax
mov eax, dword [sym.imp.ucrtbase.dll_malloc]
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x40], eax
call eax
mov ecx, dword [ebp - 0x38]
mov edx, eax
mov dword [edi], eax
test eax, eax
je 0x1001a338
mov dword [ebp - 0x3c], ecx
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp + 8]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
mov dword [ebp - 0x38], edx
call sub.ucrtbase.dll_memcpy
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x38]
cmp bx, 0x2e
mov ecx, dword [ebp - 0x3c]
mov word [edx + eax], 0
mov eax, dword [ebp - 0x44]
mov dword [edi + 4], eax
je 0x1001a2d8
cmp bx, 0x3d
je 0x1001a3b5
test bx, bx
jne 0x1001a18a
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 [esi + 2], 0
je 0x1001a18a
lea edx, [esi + 2]
mov eax, edx
mov ebx, eax
add eax, 2
cmp word [eax], 0
jne 0x1001a2e8
sub ebx, esi
mov dword [ebp - 0x38], edx
mov eax, ebx
sar eax, 1
mov dword [ebp - 0x34], eax
lea eax, [ebx + 2]
mov dword [esp], eax
mov eax, dword [ebp - 0x40]
call eax
mov edx, dword [ebp - 0x38]
mov esi, eax
mov dword [edi + 8], eax
test eax, eax
je 0x1001a506
mov dword [esp + 8], ebx
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.ucrtbase.dll_memcpy
mov eax, dword [ebp - 0x34]
mov word [esi + ebx], 0
mov dword [edi + 0xc], eax
jmp 0x1001a2c3
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll_free]
lea esp, [ebp - 0xc]
pop ebx
mov eax, 0x8007000e
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], eax
mov dword [esp + 4], esi
mov eax, dword [sym.imp.ucrtbase.dll__wcsnicmp]
mov dword [esp], edx
mov dword [ebp - 0x34], eax
call eax
test eax, eax
jne 0x1001a22b
mov ax, word [ebx + 2]
lea ecx, [ebx + 2]
cmp ax, 0x3a
je 0x1001a4e1
test ax, ax
je 0x1001a39f
mov eax, ecx
jmp 0x1001a392
cmp dx, 0x3a
je 0x1001a4a4
mov esi, eax
add eax, 2
mov dx, word [eax]
test dx, dx
jne 0x1001a388
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll_free]
lea esp, [ebp - 0xc]
pop ebx
mov eax, 0x8004103a
pop esi
pop edi
pop ebp
ret
cmp word [esi + 2], 0
je 0x1001a18a
test cx, cx
je 0x1001a3dc
lea esi, [esi]
mov eax, dword [ebp + 8]
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x1001a3d0
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp + 4], edx
sub eax, esi
mov dword [esp], 0
mov ebx, eax
mov dword [ebp - 0x34], eax
sar ebx, 1
call fcn.1001d3b0
test eax, eax
je 0x1001a517
mov dword [esp], eax
mov dword [ebp - 0x44], eax
call dword [sym.imp.ucrtbase.dll_wcslen]
mov ecx, eax
lea eax, [ebx + eax]
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], eax
lea eax, [ecx + ebx + 1]
lea ebx, [eax + eax]
mov eax, dword [ebp - 0x40]
mov dword [esp], ebx
call eax
mov ecx, dword [ebp - 0x3c]
mov dword [edi + 8], eax
test eax, eax
mov edx, dword [ebp - 0x44]
je 0x1001a4fd
mov dword [esp + 4], edx
mov dword [esp], eax
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x40], ecx
call dword [sym.imp.ucrtbase.dll_wcscpy]
mov eax, dword [edi + 8]
mov ecx, dword [ebp - 0x40]
mov dword [esp + 4], esi
lea eax, [eax + ecx*2]
mov ecx, dword [ebp - 0x34]
mov dword [esp + 8], ecx
mov dword [esp], eax
call sub.ucrtbase.dll_memcpy
mov eax, dword [ebp - 0x38]
mov dword [edi + 0xc], eax
mov eax, dword [edi + 8]
mov edx, dword [ebp - 0x3c]
mov word [eax + ebx - 2], 0
mov dword [esp], edx
call dword [sym.imp.ucrtbase.dll_free]
jmp 0x1001a2c3
mov esi, dword [ebp + 8]
mov ebx, ecx
mov dword [ebp - 0x44], 0
mov eax, 2
mov dword [ebp - 0x34], 0
jmp 0x1001a25a
test dx, dx
je 0x1001a39f
mov eax, esi
sub eax, ebx
cmp eax, 0x14
jne 0x1001a4ea
mov dword [esp + 8], 0xa
mov dword [esp + 4], str.ROOTCIMV2
mov dword [esp], ecx
mov eax, dword [ebp - 0x34]
call eax
test eax, eax
jne 0x1001a4ea
lea eax, [esi + 4]
mov cx, word [esi + 4]
mov dword [ebp + 8], eax
jmp 0x1001a0f8
test ax, ax
je 0x1001a39f
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll_free]
mov eax, 0x8004100e
jmp 0x1001a2ca
mov dword [esp], edx
call dword [sym.imp.ucrtbase.dll_free]
mov eax, edi
call fcn.100172c0
mov eax, 0x8007000e
jmp 0x1001a2ca
mov eax, edi
call fcn.100172c0
mov eax, 0x8004103a
jmp 0x1001a2ca