Function at 0x140187920
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r13
sub rsp, 0x90
xor esi, esi
mov r13, rdx
test byte [0x1402c15e8], 1
mov qword [rax - 0x60], rsi
mov dword [rax + 8], esi
mov dword [rax + 0x18], esi
jne 0x140187ab6
lock bts qword [0x1402c15e8], 0x1f
nop word [rax + rax]
jb 0x140187a9f
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 0x1401879d2
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 0x1401879d2
cmp dword [0x1402baf40], 0x3e
jae 0x140187a91
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 0x140187a91
mov ebp, 0x5a4d
cmp word [rbx], bp
jne 0x140187a27
mov ecx, dword [rbx + 0x3c]
lea eax, [rcx - 1]
cmp eax, 0x7ffffffd
ja 0x140187a27
cmp dword [rcx + rbx], 0x4550
jne 0x140187a27
lea rdx, ds:[rbx + 0x88]
add rdx, rcx
mov eax, dword [rdx]
test eax, eax
je 0x140187a27
cmp dword [rdx + 4], esi
je 0x140187a27
lea r8, ds:[rbx + rax]
mov word [rsp + 0x20], si
lea r9, str.NetUserEnum
mov rcx, rbx
call fcn.140177a80
jmp 0x140187a2a
mov rax, rsi
mov qword [0x1402c9000], rax
cmp word [rbx], bp
jne 0x140187a87
mov ecx, dword ds:[rbx + 0x3c]
lea eax, [rcx - 1]
cmp eax, 0x7ffffffd
ja 0x140187a87
cmp dword [rcx + rbx], 0x4550
jne 0x140187a87
lea rdx, ds:[rbx + 0x88]
add rdx, rcx
mov eax, dword [rdx]
test eax, eax
je 0x140187a87
cmp dword [rdx + 4], esi
je 0x140187a87
lea r8, ds:[rbx + rax]
mov word [rsp + 0x20], si
lea r9, str.NetApiBufferFree
mov rcx, rbx
call fcn.140177a80
jmp 0x140187a8a
mov rax, rsi
mov qword [0x1402c9028], rax
lea rcx, [0x1402c15e8]
call sym.SystemInformer.exe_QifSetEvent
jmp 0x140187ab6
test byte [0x1402c15e8], 1
jne 0x140187ab6
xor edx, edx
lea rcx, [0x1402c15e8]
call sym.SystemInformer.exe_QifWaitForEvent
mov rax, qword [0x1402c9000]
nop dword [rax]
test rax, rax
je 0x140187d73
cmp qword [0x1402c9028], rsi
je 0x140187d73
mov qword [rsp + 0x38], rsi
lea rcx, [rsp + 0xd0]
mov qword [rsp + 0x30], rcx
lea r9, [rsp + 0x58]
xor edx, edx
lea rcx, [rsp + 0xc0]
mov qword [rsp + 0x28], rcx
xor ecx, ecx
mov dword [rsp + 0x20], 0xffffffff
lea r8d, [rdx + 2]
call qword [case.0x14013b5a0.0]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140187b2c
mov rax, qword [0x1402c9028]
call qword [case.0x14013b5a0.0]
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x38], rsi
lea rax, [rsp + 0xd0]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x58]
xor edx, edx
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x28], rax
xor ecx, ecx
mov rax, qword [0x1402c9000]
mov dword [rsp + 0x20], 0xffffffff
lea r8d, [rdx + 2]
call qword [case.0x14013b5a0.0]
test eax, eax
jne 0x140187d5c
lea rcx, [rsp + 0x60]
call sym.SystemInformer.exe_QiGetOwnTokenAttributes
xor r8d, r8d
mov dl, 1
mov rcx, qword [rax + 0x10]
call sym.SystemInformer.exe_QiGetSidFullName
mov rbx, rax
test rax, rax
je 0x140187d5c
mov qword [rsp + 0xc8], r12
mov rcx, rax
mov qword [rsp + 0x80], r15
call sym.SystemInformer.exe_QiGetBaseDirectory
mov r15d, 0xffffffff
lea rcx, [rbx - 0x10]
mov edx, r15d
mov r12, rax
lock xadd dword [rcx + 8], edx
cmp edx, 1
jne 0x140187bd0
call fcn.14013fb00
test r12, r12
je 0x140187d4c
mov qword [rsp + 0x88], r14
mov r14d, esi
cmp dword [rsp + 0xc0], esi
jbe 0x140187d2e
mov rax, qword ds:[rsp + 0x58]
mov ecx, r14d
mov rbp, qword [rax + rcx*8]
test rbp, rbp
je 0x140187d1c
mov rax, rbp
mov ecx, ebp
and rax, 0xfffffffffffffff1
xorps xmm1, xmm1
and ecx, 0xf
je 0x140187c3f
movdqu xmm0, xmmword [rax]
pcmpeqw xmm0, xmm1
pmovmskb edx, xmm0
shr edx, cl
bsf ecx, edx
mov dword [rsp + 0xd8], ecx
je 0x140187c3b
mov eax, ecx
shr rax, 1
jmp 0x140187c8b
add rax, 0x10
movdqu xmm0, xmmword [rax]
pcmpeqw xmm0, xmm1
pmovmskb ecx, xmm0
bsf edx, ecx
mov dword [rsp + 0xd8], edx
jne 0x140187c7d
nop word [rax + rax]
movdqu xmm0, xmmword [rax + 0x10]
add rax, 0x10
pcmpeqw xmm0, xmm1
pmovmskb ecx, xmm0
bsf edx, ecx
mov dword [rsp + 0xd8], edx
je 0x140187c60
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 [0x1402c4fb8]
add rbx, 2
add rbx, rdi
lea rcx, [rbx + 0x12]
call sym.SystemInformer.exe_QiCreateObject
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.1402074d0
add rbx, qword [r12]
mov r8, rdi
mov eax, dword [0x1402364fc]
mov rdx, rbp
lea rcx, [rbx + 2]
mov word [rbx], ax
call fcn.1402074d0
mov r9, qword ds:[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 0x140187d1c
call fcn.14013fb00
inc r14d
cmp r14d, dword [rsp + 0xc0]
jb 0x140187bf1
lea rcx, [r12 - 0x10]
lock xadd dword [rcx + 8], r15d
mov r14, qword [rsp + 0x88]
cmp r15d, 1
jne 0x140187d4c
call fcn.14013fb00
mov r12, qword [rsp + 0xc8]
mov r15, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140187d73
mov rax, qword [0x1402c9028]
call qword [case.0x14013b5a0.0]
mov eax, 0xc0000001
add rsp, 0x90
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret