Function at 0x14012c220
Capabilities:
Enumerate pe sections

Disassembly:
push rbx
sub rsp, 0xe0
mov rax, qword [0x1402bf040]
xor rax, rsp
mov qword [rsp + 0xb8], rax
mov rbx, rcx
movabs r10, 0xbc8caf323c5e8170
mov r8, qword [rcx + 8]
mov edx, 8
mov rax, qword [rbx]
lea rcx, [rsp + 0x38]
call qword [0x14020d258]
nop
test eax, eax
jns 0x14012c26b
xor al, al
jmp 0x14012c761
mov rcx, qword [rsp + 0x38]
mov edx, 0x1e
mov qword [rsp + 0xc8], r14
lea r14, [rbx + 0xb0]
mov r8, r14
call fcn.140160080
test eax, eax
js 0x14012c74c
mov qword [rsp + 0xd8], r12
mov qword [rsp + 0xd0], r13
lfence
mov rax, qword [r14]
xor r13d, r13d
mov r12d, r13d
cmp dword [rax], r13d
jbe 0x14012c73c
mov qword [rsp + 0xf8], rbp
mov qword [rsp + 0x108], rdi
mov qword [rsp + 0xc0], r15
lea r15, [rbx + 0xb8]
mov qword [rsp + 0x100], rsi
mov dword [rsp + 0xa0], r13d
mov word [rsp + 0xa4], 0xf00
nop dword [rax]
nop word [rax + rax]
mov ebx, r12d
add rbx, rbx
mov rcx, qword [rax + rbx*8 + 8]
call sym.SystemInformer.exe_PhSidToStringSid
mov r8, rax
xor edx, edx
mov rcx, r15
call fcn.14012bc20
mov rcx, qword [r14]
xor r8d, r8d
mov dl, 1
mov rbp, rax
mov rcx, qword [rcx + rbx*8 + 8]
call sym.SystemInformer.exe_PhGetSidFullName
mov rdi, rax
test rax, rax
je 0x14012c370
mov rdx, qword [rax + 8]
lea rcx, str.FullName:__s
call sym.SystemInformer.exe_PhFormatString
mov r8, rax
mov rdx, rbp
mov rcx, r15
call fcn.14012bc20
lea rcx, [rdi - 0x10]
mov eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14012c370
call fcn.140141ca0
mov rcx, qword [r14]
mov rcx, qword [rcx + rbx*8 + 8]
call fcn.14018a640
mov rdi, rax
test rax, rax
je 0x14012c3bd
mov rdx, qword [rax + 8]
lea rcx, str.Capability:__s
call sym.SystemInformer.exe_PhFormatString
mov r8, rax
mov rdx, rbp
mov rcx, r15
call fcn.14012bc20
lea rcx, [rdi - 0x10]
mov eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14012c3bd
call fcn.140141ca0
mov r8, qword [r14]
mov rdx, qword [r8 + rbx*8 + 8]
mov eax, dword [rdx + 2]
movzx ecx, byte [rdx + 1]
cmp eax, dword [rsp + 0xa0]
jne 0x14012c70d
movzx eax, word ds:[rdx + 6]
cmp ax, word [rsp + 0xa4]
jne 0x14012c70d
cmp dword [rdx + 8], 3
jne 0x14012c70d
nop dword [rax + rax]
cmp cl, 8
jne 0x14012c598
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x34]
mov r9d, 0x58
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x40]
mov edx, 0x1f
call qword [sym.imp.ntdll.dll_NtQueryInformationToken]
test eax, eax
js 0x14012c70d
mov r9, qword ds:[rsp + 0x40]
test r9, r9
je 0x14012c70d
mov rcx, qword [r14]
lea rax, [r9 + 0xc]
mov edx, 1
mov r8, qword [rcx + rbx*8 + 8]
sub r8, r9
nop dword [rax]
mov ecx, dword [r8 + rax]
cmp dword [rax], ecx
jne 0x14012c70d
inc edx
add rax, 4
cmp edx, 7
jb 0x14012c460
mov rcx, qword ds:[rsp + 0x38]
call fcn.140160640
mov rsi, rax
test rax, rax
je 0x14012c51b
mov rbx, qword [0x1402c5770]
add rbx, qword [rax]
mov rdx, qword [0x1402ca978]
lea rcx, [rbx + 0x12]
call sym.SystemInformer.exe_PhCreateObject
mov rdi, rax
mov qword [rax], rbx
lea rcx, [rax + 0x10]
mov qword [rax + 8], rcx
mov word [rbx + rcx], r13w
mov r8, qword [0x1402c5770]
mov rdx, qword [str.Package:]
mov rcx, qword [rax + 8]
call fcn.14020a640
mov rcx, qword [0x1402c5770]
add rcx, qword [rdi + 8]
mov r8, qword [rsi]
mov rdx, qword [rsi + 8]
call fcn.14020a640
mov r8, rdi
mov rdx, rbp
mov rcx, r15
call fcn.14012bc20
lea rcx, [rsi - 0x10]
mov eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14012c70d
call fcn.140141ca0
jmp 0x14012c70d
mov rdi, qword [0x1402c5770]
test rdi, rdi
jne 0x14012c545
call sym.SystemInformer.exe_PhReferenceEmptyString
mov r8, rax
mov rdx, rbp
mov rcx, r15
mov rbx, rax
call fcn.14012bc20
nop dword [rax]
jmp 0x14012c70d
mov rdx, qword [0x1402ca978]
lea rcx, [rdi + 0x12]
mov rsi, qword [str.Package:]
call sym.SystemInformer.exe_PhCreateObject
mov rbx, rax
mov qword [rax], rdi
add rax, 0x10
mov qword [rbx + 8], rax
mov word [rdi + rax], r13w
test rsi, rsi
je 0x14012c585
mov rcx, qword ds:[rbx + 8]
mov r8, rdi
mov rdx, rsi
call fcn.14020a640
mov r8, rbx
mov rdx, rbp
mov rcx, r15
call fcn.14012bc20
jmp 0x14012c70d
nop dword [rax + rax]
cmp cl, 5
jne 0x14012c70d
mov eax, dword [rdx + 0xc]
mov dword [rsp + 0xa8], eax
mov ecx, dword [rdx + 0x10]
mov dword [rsp + 0xac], ecx
mov ecx, dword [rdx + 0x14]
mov dword [rsp + 0xb0], ecx
lea rcx, [rsp + 0xa8]
mov eax, dword [rdx + 0x18]
mov dword [rsp + 0xb4], eax
call sym.SystemInformer.exe_PhFormatGuid
mov rsi, rax
test rax, rax
je 0x14012c70d
mov rbx, qword [0x1402c56e8]
add rbx, qword ds:[rax]
mov rdx, qword [0x1402ca978]
lea rcx, [rbx + 0x12]
call sym.SystemInformer.exe_PhCreateObject
mov rdi, rax
mov qword [rax], rbx
lea rcx, [rax + 0x10]
mov qword [rax + 8], rcx
mov word [rbx + rcx], r13w
mov r8, qword [0x1402c56e8]
mov rdx, qword [str.Guid:]
mov rcx, qword [rax + 8]
call fcn.14020a640
mov rcx, qword [0x1402c56e8]
add rcx, qword [rdi + 8]
mov r8, qword [rsi]
mov rdx, qword [rsi + 8]
call fcn.14020a640
mov r8, rdi
mov rdx, rbp
mov rcx, r15
call fcn.14012bc20
mov rcx, rsi
call fcn.14018acc0
mov r13, rax
test rax, rax
je 0x14012c6ee
mov rbx, qword [0x1402c56d8]
add rbx, qword ds:[rax]
mov rdx, qword [0x1402ca978]
lea rcx, [rbx + 0x12]
call sym.SystemInformer.exe_PhCreateObject
mov rdi, rax
mov qword [rax], rbx
lea rcx, [rax + 0x10]
mov qword [rax + 8], rcx
xor eax, eax
mov word [rbx + rcx], ax
mov r8, qword [0x1402c56d8]
mov rdx, qword [str.8b__]
mov rcx, qword [rdi + 8]
call fcn.14020a640
mov rcx, qword [0x1402c56d8]
add rcx, qword [rdi + 8]
mov r8, qword [r13]
mov rdx, qword [r13 + 8]
call fcn.14020a640
mov r8, rdi
mov rdx, rbp
mov rcx, r15
call fcn.14012bc20
lea rcx, [r13 - 0x10]
mov eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14012c6ee
call fcn.140141ca0
lea rcx, ds:[rsi - 0x10]
mov eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14012c70a
call fcn.140141ca0
xor r13d, r13d
mov rax, qword [r14]
inc r12d
cmp r12d, dword [rax]
jb 0x14012c300
mov r15, qword [rsp + 0xc0]
mov rdi, qword [rsp + 0x108]
mov rsi, qword [rsp + 0x100]
mov rbp, qword [rsp + 0xf8]
mov r12, qword [rsp + 0xd8]
mov r13, qword [rsp + 0xd0]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntdll.dll_NtClose]
mov r14, qword [rsp + 0xc8]
mov al, 1
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.1401e4160
add rsp, 0xe0
pop rbx
ret