Function at 0x140001ce8
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push rbp
push r14
push r15
lea rbp, [rax - 0x278]
sub rsp, 0x360
mov rax, qword [0x140004008]
xor rax, rsp
mov qword [rbp + 0x250], rax
or r14, 0xffffffffffffffff
mov rdi, rcx
mov rax, r14
xor r15d, r15d
inc rax
cmp word [rdx + rax*2], r15w
jne 0x140001d2c
add eax, 0x12
mov r12d, 0x104
cmp eax, r12d
jae 0x140001e3b
mov r8, rdx
lea rcx, [rbp + 0x40]
mov edx, r12d
call fcn.140001008
lea r8, str.PersistentHandler
mov edx, r12d
lea rcx, [rbp + 0x40]
call fcn.140001094
lea rax, [rsp + 0x60]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rbp + 0x40]
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
mov esi, eax
test eax, eax
je 0x140001db8
lea r8, [rbp + 0x40]
mov edx, eax
lea rcx, str.Error__u_opening_HKCR_ws_n
call qword [sym.imp.msvcrt.dll_printf]
nop dword [rax + rax]
jmp 0x140001f87
mov rbx, qword [rsp + 0x60]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x54]
lea rax, [rsp + 0x70]
mov dword [rsp + 0x50], 0xc8
xor r8d, r8d
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
mov esi, eax
test eax, eax
je 0x140001e12
mov edx, eax
lea rcx, str.Error__u_reading_persistent_handler_class._n
call qword [sym.imp.msvcrt.dll_printf]
nop dword [rax + rax]
jmp 0x140001f73
mov rax, r14
inc rax
cmp word [rdi + rax*2], r15w
jne 0x140001e15
add eax, 0x12
cmp eax, r12d
jb 0x140001e71
test rbx, rbx
je 0x140001e3b
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov eax, 0x57
mov rcx, qword [rbp + 0x250]
xor rcx, rsp
call fcn.1400022d0
lea r11, [rsp + 0x360]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
mov r8, rdi
lea rcx, [rbp + 0x40]
mov rdx, r12
call fcn.140001008
lea r8, str.PersistentHandler
mov rdx, r12
lea rcx, [rbp + 0x40]
call fcn.140001094
lea rax, [rsp + 0x58]
xor r9d, r9d
mov qword [rsp + 0x40], rax
lea rdx, [rbp + 0x40]
lea rax, [rsp + 0x68]
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov rcx, 0xffffffff80000000
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], r15d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
nop dword [rax + rax]
mov esi, eax
test eax, eax
je 0x140001ef7
lea r8, [rbp + 0x40]
mov edx, eax
lea rcx, str.Error__u_creating_persistent_handler_key_HKCR_ws_n
call qword [sym.imp.msvcrt.dll_printf]
nop dword [rax + rax]
jmp 0x140001f73
mov rdi, qword [rsp + 0x68]
lea rax, [rsp + 0x70]
mov word [rbp + 0x36], r15w
inc r14
cmp word [rax + r14*2], r15w
jne 0x140001f06
lea eax, [r14*2 + 2]
mov r9d, 1
mov dword [rsp + 0x28], eax
xor r8d, r8d
lea rax, [rsp + 0x70]
xor edx, edx
mov rcx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
mov esi, eax
test eax, eax
je 0x140001f5f
lea r8, [rbp + 0x40]
mov edx, eax
lea rcx, str.Error__u_creating_persistent_handler_key_HKCR_ws_n
call qword [sym.imp.msvcrt.dll_printf]
nop dword [rax + rax]
test rdi, rdi
je 0x140001f73
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
test rbx, rbx
je 0x140001f87
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov eax, esi
jmp 0x140001e40