Function at 0x7105a050
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x5c
mov dword [esp + 4], 0x10
mov dword [esp], 1
call dword [sym.imp.ucrtbase.dll_calloc]
test eax, eax
je 0x7105a303
mov ecx, eax
mov eax, dword [ebp + 8]
movzx ebx, word [eax]
cmp bx, 0x5c
je 0x7105a190
mov esi, dword [ebp + 8]
cmp bx, 0x2e
je 0x7105a290
test bx, bx
je 0x7105a290
nop
movzx ebx, word [esi + 2]
add esi, 2
test bx, bx
je 0x7105a0b2
cmp bx, 0x2e
jne 0x7105a0a0
mov edi, esi
sub edi, dword [ebp + 8]
mov edx, edi
lea eax, [edi + 2]
sar edx, 1
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x4c], ecx
mov dword [esp], eax
mov eax, dword [sym.imp.ucrtbase.dll_malloc]
mov dword [ebp - 0x58], eax
call eax
mov ecx, dword [ebp - 0x4c]
mov edx, eax
mov dword [ecx], eax
test eax, eax
je 0x7105a2fa
mov dword [ebp - 0x50], ecx
mov dword [esp + 8], edi
mov eax, dword [ebp + 8]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [ebp - 0x4c], edx
call sub.ucrtbase.dll_memcpy
mov edx, dword [ebp - 0x4c]
xor ecx, ecx
mov eax, dword [ebp - 0x54]
mov word [edx + edi], cx
mov ecx, dword [ebp - 0x50]
mov dword [ecx + 4], eax
cmp bx, 0x2e
je 0x7105a120
mov eax, dword [ebp + 0xc]
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
je 0x7105a111
lea ebx, [esi + 2]
mov eax, ebx
lea esi, [esi]
mov edi, eax
add eax, 2
cmp word [eax], 0
jne 0x7105a130
sub edi, esi
mov dword [ebp - 0x54], edx
mov eax, edi
mov dword [ebp - 0x50], ecx
sar eax, 1
mov dword [ebp - 0x4c], eax
lea eax, [edi + 2]
mov dword [esp], eax
mov eax, dword [ebp - 0x58]
call eax
mov ecx, dword [ebp - 0x50]
mov edx, dword [ebp - 0x54]
test eax, eax
mov esi, eax
mov dword [ecx + 8], eax
je 0x7105a30d
mov dword [ebp - 0x50], ecx
mov dword [esp + 8], edi
mov dword [esp + 4], ebx
mov dword [esp], eax
call sub.ucrtbase.dll_memcpy
xor eax, eax
mov ecx, dword [ebp - 0x50]
mov word [esi + edi], ax
mov eax, dword [ebp - 0x4c]
mov dword [ecx + 0xc], eax
jmp 0x7105a111
cmp word [eax + 2], 0x5c
mov dword [ebp - 0x3c], 0x10
jne 0x7105a274
mov eax, dword [ebp + 8]
lea edx, [eax + 4]
movzx eax, word [eax + 4]
mov ebx, edx
test ax, ax
jne 0x7105a1c8
jmp 0x7105a1ce
movzx eax, word [ebx + 2]
add ebx, 2
test ax, ax
je 0x7105a274
cmp ax, 0x5c
jne 0x7105a1b8
test ax, ax
je 0x7105a274
lea eax, [ebp - 0x3c]
mov esi, ebx
lea edi, [ebp - 0x38]
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x4c], edx
sub esi, edx
mov dword [esp + 4], eax
sar esi, 1
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_GetComputerNameW]
mov edx, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x50]
sub esp, 8
test eax, eax
je 0x7105a20a
mov eax, dword [ebp - 0x3c]
cmp eax, esi
je 0x7105a220
mov dword [esp], ecx
call dword [sym.imp.ucrtbase.dll_free]
lea esp, [ebp - 0xc]
mov eax, 0x8004100c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [ebp - 0x4c], ecx
mov dword [esp + 4], edi
mov edi, dword [sym.imp.ucrtbase.dll__wcsnicmp]
mov dword [esp + 8], eax
mov dword [esp], edx
call edi
mov ecx, dword [ebp - 0x4c]
test eax, eax
jne 0x7105a20a
lea eax, [ebx + 2]
mov dword [ebp - 0x4c], eax
mov edx, eax
movzx eax, word [ebx + 2]
test ax, ax
je 0x7105a274
cmp ax, 0x3a
je 0x7105a2e2
mov eax, edx
jmp 0x7105a266
cmp dx, 0x3a
je 0x7105a2a3
mov esi, eax
movzx edx, word [eax + 2]
add eax, 2
test dx, dx
jne 0x7105a260
mov dword [esp], ecx
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 - 0x54], 0
mov eax, 2
xor edi, edi
jmp 0x7105a0c1
test dx, dx
je 0x7105a274
mov eax, esi
sub eax, ebx
cmp eax, 0x14
jne 0x7105a2e7
mov dword [ebp - 0x50], ecx
mov dword [esp + 8], 0xa
mov dword [esp + 4], str.ROOTCIMV2
mov eax, dword [ebp - 0x4c]
mov dword [esp], eax
call edi
mov ecx, dword [ebp - 0x50]
test eax, eax
jne 0x7105a2e7
lea eax, [esi + 4]
movzx ebx, word [esi + 4]
mov dword [ebp + 8], eax
jmp 0x7105a088
test ax, ax
je 0x7105a274
mov dword [esp], ecx
call dword [sym.imp.ucrtbase.dll_free]
mov eax, 0x8004100e
jmp 0x7105a118
mov dword [esp], ecx
call dword [sym.imp.ucrtbase.dll_free]
mov eax, 0x8007000e
jmp 0x7105a118
mov dword [ebp - 0x4c], ecx
mov ebx, dword [sym.imp.ucrtbase.dll_free]
mov dword [esp], edx
call ebx
mov ecx, dword [ebp - 0x4c]
mov dword [esp], ecx
call ebx
jmp 0x7105a303