Function at 0x140035514
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0x90
mov r13, rcx
mov r12, rdx
mov rcx, qword gs:[0x60]
mov edi, 0x68
mov r8d, edi
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
xor r14d, r14d
mov rbx, rax
test rax, rax
je 0x14003577d
mov rcx, qword [0x14007c638]
lea rax, [0x14005d990]
mov qword [rbx], rax
lea rax, [0x14005dac0]
mov qword [rbx], rax
lea rax, [0x14005d920]
mov qword [rbx + 0x10], rax
mov dword [rbx + 8], 1
mov qword [rbx + 0x18], r14
mov byte [rbx + 0x20], r14b
mov qword [rbx + 0x28], r14
mov qword [rbx + 0x30], r14
mov qword [rbx + 0x38], r14
test rcx, rcx
je 0x1400355d8
mov rax, qword [rcx]
movabs r10, 0x9b8c3faa10d2f170
mov rax, qword [rax + 0x10]
lea r8d, [rdi - 0x5c]
mov r9d, edi
mov byte [rsp + 0x20], 1
lea rdx, str.CKey
call qword [case.0x1400569a6.0]
mov qword [rbx + 0x48], r14
lea rdx, [rbx + 0x48]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbx + 0x50], xmm0
mov qword [rbx + 0x60], rax
mov r15b, r14b
mov rcx, qword [r13 + 8]
call fcn.1400350f8
mov edi, eax
test eax, eax
js 0x140035749
mov rcx, qword [r13 + 8]
lea rdx, [rbx + 0x18]
call fcn.14003aac8
mov edi, eax
test eax, eax
js 0x140035749
lea rsi, [r13 + 0x28]
cmp qword [rsi], r14
ja 0x140035624
int3
mov rdx, qword [rsi]
test rdx, rdx
je 0x14003568b
mov rax, qword [rsi + 0x10]
mov rcx, rdx
shr rcx, 1
cmp word [rax + rcx*2 - 2], 0x5c
je 0x14003568e
mov rax, rdx
not rax
cmp rax, 2
jae 0x14003568b
lea rax, str.onecore_basewcp_silkey.cpp
mov dword [rbp - 9], 0x29
mov qword [rbp - 0x19], rax
lea rcx, [rbp - 0x19]
lea rax, str.Windows::Rtl::SystemImplementation::CKey::Initialize
mov r8d, 0xc0000095
mov qword [rbp - 0x11], rax
lea rax, str.__SIZE_T___SIZE_T_0_____CreateSource.Name.Length___sizeof_WCHAR_
mov qword [rbp - 1], rax
call fcn.140052a48
mov edi, 0xc0000095
jmp 0x140035749
mov r15b, 1
movzx eax, r15b
lea r14, [rbx + 0x50]
cmp qword [r14 + 0x10], 0
lea rdx, [rdx + rax*2]
je 0x1400356a2
int3
mov r8, r14
call fcn.140052378
mov edi, eax
test eax, eax
jns 0x1400356e6
lea rax, str.onecore_basewcp_silkey.cpp
mov dword [rbp + 0x17], 0x2f
mov qword [rbp + 7], rax
lea rcx, [rbp + 7]
lea rax, str.Windows::Rtl::SystemImplementation::CKey::Initialize
mov qword [rbp + 0xf], rax
lea rax, str.m_Name.Allocate__CreateSource.Name.Length___fAddBackslash___sizeof_WCHAR__:_0__
mov qword [rbp + 0x1f], rax
mov r8d, edi
call fcn.140052a48
jmp 0x140035749
mov rdx, r14
mov rcx, rsi
call fcn.140051420
mov edi, eax
test eax, eax
jns 0x140035725
lea rax, str.onecore_basewcp_silkey.cpp
mov dword [rbp - 0x29], 0x33
mov qword [rbp - 0x39], rax
lea rcx, [rbp - 0x39]
lea rax, str.Windows::Rtl::SystemImplementation::CKey::Initialize
mov qword [rbp - 0x31], rax
lea rax, str.RtlCopyLUnicodeString__CreateSource.Name__m_Name.GetMutablePointer___
mov qword [rbp - 0x21], rax
jmp 0x1400356dc
test r15b, r15b
je 0x140035737
mov rcx, r14
call fcn.140049618
test eax, eax
jns 0x140035737
int3
lea rcx, [rbx + 0x10]
mov rdx, r13
call fcn.14003b5a0
mov edi, eax
test eax, eax
jns 0x14003576d
mov rax, qword [rbx]
movabs r10, 0xaec41ff778502270
mov rax, qword [rax + 0xe0]
mov edx, 1
mov rcx, rbx
call qword [case.0x1400569a6.0]
jmp 0x1400357b9
cmp qword [r12], 0
je 0x140035775
int3
mov qword [r12], rbx
xor eax, eax
jmp 0x1400357bb
lea rax, str.onecoreinternalBaseinc_rtl_object_library.h
mov dword [rbp - 0x29], 0xf9
mov qword [rbp - 0x39], rax
lea rcx, [rbp - 0x39]
lea rax, str.Windows::Rtl::CRtlRefCountedObjectBase_class_Windows::Rtl::SystemImplementation::CKey_struct_Windows::Rtl::IRtlKey_struct_Windows::Rtl::IRtlSystemObject_struct_Windows::Rtl::IRtlSystemContainer_struct_Windows::Rtl::Detail::CRtlRefCountedObjectBaseNoInterface_::CreateInstance
mov r8d, 0xc0000017
mov qword [rbp - 0x31], rax
lea rax, str.NewInstance.Allocate__
mov qword [rbp - 0x21], rax
call fcn.140052a48
mov edi, 0xc0000017
mov eax, edi
mov rbx, qword [rsp + 0xe0]
add rsp, 0x90
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret