Function at 0x140052f50
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xb0
mov qword [rbp - 0x19], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x1403ddfb8]
xor rax, rsp
mov qword [rbp + 0x3f], rax
xor r14d, r14d
mov qword [rbp - 1], r14
mov qword [rbp + 7], r14
mov qword [rbp + 0xf], r14
lea r15, vtable.CPcCryptKeyGenerate.0
mov qword [rbp - 9], r15
mov qword [rbp + 0x17], r14
mov dword [rbp + 0x1f], 0x8c
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x27], xmm0
mov ebx, r14d
mov eax, dword [0x1403f2658]
mov dword [rsp + 0x20], eax
mov r9, qword [str._no_host]
mov r8, qword [0x1403f2b80]
mov rdx, qword [str._no_group]
mov rcx, qword [0x1403f2660]
call fcn.140033d60
test rax, rax
je 0x140053022
mov rcx, qword [rax]
test rcx, rcx
je 0x140053022
mov rax, qword [rcx]
lea edx, [r14 + 1]
call qword [rax + 0x50]
test eax, eax
je 0x140053022
lea rax, str.Gnerate_key_called.
mov qword [rsp + 0x20], rax
lea r9d, [r14 + 0x15]
lea r8, str.CPcCryptKeyGenerate::GenerateKey
lea rdx, str.PcCryptKeyGenerate.cpp
lea ecx, [r14 + 1]
call fcn.140029450
lea rcx, [rbp - 9]
mov rax, qword [rbp - 9]
call qword [rax + 0x40]
test eax, eax
jne 0x14005309d
lea rcx, [rbp - 9]
mov rax, qword [rbp - 9]
call qword [rax + 0x78]
test eax, eax
jne 0x14005309d
lea rdx, [rbp + 0x27]
lea rcx, [rbp - 9]
mov rax, qword [rbp - 9]
call qword [rax + 0x80]
test eax, eax
jne 0x14005309d
lea rcx, [rbp - 9]
mov rax, qword [rbp - 9]
call qword [rax + 0x48]
test eax, eax
jne 0x14005309d
mov ebx, dword [rbp + 0x1f]
lea ecx, [rax + 1]
call fcn.1400294e0
test eax, eax
je 0x14005309d
lea rax, str.Key_generated_successfully.
mov qword [rsp + 0x20], rax
mov r9d, 0x2b
lea r8, str.CPcCryptKeyGenerate::GenerateKey
lea rdx, str.PcCryptKeyGenerate.cpp
lea ecx, [r9 - 0x2a]
call fcn.140029450
mov qword [rbp - 0x11], r14
lea rax, [rbp + 0x37]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x11]
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 0x1400530ed
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x14005312f
mov dword [rsp + 0x28], ebx
mov rax, qword [rbp + 0x27]
mov qword [rsp + 0x20], rax
mov r9d, 3
xor r8d, r8d
lea rdx, str.DataStore
mov rcx, qword [rbp - 0x11]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x140053122
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x14005312f
mov rcx, qword [rbp - 0x11]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, r14d
mov rbx, qword [rbp + 0x2f]
test rbx, rbx
je 0x140053163
or esi, 0xffffffff
mov eax, esi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140053163
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], esi
cmp esi, 1
jne 0x140053163
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov qword [rbp - 9], r15
mov rcx, qword [rbp + 0x17]
test rcx, rcx
je 0x14005317a
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov qword [rbp + 0x17], r14
lea rax, vtable.CPcCrypt.0
mov qword [rbp - 9], rax
mov rcx, qword [rbp + 0xf]
test rcx, rcx
je 0x140053198
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov qword [rbp + 0xf], r14
mov rcx, qword [rbp + 7]
test rcx, rcx
je 0x1400531ab
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov qword [rbp + 7], r14
mov rcx, qword [rbp - 1]
test rcx, rcx
je 0x1400531bc
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, edi
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.14026d870
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