Function at 0x140101a20
Capabilities:
Delete registry key
Delete registry value
Set registry value

Disassembly:
mov byte [rsp + 0x18], r8b
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f]
sub rsp, 0x88
xor r15d, r15d
movzx edi, r8b
mov r12, rdx
mov rbx, rcx
test r8b, r8b
je 0x140101baf
lea rdx, [rbp - 0x39]
mov qword [rbp - 0x39], r15
mov rcx, r12
mov qword [rbp - 0x31], r15
call fcn.1400f3cd0
mov edi, dword [rbp - 0x31]
mov esi, r15d
mov r13, qword [rbp - 0x39]
test edi, edi
jle 0x140101ad8
lea r14, [rbx + 0x50]
mov rbx, r13
nop word [rax + rax]
movsxd r8, esi
lea rdx, [rbp + 0x7f]
shl r8, 4
mov rcx, r14
add r8, r13
call fcn.14009d800
cmp dword [rax], 0xffffffff
jne 0x140101ace
cmp dword [rbx + 8], r15d
je 0x140101ab6
mov rdx, qword [rbx]
jmp 0x140101abd
lea rdx, [0x14011c560]
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x140101e07
inc esi
add rbx, 0x10
cmp esi, edi
jl 0x140101a90
lea rdx, [rbp - 0x39]
mov qword [rbp - 0x39], r15
mov rcx, r12
mov qword [rbp - 0x31], r15
call fcn.1400f3b10
mov ebx, dword [rbp - 0x31]
mov r14d, r15d
mov r12, qword [rbp - 0x39]
test ebx, ebx
jle 0x140101b4c
mov rsi, r12
nop dword [rax]
mov rcx, qword [rbp + 0x67]
lea rdx, [rbp + 0x7f]
movsxd r8, r14d
shl r8, 4
add r8, r12
call fcn.14009d800
cmp dword [rax], 0xffffffff
jne 0x140101b40
cmp dword [rsi + 8], r15d
je 0x140101b27
mov rdx, qword [rsi]
jmp 0x140101b2e
lea rdx, [0x14011c560]
mov rcx, qword [rbp + 0x6f]
call qword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
test eax, eax
jne 0x140101ddd
inc r14d
add rsi, 0x10
cmp r14d, ebx
jl 0x140101b00
mov rsi, r12
test ebx, ebx
je 0x140101b69
mov rcx, qword [rsi]
test rcx, rcx
je 0x140101b60
call fcn.1400443e0
add rsi, 0x10
sub ebx, 1
jne 0x140101b53
test r12, r12
je 0x140101b76
mov rcx, r12
call fcn.1400443e0
mov rbx, r13
test edi, edi
je 0x140101b96
nop dword [rax]
mov rcx, qword [rbx]
test rcx, rcx
je 0x140101b8d
call fcn.1400443e0
add rbx, 0x10
sub edi, 1
jne 0x140101b80
test r13, r13
je 0x140101ba3
mov rcx, r13
call fcn.1400443e0
movzx edi, byte [rbp + 0x77]
mov rbx, qword [rbp + 0x67]
mov r12, qword [rbp + 0x6f]
mov r10d, dword [rbx + 0x28]
lea r9, [rbx + 0x10]
mov dword [rbp - 0x35], 1
mov ecx, r15d
mov dword [rbp - 0x39], ecx
mov r8d, r15d
mov qword [rbp - 0x31], r9
mov dword [rbp - 0x29], 0xffffffff
mov qword [rbp - 0x25], r15
test r10d, r10d
je 0x140101c49
mov rax, qword [r9 + 0x10]
test rax, rax
cmovne r9, rax
lea eax, [r10 - 1]
cdq
and edx, 0x1f
lea r11d, [rdx + rax]
mov edx, dword [r9]
sar r11d, 5
test edx, edx
jne 0x140101c24
nop dword [rax]
inc ecx
add r8d, 0x20
mov dword [rbp - 0x39], ecx
mov dword [rbp - 0x21], r8d
cmp ecx, r11d
jg 0x140101c45
movsxd rax, ecx
mov dword [rbp - 0x29], 0xffffffff
mov edx, dword [r9 + rax*4]
test edx, edx
je 0x140101c00
mov ecx, edx
neg ecx
and ecx, edx
mov dword [rbp - 0x35], ecx
add rcx, rcx
or rcx, 1
bsr rcx, rcx
dec ecx
add ecx, r8d
mov dword [rbp - 0x25], ecx
cmp ecx, r10d
jle 0x140101c49
mov dword [rbp - 0x25], r10d
movups xmm2, xmmword [rbp - 0x29]
mov qword [rbp - 0x11], rbx
movups xmm0, xmmword [rbp - 0x39]
movups xmmword [rbp + 7], xmm2
movups xmmword [rbp - 9], xmm0
movups xmm0, xmmword [rbp - 0x11]
movups xmm1, xmmword [rbp - 1]
movups xmmword [rbp - 0x39], xmm0
movq rax, xmm2
movaps xmm0, xmm2
shr rax, 0x20
unpckhpd xmm0, xmm2
movsd qword [rbp - 0x19], xmm0
movups xmmword [rbp - 0x29], xmm1
cmp eax, r10d
jge 0x140101cd9
mov ecx, dword [rbp - 0x1d]
nop word [rax + rax]
mov rax, qword [rbp - 0x39]
movzx r9d, dil
movsxd rdx, ecx
shl rdx, 5
mov rcx, qword [rax]
add rcx, rdx
mov rdx, r12
mov r8, rcx
mov rcx, qword [rcx + 0x10]
call fcn.140101980
test al, al
je 0x140101e33
mov eax, dword [rbp - 0x2d]
lea rcx, [rbp - 0x31]
not eax
and dword [rbp - 0x21], eax
call fcn.1400150b0
mov rax, qword [rbp - 0x29]
mov ecx, dword [rbp - 0x1d]
cmp ecx, dword [rax + 0x18]
jl 0x140101c90
lea r11, [rbx + 0x50]
mov dword [rbp - 0x39], r15d
mov r10d, dword [r11 + 0x28]
lea r9, [r11 + 0x10]
mov dword [rbp - 0x35], 1
mov r8d, r15d
mov qword [rbp - 0x31], r9
mov dword [rbp - 0x29], 0xffffffff
mov qword [rbp - 0x25], r15
test r10d, r10d
je 0x140101d7d
mov rax, qword [r9 + 0x10]
test rax, rax
cmovne r9, rax
lea eax, [r10 - 1]
cdq
and edx, 0x1f
add edx, eax
mov ecx, dword [r9]
sar edx, 5
test ecx, ecx
jne 0x140101d58
nop word [rax + rax]
lea ecx, [r15 + 1]
add r8d, 0x20
mov dword [rbp - 0x39], ecx
mov r15d, ecx
mov dword [rbp - 0x21], r8d
cmp ecx, edx
jg 0x140101d79
movsxd rax, ecx
mov dword [rbp - 0x29], 0xffffffff
mov ecx, dword [r9 + rax*4]
test ecx, ecx
je 0x140101d30
mov eax, ecx
neg eax
and ecx, eax
mov dword [rbp - 0x35], ecx
add rcx, rcx
or rcx, 1
bsr rcx, rcx
dec ecx
add ecx, r8d
mov dword [rbp - 0x25], ecx
cmp ecx, r10d
jle 0x140101d7d
mov dword [rbp - 0x25], r10d
movups xmm2, xmmword [rbp - 0x29]
mov qword [rbp - 0x11], r11
movups xmm0, xmmword [rbp - 0x39]
movups xmmword [rbp + 7], xmm2
movups xmmword [rbp - 9], xmm0
movups xmm0, xmmword [rbp - 0x11]
movups xmm1, xmmword [rbp - 1]
movups xmmword [rbp - 0x39], xmm0
movq rax, xmm2
movaps xmm0, xmm2
shr rax, 0x20
unpckhpd xmm0, xmm2
movsd qword [rbp - 0x19], xmm0
movups xmmword [rbp - 0x29], xmm1
cmp eax, r10d
jge 0x140101e8a
mov ecx, dword [rbp - 0x1d]
mov rax, qword [rbp - 0x39]
movsxd rdx, ecx
shl rdx, 5
mov rcx, qword [rax]
cmp dword [rdx + rcx + 8], 0
je 0x140101e37
mov r10, qword [rdx + rcx]
jmp 0x140101e3e
mov rsi, r12
test ebx, ebx
je 0x140101dfa
mov rcx, qword [rsi]
test rcx, rcx
je 0x140101df1
call fcn.1400443e0
add rsi, 0x10
sub ebx, 1
jne 0x140101de4
test r12, r12
je 0x140101e07
mov rcx, r12
call fcn.1400443e0
mov rbx, r13
test edi, edi
je 0x140101e26
nop
mov rcx, qword [rbx]
test rcx, rcx
je 0x140101e1d
call fcn.1400443e0
add rbx, 0x10
sub edi, 1
jne 0x140101e10
test r13, r13
je 0x140101e33
mov rcx, r13
call fcn.1400443e0
xor al, al
jmp 0x140101e8c
lea r10, [0x14011c560]
mov rcx, qword [rdx + rcx + 0x10]
xor r8d, r8d
mov rdx, r10
mov eax, dword [rcx + 0x10]
mov r9d, dword [rcx]
mov dword [rsp + 0x28], eax
mov rax, qword [rcx + 8]
mov rcx, r12
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x140101e33
mov eax, dword [rbp - 0x2d]
lea rcx, [rbp - 0x31]
not eax
and dword [rbp - 0x21], eax
call fcn.1400150b0
mov rax, qword [rbp - 0x29]
mov ecx, dword [rbp - 0x1d]
cmp ecx, dword [rax + 0x18]
jl 0x140101dc2
mov al, 1
add rsp, 0x88
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret