Function at 0x71051900
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 0x71051b9d
mov edx, eax
mov eax, dword [ebp + 8]
movzx ebx, word [eax]
cmp bx, 0x5c
je 0x71051a40
mov esi, dword [ebp + 8]
test bx, bx
je 0x71051b38
cmp bx, 0x2e
je 0x71051b38
nop
movzx ebx, word [esi + 2]
add esi, 2
test bx, bx
je 0x71051962
cmp bx, 0x2e
jne 0x71051950
mov edi, esi
sub edi, dword [ebp + 8]
mov ecx, edi
lea eax, [edi + 2]
sar ecx, 1
mov dword [ebp - 0x54], ecx
mov dword [esp], eax
mov eax, dword [sym.imp.ucrtbase.dll_malloc]
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x58], eax
call eax
mov edx, dword [ebp - 0x4c]
mov ecx, eax
mov dword [edx], eax
test eax, eax
je 0x71051ba7
mov eax, dword [ebp + 8]
mov dword [esp], ecx
mov dword [esp + 8], edi
mov dword [esp + 4], eax
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x4c], ecx
call sym._memcpy
mov ecx, dword [ebp - 0x4c]
xor edx, edx
mov eax, dword [ebp - 0x54]
mov word [ecx + edi], dx
mov edx, dword [ebp - 0x50]
mov dword [edx + 4], eax
cmp bx, 0x2e
je 0x710519d0
mov eax, dword [ebp + 0xc]
mov dword [eax], edx
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
cmp word [esi + 2], 0
je 0x710519c1
add esi, 2
mov ebx, esi
lea esi, [esi]
add ebx, 2
cmp word [ebx], 0
jne 0x710519e0
sub ebx, esi
mov dword [ebp - 0x54], ecx
mov eax, ebx
mov dword [ebp - 0x50], edx
sar eax, 1
mov dword [ebp - 0x4c], eax
lea eax, [ebx + 2]
mov dword [esp], eax
mov eax, dword [ebp - 0x58]
call eax
mov edx, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x54]
test eax, eax
mov edi, eax
mov dword [edx + 8], eax
je 0x71051bba
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov dword [esp], eax
mov dword [ebp - 0x50], edx
call sym._memcpy
xor eax, eax
mov edx, dword [ebp - 0x50]
mov word [edi + ebx], ax
mov eax, dword [ebp - 0x4c]
mov dword [edx + 0xc], eax
jmp 0x710519c1
cmp word [eax + 2], 0x5c
mov dword [ebp - 0x3c], 0x10
jne 0x71051b1c
mov eax, dword [ebp + 8]
lea ebx, [eax + 4]
movzx eax, word [eax + 4]
mov edi, ebx
test ax, ax
jne 0x71051a78
jmp 0x71051a7e
movzx eax, word [edi + 2]
add edi, 2
test ax, ax
je 0x71051b1c
cmp ax, 0x5c
jne 0x71051a68
test ax, ax
je 0x71051b1c
mov esi, edi
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x4c], edx
sub esi, ebx
mov dword [esp + 4], eax
sar esi, 1
mov dword [ebp - 0x50], esi
lea esi, [ebp - 0x38]
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_GetComputerNameW]
mov edx, dword [ebp - 0x4c]
sub esp, 8
test eax, eax
je 0x71051ab8
mov eax, dword [ebp - 0x3c]
cmp eax, dword [ebp - 0x50]
je 0x71051ace
mov dword [esp], edx
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], edx
mov dword [esp + 4], esi
mov esi, dword [sym.imp.ucrtbase.dll__wcsnicmp]
mov dword [esp + 8], eax
mov dword [esp], ebx
call esi
mov edx, dword [ebp - 0x4c]
test eax, eax
jne 0x71051ab8
movzx eax, word [edi + 2]
lea ecx, [edi + 2]
test ax, ax
je 0x71051b1c
cmp ax, 0x3a
je 0x71051b85
mov eax, ecx
jmp 0x71051b0e
cmp di, 0x3a
je 0x71051b4b
mov ebx, eax
movzx edi, word [eax + 2]
add eax, 2
test di, di
jne 0x71051b08
mov dword [esp], edx
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 0x71051971
test di, di
je 0x71051b1c
sub eax, ecx
cmp eax, 0x14
jne 0x71051b8a
mov dword [ebp - 0x4c], edx
mov dword [esp + 8], 0xa
mov dword [esp + 4], str.ROOTCIMV2
mov dword [esp], ecx
call esi
mov edx, dword [ebp - 0x4c]
test eax, eax
jne 0x71051b8a
lea eax, [ebx + 4]
movzx ebx, word [ebx + 4]
mov dword [ebp + 8], eax
jmp 0x71051938
test ax, ax
je 0x71051b1c
mov dword [esp], edx
call dword [sym.imp.ucrtbase.dll_free]
mov eax, 0x8004100e
jmp 0x710519c8
mov eax, 0x8007000e
jmp 0x710519c8
mov dword [esp], edx
call dword [sym.imp.ucrtbase.dll_free]
mov eax, 0x8007000e
jmp 0x710519c8
mov dword [ebp - 0x4c], edx
mov ebx, dword [sym.imp.ucrtbase.dll_free]
mov dword [esp], ecx
call ebx
mov edx, dword [ebp - 0x4c]
mov dword [esp], edx
call ebx
mov eax, 0x8007000e
jmp 0x710519c8