Function at 0x1401b3980
Capabilities:
Access peb ldr_data
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
xor edi, edi
mov qword [rbp - 0x20], 0x46
mov esi, 0x80004005
mov qword [rbp - 0x50], rdi
lea rbx, str.Windows.System.Profile.SystemId.dll
mov qword [rbp - 0x48], rdi
lea rdx, [rbp - 0x20]
mov qword [rbp - 0x30], rdi
mov r13d, esi
mov qword [rbp - 0x28], rdi
mov qword [rbp - 0x18], rbx
mov r12, r8
mov r15, rcx
xor r14b, r14b
call fcn.14017ede0
mov r10, rax
test rax, rax
jne 0x1401b3a47
xor edx, edx
mov r8d, 0x800
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov r10, rax
test rax, rax
jne 0x1401b3a47
xor edx, edx
mov r8d, 0x200
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov r10, rax
test rax, rax
jne 0x1401b3a47
cmp dword [0x1402c0f40], 0x3e
nop
jae 0x1401b3a38
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov r10, rax
test rax, rax
jne 0x1401b3a47
mov ebx, 0x8007007e
lfence
mov eax, ebx
jmp 0x1401b4024
lea r8, str.Windows.System.Profile.SystemIdentification
mov dword [rbp - 0x20], 1
mov rdx, r8
mov rcx, r8
and rdx, 0xfffffffffffffff1
xorps xmm1, xmm1
and ecx, 0xf
je 0x1401b3a87
xorps xmm0, xmm0
pcmpeqw xmm0, xmmword [rdx]
pmovmskb eax, xmm0
shr eax, cl
bsf ecx, eax
mov dword [rbp + 0x58], ecx
je 0x1401b3a83
mov edx, ecx
shr rdx, 1
jmp 0x1401b3ac6
add rdx, 0x10
xorps xmm0, xmm0
pcmpeqw xmm0, xmmword [rdx]
pmovmskb eax, xmm0
bsf ecx, eax
mov dword [rbp + 0x58], ecx
jne 0x1401b3ab8
nop word [rax + rax]
add rdx, 0x10
movdqa xmm0, xmm1
pcmpeqw xmm0, xmmword [rdx]
pmovmskb eax, xmm0
bsf ecx, eax
mov dword [rbp + 0x58], ecx
je 0x1401b3aa0
sub rdx, r8
mov eax, ecx
sar rdx, 1
shr rax, 1
add rdx, rax
mov eax, 0x5a4d
mov dword [rbp - 0x1c], edx
mov qword [rbp - 0x10], r8
cmp word [r10], ax
jne 0x1401b3b6e
mov ecx, dword [r10 + 0x3c]
lea eax, [rcx - 1]
cmp eax, 0x7ffffffd
ja 0x1401b3b6e
cmp dword [rcx + r10], 0x4550
jne 0x1401b3b6e
lea rdx, [r10 + 0x88]
add rdx, rcx
mov eax, dword [rdx]
test eax, eax
je 0x1401b3b6e
cmp dword [rdx + 4], edi
je 0x1401b3b6e
lea r8, [r10 + rax]
mov word [rsp + 0x20], di
lea r9, str.DllGetActivationFactory
mov rcx, r10
call fcn.14017f180
test rax, rax
je 0x1401b3b6e
lea rdx, [rbp + 0x58]
lea rcx, [rbp - 0x20]
call qword [case.0x14013dbaa.0]
mov ebx, eax
test eax, eax
jne 0x1401b3b73
mov rcx, qword [rbp + 0x58]
lea r8, [rbp - 0x50]
lea rdx, [0x1402904d8]
mov rax, qword [rcx]
mov rax, qword [rax]
call qword [case.0x14013dbaa.0]
mov rcx, qword [rbp + 0x58]
mov ebx, eax
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x14013dbaa.0]
jmp 0x1401b3b73
mov ebx, 0x8007007f
test ebx, ebx
jns 0x1401b3b85
lfence
mov eax, ebx
jmp 0x1401b4024
mov rbx, qword ds:[r15 + 0x10]
lea r8, [rbp - 0x48]
mov edi, dword [0x1402ced08]
mov rcx, rbx
mov edx, 0xe
call qword [sym.imp.ntdll.dll_NtOpenProcessToken]
cmp eax, 0xc0000022
jne 0x1401b3bc5
cmp edi, 5
jne 0x1401b3be4
lea r8, ds:[rbp - 0x48]
mov edx, 0xe
mov rcx, rbx
call fcn.140178520
test eax, eax
js 0x1401b3be4
mov rdx, qword [rbp - 0x48]
mov rcx, 0xfffffffffffffffe
call sym.SystemInformer.exe_PhImpersonateToken
mov r14d, eax
shr r14d, 0x1f
xor r14b, 1
mov rax, qword ds:[rbp - 0x50]
mov rbx, qword [rax]
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x110]
call qword [sym.imp.ntdll.dll_RtlEnterCriticalSection]
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov r8, qword [rcx + 0x18]
mov rcx, qword [r8 + 0x10]
add r8, 0x10
cmp rcx, r8
je 0x1401b3c45
mov rdx, qword [rcx + 0x30]
cmp rbx, rdx
jb 0x1401b3c3d
mov eax, dword [rcx + 0x40]
add rax, rdx
cmp rbx, rax
jb 0x1401b3d05
mov rcx, qword [rcx]
cmp rcx, r8
jne 0x1401b3c25
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x110]
call qword [sym.imp.ntdll.dll_RtlLeaveCriticalSection]
mov edi, esi
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x1401b3c7f
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x14013dbaa.0]
mov qword [rbp - 0x50], 0
mov rcx, qword [rbp - 0x48]
test rcx, rcx
je 0x1401b3cc3
test r14b, r14b
je 0x1401b3cb5
mov r9d, 8
mov qword [rbp + 0x58], 0
lea r8, [rbp + 0x58]
mov edx, 5
mov rcx, 0xfffffffffffffffe
call qword [sym.imp.ntdll.dll_NtSetInformationThread]
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.ntdll.dll_NtClose]
mov qword [rbp - 0x48], 0
test byte [0x1402c7d38], 1
jne 0x1401b3eb6
lock bts qword [0x1402c7d38], 0x1f
setb al
test al, al
jne 0x1401b3e9f
call fcn.1401499e0
lea rcx, [0x1402c7d38]
mov dword [0x1402cfa08], eax
call sym.SystemInformer.exe_PhfSetEvent
nop
jmp 0x1401b3eb6
test rcx, rcx
je 0x1401b3c45
mov rax, qword gs:[0x30]
mov rbx, rdx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x110]
call qword [sym.imp.ntdll.dll_RtlLeaveCriticalSection]
test rbx, rbx
je 0x1401b3c5f
lea r9, [0x1401b3880]
mov rcx, rbx
lea r8, [0x1402901b8]
lea rdx, str.api_ms_win_core_processthreads_l1_1_0.dll
call fcn.14017fb60
test eax, eax
js 0x1401b3c5f
lfence
lea r9, [0x1401b3900]
mov rcx, rbx
lea r8, [0x1402901e8]
lea rdx, str.api_ms_win_core_processthreads_l1_1_0.dll
call fcn.14017fb60
nop dword [rax]
test eax, eax
js 0x1401b3c5f
lfence
lea r9, [0x1401b38c0]
mov rcx, rbx
lea r8, str.GetCurrentThread
lea rdx, str.api_ms_win_core_processthreads_l1_1_0.dll
call fcn.14017fb60
test eax, eax
js 0x1401b3c5f
lfence
lea r9, [0x1401b3940]
mov rcx, rbx
lea r8, [0x140290210]
lea rdx, str.api_ms_win_core_processthreads_l1_1_0.dll
call fcn.14017fb60
test eax, eax
js 0x1401b3c5f
lfence
lea r9, [0x140191750]
mov rcx, rbx
lea r8, [0x140290200]
lea rdx, str.api_ms_win_core_handle_l1_1_0.dll
call fcn.14017fb60
nop dword [rax + rax]
test eax, eax
js 0x1401b3c5f
mov dl, 1
mov rcx, r15
call fcn.1401b37a0
test rax, rax
je 0x1401b3c5f
mov rcx, qword [rbp - 0x50]
lea rdx, [rbp - 0x40]
xor edi, edi
mov rax, qword [rcx]
mov rax, qword [rax + 0x30]
call qword [case.0x14013dbaa.0]
mov r13d, eax
test eax, eax
jne 0x1401b3e5a
mov rcx, qword ds:[rbp - 0x40]
call fcn.1401b3680
mov rcx, qword [rbp - 0x40]
mov qword [rbp - 0x30], rax
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x14013dbaa.0]
mov rcx, qword [rbp - 0x50]
lea r8, [rbp - 0x38]
xor edx, edx
mov rax, qword [rcx]
mov rax, qword [rax + 0x38]
call qword [case.0x14013dbaa.0]
mov esi, eax
test eax, eax
jne 0x1401b3c61
mov rcx, qword ds:[rbp - 0x38]
call fcn.1401b3680
mov rcx, qword [rbp - 0x38]
mov qword [rbp - 0x28], rax
mov rdx, qword [rcx]
mov rax, qword [rdx + 0x10]
call qword [case.0x14013dbaa.0]
jmp 0x1401b3c61
test byte [0x1402c7d38], 1
jne 0x1401b3eb6
xor edx, edx
lea rcx, [0x1402c7d38]
call sym.SystemInformer.exe_PhfWaitForEvent
mov ecx, dword [0x1402cfa08]
nop dword [rax]
cmp ecx, 0xffffffff
je 0x1401b3ecc
xor edx, edx
call fcn.140149ba0
mov r15, qword [rbp + 0x48]
mov eax, esi
shr eax, 0x1c
and eax, 1
mov qword [r12], 0
mov qword [r15], 0
test r13d, r13d
jne 0x1401b3ef8
mov rcx, qword [rbp - 0x30]
mov qword [r15], rcx
jmp 0x1401b3f92
mov r14d, eax
test eax, eax
je 0x1401b3f73
mov ecx, r13d
call fcn.1401776a0
mov ebx, eax
cmp eax, 0xc0000022
je 0x1401b3f43
nop dword [rax]
cmp eax, 0xc0000005
je 0x1401b3f43
and eax, 0xfff0000
cmp eax, 0x70000
jne 0x1401b3f38
movzx eax, bx
jmp 0x1401b3f4b
cmp eax, 0xb0000
jne 0x1401b3f4f
mov eax, ebx
jmp 0x1401b3f4b
mov ecx, ebx
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosErrorNoTeb]
test eax, eax
jne 0x1401b3f58
mov ecx, ebx
call sym.SystemInformer.exe_PhGetNtMessage
jmp 0x1401b3f5f
mov ecx, eax
call sym.SystemInformer.exe_PhGetWin32Message
mov qword [r15], rax
mov rcx, rax
test rax, rax
je 0x1401b3f73
cmp qword [rcx], 0
mov eax, r14d
jne 0x1401b3f92
movzx ecx, r13w
test ecx, ecx
jne 0x1401b3f87
nop dword [rax + rax]
call sym.SystemInformer.exe_PhGetNtMessage
jmp 0x1401b3f8c
call sym.SystemInformer.exe_PhGetWin32Message
mov qword [r15], rax
mov eax, r14d
test esi, esi
jne 0x1401b3f9f
mov rax, qword [rbp - 0x28]
jmp 0x1401b401e
nop
test eax, eax
je 0x1401b3ff8
mov ecx, esi
call fcn.1401776a0
mov ebx, eax
cmp eax, 0xc0000022
je 0x1401b3fd7
cmp eax, 0xc0000005
je 0x1401b3fd7
and eax, 0xfff0000
cmp eax, 0x70000
jne 0x1401b3fcc
movzx eax, bx
jmp 0x1401b3fdf
cmp eax, 0xb0000
jne 0x1401b3fe4
mov eax, ebx
jmp 0x1401b3fdf
mov ecx, ebx
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosErrorNoTeb]
nop
test eax, eax
jne 0x1401b3fed
mov ecx, ebx
call sym.SystemInformer.exe_PhGetNtMessage
jmp 0x1401b3ff4
mov ecx, eax
call sym.SystemInformer.exe_PhGetWin32Message
mov qword [r12], rax
mov rax, qword ds:[r12]
test rax, rax
je 0x1401b400b
cmp qword [rax], 0
jne 0x1401b4022
movzx ecx, si
test ecx, ecx
jne 0x1401b4019
call sym.SystemInformer.exe_PhGetNtMessage
jmp 0x1401b401e
call sym.SystemInformer.exe_PhGetWin32Message
mov qword [r12], rax
mov eax, edi
mov rbx, qword [rsp + 0xc0]
add rsp, 0x80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret