Function at 0x14018c460
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rbx
push rsi
push rdi
push r13
sub rsp, 0x88
xor edi, edi
mov r13, rdx
test byte [0x1402c75f8], 1
mov qword [rax - 0x58], rdi
mov dword [rax + 8], edi
mov dword [rax + 0x18], edi
jne 0x14018c5f6
lock bts qword [0x1402c75f8], 0x1f
setb al
test al, al
jne 0x14018c5df
xor edx, edx
lea rcx, str.netapi32.dll
mov r8d, 0x800
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rbx, rax
test rax, rax
jne 0x14018c512
xor edx, edx
lea rcx, str.netapi32.dll
mov r8d, 0x200
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rbx, rax
test rax, rax
jne 0x14018c512
cmp dword [0x1402c0f40], 0x3e
jae 0x14018c5d1
xor r8d, r8d
lea rcx, str.netapi32.dll
xor edx, edx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rbx, rax
test rax, rax
je 0x14018c5d1
mov esi, 0x5a4d
mov rcx, rbx
cmp word [rbx], si
jne 0x14018c567
mov edx, dword [rbx + 0x3c]
lea eax, [rdx - 1]
cmp eax, 0x7ffffffd
ja 0x14018c567
cmp dword [rdx + rbx], 0x4550
jne 0x14018c567
add rdx, 0x88
add rdx, rbx
mov eax, dword [rdx]
test eax, eax
je 0x14018c564
cmp dword [rdx + 4], edi
je 0x14018c564
lea r8, [rbx + rax]
mov word [rsp + 0x20], di
lea r9, str.NetUserEnum
call fcn.14017f180
mov rcx, rbx
jmp 0x14018c56a
mov rcx, rbx
mov rax, rdi
mov qword [0x1402cf9a8], rax
cmp word [rbx], si
jne 0x14018c5c7
mov edx, dword ds:[rcx + 0x3c]
lea eax, [rdx - 1]
cmp eax, 0x7ffffffd
ja 0x14018c5c7
cmp dword [rdx + rbx], 0x4550
jne 0x14018c5c7
add rdx, 0x88
add rdx, rbx
mov eax, dword [rdx]
test eax, eax
je 0x14018c5c7
cmp dword [rdx + 4], edi
je 0x14018c5c7
lea r8, ds:[rbx + rax]
mov word [rsp + 0x20], di
lea r9, str.NetApiBufferFree
mov rcx, rbx
call fcn.14017f180
jmp 0x14018c5ca
mov rax, rdi
mov qword [0x1402cf9d0], rax
lea rcx, [0x1402c75f8]
call sym.SystemInformer.exe_PhfSetEvent
jmp 0x14018c5f6
test byte [0x1402c75f8], 1
jne 0x14018c5f6
xor edx, edx
lea rcx, [0x1402c75f8]
call sym.SystemInformer.exe_PhfWaitForEvent
mov rax, qword [0x1402cf9a8]
nop dword [rax]
test rax, rax
je 0x14018c8d5
cmp qword [0x1402cf9d0], rdi
je 0x14018c8d5
mov qword [rsp + 0x38], rdi
lea rcx, [rsp + 0xc0]
mov qword [rsp + 0x30], rcx
lea r9, [rsp + 0x50]
lea rcx, [rsp + 0xb0]
xor edx, edx
mov qword [rsp + 0x28], rcx
mov r8d, 2
xor ecx, ecx
mov dword [rsp + 0x20], 0xffffffff
call qword [case.0x14013dbaa.0]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14018c66e
mov rax, qword [0x1402cf9d0]
call qword [case.0x14013dbaa.0]
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x38], rdi
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x50]
lea rax, [rsp + 0xb0]
xor edx, edx
mov qword [rsp + 0x28], rax
xor ecx, ecx
mov rax, qword [0x1402cf9a8]
mov r8d, 2
mov dword [rsp + 0x20], 0xffffffff
call qword [case.0x14013dbaa.0]
test eax, eax
jne 0x14018c8be
lea rcx, ds:[rsp + 0x58]
call sym.SystemInformer.exe_PhGetOwnTokenAttributes
xor r8d, r8d
mov dl, 1
mov rcx, qword [rax + 0x10]
call sym.SystemInformer.exe_PhGetSidFullName
mov rbx, rax
test rax, rax
je 0x14018c8be
mov qword [rsp + 0x80], r12
mov rcx, rax
mov qword [rsp + 0x70], r15
call sym.SystemInformer.exe_PhGetBaseDirectory
mov r15d, 0xffffffff
lea rcx, [rbx - 0x10]
mov edx, r15d
mov r12, rax
lock xadd dword [rcx + 8], edx
cmp edx, 1
jne 0x14018c713
call fcn.140142200
test r12, r12
je 0x14018c8b1
mov qword [rsp + 0x78], r14
mov r14d, edi
cmp dword [rsp + 0xb0], edi
jbe 0x14018c896
mov qword [rsp + 0xb8], rbp
nop dword [rax]
mov rax, qword [rsp + 0x50]
mov ecx, r14d
mov rbp, qword [rax + rcx*8]
test rbp, rbp
je 0x14018c870
mov rax, rbp
mov ecx, ebp
and rax, 0xfffffffffffffff1
xorps xmm1, xmm1
and ecx, 0xf
je 0x14018c78d
movdqu xmm0, xmmword ds:[rax]
pcmpeqw xmm0, xmm1
pmovmskb edx, xmm0
shr edx, cl
bsf ecx, edx
mov dword [rsp + 0xc8], ecx
je 0x14018c789
mov eax, ecx
shr rax, 1
jmp 0x14018c7db
add rax, 0x10
movdqu xmm0, xmmword [rax]
pcmpeqw xmm0, xmm1
pmovmskb ecx, xmm0
bsf edx, ecx
mov dword [rsp + 0xc8], edx
jne 0x14018c7cd
nop word [rax + rax]
movdqu xmm0, xmmword [rax + 0x10]
add rax, 0x10
pcmpeqw xmm0, xmm1
pmovmskb ecx, xmm0
bsf edx, ecx
mov dword [rsp + 0xc8], edx
je 0x14018c7b0
sub rax, rbp
mov ecx, edx
sar rax, 1
shr rcx, 1
add rax, rcx
mov rbx, qword [r12]
lea rdi, [rax + rax]
mov rdx, qword [0x1402cb8c0]
add rbx, 2
add rbx, rdi
lea rcx, [rbx + 0x12]
call sym.SystemInformer.exe_PhCreateObject
mov rsi, rax
mov qword [rax], rbx
lea rcx, [rax + 0x10]
mov qword [rax + 8], rcx
xor eax, eax
mov word [rcx + rbx], ax
mov rbx, qword [rsi + 8]
mov r8, qword [r12]
mov rcx, rbx
mov rdx, qword [r12 + 8]
call fcn.14020be40
add rbx, qword ds:[r12]
mov r8, rdi
mov eax, dword [0x14023a5fc]
mov rdx, rbp
lea rcx, [rbx + 2]
mov word [rbx], ax
call fcn.14020be40
mov r9, qword [rsi + 8]
xor r8d, r8d
mov edx, 0x143
mov rcx, r13
call qword [sym.imp.USER32.dll_SendMessageW]
lea rcx, [rsi - 0x10]
mov eax, r15d
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14018c870
call fcn.140142200
inc r14d
nop
cmp r14d, dword [rsp + 0xb0]
jb 0x14018c740
mov rbp, qword [rsp + 0xb8]
lea rcx, [r12 - 0x10]
lock xadd dword [rcx + 8], r15d
mov r14, qword [rsp + 0x78]
cmp r15d, 1
jne 0x14018c8b1
call fcn.140142200
mov r12, qword [rsp + 0x80]
mov r15, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14018c8d5
mov rax, qword [0x1402cf9d0]
call qword [case.0x14013dbaa.0]
mov eax, 0xc0000001
add rsp, 0x88
pop r13
pop rdi
pop rsi
pop rbx
ret