Function at 0x140184820
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 [0x1402bc348], 1
mov qword [rax - 0x60], rsi
mov dword [rax + 8], esi
mov dword [rax + 0x18], esi
jne 0x1401849b6
lock bts qword [0x1402bc348], 0x1f
nop word [rax + rax]
jb 0x14018499f
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 0x1401848d2
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 0x1401848d2
cmp dword [0x1402b5e88], 0x3e
jae 0x140184991
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 0x140184991
mov ebp, 0x5a4d
cmp word [rbx], bp
jne 0x140184927
mov ecx, dword [rbx + 0x3c]
lea eax, [rcx - 1]
cmp eax, 0x7ffffffd
ja 0x140184927
cmp dword [rcx + rbx], 0x4550
jne 0x140184927
lea rdx, ds:[rbx + 0x88]
add rdx, rcx
mov eax, dword [rdx]
test eax, eax
je 0x140184927
cmp dword [rdx + 4], esi
je 0x140184927
lea r8, ds:[rbx + rax]
mov word [rsp + 0x20], si
lea r9, str.NetUserEnum
mov rcx, rbx
call fcn.140174840
jmp 0x14018492a
mov rax, rsi
mov qword [0x1402c3d38], rax
cmp word [rbx], bp
jne 0x140184987
mov ecx, dword ds:[rbx + 0x3c]
lea eax, [rcx - 1]
cmp eax, 0x7ffffffd
ja 0x140184987
cmp dword [rcx + rbx], 0x4550
jne 0x140184987
lea rdx, ds:[rbx + 0x88]
add rdx, rcx
mov eax, dword [rdx]
test eax, eax
je 0x140184987
cmp dword [rdx + 4], esi
je 0x140184987
lea r8, ds:[rbx + rax]
mov word [rsp + 0x20], si
lea r9, str.NetApiBufferFree
mov rcx, rbx
call fcn.140174840
jmp 0x14018498a
mov rax, rsi
mov qword [0x1402c3d60], rax
lea rcx, [0x1402bc348]
call sym.SystemInformer.exe_PhfSetEvent
jmp 0x1401849b6
test byte [0x1402bc348], 1
jne 0x1401849b6
xor edx, edx
lea rcx, [0x1402bc348]
call sym.SystemInformer.exe_PhfWaitForEvent
mov rax, qword [0x1402c3d38]
nop dword [rax]
test rax, rax
je 0x140184c73
cmp qword [0x1402c3d60], rsi
je 0x140184c73
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 [str.PB__]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140184a2c
mov rax, qword [0x1402c3d60]
call qword [str.PB__]
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 [0x1402c3d38]
mov dword [rsp + 0x20], 0xffffffff
lea r8d, [rdx + 2]
call qword [str.PB__]
test eax, eax
jne 0x140184c5c
lea rcx, [rsp + 0x60]
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 0x140184c5c
mov qword [rsp + 0xc8], r12
mov rcx, rax
mov qword [rsp + 0x80], 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 0x140184ad0
call fcn.14013d2a0
test r12, r12
je 0x140184c4c
mov qword [rsp + 0x88], r14
mov r14d, esi
cmp dword [rsp + 0xc0], esi
jbe 0x140184c2e
mov rax, qword ds:[rsp + 0x58]
mov ecx, r14d
mov rbp, qword [rax + rcx*8]
test rbp, rbp
je 0x140184c1c
mov rax, rbp
mov ecx, ebp
and rax, 0xfffffffffffffff1
xorps xmm1, xmm1
and ecx, 0xf
je 0x140184b3f
movdqu xmm0, xmmword [rax]
pcmpeqw xmm0, xmm1
pmovmskb edx, xmm0
shr edx, cl
bsf ecx, edx
mov dword [rsp + 0xd8], ecx
je 0x140184b3b
mov eax, ecx
shr rax, 1
jmp 0x140184b8b
add rax, 0x10
movdqu xmm0, xmmword [rax]
pcmpeqw xmm0, xmm1
pmovmskb ecx, xmm0
bsf edx, ecx
mov dword [rsp + 0xd8], edx
jne 0x140184b7d
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 0x140184b60
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 [0x1402bfcf8]
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.1401e3aa0
add rbx, qword [r12]
mov r8, rdi
mov eax, dword [0x1402323bc]
mov rdx, rbp
lea rcx, [rbx + 2]
mov word [rbx], ax
call fcn.1401e3aa0
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 0x140184c1c
call fcn.14013d2a0
inc r14d
cmp r14d, dword [rsp + 0xc0]
jb 0x140184af1
lea rcx, [r12 - 0x10]
lock xadd dword [rcx + 8], r15d
mov r14, qword [rsp + 0x88]
cmp r15d, 1
jne 0x140184c4c
call fcn.14013d2a0
mov r12, qword [rsp + 0xc8]
mov r15, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140184c73
mov rax, qword [0x1402c3d60]
call qword [str.PB__]
mov eax, 0xc0000001
add rsp, 0x90
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret