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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x1801724e0]
xor rax, rsp
mov qword [rbp - 8], rax
xor r15d, r15d
mov word [rbp - 0x3c], 0x500
mov qword [rcx], r15
mov rsi, rcx
mov rcx, qword gs:[0x60]
xor edx, edx
mov dword [rbp - 0x40], r15d
mov edi, r15d
lea r12d, [r15 + 0x4c]
mov dword [rbp - 0x38], r15d
mov r8d, r12d
mov word [rbp - 0x34], 0x100
mov rcx, qword [rcx + 0x30]
mov qword [rbp - 0x20], r15
mov dword [rbp - 0x28], r15d
call sym.ntdll.dll_RtlAllocateHeap
mov r14, rax
test rax, rax
je 0x1800a4d3c
lea rax, [rbp - 0x2c]
mov r9d, r12d
lea r13, [r15 - 6]
mov qword [rsp + 0x20], rax
mov rcx, r13
lea edx, [r15 + 4]
mov r8, r14
call sym.ntdll.dll_NtQueryInformationToken
mov ebx, eax
test eax, eax
js 0x180003112
lea rax, [rbp - 0x2c]
mov dword [rbp - 0x30], r15d
lea r9d, [r15 + 4]
mov qword [rsp + 0x20], rax
lea r8, [rbp - 0x30]
mov rcx, r13
lea edx, [r15 + 0x1d]
call sym.ntdll.dll_NtQueryInformationToken
test eax, eax
js 0x180002f84
cmp dword [rbp - 0x30], r15d
jne 0x1800a4d69
mov edx, 0x34
test rdi, rdi
jne 0x1800a4df3
mov rax, qword [rbp - 0x20]
test rax, rax
jne 0x1800a4e06
mov rax, qword [r14]
movzx ecx, byte [rax + 1]
add ecx, 0xe
lea ebx, [rdx + rcx*4]
mov rcx, qword gs:[0x60]
mov r8d, ebx
xor edx, edx
mov rcx, qword [rcx + 0x30]
call sym.ntdll.dll_RtlAllocateHeap
mov qword [rsi], rax
test rax, rax
je 0x1800a4e15
mov r12d, 2
mov edx, ebx
mov r8d, r12d
mov rcx, rax
call sym.ntdll.dll_RtlCreateAcl
mov r8b, 1
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x18]
call sym.ntdll.dll_RtlInitializeSid
mov rcx, qword [rsi]
lea rax, [rbp - 0x18]
mov ebx, 0x10000000
mov byte [rsp + 0x28], r15b
mov r9d, ebx
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rbp - 0x10], 0x12
mov edx, r12d
call fcn.180037408
mov r8b, r12b
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x18]
call sym.ntdll.dll_RtlInitializeSid
mov rcx, qword [rsi]
lea rax, [rbp - 0x18]
mov byte [rsp + 0x28], r15b
mov r9d, ebx
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov edx, r12d
mov dword [rbp - 0x10], 0x20
mov dword [rbp - 0xc], 0x220
call fcn.180037408
test rdi, rdi
jne 0x1800a4e1f
mov rax, qword [rbp - 0x20]
test rax, rax
jne 0x1800a4e43
mov rax, qword [r14]
mov r9d, ebx
mov rcx, qword [rsi]
xor r8d, r8d
mov byte [rsp + 0x28], r15b
mov edx, r12d
mov qword [rsp + 0x20], rax
call fcn.180037408
mov r8b, 1
lea rdx, [rbp - 0x38]
lea rcx, [rbp - 0x18]
call sym.ntdll.dll_RtlInitializeSid
mov rcx, qword [rsi]
lea rax, [rbp - 0x18]
mov ebx, 0x80000000
mov byte [rsp + 0x28], r15b
mov r9d, ebx
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rbp - 0x10], r15d
mov edx, r12d
call fcn.180037408
mov r8b, 1
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x18]
call sym.ntdll.dll_RtlInitializeSid
mov rcx, qword [rsi]
lea rax, [rbp - 0x18]
mov byte [rsp + 0x28], r15b
mov r9d, ebx
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov edx, r12d
mov dword [rbp - 0x10], 7
call fcn.180037408
mov ebx, r15d
test rdi, rdi
jne 0x1800a4e64
cmp qword [rbp - 0x20], r15
jne 0x1800a4e81
mov rcx, qword gs:[0x60]
mov r8, r14
xor edx, edx
mov rcx, qword [rcx + 0x30]
call sym.ntdll.dll_RtlFreeHeap
test ebx, ebx
js 0x1800a4d41
mov eax, ebx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.18008b0e0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov ebx, 0xc0000017
mov r8, qword [rsi]
test r8, r8
je 0x180003131
mov rcx, qword gs:[0x60]
xor edx, edx
mov rcx, qword [rcx + 0x30]
call sym.ntdll.dll_RtlFreeHeap
mov qword [rsi], r15
jmp 0x180003131
mov rcx, qword gs:[0x60]
mov r8, r12
xor edx, edx
mov rcx, qword [rcx + 0x30]
call sym.ntdll.dll_RtlAllocateHeap
mov rdi, rax
test rax, rax
jne 0x1800a4d92
mov ebx, 0xc0000017
jmp 0x180003112
lea rax, [rbp - 0x2c]
mov r9d, r12d
mov r8, rdi
mov qword [rsp + 0x20], rax
mov edx, 0x1f
mov rcx, r13
call sym.ntdll.dll_NtQueryInformationToken
mov ebx, eax
test eax, eax
js 0x1800030ff
mov rcx, qword [rdi]
lea rdx, [rbp - 0x28]
call sym.ntdll.dll_RtlGetAppContainerSidType
mov ebx, eax
test eax, eax
js 0x1800030ff
cmp dword [rbp - 0x28], 1
jne 0x180002f84
mov rcx, qword [rdi]
lea rdx, [rbp - 0x20]
call sym.ntdll.dll_RtlGetAppContainerParent
mov ebx, eax
test eax, eax
js 0x1800030ff
jmp 0x180002f84
mov rax, qword [rdi]
movzx ecx, byte [rax + 1]
lea edx, [rcx*4 + 0x44]
jmp 0x180002f92
movzx eax, byte [rax + 1]
lea edx, [rdx + rax*4]
add edx, 0x10
jmp 0x180002f9f
mov ebx, 0xc0000017
jmp 0x1800030ff
mov rax, qword [rdi]
mov r9d, ebx
mov rcx, qword [rsi]
xor r8d, r8d
mov byte [rsp + 0x28], r15b
mov edx, r12d
mov qword [rsp + 0x20], rax
call fcn.180037408
nop
jmp 0x180003063
mov rcx, qword [rsi]
mov r9d, ebx
mov byte [rsp + 0x28], r15b
xor r8d, r8d
mov edx, r12d
mov qword [rsp + 0x20], rax
call fcn.180037408
nop
jmp 0x180003070
mov rcx, qword gs:[0x60]
mov r8, rdi
xor edx, edx
mov rcx, qword [rcx + 0x30]
call sym.ntdll.dll_RtlFreeHeap
nop
jmp 0x180003108
mov rcx, qword gs:[0x60]
xor edx, edx
mov r8, qword [rbp - 0x20]
mov rcx, qword [rcx + 0x30]
call sym.ntdll.dll_RtlFreeHeap
nop
jmp 0x180003112