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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x270]
sub rsp, 0x370
mov rax, qword [0x14006a110]
xor rax, rsp
mov qword [rbp + 0x260], rax
lea rax, [rsp + 0x48]
mov rbx, rcx
xor esi, esi
lea rdx, str.SYSTEMCurrentControlSetServiceslanmanserverparameters
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x48], rsi
mov byte [rsp + 0x60], sil
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14002861d
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x54]
lea rdx, str.srvcomment
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x60]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x54], 0x200
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140028618
mov qword [rsp + 0x38], rsi
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rsi
lea r8, [rbp + 0x60]
or r9d, 0xffffffff
xor edx, edx
mov ecx, 0xfde9
mov dword [rsp + 0x28], 0x100
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jle 0x1400285ee
mov eax, esi
jmp 0x140028605
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x140028600
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140028605
mov eax, 0xffffe5d4
test eax, eax
jne 0x140028618
movzx ecx, byte [rsp + 0x60]
test cl, cl
jne 0x1400286b2
jmp 0x14002861d
mov byte [rsp + 0x60], sil
lea r8, [rsp + 0x40]
lea rdx, [rbp + 0x60]
mov ecx, 5
mov dword [rsp + 0x40], 0x100
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
jne 0x140028651
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x14002868a
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400286ac
mov qword [rsp + 0x38], rsi
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rsi
lea r8, [rbp + 0x60]
or r9d, 0xffffffff
xor edx, edx
mov ecx, 0xfde9
mov dword [rsp + 0x28], 0x100
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jle 0x140028691
mov eax, esi
jmp 0x1400286a8
mov eax, 0xffffe5a8
jmp 0x1400286ac
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1400286a3
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1400286a8
mov eax, 0xffffe5d4
test eax, eax
je 0x1400286b8
xor cl, cl
mov byte [rsp + 0x60], cl
test eax, eax
jne 0x1400286c1
jmp 0x1400286bd
movzx ecx, byte [rsp + 0x60]
test cl, cl
jne 0x1400286d7
mov rax, qword [str.My_Computer]
mov qword [rsp + 0x60], rax
mov eax, dword [0x1400595b0]
mov dword [rsp + 0x68], eax
or rcx, 0xffffffffffffffff
xor eax, eax
mov byte [rbp + 0x5f], sil
lea rdi, [rsp + 0x60]
lea rdx, [rsp + 0x60]
repne scasb al, byte [rdi]
mov eax, 0x3f
not rcx
dec rcx
cmp rcx, rax
cmovb rax, rcx
lea rcx, [rbx + 0x28a1]
movzx r8d, al
mov byte [rbx + 0x28a0], al
call fcn.140043b10
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140028725
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, qword [rbx]
xor ecx, ecx
lea r8, [rsp + 0x40]
mov qword [rax + 0x28], rcx
mov qword [rax + 0x30], rcx
mov qword [rax + 0x38], rcx
mov qword [rax + 0x40], rcx
mov rax, qword [rbx]
mov qword [rax + 0x48], rcx
mov qword [rax + 0x50], rcx
mov qword [rax + 0x58], rcx
mov qword [rax + 0x60], rcx
mov rdx, qword [rbx]
mov ecx, 4
add rdx, 0x28
mov dword [rsp + 0x40], 0x20
call qword [sym.imp.KERNEL32.dll_GetComputerNameExA]
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x58]
xor ecx, ecx
call sub.NETAPI32.dll_NetGetJoinInformation
test eax, eax
jne 0x1400287e1
mov eax, dword [rsp + 0x50]
cmp eax, 2
je 0x14002878f
cmp eax, 3
jne 0x1400287d7
mov rax, qword [rbx]
mov r8, qword [rsp + 0x58]
mov qword [rsp + 0x38], rsi
add rax, 0x48
mov qword [rsp + 0x30], rsi
or r9d, 0xffffffff
xor edx, edx
mov ecx, 0xfde9
mov dword [rsp + 0x28], 0x20
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jg 0x1400287d7
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1400287d7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x58]
call sub.NETAPI32.dll_NetApiBufferFree
xor eax, eax
mov rcx, qword [rbp + 0x260]
xor rcx, rsp
call fcn.1400437e0
lea r11, [rsp + 0x370]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret