Function at 0x140024000
Capabilities:
Persist via windows service
Query or enumerate registry key
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x390
mov rax, qword [0x140033040]
xor rax, rsp
mov qword [rsp + 0x380], rax
mov edx, 8
lea rcx, [rsp + 0x150]
call fcn.140024a80
nop
lea rax, [rsp + 0x140]
mov qword [rsp + 0x20], rax
mov r9d, 2
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetControlComputerNameComputerName
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400248d5
mov eax, dword [rsp + 0x160]
lea eax, [rax*2 + 2]
lea rcx, [rsp + 0x150]
cmp qword [rsp + 0x168], 7
cmova rcx, qword [rsp + 0x150]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
lea rdx, str.ComputerName
mov rcx, qword [rsp + 0x140]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x140]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rsp + 0x140]
mov qword [rsp + 0x20], rax
mov r9d, 2
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetControlComputerNameComputerName
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400248ad
mov eax, dword [rsp + 0x160]
lea eax, [rax*2 + 2]
lea rcx, [rsp + 0x150]
cmp qword [rsp + 0x168], 7
cmova rcx, qword [rsp + 0x150]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
lea rdx, str.ActiveComputerName
mov rcx, qword [rsp + 0x140]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x140]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x50], xmm1
xor r8d, r8d
lea rdx, [0x14002b24c]
lea rcx, [rsp + 0x40]
call fcn.14001f0e0
nop
lea rax, [rsp + 0x140]
mov qword [rsp + 0x20], rax
mov r9d, 2
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetControlComputerNameComputerName
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140024884
mov eax, dword [rsp + 0x50]
lea eax, [rax*2 + 2]
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 7
cmova rcx, qword [rsp + 0x40]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
lea rdx, str.ComputerNamePhysicalDnsDomain
mov rcx, qword [rsp + 0x140]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x140]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 7
jbe 0x14002423f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002423a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14002423a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14002598c
lea rax, [rsp + 0x140]
mov qword [rsp + 0x20], rax
mov r9d, 2
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetControlComputerNameActiveComputerName
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14002485b
mov eax, dword [rsp + 0x160]
lea eax, [rax*2 + 2]
lea rcx, [rsp + 0x150]
cmp qword [rsp + 0x168], 7
cmova rcx, qword [rsp + 0x150]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
lea rdx, str.ComputerName
mov rcx, qword [rsp + 0x140]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x140]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rsp + 0x140]
mov qword [rsp + 0x20], rax
mov r9d, 2
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetControlComputerNameActiveComputerName
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140024833
mov eax, dword [rsp + 0x160]
lea eax, [rax*2 + 2]
lea rcx, [rsp + 0x150]
cmp qword [rsp + 0x168], 7
cmova rcx, qword [rsp + 0x150]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
lea rdx, str.ActiveComputerName
mov rcx, qword [rsp + 0x140]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x140]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x50], xmm1
xor r8d, r8d
lea rdx, [0x14002b24c]
lea rcx, [rsp + 0x40]
call fcn.14001f0e0
nop
lea rax, [rsp + 0x140]
mov qword [rsp + 0x20], rax
mov r9d, 2
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetControlComputerNameActiveComputerName
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14002480a
mov eax, dword [rsp + 0x50]
lea eax, [rax*2 + 2]
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 7
cmova rcx, qword [rsp + 0x40]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
lea rdx, str.ComputerNamePhysicalDnsDomain
mov rcx, qword [rsp + 0x140]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x140]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 7
jbe 0x14002444c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140024447
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140024447
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14002598c
lea rax, [rsp + 0x140]
mov qword [rsp + 0x20], rax
mov r9d, 2
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetServicesTcpipParameters
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400247e1
mov eax, dword [rsp + 0x160]
lea eax, [rax*2 + 2]
lea rcx, [rsp + 0x150]
cmp qword [rsp + 0x168], 7
cmova rcx, qword [rsp + 0x150]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
lea rdx, str.Hostname
mov rcx, qword [rsp + 0x140]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x140]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rsp + 0x140]
mov qword [rsp + 0x20], rax
mov r9d, 2
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetServicesTcpipParameters
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400247b9
mov eax, dword [rsp + 0x160]
lea eax, [rax*2 + 2]
lea rdx, [rsp + 0x150]
cmp qword [rsp + 0x168], 7
cmova rdx, qword [rsp + 0x150]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdx
mov r9d, 1
xor r8d, r8d
lea rdx, str.NV_Hostname
mov rcx, qword [rsp + 0x140]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x140]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rsp + 0x148]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetServicesTcpipParametersInterfaces
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140024797
xor edi, edi
mov ebx, edi
mov dword [rsp + 0x170], pe_nt_image_headers64
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x170]
lea r8, [rsp + 0x180]
xor edx, edx
mov rcx, qword [rsp + 0x148]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x140024719
nop word [rax + rax]
lea rax, [rsp + 0x140]
mov qword [rsp + 0x20], rax
mov r9d, 2
xor r8d, r8d
lea rdx, [rsp + 0x180]
mov rcx, qword [rsp + 0x148]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400246d0
mov eax, dword [rsp + 0x160]
lea eax, [rax*2 + 2]
lea rcx, [rsp + 0x150]
cmp qword [rsp + 0x168], 7
cmova rcx, qword [rsp + 0x150]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
lea rdx, str.Hostname
mov rcx, qword [rsp + 0x140]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [rsp + 0x160]
lea eax, [rax*2 + 2]
lea rcx, [rsp + 0x150]
cmp qword [rsp + 0x168], 7
cmova rcx, qword [rsp + 0x150]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
lea rdx, str.NV_Hostname
mov rcx, qword [rsp + 0x140]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x140]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [rsp + 0x170], pe_nt_image_headers64
inc ebx
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x170]
lea r8, [rsp + 0x180]
mov edx, ebx
mov rcx, qword [rsp + 0x148]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x1400245f0
mov rcx, qword [rsp + 0x148]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rsp + 0x168]
cmp rdx, 7
jbe 0x140024774
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x150]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002476e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14002476e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14002598c
nop
mov rcx, qword [rsp + 0x380]
xor rcx, rsp
call fcn.140025930
mov rbx, qword [rsp + 0x3a0]
add rsp, 0x390
pop rdi
ret
lea rdx, str.Failed_to_open_Tcpip_Interfaces_registry_key
lea rcx, [rsp + 0x68]
call fcn.14000c260
lea rdx, [0x1400309c0]
lea rcx, [rsp + 0x68]
call sub.VCRUNTIME140.dll__CxxThrowException
lea rdx, str.Failed_to_open_registry_key
lea rcx, [rsp + 0x80]
call fcn.14000c260
lea rdx, [0x1400309c0]
lea rcx, [rsp + 0x80]
call sub.VCRUNTIME140.dll__CxxThrowException
lea rdx, str.Failed_to_open_registry_key
lea rcx, [rsp + 0x98]
call fcn.14000c260
lea rdx, [0x1400309c0]
lea rcx, [rsp + 0x98]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea rdx, str.Failed_to_open_registry_key
lea rcx, [rsp + 0xb0]
call fcn.14000c260
lea rdx, [0x1400309c0]
lea rcx, [rsp + 0xb0]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea rdx, str.Failed_to_open_registry_key
lea rcx, [rsp + 0xc8]
call fcn.14000c260
lea rdx, [0x1400309c0]
lea rcx, [rsp + 0xc8]
call sub.VCRUNTIME140.dll__CxxThrowException
lea rdx, str.Failed_to_open_registry_key
lea rcx, [rsp + 0xe0]
call fcn.14000c260
lea rdx, [0x1400309c0]
lea rcx, [rsp + 0xe0]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea rdx, str.Failed_to_open_registry_key
lea rcx, [rsp + 0xf8]
call fcn.14000c260
lea rdx, [0x1400309c0]
lea rcx, [rsp + 0xf8]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea rdx, str.Failed_to_open_registry_key
lea rcx, [rsp + 0x110]
call fcn.14000c260
lea rdx, [0x1400309c0]
lea rcx, [rsp + 0x110]
call sub.VCRUNTIME140.dll__CxxThrowException
lea rdx, str.Failed_to_open_registry_key
lea rcx, [rsp + 0x128]
call fcn.14000c260
lea rdx, [0x1400309c0]
lea rcx, [rsp + 0x128]
call sub.VCRUNTIME140.dll__CxxThrowException
int3