Function at 0x10000be40
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x170
mov rax, qword [0x100012110]
xor rax, rsp
mov qword [rsp + 0x160], rax
xor r15d, r15d
mov ebp, 1
mov r14, rdx
mov ebx, ebp
mov esi, r15d
mov dword [rsp + 0x40], r15d
mov r13, rcx
call fcn.10000c4c0
lea ecx, [rbp + 0x3c]
call fcn.10000c684
cmp eax, r15d
je 0x10000c114
call fcn.10000c4c0
mov edi, 0x100
lea ecx, [rbp + 0x3f]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov r12, rax
cmp rax, r15
jne 0x10000bec5
mov edx, 0x2c1
mov dword [0x100012a44], edx
jmp 0x10000c119
mov ecx, 0x22
call fcn.10000c684
cmp eax, r15d
je 0x10000bf05
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x48], r12
mov dword [rsp + 0x50], edi
call fcn.10000c14c
cmp eax, r15d
je 0x10000bef6
call fcn.10000c424
cmp eax, r15d
jne 0x10000befb
mov ebx, r15d
mov esi, ebp
mov edi, 1
jmp 0x10000c04a
mov ecx, 0x64
call fcn.10000c684
cmp eax, r15d
je 0x10000bf6d
lea rdi, [0x10000156a]
movzx ecx, word [rdi]
call fcn.10000c684
add rdi, 2
cmp eax, r15d
jne 0x10000bf31
mov ebx, r15d
mov esi, ebp
cmp word [rdi], r15w
jne 0x10000bf1b
cmp ebx, r15d
je 0x10000c106
call fcn.10000c4c0
mov rcx, r12
call fcn.10000c35c
cmp eax, r15d
je 0x10000bf5c
call fcn.10000c424
cmp eax, r15d
jne 0x10000bf61
mov ebx, r15d
mov esi, ebp
mov ebp, 4
mov edi, ebp
jmp 0x10000c053
mov ecx, 0x2d
call fcn.10000c684
cmp eax, r15d
je 0x10000bf9e
call fcn.10000c424
cmp eax, r15d
jne 0x10000bf8d
mov esi, ebp
jmp 0x10000c106
mov rdx, r14
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x10000c106
lea rdi, [0x100001560]
movzx ecx, word [rdi]
call fcn.10000c684
add rdi, 2
cmp eax, r15d
jne 0x10000bfbb
mov ebx, r15d
mov esi, ebp
cmp word [rdi], r15w
jne 0x10000bfa5
cmp ebx, r15d
je 0x10000c106
mov ecx, 0x28
call fcn.10000c684
cmp eax, r15d
je 0x10000c002
lea rcx, [rsp + 0x40]
call fcn.10000c35c
cmp eax, r15d
je 0x10000bff7
mov ecx, 0x29
call fcn.10000c684
cmp eax, r15d
jne 0x10000bffc
mov ebx, r15d
mov esi, ebp
mov edi, dword [rsp + 0x40]
jmp 0x10000c007
mov edi, 3
cmp ebx, r15d
je 0x10000c106
mov ecx, 0x3a
mov qword [rsp + 0x48], r12
mov dword [rsp + 0x50], 0x100
call fcn.10000c684
cmp eax, r15d
je 0x10000c045
lea rcx, [rsp + 0x48]
call fcn.10000c260
cmp eax, r15d
je 0x10000c045
call fcn.10000c424
cmp eax, r15d
jne 0x10000c04a
mov ebx, r15d
mov esi, ebp
mov ebp, dword [rsp + 0x50]
mov r12, qword [rsp + 0x48]
cmp ebx, r15d
je 0x10000c106
cmp dword [0x100012a40], 0x500
jae 0x10000c0d4
cmp edi, 2
je 0x10000c072
cmp edi, 7
jne 0x10000c0d4
mov qword [rsp + 0x38], r15
xor edx, edx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], r15
lea ecx, [rdx + 3]
or r9d, 0xffffffff
mov r8, r14
mov dword [rsp + 0x28], 0x100
mov byte [rsp + 0x60], r15b
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea rdx, [rsp + 0x60]
mov r9d, edi
xor r8d, r8d
mov rcx, r13
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp eax, r15d
je 0x10000c106
mov edx, 0x2c1
mov dword [0x100012a44], edx
jmp 0x10000c106
mov r9d, edi
xor r8d, r8d
mov rdx, r14
mov rcx, r13
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [0x100012a44]
mov edx, 0x2c1
cmp eax, r15d
cmovne ecx, edx
mov dword [0x100012a44], ecx
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LocalFree]
cmp esi, r15d
je 0x10000c119
call fcn.10000c4f4
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.100010090
mov rbx, qword [rsp + 0x1c0]
add rsp, 0x170
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret