Function at 0x1400cc4a0
Capabilities:
Persist via windows service
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
mov rbp, rsp
sub rsp, 0x50
lea rcx, [rbp - 0x20]
call fcn.1400ca720
lea rax, [rbp + 0x10]
mov r9d, 0x20006
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SYSTEMCurrentControlSetControlComputerNameComputerName
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea rbx, [0x14017d77a]
test eax, eax
jne 0x1400cc588
mov eax, dword [rbp - 0x10]
lea rcx, [rbp - 0x20]
inc eax
lea rdx, str.ComputerName
cmp qword [rbp - 8], 0x10
mov r9d, 1
mov dword [rsp + 0x28], eax
cmovae rcx, qword [rbp - 0x20]
xor r8d, r8d
mov qword [rsp + 0x20], rcx
mov rcx, qword [rbp + 0x10]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [rbp - 0x10]
lea rcx, [rbp - 0x20]
inc eax
lea rdx, str.ActiveComputerName
cmp qword [rbp - 8], 0x10
mov r9d, 1
mov dword [rsp + 0x28], eax
cmovae rcx, qword [rbp - 0x20]
xor r8d, r8d
mov qword [rsp + 0x20], rcx
mov rcx, qword [rbp + 0x10]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rbp + 0x10]
lea rdx, str.ComputerNamePhysicalDnsDomain
mov r9d, 1
mov dword [rsp + 0x28], 1
xor r8d, r8d
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rbp + 0x10]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rbp + 0x10]
mov r9d, 0x20006
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SYSTEMCurrentControlSetControlComputerNameActiveComputerName
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1400cc653
mov eax, dword [rbp - 0x10]
lea rcx, [rbp - 0x20]
inc eax
lea rdx, str.ComputerName
cmp qword [rbp - 8], 0x10
mov r9d, 1
mov dword [rsp + 0x28], eax
cmovae rcx, qword [rbp - 0x20]
xor r8d, r8d
mov qword [rsp + 0x20], rcx
mov rcx, qword [rbp + 0x10]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [rbp - 0x10]
lea rcx, [rbp - 0x20]
inc eax
lea rdx, str.ActiveComputerName
cmp qword [rbp - 8], 0x10
mov r9d, 1
mov dword [rsp + 0x28], eax
cmovae rcx, qword [rbp - 0x20]
xor r8d, r8d
mov qword [rsp + 0x20], rcx
mov rcx, qword [rbp + 0x10]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rbp + 0x10]
lea rdx, str.ComputerNamePhysicalDnsDomain
mov r9d, 1
mov dword [rsp + 0x28], 1
xor r8d, r8d
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rbp + 0x10]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rbp + 0x10]
mov r9d, 0x20006
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SYSTEMCurrentControlSetServicesTcpipParameters
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1400cc6f3
mov eax, dword [rbp - 0x10]
lea rcx, [rbp - 0x20]
inc eax
lea rdx, str.Hostname
cmp qword [rbp - 8], 0x10
mov r9d, 1
mov dword [rsp + 0x28], eax
cmovae rcx, qword [rbp - 0x20]
xor r8d, r8d
mov qword [rsp + 0x20], rcx
mov rcx, qword [rbp + 0x10]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [rbp - 0x10]
lea rcx, [rbp - 0x20]
inc eax
lea rdx, str.NV_Hostname
cmp qword [rbp - 8], 0x10
mov r9d, 1
mov dword [rsp + 0x28], eax
cmovae rcx, qword [rbp - 0x20]
xor r8d, r8d
mov qword [rsp + 0x20], rcx
mov rcx, qword [rbp + 0x10]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rbp + 0x10]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rbp + 0x10]
mov r9d, 0x20006
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SYSTEMCurrentControlSetServicesTcpipParametersInterfaces
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1400cc793
mov eax, dword [rbp - 0x10]
lea rcx, [rbp - 0x20]
inc eax
lea rdx, str.Hostname
cmp qword [rbp - 8], 0x10
mov r9d, 1
mov dword [rsp + 0x28], eax
cmovae rcx, qword [rbp - 0x20]
xor r8d, r8d
mov qword [rsp + 0x20], rcx
mov rcx, qword [rbp + 0x10]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [rbp - 0x10]
lea rcx, [rbp - 0x20]
inc eax
lea rdx, str.NV_Hostname
cmp qword [rbp - 8], 0x10
mov r9d, 1
mov dword [rsp + 0x28], eax
cmovae rcx, qword [rbp - 0x20]
xor r8d, r8d
mov qword [rsp + 0x20], rcx
mov rcx, qword [rbp + 0x10]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rbp + 0x10]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rbp - 0x20]
call fcn.140020e70
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rbp
ret