Function at 0x140018394
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0x90
mov qword [rbp - 0x11], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov r14, rcx
xor r15d, r15d
mov ebx, r15d
mov dword [rbp + 0x6f], ebx
mov qword [rbp - 9], r15
lea rax, str.StartList::SaveSessionKey
mov qword [rbp - 1], rax
lea r13, [0x14002a0c8]
cmp qword [0x14002a0c8], r13
je 0x1400183ee
lea rcx, [rbp - 9]
call fcn.14001d0e4
nop
mov qword [rbp + 7], r15
mov qword [rbp + 0xf], r15
mov qword [rbp + 0x17], r15
lea rcx, [rbp - 0x29]
call fcn.140015e5c
mov qword [rbp + 0x77], r15
lea rcx, [rbp + 0x77]
mov qword [rsp + 0x20], rcx
mov r9d, 0x20006
xor r8d, r8d
mov rdx, qword [rax]
mov rsi, 0xffffffff80000002
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test eax, eax
jne 0x14001843d
mov edi, r15d
mov rax, qword [rbp + 0x77]
mov qword [rbp + 7], rax
mov rdx, qword [rbp - 0x29]
add rdx, 0xffffffffffffffe8
or r12, 0xffffffffffffffff
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, r12d
test eax, eax
jg 0x140018468
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x1400200f0]
test edi, edi
je 0x140018525
lea rcx, [rbp - 0x21]
call fcn.140015e5c
lea rcx, [rbp + 0x6f]
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 1
mov r8, qword [rax]
mov rdx, rsi
lea rcx, [rbp + 7]
call fcn.140010e4c
mov esi, eax
mov rdx, qword [rbp - 0x21]
add rdx, 0xffffffffffffffe8
mov ecx, r12d
lock xadd dword [rdx + 0x10], ecx
add ecx, r12d
test ecx, ecx
jg 0x1400184ca
mov rcx, qword [rdx]
mov r8, qword [rcx]
mov rax, qword [r8 + 8]
call qword [0x1400200f0]
test esi, esi
je 0x140018525
mov rax, qword [0x14002a0c8]
cmp rax, r13
je 0x14001850f
test byte [rax + 0x1c], 8
je 0x14001850f
lea rcx, [rbp - 0x19]
call fcn.140015e5c
mov ebx, 1
lea edx, [rbx + 0x15]
mov dword [rsp + 0x20], esi
mov r9, qword [rax]
lea r8, [0x140021f20]
mov rcx, qword [0x14002a0c8]
mov rcx, qword [rcx + 0x10]
call fcn.140013b98
test bl, 1
je 0x140018615
mov rdx, qword [rbp - 0x19]
add rdx, 0xffffffffffffffe8
jmp 0x1400185f5
mov rax, qword [0x14002a6e0]
lea rcx, [0x14002a6e0]
mov rax, qword [rax + 0x18]
call qword [0x1400200f0]
add rax, 0x18
mov qword [rbp + 0x7f], rax
lea rdx, [r14 + 0x30]
lea rcx, [rbp + 0x7f]
call fcn.14001865c
mov rbx, qword [rbp + 0x7f]
test rbx, rbx
je 0x140018649
mov rax, r12
inc rax
cmp word [rbx + rax*2], r15w
jne 0x140018562
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
mov r9d, 1
xor r8d, r8d
lea rdx, str.Configuration
mov rcx, qword [rbp + 7]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test edi, edi
je 0x1400185c6
mov rcx, qword [0x14002a0c8]
cmp rcx, r13
je 0x1400185f1
test byte [rcx + 0x1c], 8
je 0x1400185f1
mov edx, 0x17
mov r9d, edi
lea r8, [0x140021f20]
mov rcx, qword [rcx + 0x10]
call fcn.140001a0c
jmp 0x1400185f1
mov rcx, qword [0x14002a0c8]
cmp rcx, r13
je 0x1400185f1
test byte [rcx + 0x1c], 0x10
je 0x1400185f1
mov edx, 0x18
mov r9, rbx
lea r8, [0x140021f20]
mov rcx, qword [rcx + 0x10]
call fcn.140001a48
nop
lea rdx, [rbx - 0x18]
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, r12d
test eax, eax
jg 0x140018615
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x1400200f0]
nop
mov rcx, qword [rbp + 7]
test rcx, rcx
je 0x140018625
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rcx, [rbp - 9]
call fcn.14001d124
mov rbx, qword [rsp + 0xd0]
add rsp, 0x90
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x80004005
call fcn.1400017a4
int3