Function at 0x1401013c0
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 0x14010154f
lea rdx, [rbp - 0x39]
mov qword [rbp - 0x39], r15
mov rcx, r12
mov qword [rbp - 0x31], r15
call fcn.1400f3670
mov edi, dword [rbp - 0x31]
mov esi, r15d
mov r13, qword [rbp - 0x39]
test edi, edi
jle 0x140101478
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.14009d7b0
cmp dword [rax], 0xffffffff
jne 0x14010146e
cmp dword [rbx + 8], r15d
je 0x140101456
mov rdx, qword [rbx]
jmp 0x14010145d
lea rdx, [0x14011b550]
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x1401017a7
inc esi
add rbx, 0x10
cmp esi, edi
jl 0x140101430
lea rdx, [rbp - 0x39]
mov qword [rbp - 0x39], r15
mov rcx, r12
mov qword [rbp - 0x31], r15
call fcn.1400f34b0
mov ebx, dword [rbp - 0x31]
mov r14d, r15d
mov r12, qword [rbp - 0x39]
test ebx, ebx
jle 0x1401014ec
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.14009d7b0
cmp dword [rax], 0xffffffff
jne 0x1401014e0
cmp dword [rsi + 8], r15d
je 0x1401014c7
mov rdx, qword [rsi]
jmp 0x1401014ce
lea rdx, [0x14011b550]
mov rcx, qword [rbp + 0x6f]
call qword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
test eax, eax
jne 0x14010177d
inc r14d
add rsi, 0x10
cmp r14d, ebx
jl 0x1401014a0
mov rsi, r12
test ebx, ebx
je 0x140101509
mov rcx, qword [rsi]
test rcx, rcx
je 0x140101500
call fcn.140044390
add rsi, 0x10
sub ebx, 1
jne 0x1401014f3
test r12, r12
je 0x140101516
mov rcx, r12
call fcn.140044390
mov rbx, r13
test edi, edi
je 0x140101536
nop dword [rax]
mov rcx, qword [rbx]
test rcx, rcx
je 0x14010152d
call fcn.140044390
add rbx, 0x10
sub edi, 1
jne 0x140101520
test r13, r13
je 0x140101543
mov rcx, r13
call fcn.140044390
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 0x1401015e9
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 0x1401015c4
nop dword [rax]
inc ecx
add r8d, 0x20
mov dword [rbp - 0x39], ecx
mov dword [rbp - 0x21], r8d
cmp ecx, r11d
jg 0x1401015e5
movsxd rax, ecx
mov dword [rbp - 0x29], 0xffffffff
mov edx, dword [r9 + rax*4]
test edx, edx
je 0x1401015a0
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 0x1401015e9
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 0x140101679
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.140101320
test al, al
je 0x1401017d3
mov eax, dword [rbp - 0x2d]
lea rcx, [rbp - 0x31]
not eax
and dword [rbp - 0x21], eax
call fcn.1400150a0
mov rax, qword [rbp - 0x29]
mov ecx, dword [rbp - 0x1d]
cmp ecx, dword [rax + 0x18]
jl 0x140101630
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 0x14010171d
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 0x1401016f8
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 0x140101719
movsxd rax, ecx
mov dword [rbp - 0x29], 0xffffffff
mov ecx, dword [r9 + rax*4]
test ecx, ecx
je 0x1401016d0
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 0x14010171d
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 0x14010182a
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 0x1401017d7
mov r10, qword [rdx + rcx]
jmp 0x1401017de
mov rsi, r12
test ebx, ebx
je 0x14010179a
mov rcx, qword [rsi]
test rcx, rcx
je 0x140101791
call fcn.140044390
add rsi, 0x10
sub ebx, 1
jne 0x140101784
test r12, r12
je 0x1401017a7
mov rcx, r12
call fcn.140044390
mov rbx, r13
test edi, edi
je 0x1401017c6
nop
mov rcx, qword [rbx]
test rcx, rcx
je 0x1401017bd
call fcn.140044390
add rbx, 0x10
sub edi, 1
jne 0x1401017b0
test r13, r13
je 0x1401017d3
mov rcx, r13
call fcn.140044390
xor al, al
jmp 0x14010182c
lea r10, [0x14011b550]
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 0x1401017d3
mov eax, dword [rbp - 0x2d]
lea rcx, [rbp - 0x31]
not eax
and dword [rbp - 0x21], eax
call fcn.1400150a0
mov rax, qword [rbp - 0x29]
mov ecx, dword [rbp - 0x1d]
cmp ecx, dword [rax + 0x18]
jl 0x140101762
mov al, 1
add rsp, 0x88
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret