Function at 0x1000061f0
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
push rbp
push rsi
push rdi
push r12
push r15
sub rsp, 0x80
lea rax, [r11 + 0x10]
xor r12d, r12d
mov rdi, rcx
mov dword [rsp + 0xb8], r12d
mov qword [r11 - 0x68], rax
lea rax, [0x100002150]
mov qword [r11 - 0x60], rax
lea r15, [0x10000f150]
cmp qword [0x10000f150], r15
je 0x10000623f
lea rcx, [r11 - 0x68]
call fcn.100002cbc
mov rcx, rdi
call fcn.100006700
mov ebx, eax
mov dword [rsp + 0xb8], eax
test eax, eax
js 0x1000065d3
mov ebx, 1
mov dword [rsp + 0xb8], ebx
cmp qword [rdi + 0x70], r12
je 0x1000062e7
cmp dword [rdi + 0x98], r12d
je 0x1000062e7
mov rsi, qword [rdi + 0x60]
jmp 0x1000062e2
mov rbx, rsi
mov rsi, qword [rsi]
mov rcx, qword [rbx + 0x10]
call fcn.100008aa0
test rax, rax
je 0x100006372
xor r8d, r8d
mov rdx, rax
mov rcx, rdi
call fcn.100005ef4
mov dword [rsp + 0xb8], eax
test eax, eax
jns 0x1000062d9
mov rcx, qword [0x10000f150]
cmp rcx, r15
je 0x1000062d9
test byte [rcx + 0x1c], 8
je 0x1000062d9
mov r9, qword [rbx + 0x10]
mov rcx, qword [rcx + 0x10]
lea r8, [0x100001940]
mov edx, 0xc
mov dword [rsp + 0x20], eax
call fcn.100005cf8
xor ebx, ebx
mov dword [rsp + 0xb8], ebx
test rsi, rsi
jne 0x100006279
mov rsi, qword [rdi]
test rsi, rsi
je 0x10000637c
mov rbp, rsi
mov rsi, qword [rsi]
lea rcx, [rdi + 0x30]
mov rdx, qword [rbp + 0x10]
xor r8d, r8d
call fcn.1000055f8
test rax, rax
jne 0x1000062ea
mov rcx, qword [rbp + 0x10]
call fcn.100008aa0
test rax, rax
je 0x100006372
xor r8d, r8d
mov rdx, rax
mov rcx, rdi
call fcn.100005ef4
mov dword [rsp + 0xb8], eax
test eax, eax
jns 0x100006364
mov rcx, qword [0x10000f150]
cmp rcx, r15
je 0x100006364
test byte [rcx + 0x1c], 8
je 0x100006364
mov r9, qword [rbp + 0x10]
mov rcx, qword [rcx + 0x10]
lea r8, [0x100001940]
mov edx, 0xd
mov dword [rsp + 0x20], eax
call fcn.100005cf8
xor ebx, ebx
mov dword [rsp + 0xb8], ebx
jmp 0x1000062ea
mov ebx, 0x8007000e
jmp 0x1000065d3
test ebx, ebx
jne 0x10000638f
mov rcx, rdi
call fcn.100006abc
mov ebx, dword [rsp + 0xb8]
cmp dword [rdi + 0x98], r12d
je 0x1000065d3
and qword [rsp + 0x50], r12
and qword [rsp + 0x58], r12
and qword [rsp + 0x60], r12
and qword [rsp + 0x68], r12
mov rbx, qword [rdi]
and qword [rsp + 0x70], r12
mov dword [rsp + 0x78], 0xa
jmp 0x1000063d3
mov rdx, qword [rbx + 0x10]
mov rbx, qword [rbx]
lea rcx, [rsp + 0x50]
call fcn.1000088b4
test rbx, rbx
jne 0x1000063c2
mov rbx, qword [rdi + 0x60]
jmp 0x100006407
mov rsi, qword [rbx + 0x10]
mov rbx, qword [rbx]
lea rcx, [rsp + 0x50]
mov rdx, rsi
xor r8d, r8d
call fcn.1000055f8
test rax, rax
jne 0x100006407
lea rcx, [rsp + 0x50]
mov rdx, rsi
call fcn.1000088b4
test rbx, rbx
jne 0x1000063de
lea rdx, [rsp + 0x30]
mov rcx, rdi
xor esi, esi
call fcn.100007538
and qword [rsp + 0xc0], rsi
lea rcx, [rsp + 0xc0]
mov rdx, qword [rax]
mov qword [rsp + 0x20], rcx
mov r9d, 0x20006
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebp, eax
test eax, eax
jne 0x100006457
mov rsi, qword [rsp + 0xc0]
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x100006477
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
test ebp, ebp
je 0x100006518
mov rax, qword [0x10000f150]
cmp rax, r15
je 0x1000064c7
test byte [rax + 0x1c], 8
je 0x1000064c7
lea rdx, [rsp + 0x38]
mov rcx, rdi
mov r12d, 1
call fcn.100007538
mov rcx, qword [0x10000f150]
lea edx, [r12 + 0xd]
mov rcx, qword [rcx + 0x10]
mov r9, qword [rax]
lea r8, [0x100001940]
mov dword [rsp + 0x20], ebp
call fcn.100005cf8
test r12b, 1
je 0x1000064ed
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1000064ed
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
movzx ebx, bp
or ebx, 0x80070000
test ebp, ebp
cmovle ebx, ebp
test rsi, rsi
je 0x100006509
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rsp + 0x50]
call fcn.1000089c8
jmp 0x1000065d3
mov rax, qword [0x10000f100]
lea rcx, [0x10000f100]
call qword [rax + 0x18]
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0xc8]
add rax, 0x18
mov rcx, rdi
mov qword [rsp + 0xc8], rax
call fcn.100006f60
mov rbx, qword [rsp + 0xc8]
test rbx, rbx
jne 0x100006562
mov ecx, 0x80004005
call fcn.100003a64
int3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rdx, str.Configuration
mov r9d, 1
lea eax, [rax + rax + 2]
xor r8d, r8d
mov rcx, rsi
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
and dword [rsp + 0xb8], r12d
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1000065b4
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
test rsi, rsi
je 0x1000065c2
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rsp + 0x50]
call fcn.1000089c8
mov ebx, dword [rsp + 0xb8]
lea rcx, [rsp + 0x40]
call fcn.100002cfc
mov eax, ebx
mov rbx, qword [rsp + 0xb0]
add rsp, 0x80
pop r15
pop r12
pop rdi
pop rsi
pop rbp
ret