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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x2c0
mov rax, qword [0x1401f41c0]
xor rax, rsp
mov qword [rsp + 0x2b0], rax
movzx esi, dl
xor edi, edi
mov qword [rsp + 0x38], rdi
mov rdx, qword [str.SYSTEMCurrentControlSetServicesTcpip6Parameters]
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0xa0], xmm1
mov rbx, 0xffffffffffffffff
mov r8, rbx
nop word [rax + rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x140040c20
lea rcx, [rsp + 0x90]
call fcn.140014ca0
nop
mov qword [rsp + 0x30], rdi
lea rdx, [rsp + 0x90]
cmp qword [rsp + 0xa8], 7
cmova rdx, qword [rsp + 0x90]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test eax, eax
jne 0x140040eb1
mov rdi, qword [rsp + 0x30]
mov qword [rsp + 0x38], rdi
mov rdx, qword [rsp + 0xa8]
cmp rdx, 7
jbe 0x140040cd4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x90]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140040ccf
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140040f06
call fcn.14016aab8
mov rdx, qword [str.DisabledComponents]
xorps xmm0, xmm0
xorps xmm1, xmm1
movups xmmword [rsp + 0x90], xmm0
movdqu xmmword [rsp + 0xa0], xmm1
test sil, sil
je 0x140040da0
nop dword [rax + rax]
inc rbx
cmp word [rdx + rbx*2], 0
jne 0x140040d00
mov r8, rbx
lea rcx, [rsp + 0x90]
call fcn.140014ca0
nop
lea rdx, [rsp + 0x90]
cmp qword [rsp + 0xa8], 7
cmova rdx, qword [rsp + 0x90]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ebx, eax
test eax, eax
jne 0x140040f0c
mov rdx, qword [rsp + 0xa8]
cmp rdx, 7
jbe 0x140040e54
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x90]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140040e4e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140040f61
jmp 0x140040e4e
inc rbx
cmp word [rdx + rbx*2], 0
jne 0x140040da0
mov r8, rbx
lea rcx, [rsp + 0x90]
call fcn.140014ca0
nop
mov dword [rsp + 0x30], 0xff
lea rdx, [rsp + 0x90]
cmp qword [rsp + 0xa8], 7
cmova rdx, qword [rsp + 0x90]
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
test eax, eax
jne 0x140040f67
mov rdx, qword [rsp + 0xa8]
cmp rdx, 7
jbe 0x140040e54
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x90]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140040e4e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140040fbc
call fcn.14016aab8
nop
test rdi, rdi
je 0x140040e8c
mov eax, 0x80000000
add rax, rdi
cmp rax, 5
jbe 0x140040e8c
cmp rdi, 0xffffffff80000007
je 0x140040e8c
cmp rdi, 0xffffffff80000060
je 0x140040e8c
cmp rdi, 0xffffffff80000050
je 0x140040e8c
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rcx, qword [rsp + 0x2b0]
xor rcx, rsp
call fcn.14016ab50
lea r11, [rsp + 0x2c0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
xor edx, edx
mov r8d, 0x200
lea rcx, [rsp + 0xb0]
call fcn.140191ec0
mov r9d, edi
lea r8, str.WinReg.Open:_RegOpenKeyExW_failed___d
mov edx, 0x200
lea rcx, [rsp + 0xb0]
call fcn.140041030
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0x48]
call fcn.140038230
lea rdx, [0x1401ec5c8]
lea rcx, [rsp + 0x48]
call fcn.14016bd70
nop
call fcn.140170de4
nop
xor edx, edx
mov r8d, 0x200
lea rcx, [rsp + 0xb0]
call fcn.140191ec0
mov r9d, ebx
lea r8, str.WinReg.DeleteValue:_RegDeleteValueW_failed___d
mov edx, 0x200
lea rcx, [rsp + 0xb0]
call fcn.140041030
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0x60]
call fcn.140038230
lea rdx, [0x1401ec5c8]
lea rcx, [rsp + 0x60]
call fcn.14016bd70
nop
call fcn.140170de4
nop
xor edx, edx
mov r8d, 0x200
lea rcx, [rsp + 0xb0]
call fcn.140191ec0
mov r9d, ebx
lea r8, str.WinReg.SetValue_REG_DWORD_:_RegSetValueExW_failed___d
mov edx, 0x200
lea rcx, [rsp + 0xb0]
call fcn.140041030
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0x78]
call fcn.140038230
lea rdx, [0x1401ec5c8]
lea rcx, [rsp + 0x78]
call fcn.14016bd70
nop
call fcn.140170de4
int3