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

Disassembly:
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x270]
sub rsp, 0x370
mov rax, qword [0x140237008]
xor rax, rsp
mov qword [rbp + 0x260], rax
mov rdi, rdx
mov qword [rsp + 0x40], 0
lea rax, str.SystemCurrentControlSetServices_
mov dword [rbp - 0x10], 1
test rcx, rcx
mov qword [rbp + 8], rax
lea rdx, str.KProcessHacker3
mov qword [rbp], 0x44
cmovne rdx, rcx
mov dword [rbp + 0x10], 1
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rdx + rax*2], 0
jne 0x14011eaf0
add rax, rax
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x20], rax
lea r8, [rbp + 0x50]
lea rax, str.Parameters
mov dword [rbp + 0x30], 1
mov qword [rbp + 0x48], rax
lea rcx, [rbp - 0x10]
lea rax, [rsp + 0x70]
mov qword [rbp + 0x40], 0x16
mov r9d, 0x208
mov qword [rsp + 0x20], rax
mov edx, 3
call sym.ProcessHacker.exe_PhFormatToBuffer
test al, al
jne 0x14011eb53
mov eax, 0xc0000001
jmp 0x14011ee34
mov rcx, qword ds:[rsp + 0x70]
add rcx, 0xfffffffffffffffe
mov qword [rsp + 0x380], rbx
mov word [rbp - 0x80], cx
lea eax, [rcx + 2]
mov word [rbp - 0x7e], ax
lea rax, [rbp + 0x50]
mov qword [rbp - 0x78], rax
cmp rcx, 0xfffe
jbe 0x14011eb96
mov ebx, 0xc0000106
lfence
jmp 0x14011ee2a
xor r8d, r8d
lea rax, [rsp + 0x78]
lea r9, [rbp - 0x70]
mov qword [rsp + 0x20], rax
lea rdx, [rbp - 0x80]
lea rcx, [r8 - 3]
call fcn.14011ab40
mov ebx, eax
test eax, eax
js 0x14011ec04
lea rax, [rsp + 0x48]
xor r9d, r9d
mov qword [rsp + 0x30], rax
lea r8, [rbp - 0x70]
mov dword [rsp + 0x28], 0
lea rcx, [rsp + 0x40]
mov edx, 0x30006
mov qword [rsp + 0x20], 0
call qword [sym.imp.ntdll.dll_NtCreateKey]
mov rcx, qword [rsp + 0x78]
mov ebx, eax
test rcx, rcx
je 0x14011ebfe
call qword [sym.imp.ntdll.dll_NtClose]
nop
test ebx, ebx
jns 0x14011ec0c
lfence
jmp 0x14011ee2a
cmp byte [0x140244611], 1
lea r8, str.SecurityLevel
nop word [rax + rax]
jb 0x14011ecbc
mov rdx, r8
mov rcx, r8
and rdx, 0xfffffffffffffff1
xorps xmm1, xmm1
and ecx, 0xf
je 0x14011ec55
xorps xmm0, xmm0
pcmpeqw xmm0, xmmword [rdx]
pmovmskb eax, xmm0
sar eax, cl
bsf ecx, eax
je 0x14011ec51
mov edx, ecx
shr rdx, 1
jmp 0x14011ec93
add rdx, 0x10
xorps xmm0, xmm0
pcmpeqw xmm0, xmmword [rdx]
pmovmskb eax, xmm0
bsf ecx, eax
jne 0x14011ec85
nop word [rax + rax]
add rdx, 0x10
movdqa xmm0, xmm1
pcmpeqw xmm0, xmmword [rdx]
pmovmskb eax, xmm0
bsf ecx, eax
je 0x14011ec70
sub rdx, r8
mov eax, ecx
sar rdx, 1
shr rax, 1
add rdx, rax
lea rcx, [rdx + rdx]
mov qword [rsp + 0x58], r8
mov word [rsp + 0x50], cx
lea eax, [rcx + 2]
mov word [rsp + 0x52], ax
cmp rcx, 0xfffe
jbe 0x14011ecc9
mov ebx, 0xc0000106
jmp 0x14011ee0d
mov dword [rsp + 0x50], 0x1c001a
mov qword [rsp + 0x58], r8
mov rcx, qword [rsp + 0x40]
lea rdx, [rsp + 0x50]
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
js 0x14011ee0d
cmp byte ds:[rdi + 4], 0
je 0x14011ee1f
lea rcx, [rbp - 0x38]
mov dword [rbp - 0x40], 3
mov dword [rbp - 0x3c], 1
call fcn.140173a20
nop dword [rax]
test eax, eax
js 0x14011ee1f
cmp byte [0x140244611], 1
lea r8, str.DynamicConfiguration
jb 0x14011edd0
mov rdx, r8
mov rcx, r8
and rdx, 0xfffffffffffffff1
xorps xmm1, xmm1
and ecx, 0xf
je 0x14011ed6d
xorps xmm0, xmm0
pcmpeqw xmm0, xmmword [rdx]
pmovmskb eax, xmm0
sar eax, cl
bsf ecx, eax
je 0x14011ed69
mov edx, ecx
shr rdx, 1
jmp 0x14011eda3
add rdx, 0x10
xorps xmm0, xmm0
pcmpeqw xmm0, xmmword [rdx]
pmovmskb eax, xmm0
bsf ecx, eax
jne 0x14011ed95
nop dword [rax]
add rdx, 0x10
movdqa xmm0, xmm1
pcmpeqw xmm0, xmmword [rdx]
pmovmskb eax, xmm0
bsf ecx, eax
je 0x14011ed80
sub rdx, r8
mov eax, ecx
sar rdx, 1
shr rax, 1
add rdx, rax
lea rcx, ds:[rdx + rdx]
mov qword [rsp + 0x68], r8
mov word [rsp + 0x60], cx
lea eax, [rcx + 2]
mov word [rsp + 0x62], ax
cmp rcx, 0xfffe
jbe 0x14011eddd
mov ebx, 0xc0000106
jmp 0x14011ee0d
mov dword [rsp + 0x60], 0x2a0028
mov qword [rsp + 0x68], r8
mov rcx, qword [rsp + 0x40]
lea rax, [rbp - 0x40]
mov dword [rsp + 0x28], 0x2c
lea rdx, [rsp + 0x60]
mov r9d, 3
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ntdll.dll_NtSetValueKey]
mov ebx, eax
test eax, eax
jns 0x14011ee1f
cmp dword [rsp + 0x48], 1
jne 0x14011ee1f
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntdll.dll_NtDeleteKey]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntdll.dll_NtClose]
mov eax, ebx
mov rbx, qword [rsp + 0x380]
mov rcx, qword ds:[rbp + 0x260]
xor rcx, rsp
call fcn.1401848a0
mov rdi, qword [rsp + 0x390]
add rsp, 0x370
pop rbp
ret