Function at 0x14004bdbc
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 - 0xe8]
sub rsp, 0x1c0
mov qword [rbp - 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
movaps xmmword [rax - 0x38], xmm6
movaps xmmword [rax - 0x48], xmm7
mov rax, qword [0x1401a0e90]
xor rax, rsp
mov qword [rbp + 0x90], rax
mov r13b, dl
mov byte [rsp + 0x50], dl
mov rsi, rcx
xor r14d, r14d
mov edi, r14d
mov dword [rsp + 0x54], r14d
call fcn.140041630
lea r12d, [r14 + 1]
lea r9d, [r14 + 0xb]
test al, al
jne 0x14004be52
mov ecx, r14d
lea rdx, [rbp + 0x20]
mov rax, r14
mov r8d, r12d
mov byte [rdx + rax], r14b
add r8d, r12d
add rax, r12
cmp rax, 9
jl 0x14004be36
add ecx, r12d
add rdx, 9
cmp ecx, r9d
jl 0x14004be30
lea rax, [rsi + 0x130]
mov qword [rbp - 0x70], rax
lea rbx, [rax + 8]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
lea rcx, [rsi + 0x160]
call fcn.14004d3e0
lea rcx, [rsi + 0x170]
call fcn.14004d3e0
mov dl, r12b
mov rcx, rsi
call fcn.14004ca84
nop
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.1400416c8
movsd xmm7, qword [0x14013dd10]
xorps xmm6, xmm6
test al, al
jne 0x14004bef3
movaps xmm3, xmm7
movaps xmm2, xmm6
movd xmm4, dword [0x1401a8d80]
cvtdq2pd xmm4, xmm4
addsd xmm2, xmm3
movaps xmm0, xmm2
mulsd xmm0, xmm2
comisd xmm0, xmm4
jbe 0x14004bedb
subsd xmm2, xmm3
divsd xmm3, qword [0x14013dd38]
movaps xmm1, xmm2
mulsd xmm1, xmm2
movaps xmm0, xmm4
subsd xmm0, xmm1
comisd xmm0, xmmword [0x14013dd08]
ja 0x14004bebe
lea rbx, [rsi + 0x1b0]
mov edx, 0x5c
mov rcx, qword [rbx]
call fcn.1400bf938
or r15d, 0xffffffff
test rax, rax
jne 0x14004bf15
mov eax, r15d
jmp 0x14004bf1b
sub rax, qword [rbx]
sar rax, 1
lea r8d, [rax + 1]
lea rdx, [rsp + 0x70]
mov rcx, rbx
call fcn.140022a70
nop
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
mov rdx, qword [rbx]
mov rcx, qword [rsi + 0x2d8]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14004c040
mov qword [rsp + 0x40], r14
lea rax, [rsp + 0x68]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rbx]
mov rcx, qword [rsi + 0x2d8]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
xor esi, esi
test eax, eax
je 0x14004c042
mov edx, eax
lea rcx, [rbp - 0x38]
call fcn.1400414c8
mov rbx, rax
lea rax, [rsp + 0x78]
mov qword [rbp - 0x70], rax
lea rcx, [0x1401a09a8]
mov rdx, qword [0x1401a09a8]
call qword [rdx + 0x18]
add rax, 0x18
mov qword [rsp + 0x78], rax
lea rax, [rbp - 0x80]
mov qword [rbp - 0x70], rax
lea rcx, [0x1401a09a8]
mov rax, qword [0x1401a09a8]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x80], rax
lea rdx, str.error_in_clearRegKeysOfInject:
lea rcx, [rsp + 0x78]
call fcn.140002e08
lea r14d, [rsi + 0x10]
cmp qword [rbx + 0x18], r14
jb 0x14004c009
mov rbx, qword [rbx]
mov rdx, rbx
lea rcx, [rbp - 0x80]
call fcn.140002e08
lea r8, [0x1401373c4]
lea rdx, [0x1401373c8]
lea rcx, [rsp + 0x78]
call fcn.14000d420
nop
lea rdx, [0x14016bd50]
lea rcx, [rsp + 0x78]
call fcn.1400c4e98
nop
xor esi, esi
test r13b, r13b
je 0x14004c090
lea r8, str._ver
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x48]
call fcn.140017bcc
nop
mov rdx, qword [rax]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
nop
mov rdx, qword [rbp - 0x48]
add rdx, 0xffffffffffffffe8
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
add eax, r15d
test eax, eax
jg 0x14004c08c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov edi, dword [rsp + 0x54]
mov r15d, esi
lea rcx, [0x1401a09a8]
mov rax, qword [0x1401a09a8]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x58], rbx
mov ecx, dword [0x1401a8d80]
mov eax, ecx
imul eax, ecx
imul eax, ecx
and eax, 0x80000007
jge 0x14004c0cb
sub eax, r12d
or eax, 0xfffffff8
add eax, r12d
cmp eax, 4
jne 0x14004c10d
movd xmm2, ecx
cvtdq2pd xmm2, xmm2
addsd xmm6, xmm7
movaps xmm0, xmm6
mulsd xmm0, xmm6
comisd xmm0, xmm2
jbe 0x14004c0f5
subsd xmm6, xmm7
divsd xmm7, qword [0x14013dd38]
movaps xmm1, xmm6
mulsd xmm1, xmm6
movaps xmm0, xmm2
subsd xmm0, xmm1
comisd xmm0, xmmword [0x14013dd08]
ja 0x14004c0d8
mov r14d, 0x10
mov r8d, 0x7ffe
jmp 0x14004c121
mov r12d, 1
mov dword [rbp - 0x78], r8d
mov ecx, r12d
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, r8d
or eax, ecx
jge 0x14004c14d
mov edx, r8d
lea rcx, [rsp + 0x58]
call fcn.1400021d0
mov rbx, qword [rsp + 0x58]
mov r8d, 0x7ffe
cmp dword [rbx - 0xc], r8d
jl 0x14004c5b8
mov dword [rbx - 0x10], r8d
mov word [rbx + 0xfffc], si
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
lea r9, [rbp - 0x78]
mov r8, rbx
mov edx, r15d
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov r12d, eax
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
call fcn.1400bdc3c
test eax, eax
js 0x14004c5ad
cmp eax, dword [rbx - 0xc]
jg 0x14004c5ad
mov dword [rbx - 0x10], eax
movsxd rcx, eax
mov word [rbx + rcx*2], si
cmp byte [0x1401aaeac], sil
jne 0x14004c261
mov dword [rbp + 0x10], 0x7004e
mov dword [rbp + 0x14], 0x100012
mov dword [rbp + 0x18], 2
mov rcx, rsi
mov edx, 1
lea r13, [0x1401a3d90]
lea r14d, [rdx + 4]
lea r8, [0x1401a4568]
movzx eax, byte [rcx + r13]
xor ax, word [rbp + rcx*2 + 0x10]
mov word [r8 + rcx*2], ax
add rcx, rdx
cmp rcx, r14
jl 0x14004c1f1
mov byte [0x1401aaeac], dl
mov ecx, dword [0x1401a8d80]
lea r8d, [rcx + 2]
lea eax, [rcx + 1]
imul r8d, eax
imul r8d, ecx
mov eax, 0x30c30c31
imul r8d
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x15
sub r8d, edx
cmp r8d, 0x13
mov r14d, 0x10
mov r13b, byte [rsp + 0x50]
jne 0x14004c261
mov edx, 0x94
lea r8d, [rdx + 1]
lea rcx, str._d__d_n
call fcn.1400bd8cc
lea r8, [0x1401a4568]
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x60]
call fcn.140017bcc
nop
mov r8d, 1
or edi, r8d
mov dword [rsp + 0x54], edi
mov rdx, qword [rax]
test rdx, rdx
je 0x14004c2b3
cmp dword [rbx - 0x10], esi
jl 0x14004c2b3
mov rcx, rbx
call fcn.1400bde0c
test rax, rax
je 0x14004c2ad
sub rax, rbx
sar rax, 1
cmp eax, 0xffffffff
jne 0x14004c3e9
mov r8d, 1
cmp byte [0x1401aae92], sil
jne 0x14004c30a
mov dword [rbp], 0x5004e
mov edx, 5
mov dword [rbp + 4], 0xb0001
mov dword [rbp + 8], 0xe
mov rcx, rsi
lea r13, [0x1401a3d90]
lea r9, [0x1401a4c40]
movzx eax, byte [rcx + r13]
xor ax, word [rbp + rcx*2]
mov word [r9 + rcx*2], ax
add rcx, r8
cmp rcx, rdx
jl 0x14004c2e7
mov byte [0x1401aae92], r8b
mov r13b, byte [rsp + 0x50]
lea r8, [0x1401a4c40]
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x68]
call fcn.140017bcc
nop
or edi, 2
mov dword [rsp + 0x54], edi
mov rdx, qword [rax]
test rdx, rdx
je 0x14004c350
cmp dword [rbx - 0x10], esi
jl 0x14004c350
mov rcx, rbx
call fcn.1400bde0c
test rax, rax
je 0x14004c350
sub rax, rbx
sar rax, 1
cmp eax, 0xffffffff
jne 0x14004c3e9
cmp byte [0x1401aaebd], sil
jne 0x14004c3a7
mov dword [rbp - 0x18], 0x17004e
mov dword [rbp - 0x14], 0x1c
mov rcx, rsi
mov r13d, 1
lea r14, [0x1401a3d90]
lea rdx, [0x1401a4890]
movzx eax, byte [rcx + r14]
xor ax, word [rbp + rcx*2 - 0x18]
mov word [rdx + rcx*2], ax
add rcx, r13
cmp rcx, 3
jl 0x14004c37e
mov byte [0x1401aaebd], r13b
mov r14d, 0x10
mov r13b, byte [rsp + 0x50]
lea r8, [0x1401a4890]
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x50]
call fcn.140017bcc
nop
or edi, 4
mov dword [rsp + 0x54], edi
mov rdx, qword [rax]
test rdx, rdx
je 0x14004c3ee
cmp dword [rbx - 0x10], esi
jl 0x14004c3ee
mov rcx, rbx
call fcn.1400bde0c
test rax, rax
je 0x14004c3ee
sub rax, rbx
sar rax, 1
cmp eax, 0xffffffff
je 0x14004c3ee
mov esi, 1
test dil, 4
je 0x14004c41c
and edi, 0xfffffffb
mov dword [rsp + 0x54], edi
mov rdx, qword [rbp - 0x50]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14004c413
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov edi, dword [rsp + 0x54]
mov rbx, qword [rsp + 0x58]
mov eax, 2
test al, dil
je 0x14004c44e
and edi, 0xfffffffd
mov dword [rsp + 0x54], edi
mov rdx, qword [rbp - 0x68]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14004c445
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov edi, dword [rsp + 0x54]
mov rbx, qword [rsp + 0x58]
mov edx, 1
test dl, dil
je 0x14004c485
and edi, 0xfffffffe
mov dword [rsp + 0x54], edi
mov rdx, qword [rbp - 0x60]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14004c477
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov edx, 1
mov edi, dword [rsp + 0x54]
mov rbx, qword [rsp + 0x58]
test sil, sil
je 0x14004c4a2
xor esi, esi
mov r15d, esi
mov rdx, rbx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
lea edx, [rsi + 1]
jmp 0x14004c4a7
add r15d, edx
xor esi, esi
test r12d, r12d
mov r8d, 0x7ffe
je 0x14004c11b
test r13b, r13b
je 0x14004c560
lea r8, [0x1401a4a28]
cmp byte [0x1401aae93], sil
jne 0x14004c508
mov dword [rbp - 0x10], 0x15004e
mov dword [rbp - 0xc], 0x160016
mov word [rbp - 8], si
mov rcx, rsi
lea rax, [0x1401a3d90]
movzx eax, byte [rcx + rax]
xor ax, word [rbp + rcx*2 - 0x10]
mov word [r8 + rcx*2], ax
add rcx, rdx
cmp rcx, 4
jl 0x14004c4e4
mov byte [0x1401aae93], dl
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x58]
call fcn.140017bcc
nop
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rsi
mov r9d, 3
xor r8d, r8d
mov rdx, qword [rax]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop
mov rdx, qword [rbp - 0x58]
add rdx, 0xffffffffffffffe8
or edi, 0xffffffff
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x14004c559
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [rsp + 0x58]
jmp 0x14004c563
or edi, 0xffffffff
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rdx, [rbx - 0x18]
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x14004c58a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x70]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x14004c5a9
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
jmp 0x14004c5c3
mov ecx, 0x80070057
call fcn.140001874
int3
mov ecx, 0x80070057
call fcn.140001874
nop
mov rcx, qword [rbp + 0x90]
xor rcx, rsp
call fcn.1400bcfc0
lea r11, [rsp + 0x1c0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret