Function at 0x14018b780
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 [0x1402c66b8], 1
mov qword [rax - 0x58], rdi
mov dword [rax + 8], edi
mov dword [rax + 0x18], edi
jne 0x14018b916
lock bts qword [0x1402c66b8], 0x1f
setb al
test al, al
jne 0x14018b8ff
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 0x14018b832
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 0x14018b832
cmp dword [0x1402bff40], 0x3e
jae 0x14018b8f1
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 0x14018b8f1
mov esi, 0x5a4d
mov rcx, rbx
cmp word [rbx], si
jne 0x14018b887
mov edx, dword [rbx + 0x3c]
lea eax, [rdx - 1]
cmp eax, 0x7ffffffd
ja 0x14018b887
cmp dword [rdx + rbx], 0x4550
jne 0x14018b887
add rdx, 0x88
add rdx, rbx
mov eax, dword [rdx]
test eax, eax
je 0x14018b884
cmp dword [rdx + 4], edi
je 0x14018b884
lea r8, [rbx + rax]
mov word [rsp + 0x20], di
lea r9, str.NetUserEnum
call fcn.14017e4c0
mov rcx, rbx
jmp 0x14018b88a
mov rcx, rbx
mov rax, rdi
mov qword [0x1402cea78], rax
cmp word [rbx], si
jne 0x14018b8e7
mov edx, dword ds:[rcx + 0x3c]
lea eax, [rdx - 1]
cmp eax, 0x7ffffffd
ja 0x14018b8e7
cmp dword [rdx + rbx], 0x4550
jne 0x14018b8e7
add rdx, 0x88
add rdx, rbx
mov eax, dword [rdx]
test eax, eax
je 0x14018b8e7
cmp dword [rdx + 4], edi
je 0x14018b8e7
lea r8, ds:[rbx + rax]
mov word [rsp + 0x20], di
lea r9, str.NetApiBufferFree
mov rcx, rbx
call fcn.14017e4c0
jmp 0x14018b8ea
mov rax, rdi
mov qword [0x1402ceaa0], rax
lea rcx, [0x1402c66b8]
call sym.SystemInformer.exe_PhfSetEvent
jmp 0x14018b916
test byte [0x1402c66b8], 1
jne 0x14018b916
xor edx, edx
lea rcx, [0x1402c66b8]
call sym.SystemInformer.exe_PhfWaitForEvent
mov rax, qword [0x1402cea78]
nop dword [rax]
test rax, rax
je 0x14018bbf5
cmp qword [0x1402ceaa0], rdi
je 0x14018bbf5
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.0x14013d84a.0]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14018b98e
mov rax, qword [0x1402ceaa0]
call qword [case.0x14013d84a.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 [0x1402cea78]
mov r8d, 2
mov dword [rsp + 0x20], 0xffffffff
call qword [case.0x14013d84a.0]
test eax, eax
jne 0x14018bbde
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 0x14018bbde
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 0x14018ba33
call fcn.140141ea0
test r12, r12
je 0x14018bbd1
mov qword [rsp + 0x78], r14
mov r14d, edi
cmp dword [rsp + 0xb0], edi
jbe 0x14018bbb6
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 0x14018bb90
mov rax, rbp
mov ecx, ebp
and rax, 0xfffffffffffffff1
xorps xmm1, xmm1
and ecx, 0xf
je 0x14018baad
movdqu xmm0, xmmword ds:[rax]
pcmpeqw xmm0, xmm1
pmovmskb edx, xmm0
shr edx, cl
bsf ecx, edx
mov dword [rsp + 0xc8], ecx
je 0x14018baa9
mov eax, ecx
shr rax, 1
jmp 0x14018bafb
add rax, 0x10
movdqu xmm0, xmmword [rax]
pcmpeqw xmm0, xmm1
pmovmskb ecx, xmm0
bsf edx, ecx
mov dword [rsp + 0xc8], edx
jne 0x14018baed
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 0x14018bad0
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 [0x1402ca998]
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.14020af00
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.14020af00
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 0x14018bb90
call fcn.140141ea0
inc r14d
nop
cmp r14d, dword [rsp + 0xb0]
jb 0x14018ba60
mov rbp, qword [rsp + 0xb8]
lea rcx, [r12 - 0x10]
lock xadd dword [rcx + 8], r15d
mov r14, qword [rsp + 0x78]
cmp r15d, 1
jne 0x14018bbd1
call fcn.140141ea0
mov r12, qword [rsp + 0x80]
mov r15, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14018bbf5
mov rax, qword [0x1402ceaa0]
call qword [case.0x14013d84a.0]
mov eax, 0xc0000001
add rsp, 0x88
pop r13
pop rdi
pop rsi
pop rbx
ret