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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0x90
mov rax, qword [0x140078140]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov eax, dword [rcx]
xor r15d, r15d
mov dword [rbp + 0xf], r15d
mov r14, r8
mov rdi, rdx
mov rsi, rcx
lea r13d, [r15 + 1]
test eax, eax
jne 0x140033c1f
lock cmpxchg dword [rcx], r13d
jne 0x140033c1f
lea eax, [r15 + 2]
xchg dword [rcx], eax
mov rcx, qword [0x1400786e8]
test rcx, rcx
je 0x140033c1f
mov rax, qword [rcx]
lea rdx, str.CUserProfile
mov r8, rsi
mov rax, qword [rax]
call qword [case.0x1400532ec.0]
mov dword [rsi + 4], eax
jmp 0x140033c1f
call qword [sym.imp.ntdll.dll_NtYieldExecution]
nop dword [rax + rax]
test eax, eax
js 0x140033cb7
mov eax, dword [rsi]
cmp eax, 2
jne 0x140033c0b
mov eax, r15d
test eax, eax
js 0x140033e09
mov rcx, qword gs:[0x60]
xor edx, edx
mov r8d, 0xe8
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x140033cbf
lea rax, [0x1400591d8]
xor edx, edx
mov qword [rbx], rax
lea rcx, [rbx + 0x20]
lea rax, [0x1400599d0]
mov dword [rbx + 8], r15d
mov r8d, 0x90
mov qword [rbx], rax
call sub.ntdll.dll_memset
mov dword [rbx + 0xb0], r15d
mov qword [rbx + 0xb8], r15
mov qword [rbx + 0xc0], r15
mov qword [rbx + 0xc8], r15
mov qword [rbx + 0xd0], r15
mov qword [rbx + 0xd8], r15
mov word [rbx + 0xe0], r15w
jmp 0x140033cc2
mov dword [rbp + 0x13], eax
jmp 0x140033c29
mov rbx, r15
test rbx, rbx
jne 0x140033cf8
lea rax, str.onecoreinternal_baseinc_rtl_object_library.h
mov dword [rbp - 0x21], 0x1c9
mov qword [rbp - 0x31], rax
lea rcx, [rbp - 0x31]
lea rax, str.Windows::Rtl::CRtlObjectTypeDescription_class_Windows::Rtl::SystemImplementation::CUserProfile_::CreateInstance
mov qword [rbp - 0x29], rax
lea rax, str.NewInstance.Allocate__
mov qword [rbp - 0x19], rax
jmp 0x140033d8b
mov rdx, rdi
mov rcx, rbx
call fcn.14003d2f8
mov edi, eax
test eax, eax
js 0x140033d9b
mov qword [rbx + 0x10], rbx
xor edx, edx
mov qword [rbx + 0x18], rsi
mov rcx, qword gs:[0x60]
lea r8d, [rdx + 0x18]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
je 0x140033d57
mov qword [rax + 8], r15
lea rax, [0x140059248]
mov qword [rdi], rax
lea rax, [0x1400594f8]
mov qword [rdi + 0x10], rax
jmp 0x140033d5a
mov rdi, r15
test rdi, rdi
jne 0x140033db6
lea rax, str.onecoreinternal_baseinc_rtl_object_library.h
mov dword [rbp - 1], 0x1da
mov qword [rbp - 0x11], rax
lea rcx, [rbp - 0x11]
lea rax, str.Windows::Rtl::CRtlObjectTypeDescription_class_Windows::Rtl::SystemImplementation::CUserProfile_::CreateInstance
mov qword [rbp - 9], rax
lea rax, str.NewTearoff.Allocate__
mov qword [rbp + 7], rax
mov r8d, 0xc0000017
call fcn.14004f4fc
mov edi, 0xc0000017
test rbx, rbx
je 0x140033db2
mov r8, qword [rbx]
mov edx, r13d
mov rcx, rbx
mov rax, qword [r8]
call qword [case.0x1400532ec.0]
mov eax, edi
jmp 0x140033e09
mov qword [rdi + 8], rbx
mov rcx, rbx
mov rax, qword [rbx]
mov rax, qword [rax + 8]
call qword [case.0x1400532ec.0]
mov rcx, qword [0x1400786e8]
test rcx, rcx
je 0x140033df9
mov rax, qword [rcx]
lea rdx, str.CUserProfile
mov r8d, dword [rsi + 4]
mov r9d, 0xe8
mov byte [rsp + 0x20], r13b
mov rax, qword [rax + 0x10]
call qword [case.0x1400532ec.0]
add rdi, 0x10
cmp qword [r14], r15
je 0x140033e03
int3
mov eax, dword [rbp + 0xf]
mov qword [r14], rdi
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.140058110
add rsp, 0x90
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbx
pop rbp
ret