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

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
lea rbp, [rsp - 0x170]
sub rsp, 0x270
mov rax, qword [0x140177698]
xor rax, rsp
mov qword [rbp + 0x160], rax
mov rbx, rcx
mov qword [rsp + 0x50], 0
lea rax, [rsp + 0x50]
mov byte [rsp + 0x60], 0
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
lea rdx, str.SYSTEMCurrentControlSetServiceslanmanserverparameters
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14004cade
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
lea rdx, str.srvcomment
lea rax, [rbp + 0x60]
mov dword [rsp + 0x44], 0x100
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14004cad9
mov r8d, 0x100
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 0x60]
call fcn.14004d160
test eax, eax
jne 0x14004cad9
cmp byte [rsp + 0x60], al
jne 0x14004cb48
jmp 0x14004cade
mov byte [rsp + 0x60], 0
lea r8, [rsp + 0x40]
mov dword [rsp + 0x40], 0x100
lea rdx, [rbp + 0x60]
mov ecx, 5
call qword [sym.imp.KERNEL32.dll_GetComputerNameExA]
test eax, eax
jne 0x14004cb12
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x14004cb30
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14004cb30
mov r8d, 0x100
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 0x60]
call fcn.14004d160
test eax, eax
jne 0x14004cb30
cmp byte [rsp + 0x60], al
jne 0x14004cb48
movsd xmm0, qword [str.My_Computer]
mov eax, dword [0x14014f5d8]
movsd qword [rsp + 0x60], xmm0
mov dword [rsp + 0x68], eax
mov byte [rbp + 0x5f], 0
lea rax, [rsp + 0x60]
mov rcx, 0xffffffffffffffff
nop dword [rax + rax]
inc rcx
cmp byte [rax + rcx], 0
jne 0x14004cb60
mov eax, 0x3f
lea rdx, [rsp + 0x60]
cmp rcx, rax
cmovb rax, rcx
lea rcx, [rbx + 0x2a29]
movzx r8d, al
mov byte [rbx + 0x2a28], r8b
call sub.VCRUNTIME140.dll_memcpy
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14004cba1
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, qword [rbx]
lea r8, [rsp + 0x40]
xor ecx, ecx
mov qword [rax + 0x50], rcx
mov qword [rax + 0x58], rcx
mov qword [rax + 0x60], rcx
mov qword [rax + 0x68], rcx
mov rax, qword [rbx]
mov qword [rax + 0x70], rcx
mov qword [rax + 0x78], rcx
mov qword [rax + 0x80], rcx
mov qword [rax + 0x88], rcx
mov ecx, 4
mov rdx, qword [rbx]
add rdx, 0x50
mov dword [rsp + 0x40], 0x20
call qword [sym.imp.KERNEL32.dll_GetComputerNameExA]
lea r8, [rsp + 0x48]
xor ecx, ecx
lea rdx, [rsp + 0x58]
call sub.NETAPI32.dll_NetGetJoinInformation
test eax, eax
jne 0x14004cc6b
mov eax, dword [rsp + 0x48]
add eax, 0xfffffffe
cmp eax, 1
ja 0x14004cc61
mov rax, qword [rbx]
mov r9d, 0xffffffff
mov r8, qword [rsp + 0x58]
add rax, 0x70
mov qword [rsp + 0x38], 0
xor edx, edx
mov qword [rsp + 0x30], 0
mov ecx, 0xfde9
mov dword [rsp + 0x28], 0x20
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jg 0x14004cc61
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x14004cc61
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x58]
call sub.NETAPI32.dll_NetApiBufferFree
xor eax, eax
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.14006a270
mov rbx, qword [rsp + 0x288]
add rsp, 0x270
pop rbp
ret