Function at 0x14003b038
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 r14, rcx
mov r13, 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 esi, esi
mov rbx, rax
test rax, rax
je 0x14003b2bd
mov rcx, qword [0x140085648]
lea rax, [0x1400659b8]
mov qword [rbx], rax
lea rax, [0x140065ae8]
mov qword [rbx], rax
lea rax, [0x140065948]
mov qword [rbx + 0x10], rax
mov dword [rbx + 8], 1
mov qword [rbx + 0x18], rsi
mov byte [rbx + 0x20], sil
mov qword [rbx + 0x28], rsi
mov qword [rbx + 0x30], rsi
mov qword [rbx + 0x38], rsi
test rcx, rcx
je 0x14003b0fb
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.0x14005dcc6.0]
mov qword [rbx + 0x48], rsi
lea rdx, [rbx + 0x48]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbx + 0x50], xmm0
mov qword [rbx + 0x60], rax
mov r15b, sil
mov rcx, qword [r14 + 8]
call fcn.14003ac1c
mov edi, eax
test eax, eax
js 0x14003b287
mov rcx, qword [r14 + 8]
lea rdx, [rbx + 0x18]
call fcn.140040a48
mov edi, eax
test eax, eax
js 0x14003b287
mov rdx, qword [r14 + 0x28]
test rdx, rdx
jne 0x14003b158
mov ecx, 0xc00000e5
call qword [sym.imp.ntdll.dll_RtlRaiseStatus]
nop dword [rax + rax]
int3
mov rax, qword [r14 + 0x38]
mov rcx, rdx
shr rcx, 1
cmp word [rax + rcx*2 - 2], 0x5c
je 0x14003b1ba
mov rax, rdx
not rax
cmp rax, 2
jae 0x14003b1b7
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.140059c64
mov edi, 0xc0000095
jmp 0x14003b287
mov r15b, 1
movzx eax, r15b
lea rsi, [rbx + 0x50]
cmp qword [rsi + 0x10], 0
lea rdx, [rdx + rax*2]
je 0x14003b1ce
int3
mov r8, rsi
call fcn.14005959c
mov edi, eax
test eax, eax
jns 0x14003b212
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.140059c64
jmp 0x14003b287
mov rdx, rsi
lea rcx, [r14 + 0x28]
call fcn.140058644
mov edi, eax
test eax, eax
jns 0x14003b252
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 0x14003b208
test r15b, r15b
je 0x14003b275
mov rcx, rsi
call fcn.140050634
test eax, eax
jns 0x14003b275
mov ecx, 0xc00000e5
call qword [sym.imp.ntdll.dll_RtlRaiseStatus]
nop dword [rax + rax]
int3
lea rcx, [rbx + 0x10]
mov rdx, r14
call fcn.140041560
mov edi, eax
test eax, eax
jns 0x14003b2ad
mov r8, qword [rbx]
movabs r10, 0xaec41ff778502270
mov rax, qword [r8 + 0xe0]
mov edx, 1
mov rcx, rbx
call qword [case.0x14005dcc6.0]
mov eax, edi
jmp 0x14003b2f9
cmp qword [r13], 0
je 0x14003b2b5
int3
mov qword [r13], rbx
xor eax, eax
jmp 0x14003b2f9
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.140059c64
mov eax, 0xc0000017
mov rbx, qword [rsp + 0xe0]
add rsp, 0x90
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret