Function at 0x1400020c0
Capabilities:
Set registry value

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x1f0]
sub rsp, 0x2f0
mov qword [rbp - 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x330], rbx
mov rax, qword [0x140021040]
xor rax, rsp
mov qword [rbp + 0x1e0], rax
mov r15, rdx
mov r14, rcx
mov qword [rbp - 0x50], rcx
mov qword [rbp - 0x48], rdx
xor esi, esi
mov qword [rbp - 0x80], rsi
mov dword [rbp - 0x78], esi
mov qword [rbp - 0x70], rsi
call fcn.140003b50
mov rdx, rax
mov ecx, esi
test rax, rax
setne cl
test ecx, ecx
jne 0x140002132
mov ecx, 0x80004005
call fcn.140001900
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x50], rax
mov rcx, qword [r15]
sub rcx, 0x18
call fcn.140001a10
add rax, 0x18
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.140002450
mov r8, qword [r15]
lea rdx, str.CLSID_s
lea rcx, [rsp + 0x50]
call fcn.140003950
mov qword [rsp + 0x68], rsi
lea rax, [rsp + 0x78]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
mov rbx, qword [rsp + 0x50]
mov rdx, rbx
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
or rdi, 0xffffffffffffffff
test eax, eax
jne 0x1400023d0
mov rbx, qword [rsp + 0x68]
mov qword [rbp - 0x80], rbx
mov dword [rbp - 0x78], esi
mov qword [rbp - 0x68], rsi
mov dword [rbp - 0x60], esi
mov qword [rbp - 0x58], rsi
call fcn.140003b50
mov rdx, rax
mov ecx, esi
test rax, rax
setne cl
test ecx, ecx
jne 0x1400021fe
mov ecx, 0x80004005
call fcn.140001900
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x60], rax
mov r8d, 0x104
lea rdx, [rbp - 0x30]
mov rcx, qword [0x140021038]
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rcx, [rbp - 0x30]
mov rax, rdi
nop
inc rax
cmp word [rcx + rax*2], 0
jne 0x140002230
mov r8d, eax
lea rdx, [rbp - 0x30]
lea rcx, [rsp + 0x60]
call fcn.140004e30
mov rcx, qword [r14]
mov eax, esi
test rcx, rcx
setne al
test eax, eax
je 0x14000228f
mov rax, rdi
nop dword [rax]
lea rax, [rax + 1]
cmp word [rcx + rax*2], 0
jne 0x140002260
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov qword [rsp + 0x58], rsi
lea rax, [rsp + 0x7c]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
lea rdx, str.LocalServer32
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1400023b1
mov rcx, qword [rsp + 0x58]
mov qword [rbp - 0x68], rcx
mov dword [rbp - 0x60], esi
mov rbx, qword [rsp + 0x60]
test rbx, rbx
setne sil
test esi, esi
je 0x14000232d
mov rax, rdi
nop word [rax + rax]
lea rax, [rax + 1]
cmp word [rbx + rax*2], 0
jne 0x140002300
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
mov r9d, 1
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop
lea rdx, [rbx - 0x18]
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140002342
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140002353
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14000236d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14000237e
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [r14]
sub rdx, 0x18
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140002396
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [r15]
sub rdx, 0x18
lock add dword [rdx + 0x10], 0xffffffff
jg 0x1400023ad
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
xor eax, eax
jmp 0x140002429
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x1400023cb
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rbx, qword [rsp + 0x50]
lea rdx, [rbx - 0x18]
lock add dword [rdx + 0x10], 0xffffffff
jg 0x1400023e5
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x1400023f5
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [r14]
sub rdx, 0x18
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14000240d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [r15]
sub rdx, 0x18
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140002424
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov eax, 0x80004005
mov rcx, qword [rbp + 0x1e0]
xor rcx, rsp
call fcn.1400074b0
mov rbx, qword [rsp + 0x330]
add rsp, 0x2f0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret