Function at 0x1001a410
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 0x1001a795
movzx ebx, word [edi]
cmp bx, 0x5c
je 0x1001a500
test bx, bx
je 0x1001a7a0
mov esi, edi
cmp bx, 0x2e
jne 0x1001a47a
jmp 0x1001a7a0
movzx ebx, word [esi + 2]
add esi, 2
test bx, bx
je 0x1001a598
cmp bx, 0x2e
je 0x1001a598
cmp bx, 0x3d
jne 0x1001a460
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 0x1001a789
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 0x1001a680
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 0x1001a77b
movzx eax, word [edi + 4]
lea edx, [edi + 4]
mov ebx, edx
test ax, ax
jne 0x1001a538
jmp 0x1001a53e
movzx eax, word [ebx + 2]
add ebx, 2
test ax, ax
je 0x1001a778
cmp ax, 0x5c
jne 0x1001a528
test ax, ax
je 0x1001a778
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 0x1001a578
mov eax, dword [ebp - 0x30]
cmp eax, esi
je 0x1001a724
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 0x1001a789
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 0x1001a610
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 0x1001a4d2
lea edi, [esi + 2]
mov eax, edi
lea esi, cs:[esi]
mov ebx, eax
add eax, 2
cmp word [eax], 0
jne 0x1001a628
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 0x1001a825
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 0x1001a5f9
add edi, 2
cmp word [edi], 0
jne 0x1001a680
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.1001d640
mov edi, eax
test eax, eax
je 0x1001a80c
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 0x1001a819
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 0x1001a5f9
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 0x1001a578
movzx eax, word [ebx + 2]
lea ecx, [ebx + 2]
test ax, ax
je 0x1001a778
cmp ax, 0x3a
je 0x1001a7ed
mov eax, ecx
jmp 0x1001a766
cmp dx, 0x3a
je 0x1001a7ba
mov esi, eax
movzx edx, word [eax + 2]
add eax, 2
test dx, dx
jne 0x1001a760
lea esi, [esi]
mov eax, dword [ebp - 0x34]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
jmp 0x1001a4ed
mov eax, dword [ebp - 0x34]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
mov eax, 0x8007000e
jmp 0x1001a603
mov esi, edi
mov eax, 2
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x44], 0
jmp 0x1001a5a9
test dx, dx
je 0x1001a778
mov eax, esi
sub eax, ebx
cmp eax, 0x14
jne 0x1001a7f6
mov dword [esp + 8], 0xa
mov dword [esp + 4], str.ROOTCIMV2
mov dword [esp], ecx
call edi
test eax, eax
jne 0x1001a7f6
movzx ebx, word [esi + 4]
lea edi, [esi + 4]
jmp 0x1001a449
test ax, ax
je 0x1001a778
mov eax, dword [ebp - 0x34]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
mov eax, 0x8004100e
jmp 0x1001a603
mov eax, dword [ebp - 0x34]
call fcn.10017710
jmp 0x1001a4ed
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll_free]
mov eax, dword [ebp - 0x34]
call fcn.10017710
jmp 0x1001a795