Function at 0x1400333a4
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, 0xc0
mov rax, qword [0x140078140]
xor rax, rsp
mov qword [rbp + 0x1f], rax
mov r13, rcx
xor esi, esi
mov rcx, qword gs:[0x60]
mov r12, rdx
xor edx, edx
mov dword [rbp + 0x1b], esi
lea ebx, [rsi + 0x68]
mov rcx, qword [rcx + 0x30]
mov r8d, ebx
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
je 0x14003347b
mov rcx, qword [0x1400786e8]
lea rax, [0x140059910]
mov qword [rdi], rax
lea rax, [0x140059a00]
mov qword [rdi], rax
lea rax, [0x1400598a0]
mov qword [rdi + 0x10], rax
mov dword [rdi + 8], 1
mov qword [rdi + 0x18], rsi
mov byte [rdi + 0x20], sil
mov qword [rdi + 0x28], rsi
mov qword [rdi + 0x30], rsi
mov qword [rdi + 0x38], rsi
test rcx, rcx
je 0x140033468
mov rax, qword [rcx]
lea r8d, [rsi + 0xc]
mov r9d, ebx
mov byte [rsp + 0x20], 1
lea rdx, str.CKey
mov rax, qword [rax + 0x10]
call qword [case.0x1400532ec.0]
mov qword [rdi + 0x48], rsi
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rdi + 0x50], xmm0
mov qword [rdi + 0x60], rax
jmp 0x14003347e
mov rdi, rsi
test rdi, rdi
jne 0x1400334c4
lea rax, str.onecoreinternal_baseinc_rtl_object_library.h
mov dword [rbp - 0x59], 0xf7
mov qword [rbp - 0x69], rax
lea rcx, [rbp - 0x69]
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 - 0x61], rax
lea rax, str.NewInstance.Allocate__
mov qword [rbp - 0x51], rax
call fcn.14004f4fc
mov ebx, 0xc0000017
jmp 0x14003364f
mov rcx, qword [r13 + 8]
lea rdx, [rdi + 0x48]
mov r15b, sil
call fcn.140032b5c
mov ebx, eax
test eax, eax
js 0x140033633
mov rcx, qword [r13 + 8]
lea rdx, [rdi + 0x18]
call fcn.140037c64
mov ebx, eax
test eax, eax
js 0x140033633
lea rsi, [r13 + 0x28]
cmp qword [rsi], 0
ja 0x140033500
int3
mov rdx, qword [rsi]
test rdx, rdx
je 0x14003351a
mov rax, qword [rsi + 0x10]
mov rcx, rdx
shr rcx, 1
cmp word [rax + rcx*2 - 2], 0x5c
je 0x14003356a
mov rax, rdx
not rax
cmp rax, 2
jae 0x140033567
lea rax, str.onecore_basewcp_silkey.cpp
mov dword [rbp - 0x39], 0x29
mov qword [rbp - 0x49], rax
lea rcx, [rbp - 0x49]
lea rax, str.Windows::Rtl::SystemImplementation::CKey::Initialize
mov r8d, 0xc0000095
mov qword [rbp - 0x41], rax
lea rax, str.__SIZE_T___SIZE_T_0_____CreateSource.Name.Length___sizeof_WCHAR_
mov qword [rbp - 0x31], rax
call fcn.14004f4fc
mov ebx, 0xc0000095
jmp 0x140033637
mov r15b, 1
movzx eax, r15b
lea r14, [rdi + 0x50]
cmp qword [r14 + 0x10], 0
lea rdx, [rdx + rax*2]
je 0x14003357e
int3
mov r8, r14
call fcn.14004edac
mov ebx, eax
test eax, eax
jns 0x1400335c4
lea rax, str.onecore_basewcp_silkey.cpp
mov dword [rbp - 0x19], 0x2f
mov qword [rbp - 0x29], rax
lea rcx, [rbp - 0x29]
lea rax, str.Windows::Rtl::SystemImplementation::CKey::Initialize
mov r8d, ebx
mov qword [rbp - 0x21], rax
lea rax, str.m_Name.Allocate__CreateSource.Name.Length___fAddBackslash___sizeof_WCHAR__:_0__
mov qword [rbp - 0x11], rax
call fcn.14004f4fc
xor esi, esi
jmp 0x140033633
mov rdx, r14
mov rcx, rsi
call fcn.14004de90
xor esi, esi
mov ebx, eax
test eax, eax
jns 0x14003360d
lea rax, str.onecore_basewcp_silkey.cpp
mov dword [rbp + 7], 0x33
mov qword [rbp - 9], rax
lea rcx, [rbp - 9]
lea rax, str.Windows::Rtl::SystemImplementation::CKey::Initialize
mov r8d, ebx
mov qword [rbp - 1], rax
lea rax, str.RtlCopyLUnicodeString__CreateSource.Name__m_Name.GetMutablePointer___
mov qword [rbp + 0xf], rax
call fcn.14004f4fc
jmp 0x140033633
test r15b, r15b
je 0x14003361f
mov rcx, r14
call fcn.1400461ac
test eax, eax
jns 0x14003361f
int3
lea rcx, [rdi + 0x10]
mov rdx, r13
call fcn.1400386f0
mov ebx, eax
test eax, eax
js 0x140033633
mov ebx, esi
test ebx, ebx
jns 0x140033653
mov r8, qword [rdi]
mov edx, 1
mov rcx, rdi
mov rax, qword [r8 + 0xa0]
call qword [case.0x1400532ec.0]
mov eax, ebx
jmp 0x140033661
cmp qword [r12], rsi
je 0x14003365a
int3
mov eax, dword [rbp + 0x1b]
mov qword [r12], rdi
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.140058110
mov rbx, qword [rsp + 0x110]
add rsp, 0xc0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret