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

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x490]
sub rsp, 0x590
mov rax, qword [0x1402bf040]
xor rax, rsp
mov qword [rbp + 0x480], rax
mov rax, qword [rcx + 8]
lea r14, str.SystemCurrentControlSetServices_
xor esi, esi
mov dword [rbp - 0x70], 1
mov qword [rsp + 0x50], rsi
lea r8, [rbp + 0x60]
mov qword [rsp + 0x60], rsi
mov rdi, rcx
mov qword [rbp - 0x60], 0x44
lea rcx, [rbp - 0x70]
mov qword [rbp - 0x58], r14
mov r9d, 0x208
movups xmm0, xmmword [rax]
lea rax, [rsp + 0x78]
mov dword [rbp - 0x50], 1
mov edx, 2
mov qword [rsp + 0x20], rax
movaps xmmword [rbp - 0x40], xmm0
call sym.SystemInformer.exe_PhFormatToBuffer
test al, al
jne 0x140176e5c
mov ebx, 0xc0000001
lfence
jmp 0x1401771d7
mov rcx, qword ds:[rsp + 0x78]
add rcx, 0xfffffffffffffffe
mov word [rsp + 0x40], cx
lea eax, [rcx + 2]
mov word [rsp + 0x42], ax
lea rax, [rbp + 0x60]
mov qword [rsp + 0x48], rax
cmp rcx, 0xfffe
jbe 0x140176e96
mov ebx, 0xc0000106
lfence
jmp 0x1401771d7
lea rax, [rsp + 0x68]
xor r8d, r8d
lea r9, [rbp - 0x30]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x40]
mov rcx, 0xfffffffffffffffd
call fcn.140168f00
mov ebx, eax
test eax, eax
js 0x140176f5e
lea rax, [rsp + 0x70]
xor r9d, r9d
mov qword [rsp + 0x30], rax
lea r8, [rbp - 0x30]
mov dword [rsp + 0x28], esi
lea rcx, [rsp + 0x60]
mov edx, 0x30006
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ntdll.dll_NtCreateKey]
mov rcx, qword [rsp + 0x68]
mov ebx, eax
test rcx, rcx
je 0x140176f06
nop
call qword [sym.imp.ntdll.dll_NtClose]
test ebx, ebx
js 0x140176f5e
mov rcx, qword [rsp + 0x60]
lea rax, str.SupportedFeatures
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x40]
lea rax, [rdi + 0x28]
mov dword [rsp + 0x28], 4
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x40], 0x240022
call qword [sym.imp.ntdll.dll_NtSetValueKey]
mov ebx, eax
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140176f5a
call qword [sym.imp.ntdll.dll_NtClose]
test ebx, ebx
jns 0x140176f66
lfence
jmp 0x1401771d7
cmp qword [rdi + 0x18], rsi
jne 0x140176f7e
cmp qword [rdi + 0x20], rsi
jne 0x140176f7e
cmp dword [rdi + 0x2c], esi
jne 0x140176f7e
xor eax, eax
jmp 0x1401771d9
lfence
mov rax, qword [rdi + 8]
lea r8, [rbp + 0x270]
mov dword [rbp], 1
lea rcx, [rbp]
mov qword [rbp + 0x10], 0x44
mov r9d, 0x208
mov qword [rbp + 0x18], r14
mov edx, 3
movups xmm0, xmmword [rax]
lea rax, [0x14028a3b8]
mov dword [rbp + 0x20], 1
mov qword [rbp + 0x58], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
movaps xmmword [rbp + 0x30], xmm0
mov dword [rbp + 0x40], 1
mov qword [rbp + 0x50], 0x16
call sym.SystemInformer.exe_PhFormatToBuffer
test al, al
jne 0x140176ff3
mov eax, 0xc0000001
jmp 0x1401771d9
mov rcx, qword ds:[rbp - 0x80]
add rcx, 0xfffffffffffffffe
mov word [rsp + 0x40], cx
lea eax, [rcx + 2]
mov word [rsp + 0x42], ax
lea rax, [rbp + 0x270]
mov qword [rsp + 0x48], rax
cmp rcx, 0xfffe
ja 0x140176e89
lea rax, [rsp + 0x68]
xor r8d, r8d
lea r9, [rbp - 0x30]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x40]
mov rcx, 0xfffffffffffffffd
call fcn.140168f00
mov ebx, eax
test eax, eax
js 0x140176f5e
lea rax, ds:[rsp + 0x58]
xor r9d, r9d
mov qword [rsp + 0x30], rax
lea r8, [rbp - 0x30]
mov dword [rsp + 0x28], esi
lea rcx, [rsp + 0x50]
mov edx, 0x30006
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ntdll.dll_NtCreateKey]
mov rcx, qword [rsp + 0x68]
mov ebx, eax
test rcx, rcx
je 0x140177098
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
test ebx, ebx
js 0x140176f5e
mov qword [rsp + 0x5b8], r15
lfence
cmp qword [rdi + 0x18], rsi
je 0x140177109
lfence
mov rax, qword [rdi + 0x18]
mov r9d, 1
xor r8d, r8d
mov dword [rsp + 0x40], 0x120010
mov edx, dword [rax]
mov rcx, qword [rax + 8]
add edx, 2
mov dword [rsp + 0x28], edx
lea rax, str.PortName
mov qword [rsp + 0x20], rcx
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x50]
mov qword [rsp + 0x48], rax
call qword [sym.imp.ntdll.dll_NtSetValueKey]
mov ebx, eax
test eax, eax
js 0x1401771ac
cmp qword [rdi + 0x20], rsi
je 0x14017715b
lfence
mov rax, qword [rdi + 0x20]
mov r9d, 1
xor r8d, r8d
mov dword [rsp + 0x40], 0x120010
mov edx, dword [rax]
mov rcx, qword [rax + 8]
add edx, 2
mov dword [rsp + 0x28], edx
lea rax, str.Altitude
mov qword [rsp + 0x20], rcx
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x50]
mov qword [rsp + 0x48], rax
call qword [sym.imp.ntdll.dll_NtSetValueKey]
mov ebx, eax
test eax, eax
js 0x1401771ac
add rdi, 0x2c
cmp dword [rdi], esi
je 0x1401771c2
lea rax, str.Flags
mov dword ds:[rsp + 0x40], 0xc000a
mov qword [rsp + 0x48], rax
lfence
mov rcx, qword [rsp + 0x50]
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x28], 4
mov r9d, 4
xor r8d, r8d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ntdll.dll_NtSetValueKey]
mov ebx, eax
test eax, eax
jns 0x1401771c2
cmp dword [rsp + 0x58], 1
jne 0x1401771c4
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntdll.dll_NtDeleteKey]
nop
jmp 0x1401771c4
mov ebx, esi
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntdll.dll_NtClose]
mov r15, qword [rsp + 0x5b8]
mov eax, ebx
mov rcx, qword [rbp + 0x480]
xor rcx, rsp
call fcn.1401e4a20
lea r11, ss:[rsp + 0x590]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret