Function at 0x1400029c0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x30]
sub rsp, 0x130
mov rax, qword [0x14000c070]
xor rax, rsp
mov qword [rbp + 0x20], rax
mov r15, rdx
mov rsi, rcx
mov qword [rsp + 0x60], rcx
cmp qword [rdx + 0x18], 0x10
jb 0x1400029fb
mov rdx, qword [rdx]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140002a9c
mov rax, qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x58], rax
mov rdi, qword [rsp + 0x60]
mov qword [rbp - 0x78], rdi
lea rax, [rsp + 0x58]
mov qword [rbp - 0x70], rax
mov byte [rbp - 0x68], 1
mov ecx, 0x20
call fcn.140006164
mov rbx, rax
mov qword [rbp - 0x80], rax
xor r14d, r14d
test rax, rax
je 0x140002a87
mov rax, qword [rsp + 0x58]
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov dword [rbx + 8], 1
mov dword [rbx + 0xc], 1
lea rcx, vtable.std::_Ref_count_resource_struct_HKEY______ptr64__long_int____cdecl___struct_HKEY______ptr64__.0
mov qword [rbx], rcx
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], rdi
jmp 0x140002a8a
mov rbx, r14
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x48], rbx
mov eax, r14d
mov rcx, rdi
jmp 0x140002ab5
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x40], xmm0
xor r14d, r14d
mov ecx, r14d
mov rbx, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x40]
mov dword [rsp + 0x50], eax
test eax, eax
jne 0x140002b84
test rcx, rcx
je 0x140002b84
mov rdx, rdi
lea rcx, [rbp - 0x60]
call fcn.1400031e0
cmp qword [rbp - 0x50], 0
je 0x140002b45
movups xmm0, xmmword [rbp - 0x60]
movups xmmword [rsi], xmm0
movups xmm1, xmmword [rbp - 0x50]
movups xmmword [rsi + 0x10], xmm1
mov qword [rbp - 0x50], r14
mov qword [rbp - 0x48], 0xf
mov byte [rbp - 0x60], 0
test rbx, rbx
je 0x140002d9a
mov edi, 0xffffffff
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140002d9a
mov rbx, qword [rsp + 0x48]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x140002d9a
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
call qword [rax + 8]
jmp 0x140002d9a
mov rdx, qword [rbp - 0x48]
cmp rdx, 0x10
jb 0x140002b84
inc rdx
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002b7e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002b7e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400061a0
nop
mov edi, 0xffffffff
test rbx, rbx
je 0x140002bbe
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140002bbe
mov rbx, qword [rsp + 0x48]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, edi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x140002bbe
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
call qword [rax + 8]
cmp qword [r15 + 0x18], 0x10
jb 0x140002bc8
mov r15, qword [r15]
mov qword [rsp + 0x38], r14
mov dword [rsp + 0x30], 0x2001f
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], r14
xor r9d, r9d
mov r8, r15
mov rdx, 0xffffffff80000001
lea rcx, [rsp + 0x68]
call fcn.1400037c0
nop
cmp dword [rsp + 0x68], 0
jne 0x140002d50
mov rbx, qword [rsp + 0x70]
test rbx, rbx
je 0x140002d50
lea rcx, [rbp - 0x20]
call fcn.140002dc0
nop
mov qword [rbp - 0x28], 0xf
mov qword [rbp - 0x30], 8
movabs rax, 0x6449746e65696c63
mov qword [rbp - 0x40], rax
mov byte [rbp - 0x38], 0
lea rcx, [rbp - 0x20]
cmp qword [rbp - 8], 0x10
cmovae rcx, qword [rbp - 0x20]
mov eax, dword [rbp - 0x10]
inc eax
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
lea rdx, [rbp - 0x40]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rdx, qword [rbp - 0x28]
cmp rdx, 0x10
jb 0x140002cad
inc rdx
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002ca7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002ca7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400061a0
nop
mov rdx, qword [rbp - 8]
cmp rdx, 0x10
jb 0x140002ceb
inc rdx
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002ce6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002ce6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400061a0
mov rdx, rbx
lea rcx, [rbp]
call fcn.1400031e0
movups xmm0, xmmword [rbp]
movups xmmword [rsi], xmm0
movups xmm1, xmmword [rbp + 0x10]
movups xmmword [rsi + 0x10], xmm1
mov qword [rbp + 0x10], r14
mov qword [rbp + 0x18], 0xf
mov byte [rbp], 0
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x140002d9a
mov eax, edi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140002d9a
mov rbx, qword [rsp + 0x78]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x140002d9a
mov rcx, qword [rsp + 0x78]
mov rax, qword [rcx]
call qword [rax + 8]
jmp 0x140002d9a
mov qword [rsi], r14
mov qword [rsi + 0x10], r14
mov qword [rsi + 0x18], 0xf
mov byte [rsi], 0
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x140002d9a
mov eax, edi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140002d9a
mov rbx, qword [rsp + 0x78]
mov rdx, qword [rbx]
mov rcx, rbx
call qword [rdx]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x140002d9a
mov rcx, qword [rsp + 0x78]
mov rdx, qword [rcx]
call qword [rdx + 8]
mov rax, rsi
mov rcx, qword [rbp + 0x20]
xor rcx, rsp
call fcn.140006780
mov rbx, qword [rsp + 0x170]
add rsp, 0x130
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret