Function at 0x14000c580
Capabilities:
Get hostname
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x378]
sub rsp, reloc.Mso20Win32Client.dll_Ordinal_255
mov rax, qword [0x1400398a8]
xor rax, rsp
mov qword [rbp + 0x360], rax
mov r13, r8
mov r14d, edx
mov rsi, rcx
mov edi, reloc.Mso20Win32Client.dll_Ordinal_255
xor ebx, ebx
lea rcx, [rsp + 0x40]
and qword [rsp + 0x38], rbx
mov r8d, edi
xor edx, edx
mov r12, r9
xor r15d, r15d
call sub.VCRUNTIME140.dll_memset
mov r8d, edi
lea rcx, [rbp + 0x150]
xor edx, edx
call sub.VCRUNTIME140.dll_memset
lea edi, [rbx + 1]
test rsi, rsi
je reloc.Mso20Win32Client.dll_Ordinal_255
test r14d, r14d
jne reloc.Mso20Win32Client.dll_Ordinal_255
xor edi, edi
or r9, reloc.Mso20Win32Client.dll_Ordinal_255
lea r8, str.SoftwareMicrosoftOffice16.0Registration_
mov edx, reloc.Mso20Win32Client.dll_Ordinal_255
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
cmp eax, 0x50
je reloc.Mso20Win32Client.dll_Ordinal_255
cmp r13, reloc.Mso20Win32Client.dll_Ordinal_255
jne reloc.Mso20Win32Client.dll_Ordinal_255
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x30], 0x104
lea rcx, [rbp + 0x150]
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je reloc.Mso20Win32Client.dll_Ordinal_255
or r9, reloc.Mso20Win32Client.dll_Ordinal_255
lea r8, [rbp + 0x150]
mov edx, reloc.Mso20Win32Client.dll_Ordinal_255
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat_s]
cmp eax, 0x50
je reloc.Mso20Win32Client.dll_Ordinal_255
or r9, reloc.Mso20Win32Client.dll_Ordinal_255
lea r8, [0x140039098]
mov edx, reloc.Mso20Win32Client.dll_Ordinal_255
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat_s]
cmp eax, 0x50
je reloc.Mso20Win32Client.dll_Ordinal_255
test edi, edi
je reloc.Mso20Win32Client.dll_Ordinal_255
cmp word [rsi], 0x7b
mov edi, reloc.Mso20Win32Client.dll_Ordinal_255
je reloc.Mso20Win32Client.dll_Ordinal_255
or r9, reloc.Mso20Win32Client.dll_Ordinal_255
lea r8, [0x1400421cc]
mov edx, edi
lea rcx, [rsp + 0x40]
mov r15d, 1
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat_s]
cmp eax, 0x50
je reloc.Mso20Win32Client.dll_Ordinal_255
mov r9, r14
lea rcx, [rsp + 0x40]
mov r8, rsi
mov rdx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat_s]
cmp eax, 0x50
je reloc.Mso20Win32Client.dll_Ordinal_255
test r15d, r15d
je reloc.Mso20Win32Client.dll_Ordinal_255
or r9, reloc.Mso20Win32Client.dll_Ordinal_255
lea r8, [0x1400421d0]
mov rdx, rdi
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat_s]
cmp eax, 0x50
je reloc.Mso20Win32Client.dll_Ordinal_255
lea rax, [rsp + 0x38]
mov r9d, reloc.Mso20Win32Client.dll_Ordinal_255
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x40]
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx ecx, ax
mov edi, reloc.Mso20Win32Client.dll_Ordinal_255
or ecx, edi
test eax, eax
cmovle ecx, eax
test ecx, ecx
js reloc.Mso20Win32Client.dll_Ordinal_255
test r12, r12
jne reloc.Mso20Win32Client.dll_Ordinal_255
lea ebx, [r12 + 1]
jmp reloc.Mso20Win32Client.dll_Ordinal_255
and qword [rsp + 0x28], rbx
xor r9d, r9d
mov rcx, qword [rsp + 0x38]
xor r8d, r8d
and qword [rsp + 0x20], rbx
mov rdx, r12
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx ecx, ax
or ecx, edi
test eax, eax
cmovle ecx, eax
mov eax, 1
test ecx, ecx
cmovns ebx, eax
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je reloc.Mso20Win32Client.dll_Ordinal_255
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x360]
xor rcx, rsp
call fcn.140003dd0
add rsp, reloc.Mso20Win32Client.dll_Ordinal_255
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret