Function at 0x14005aa30
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xf0
mov qword [rbp - 1], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1401b5e90]
xor rax, rsp
mov qword [rbp + 0x27], rax
movzx r13d, dl
mov rsi, rcx
xor r12d, r12d
mov edi, r12d
mov dword [rbp - 0x69], r12d
lea rax, [rcx + 0x130]
mov qword [rbp - 0x31], rax
lea rbx, [rax + 8]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
lea rcx, [rsi + 0x160]
call fcn.14005bcf0
lea rcx, [rsi + 0x170]
call fcn.14005bcf0
mov dl, 1
mov rcx, rsi
call fcn.14005b5f0
nop
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov r8d, dword [0x1401bdd80]
mov ecx, r8d
imul ecx, r8d
imul ecx, r8d
mov eax, 0x6bca1af3
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x13
sub ecx, edx
cmp ecx, 0xd
jne 0x14005aaf6
dec r8d
mov dword [0x1401bdd80], r8d
mov edx, 0x5c
mov rcx, qword [rsi + 0x1b0]
call fcn.1400ce3c8
or r14d, 0xffffffff
test rax, rax
jne 0x14005ab15
mov eax, r14d
jmp 0x14005ab1f
sub rax, qword [rsi + 0x1b0]
sar rax, 1
lea r8d, [rax + 1]
lea rdx, [rbp - 0x51]
lea rcx, [rsi + 0x1b0]
call fcn.140027f30
nop
lea rax, [rbp - 0x59]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
mov rdx, qword [rsi + 0x1b0]
mov rcx, qword [rsi + 0x2d8]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14005ace2
mov r8d, dword [0x1401bdd80]
lea ecx, [r8 + 2]
lea eax, [r8 + 1]
imul ecx, eax
imul ecx, r8d
mov eax, 0x55555556
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
sub ecx, eax
cmp ecx, 1
jne 0x14005ac01
mov ecx, r12d
mov eax, 0x95a02569
imul r8d
add edx, r8d
sar edx, 7
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0xdb
mov eax, r8d
sub eax, edx
cmp eax, 0x37
je 0x14005abfb
nop dword [rax + rax]
mov eax, r8d
or eax, 0xffffffdb
add r8d, eax
inc ecx
mov eax, r8d
imul eax, r8d
cmp ecx, eax
jg 0x14005abfb
mov eax, 0x95a02569
imul r8d
add edx, r8d
sar edx, 7
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0xdb
mov eax, r8d
sub eax, edx
cmp eax, 0x37
jne 0x14005abc0
mov dword [0x1401bdd80], ecx
mov qword [rsp + 0x40], r12
lea rax, [rbp - 0x59]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsi + 0x1b0]
mov rcx, qword [rsi + 0x2d8]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x14005ace2
mov edx, eax
lea rcx, [rbp + 7]
call fcn.14004f180
mov rbx, rax
lea rax, [rbp - 0x41]
mov qword [rbp - 0x31], rax
lea rcx, [0x1401b59a8]
mov rdx, qword [0x1401b59a8]
call qword [rdx + 0x18]
add rax, 0x18
mov qword [rbp - 0x41], rax
lea rax, [rbp - 0x39]
mov qword [rbp - 0x31], rax
lea rcx, [0x1401b59a8]
mov rax, qword [0x1401b59a8]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x39], rax
lea rdx, str.error_in_clearRegKeysOfInject:
lea rcx, [rbp - 0x41]
call fcn.140003600
cmp qword [rbx + 0x18], 0x10
jb 0x14005acad
mov rbx, qword [rbx]
mov rdx, rbx
lea rcx, [rbp - 0x39]
call fcn.140003600
lea r8, [0x140147144]
lea rdx, [0x140147148]
lea rcx, [rbp - 0x41]
call fcn.14000fa00
nop
lea rdx, [0x140180970]
lea rcx, [rbp - 0x41]
call fcn.1400d39b8
nop
test r13b, r13b
je 0x14005ad25
lea r8, str._ver
lea rdx, [rbp - 0x51]
lea rcx, [rbp - 9]
call fcn.14001aed0
nop
mov rdx, qword [rax]
mov rcx, qword [rbp - 0x59]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
nop
mov rdx, qword [rbp - 9]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14005ad22
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov edi, dword [rbp - 0x69]
mov r15d, r12d
lea rcx, [0x1401b59a8]
mov rax, qword [0x1401b59a8]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rbp - 0x61], rbx
mov r8d, dword [0x1401bdd80]
lea ecx, [r8 + 2]
lea eax, [r8 + 1]
imul ecx, eax
imul ecx, r8d
mov eax, 0x55555556
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
sub ecx, eax
cmp ecx, 1
jne 0x14005ae03
test r8d, r8d
je 0x14005ae03
nop dword [rax]
mov eax, r8d
and eax, 0x80000001
jge 0x14005ad91
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x14005ada8
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
mov r8d, eax
mov dword [0x1401bdd80], eax
jmp 0x14005adb7
lea r8d, [r8*2 + 1]
mov dword [0x1401bdd80], r8d
mov eax, 0x55555556
imul r8d
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
mov ecx, r8d
sub ecx, eax
je 0x14005addb
sub ecx, 2
je 0x14005addf
dec ecx
je 0x14005ade2
jmp 0x14005aded
add r8d, 2
inc r8d
add r8d, 2
mov dword [0x1401bdd80], r8d
test r8d, r8d
jne 0x14005ad80
jmp 0x14005ae03
xor r12d, r12d
mov dword [rbp - 0x49], 0x7ffe
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, 0x7ffe
or eax, ecx
jge 0x14005ae30
mov edx, 0x7ffe
lea rcx, [rbp - 0x61]
call fcn.140002490
mov rbx, qword [rbp - 0x61]
cmp dword [rbx - 0xc], 0x7ffe
jl 0x14005b0b8
mov dword [rbx - 0x10], 0x7ffe
mov word [rbx + 0xfffc], r12w
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
lea r9, [rbp - 0x49]
mov r8, rbx
mov edx, r15d
mov rcx, qword [rbp - 0x59]
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov r12d, eax
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
call fcn.1400cc6d4
test eax, eax
js 0x14005b0ad
cmp eax, dword [rbx - 0xc]
jg 0x14005b0ad
mov dword [rbx - 0x10], eax
movsxd rcx, eax
xor eax, eax
mov word [rbx + rcx*2], ax
call fcn.140051e50
mov r8, rax
lea rdx, [rbp - 0x51]
lea rcx, [rbp - 0x19]
call fcn.14001aed0
nop
or edi, 1
mov dword [rbp - 0x69], edi
mov rdx, qword [rax]
test rdx, rdx
je 0x14005aee6
cmp dword [rbx - 0x10], 0
jl 0x14005aee6
mov rcx, rbx
call fcn.1400cc8a4
test rax, rax
je 0x14005aee6
sub rax, rbx
sar rax, 1
cmp eax, 0xffffffff
jne 0x14005af6a
call fcn.1400547d0
mov r8, rax
lea rdx, [rbp - 0x51]
lea rcx, [rbp - 0x11]
call fcn.14001aed0
nop
or edi, 2
mov dword [rbp - 0x69], edi
mov rdx, qword [rax]
test rdx, rdx
je 0x14005af28
cmp dword [rbx - 0x10], 0
jl 0x14005af28
mov rcx, rbx
call fcn.1400cc8a4
test rax, rax
je 0x14005af28
sub rax, rbx
sar rax, 1
cmp eax, 0xffffffff
jne 0x14005af6a
call fcn.140050400
mov r8, rax
lea rdx, [rbp - 0x51]
lea rcx, [rbp - 0x29]
call fcn.14001aed0
nop
or edi, 4
mov dword [rbp - 0x69], edi
mov rdx, qword [rax]
test rdx, rdx
je 0x14005af6f
cmp dword [rbx - 0x10], 0
jl 0x14005af6f
mov rcx, rbx
call fcn.1400cc8a4
test rax, rax
je 0x14005af6f
sub rax, rbx
sar rax, 1
cmp eax, 0xffffffff
je 0x14005af6f
mov sil, 1
jmp 0x14005af72
xor sil, sil
test dil, 4
je 0x14005af9d
and edi, 0xfffffffb
mov dword [rbp - 0x69], edi
mov rdx, qword [rbp - 0x29]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14005af96
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov edi, dword [rbp - 0x69]
mov rbx, qword [rbp - 0x61]
test dil, 2
je 0x14005afc8
and edi, 0xfffffffd
mov dword [rbp - 0x69], edi
mov rdx, qword [rbp - 0x11]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14005afc1
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov edi, dword [rbp - 0x69]
mov rbx, qword [rbp - 0x61]
test dil, 1
je 0x14005aff3
and edi, 0xfffffffe
mov dword [rbp - 0x69], edi
mov rdx, qword [rbp - 0x19]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14005afec
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov edi, dword [rbp - 0x69]
mov rbx, qword [rbp - 0x61]
test sil, sil
je 0x14005b00c
xor esi, esi
mov r15d, esi
mov rdx, rbx
mov rcx, qword [rbp - 0x59]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x14005b011
inc r15d
xor esi, esi
test r12d, r12d
je 0x14005ae00
test r13b, r13b
je 0x14005b071
call fcn.14004ff40
mov r8, rax
lea rdx, [rbp - 0x51]
lea rcx, [rbp - 0x21]
call fcn.14001aed0
nop
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rsi
mov r9d, 3
xor r8d, r8d
mov rdx, qword [rax]
mov rcx, qword [rbp - 0x59]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop
mov rdx, qword [rbp - 0x21]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14005b06d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [rbp - 0x61]
mov rcx, qword [rbp - 0x59]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rdx, [rbx - 0x18]
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14005b091
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 0x51]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14005b0a9
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
jmp 0x14005b0c3
mov ecx, 0x80070057
call fcn.140001920
int3
mov ecx, 0x80070057
call fcn.140001920
nop
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1400cbae0
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret