Function at 0x140049790
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x47]
sub rsp, 0xb0
mov rax, qword [0x1403ceac0]
xor rax, rsp
mov qword [rbp + 0x37], rax
xor r14d, r14d
mov qword [rbp - 9], r14
mov qword [rbp - 1], r14
mov qword [rbp + 7], r14
lea r15, vtable.CPcCryptKeyGenerate.0
mov qword [rbp - 0x11], r15
mov qword [rbp + 0xf], r14
mov dword [rbp + 0x17], 0x8c
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x1f], xmm1
mov ebx, r14d
lea ecx, [r14 + 1]
call fcn.1400de610
test eax, eax
je 0x140049822
lea rax, str.Gnerate_key_called.
mov qword [rsp + 0x20], rax
lea r9d, [r14 + 0x15]
lea r8, str.CPcCryptKeyGenerate::GenerateKey
lea rdx, str.E:BT3304243d_d858_4efc_85b8_b3526d9f21d2PartnerCustomSharedSrcPCCryptoPcCryptKeyGenerate.cpp
lea ecx, [r14 + 1]
call fcn.140028a20
lea rcx, [rbp - 0x11]
mov rax, qword [rbp - 0x11]
call qword [rax + 0x40]
test eax, eax
jne 0x14004989d
lea rcx, [rbp - 0x11]
mov rax, qword [rbp - 0x11]
call qword [rax + 0x78]
test eax, eax
jne 0x14004989d
mov rax, qword [rbp - 0x11]
lea rdx, [rbp + 0x1f]
lea rcx, [rbp - 0x11]
call qword [rax + 0x80]
test eax, eax
jne 0x14004989d
lea rcx, [rbp - 0x11]
mov rax, qword [rbp - 0x11]
call qword [rax + 0x48]
test eax, eax
jne 0x14004989d
mov ebx, dword [rbp + 0x17]
lea ecx, [rax + 1]
call fcn.1400de610
test eax, eax
je 0x14004989d
lea rax, str.Key_generated_successfully.
mov qword [rsp + 0x20], rax
mov r9d, 0x2b
lea r8, str.CPcCryptKeyGenerate::GenerateKey
lea rdx, str.E:BT3304243d_d858_4efc_85b8_b3526d9f21d2PartnerCustomSharedSrcPCCryptoPcCryptKeyGenerate.cpp
lea ecx, [r9 - 0x2a]
call fcn.140028a20
mov qword [rbp - 0x19], r14
lea rax, [rbp + 0x2f]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x19]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x20106
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
lea rdx, str.SOFTWAREMcAfeePEFCORE
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x1400498ed
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x14004992f
mov dword [rsp + 0x28], ebx
mov rax, qword [rbp + 0x1f]
mov qword [rsp + 0x20], rax
mov r9d, 3
xor r8d, r8d
lea rdx, str.DataStore
mov rcx, qword [rbp - 0x19]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x140049922
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x14004992f
mov rcx, qword [rbp - 0x19]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, r14d
mov rbx, qword [rbp + 0x27]
test rbx, rbx
je 0x140049965
mov edi, 0xffffffff
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140049965
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x140049965
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov qword [rbp - 0x11], r15
mov rcx, qword [rbp + 0xf]
test rcx, rcx
je 0x14004997c
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov qword [rbp + 0xf], r14
lea rcx, [rbp - 0x11]
call fcn.1400718b0
mov eax, esi
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.140296f70
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret