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

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r14
lea rbp, [rsp - 0x37]
sub rsp, 0x90
mov rax, qword [0x1401a7d98]
xor rax, rsp
mov qword [rbp + 0x27], rax
and dword [rbp + 0x1f], 0
mov r14, r8
and dword [rbp + 0x23], 0
mov rdi, rcx
mov eax, dword [rcx]
mov r12d, 1
test eax, eax
jne 0x14008c881
lock cmpxchg dword [rcx], r12d
jne 0x14008c881
lea eax, [r12 + 1]
xchg dword [rcx], eax
mov rcx, qword [0x1401a9f18]
test rcx, rcx
je 0x14008c881
mov rax, qword [rcx]
lea rdx, str.CRtlIdentityAuthority
mov r8, rdi
mov rax, qword [rax]
call qword [case.0x14010a1e6.0]
mov dword [rdi + 4], eax
jmp 0x14008c881
call qword [sym.imp.KERNEL32.dll_SwitchToThread]
nop dword [rax + rax]
mov eax, dword [rdi]
cmp eax, 2
jne 0x14008c875
mov rax, qword gs:[0x60]
xor edx, edx
mov rcx, qword [rax + 0x30]
lea r8d, [rdx + 0x20]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x14008c8db
and qword [rax + 8], 0
and qword [rax + 0x10], 0
and qword [rax + 0x18], 0
lea rax, [0x14012c7b8]
mov qword [rbx], rax
lea rax, [0x14012c7b8]
mov qword [rbx], rax
mov dword [rbx + 8], 0
jmp 0x14008c8dd
xor ebx, ebx
test rbx, rbx
jne 0x14008c91e
lea rax, str.onecoreinternal_baseinc_rtl_object_library.h
mov dword [rbp - 0x11], 0x1c9
mov qword [rbp - 0x21], rax
lea rcx, [rbp - 0x21]
lea rax, str.Windows::Rtl::CRtlObjectTypeDescription_class_Windows::Identity::Rtl::Implementation::CRtlIdentityAuthority_::CreateInstance
mov r8d, 0xc0000017
mov qword [rbp - 0x19], rax
lea rax, str.NewInstance.Allocate__
mov qword [rbp - 9], rax
call fcn.1400c81b4
jmp 0x14008c9b9
mov qword [rbx + 0x10], rbx
xor edx, edx
mov qword [rbx + 0x18], rdi
mov rax, qword gs:[0x60]
lea r8d, [rdx + 0x18]
mov rcx, qword [rax + 0x30]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
nop dword [rax + rax]
mov rsi, rax
test rax, rax
je 0x14008c969
and qword [rax + 8], 0
lea rax, [0x14012c750]
mov qword [rsi], rax
lea rax, [0x14012cb78]
mov qword [rsi + 0x10], rax
jmp 0x14008c96b
xor esi, esi
test rsi, rsi
jne 0x14008c9c0
lea rax, str.onecoreinternal_baseinc_rtl_object_library.h
mov dword [rbp + 0xf], 0x1da
mov qword [rbp - 1], rax
lea rcx, [rbp - 1]
lea rax, str.Windows::Rtl::CRtlObjectTypeDescription_class_Windows::Identity::Rtl::Implementation::CRtlIdentityAuthority_::CreateInstance
mov r8d, 0xc0000017
mov qword [rbp + 7], rax
lea rax, str.NewTearoff.Allocate__
mov qword [rbp + 0x17], rax
call fcn.1400c81b4
mov rax, qword [rbx]
mov edx, r12d
mov rcx, rbx
mov rax, qword [rax]
call qword [case.0x14010a1e6.0]
mov eax, 0xc0000017
jmp 0x14008ca14
mov qword [rsi + 8], rbx
mov rcx, rbx
mov rax, qword [rbx]
mov rax, qword [rax + 8]
call qword [case.0x14010a1e6.0]
mov rcx, qword [0x1401a9f18]
test rcx, rcx
je 0x14008ca03
mov rax, qword [rcx]
lea rdx, str.CRtlIdentityAuthority
mov r8d, dword [rdi + 4]
mov r9d, 0x20
mov byte [rsp + 0x20], r12b
mov rax, qword [rax + 0x10]
call qword [case.0x14010a1e6.0]
add rsi, 0x10
cmp qword [r14], 0
je 0x14008ca0e
int3
mov eax, dword [rbp + 0x1f]
mov qword [r14], rsi
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140109af0
mov rbx, qword [rsp + 0xc8]
add rsp, 0x90
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret