Function at 0x14018af60
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 [0x1402c6698], 1
mov qword [rax - 0x58], rdi
mov dword [rax + 8], edi
mov dword [rax + 0x18], edi
jne 0x14018b0f6
lock bts qword [0x1402c6698], 0x1f
setb al
test al, al
jne 0x14018b0df
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 0x14018b012
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 0x14018b012
cmp dword [0x1402bff40], 0x3e
jae 0x14018b0d1
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 0x14018b0d1
mov esi, 0x5a4d
mov rcx, rbx
cmp word [rbx], si
jne 0x14018b067
mov edx, dword [rbx + 0x3c]
lea eax, [rdx - 1]
cmp eax, 0x7ffffffd
ja 0x14018b067
cmp dword [rdx + rbx], 0x4550
jne 0x14018b067
add rdx, 0x88
add rdx, rbx
mov eax, dword [rdx]
test eax, eax
je 0x14018b064
cmp dword [rdx + 4], edi
je 0x14018b064
lea r8, [rbx + rax]
mov word [rsp + 0x20], di
lea r9, str.NetUserEnum
call fcn.14017dc40
mov rcx, rbx
jmp 0x14018b06a
mov rcx, rbx
mov rax, rdi
mov qword [0x1402cea58], rax
cmp word [rbx], si
jne 0x14018b0c7
mov edx, dword ds:[rcx + 0x3c]
lea eax, [rdx - 1]
cmp eax, 0x7ffffffd
ja 0x14018b0c7
cmp dword [rdx + rbx], 0x4550
jne 0x14018b0c7
add rdx, 0x88
add rdx, rbx
mov eax, dword [rdx]
test eax, eax
je 0x14018b0c7
cmp dword [rdx + 4], edi
je 0x14018b0c7
lea r8, ds:[rbx + rax]
mov word [rsp + 0x20], di
lea r9, str.NetApiBufferFree
mov rcx, rbx
call fcn.14017dc40
jmp 0x14018b0ca
mov rax, rdi
mov qword [0x1402cea80], rax
lea rcx, [0x1402c6698]
call sym.SystemInformer.exe_PhfSetEvent
jmp 0x14018b0f6
test byte [0x1402c6698], 1
jne 0x14018b0f6
xor edx, edx
lea rcx, [0x1402c6698]
call sym.SystemInformer.exe_PhfWaitForEvent
mov rax, qword [0x1402cea58]
nop dword [rax]
test rax, rax
je 0x14018b3d5
cmp qword [0x1402cea80], rdi
je 0x14018b3d5
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.0x14013d64a.0]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14018b16e
mov rax, qword [0x1402cea80]
call qword [case.0x14013d64a.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 [0x1402cea58]
mov r8d, 2
mov dword [rsp + 0x20], 0xffffffff
call qword [case.0x14013d64a.0]
test eax, eax
jne 0x14018b3be
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 0x14018b3be
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 0x14018b213
call fcn.140141ca0
test r12, r12
je 0x14018b3b1
mov qword [rsp + 0x78], r14
mov r14d, edi
cmp dword [rsp + 0xb0], edi
jbe 0x14018b396
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 0x14018b370
mov rax, rbp
mov ecx, ebp
and rax, 0xfffffffffffffff1
xorps xmm1, xmm1
and ecx, 0xf
je 0x14018b28d
movdqu xmm0, xmmword ds:[rax]
pcmpeqw xmm0, xmm1
pmovmskb edx, xmm0
shr edx, cl
bsf ecx, edx
mov dword [rsp + 0xc8], ecx
je 0x14018b289
mov eax, ecx
shr rax, 1
jmp 0x14018b2db
add rax, 0x10
movdqu xmm0, xmmword [rax]
pcmpeqw xmm0, xmm1
pmovmskb ecx, xmm0
bsf edx, ecx
mov dword [rsp + 0xc8], edx
jne 0x14018b2cd
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 0x14018b2b0
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 [0x1402ca978]
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.14020a640
add rbx, qword ds:[r12]
mov r8, rdi
mov eax, dword [0x14023942c]
mov rdx, rbp
lea rcx, [rbx + 2]
mov word [rbx], ax
call fcn.14020a640
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 0x14018b370
call fcn.140141ca0
inc r14d
nop
cmp r14d, dword [rsp + 0xb0]
jb 0x14018b240
mov rbp, qword [rsp + 0xb8]
lea rcx, [r12 - 0x10]
lock xadd dword [rcx + 8], r15d
mov r14, qword [rsp + 0x78]
cmp r15d, 1
jne 0x14018b3b1
call fcn.140141ca0
mov r12, qword [rsp + 0x80]
mov r15, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14018b3d5
mov rax, qword [0x1402cea80]
call qword [case.0x14013d64a.0]
mov eax, 0xc0000001
add rsp, 0x88
pop r13
pop rdi
pop rsi
pop rbx
ret