Function at 0x140065290
Capabilities:
Delete registry value
Encrypt data using speck
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 - 0x48], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1401d5e90]
xor rax, rsp
mov qword [rbp + 0xb0], rax
movzx r13d, dl
mov rsi, rcx
xor r14d, r14d
mov edi, r14d
mov dword [rsp + 0x50], r14d
lea rax, [rcx + 0x130]
mov qword [rbp - 0x78], rax
lea rbx, [rax + 8]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
lea rcx, [rsi + 0x160]
call fcn.1400666d0
lea rcx, [rsi + 0x170]
call fcn.1400666d0
mov dl, 1
mov rcx, rsi
call fcn.140065ef0
nop
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [0x1401ddd80]
lea ecx, [rax + 1]
imul ecx, eax
mov eax, 0x38e38e39
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*8]
add eax, eax
sub ecx, eax
cmp ecx, 9
jne 0x140065355
inc dword [0x1401df5b0]
mov edx, 0x5c
mov rcx, qword [rsi + 0x1b0]
call fcn.1400d9b88
or r15d, 0xffffffff
test rax, rax
jne 0x140065374
mov eax, r15d
jmp 0x14006537e
sub rax, qword [rsi + 0x1b0]
sar rax, 1
lea r8d, [rax + 1]
lea rdx, [rsp + 0x68]
lea rcx, [rsi + 0x1b0]
call fcn.14002d440
nop
lea rax, [rsp + 0x60]
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 0x1400654aa
mov qword [rsp + 0x40], r14
lea rax, [rsp + 0x60]
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 [rsi + 0x1b0]
mov rcx, qword [rsi + 0x2d8]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x1400654aa
mov edx, eax
lea rcx, [rbp - 0x40]
call fcn.140058580
mov rbx, rax
lea rax, [rsp + 0x78]
mov qword [rbp - 0x78], rax
lea rcx, [0x1401d59a8]
mov rdx, qword [0x1401d59a8]
call qword [rdx + 0x18]
add rax, 0x18
mov qword [rsp + 0x78], rax
lea rax, [rbp - 0x80]
mov qword [rbp - 0x78], rax
lea rcx, [0x1401d59a8]
mov rax, qword [0x1401d59a8]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x80], rax
lea rdx, str.error_in_clearRegKeysOfInject:
lea rcx, [rsp + 0x78]
call fcn.140003a70
cmp qword [rbx + 0x18], 0x10
jb 0x140065473
mov rbx, qword [rbx]
mov rdx, rbx
lea rcx, [rbp - 0x80]
call fcn.140003a70
lea r8, [0x140169918]
lea rdx, [0x140169914]
lea rcx, [rsp + 0x78]
call fcn.140010530
nop
lea rdx, [0x1401a0190]
lea rcx, [rsp + 0x78]
call fcn.1400df178
nop
test r13b, r13b
je 0x1400654f0
lea r8, [0x140167148]
lea rdx, [rsp + 0x68]
lea rcx, [rbp - 0x58]
call fcn.14001c2d0
nop
mov rdx, qword [rax]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
nop
mov rdx, qword [rbp - 0x58]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x1400654ec
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov edi, dword [rsp + 0x50]
xor esi, esi
mov r12d, esi
lea rcx, [0x1401d59a8]
mov rax, qword [0x1401d59a8]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x58], rbx
mov ecx, dword [0x1401ddd80]
imul ecx, ecx
mov eax, 0x66666667
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*4]
shl eax, 2
sub ecx, eax
cmp ecx, 2
jne 0x140065660
nop word [rax + rax]
call fcn.1400d7b94
movd xmm0, eax
cvtdq2pd xmm0, xmm0
movsd qword [rbp + rsi*8 - 0x20], xmm0
inc rsi
cmp rsi, 0x1a
jb 0x140065540
xor esi, esi
mov r9d, esi
lea r10d, [rsi + 0x19]
lea r11d, [rsi + 0x1a]
nop dword [rax]
mov edx, 0x19
cmp r9, rdx
jge 0x140065648
cmp r10, 4
jl 0x14006561d
lea rcx, [rbp + 0x98]
mov r8d, 0x15
sub r8, r9
shr r8, 2
inc r8
lea rax, [r8*4]
sub rdx, rax
nop word [rax + rax]
movsd xmm0, qword [rcx + 0x10]
movsd xmm1, qword [rcx + 8]
comisd xmm0, xmm1
jbe 0x1400655ca
movsd qword [rcx + 0x10], xmm1
movsd qword [rcx + 8], xmm0
movsd xmm0, qword [rcx + 8]
movsd xmm1, qword [rcx]
comisd xmm0, xmm1
jbe 0x1400655e2
movsd qword [rcx + 8], xmm1
movsd qword [rcx], xmm0
movsd xmm0, qword [rcx]
movsd xmm1, qword [rcx - 8]
comisd xmm0, xmm1
jbe 0x1400655fa
movsd qword [rcx], xmm1
movsd qword [rcx - 8], xmm0
movsd xmm0, qword [rcx - 8]
movsd xmm1, qword [rcx - 0x10]
comisd xmm0, xmm1
jbe 0x140065614
movsd qword [rcx - 8], xmm1
movsd qword [rcx - 0x10], xmm0
sub rcx, 0x20
dec r8
jne 0x1400655b0
cmp rdx, r9
jle 0x140065648
movsd xmm0, qword [rbp + rdx*8 - 0x20]
movsd xmm1, qword [rbp + rdx*8 - 0x28]
comisd xmm0, xmm1
jbe 0x140065640
movsd qword [rbp + rdx*8 - 0x20], xmm1
movsd qword [rbp + rdx*8 - 0x28], xmm0
dec rdx
cmp rdx, r9
jg 0x140065622
inc r9
dec r10
dec r11
jne 0x140065570
nop word [rax + rax]
mov dword [rsp + 0x70], 0x7ffe
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, 0x7ffe
or eax, ecx
jge 0x140065690
mov edx, 0x7ffe
lea rcx, [rsp + 0x58]
call fcn.140002860
mov rbx, qword [rsp + 0x58]
cmp dword [rbx - 0xc], 0x7ffe
jl 0x1400659b2
mov dword [rbx - 0x10], 0x7ffe
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, [rsp + 0x70]
mov r8, rbx
mov edx, r12d
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov r14d, eax
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
call fcn.1400d7e8c
test eax, eax
js 0x1400659a7
cmp eax, dword [rbx - 0xc]
jg 0x1400659a7
mov dword [rbx - 0x10], eax
movsxd rcx, eax
mov word [rbx + rcx*2], si
call fcn.14005bcf0
mov r8, rax
lea rdx, [rsp + 0x68]
lea rcx, [rbp - 0x60]
call fcn.14001c2d0
nop
or edi, 1
mov dword [rsp + 0x50], edi
mov rdx, qword [rax]
test rdx, rdx
je 0x140065747
cmp dword [rbx - 0x10], 0
jl 0x140065747
mov rcx, rbx
call fcn.1400d805c
test rax, rax
je 0x140065747
sub rax, rbx
sar rax, 1
cmp eax, 0xffffffff
jne 0x140065855
call fcn.14005ea70
mov r8, rax
lea rdx, [rsp + 0x68]
lea rcx, [rbp - 0x70]
call fcn.14001c2d0
nop
or edi, 2
mov dword [rsp + 0x50], edi
mov rdx, qword [rax]
test rdx, rdx
je 0x14006578f
cmp dword [rbx - 0x10], 0
jl 0x14006578f
mov rcx, rbx
call fcn.1400d805c
test rax, rax
je 0x14006578f
sub rax, rbx
sar rax, 1
cmp eax, 0xffffffff
jne 0x140065855
mov eax, dword [0x1401ddd80]
lea ecx, [rax + 1]
imul ecx, eax
mov eax, 0x66666667
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*4]
shl eax, 2
sub ecx, eax
cmp ecx, 0x11
jne 0x1400657ce
mov qword [rsp + 0x20], rsi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetMailslotInfo]
cmp byte [0x1401dfd16], 0
jne 0x140065812
movzx eax, byte [0x1401d8d90]
xor al, 0x45
movzx eax, al
mov word [0x1401d9b38], ax
movzx eax, byte [0x1401d8d91]
mov word [0x1401d9b3a], ax
movzx eax, byte [0x1401d8d92]
xor al, 0xd
movzx eax, al
mov word [0x1401d9b3c], ax
mov byte [0x1401dfd16], 1
lea r8, [0x1401d9b38]
lea rdx, [rsp + 0x68]
lea rcx, [rbp - 0x68]
call fcn.14001c2d0
nop
or edi, 4
mov dword [rsp + 0x50], edi
mov rdx, qword [rax]
test rdx, rdx
je 0x14006585a
cmp dword [rbx - 0x10], 0
jl 0x14006585a
mov rcx, rbx
call fcn.1400d805c
test rax, rax
je 0x14006585a
sub rax, rbx
sar rax, 1
cmp eax, 0xffffffff
je 0x14006585a
mov sil, 1
jmp 0x14006585d
xor sil, sil
test dil, 4
je 0x14006588b
and edi, 0xfffffffb
mov dword [rsp + 0x50], edi
mov rdx, qword [rbp - 0x68]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140065882
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov edi, dword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
test dil, 2
je 0x1400658b9
and edi, 0xfffffffd
mov dword [rsp + 0x50], edi
mov rdx, qword [rbp - 0x70]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x1400658b0
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov edi, dword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
test dil, 1
je 0x1400658e7
and edi, 0xfffffffe
mov dword [rsp + 0x50], edi
mov rdx, qword [rbp - 0x60]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x1400658de
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov edi, dword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
test sil, sil
je 0x140065901
xor esi, esi
mov r12d, esi
mov rdx, rbx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x140065906
inc r12d
xor esi, esi
test r14d, r14d
je 0x140065660
test r13b, r13b
je 0x140065969
call fcn.140059300
mov r8, rax
lea rdx, [rsp + 0x68]
lea rcx, [rbp - 0x50]
call fcn.14001c2d0
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 + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop
mov rdx, qword [rbp - 0x50]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140065964
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rdx, [rbx - 0x18]
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14006598a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x68]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x1400659a3
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
jmp 0x1400659bd
mov ecx, 0x80070057
call fcn.140001920
int3
mov ecx, 0x80070057
call fcn.140001920
nop
mov rcx, qword [rbp + 0xb0]
xor rcx, rsp
call fcn.1400d72a0
lea r11, [rsp + 0x1c0]
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