Function at 0x140008ee0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x90]
sub rsp, 0x190
mov rax, qword [0x140026730]
xor rax, rsp
mov qword [rbp + 0x88], rax
xor r14d, r14d
mov dword [rsp + 0x58], r8d
mov rbx, rdx
mov qword [rbp - 0x78], rcx
mov rdi, rcx
mov dword [rsp + 0x5c], r9d
lea rsi, [0x1400272f0]
mov word [rsp + 0x3c], r14w
mov rcx, rsi
mov qword [rsp + 0x50], r14
lea r8, [rsp + 0x34]
mov dword [rsp + 0x34], r14d
lea rdx, [rsp + 0x50]
call fcn.1400096f0
lea r13d, [r14 + 1]
mov edx, eax
test eax, eax
jns 0x140008f9c
lock xadd dword [0x140027960], r13d
inc r13d
and r13d, 0x8000003f
jge 0x140008f79
dec r13d
or r13d, 0xffffffc0
inc r13d
lea rcx, [0x140027960]
movsxd rax, r13d
add rax, rax
mov dword [rcx + rax*8 + 8], 0x1291
mov dword [rcx + rax*8 + 0xc], edx
mov qword [rcx + rax*8 + 0x10], rdi
jmp 0x14000966c
lea rax, [rsp + 0x40]
mov dword [rbp - 0x60], 0x30
mov qword [rbp + 8], rax
xorps xmm0, xmm0
lea rax, [rbp]
mov qword [rbp - 0x58], rbx
mov qword [rbp + 0x30], rax
lea rax, [fcn.140007570]
mov qword [rbp + 0x28], rax
mov rax, qword [0x140026f48]
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x30]
mov qword [rbp + 0x48], rax
mov dword [rbp - 0x48], 0x40
mov qword [rbp - 0x50], r14
movdqu xmmword [rbp - 0x40], xmm0
mov dword [rbp + 0x20], 0x40
mov dword [rbp + 0x24], 7
mov dword [rbp - 0x30], 0x30
mov qword [rbp - 0x28], rdi
mov dword [rbp - 0x18], 0x50
mov qword [rbp - 0x20], r14
mov qword [rbp - 8], r14
mov dword [rbp + 0x40], 0xf001f
mov dword [rbp + 0x50], 0x10
cmp dword [rsp + 0x34], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x48], rax
lea rdi, [0x140027300]
lea rax, [rsp + 0x40]
mov r12d, r14d
mov qword [rsp + 0x40], rax
jbe 0x1400093f6
nop dword [rax + rax]
mov rax, qword [rsp + 0x50]
mov rbx, qword [0x140027300]
mov ecx, r12d
add rcx, rcx
mov r15, qword [rax + rcx*8 + 8]
cmp rbx, rdi
je 0x14000909f
nop dword [rax]
lea rcx, [rbx + 0x10]
movzx r8d, r13b
lea rdx, [r15 + 0x10]
call qword [sym.imp.ntdll.dll_RtlCompareUnicodeString]
nop dword [rax + rax]
test eax, eax
je 0x140009096
mov rbx, qword [rbx]
cmp rbx, rdi
jne 0x140009070
jmp 0x14000909f
test rbx, rbx
jne 0x1400093e1
mov rbx, qword [0x140027300]
cmp rbx, rdi
lea rdi, [r15 + 0x20]
je 0x1400090e5
nop
lea rcx, [rbx + 0x10]
movzx r8d, r13b
mov rdx, rdi
call qword [sym.imp.ntdll.dll_RtlCompareUnicodeString]
nop dword [rax + rax]
test eax, eax
je 0x1400090dc
mov rbx, qword [rbx]
lea rax, [0x140027300]
cmp rbx, rax
jne 0x1400090b0
jmp 0x1400090e5
test rbx, rbx
jne 0x1400093da
xor esi, esi
mov edx, r14d
cmp word [r15 + 0x10], 2
mov r14, rdi
jb 0x14000912c
mov rax, qword [r15 + 0x18]
mov edx, esi
cmp word [rax], 0x5f
sete dl
cmp word [rax], 0x2a
jne 0x14000911b
test byte [rbp + 0xf0], 2
jne 0x1400093d7
lea r14, [r15 + 0x20]
jmp 0x14000912c
mov eax, dword [rbp + 0xf0]
and al, 3
cmp al, r13b
je 0x1400093d7
mov dword [rbp + 0x54], 0x1000000
test edx, edx
je 0x140009157
cmp dword [rsp + 0x58], 0
jne 0x1400093d7
cmp dword [rsp + 0x5c], 0
je 0x1400093d7
mov dword [rbp + 0x54], 0x1100000
mov r14, rdi
mov qword [rbp - 0x50], r14
mov rax, qword gs:[0x60]
test dword [rax + 0xbc], 0x40000
je 0x1400092b9
mov rcx, qword [rbp - 0x58]
lea rax, [rsp + 0x38]
xor r9d, r9d
mov qword [rsp + 0x20], rax
lea r8, [rbp - 0x70]
mov dword [rbp - 0x70], 0
mov edx, r13d
mov qword [rbp - 0x68], rsi
mov dword [rsp + 0x38], esi
call qword [sym.imp.ntdll.dll_NtQueryObject]
nop dword [rax + rax]
cmp eax, 0xc0000004
jne 0x1400092b9
mov edx, dword [rsp + 0x38]
mov rax, qword [rbp - 0x50]
add edx, 2
mov dword [rsp + 0x38], edx
movzx eax, word [rax]
add eax, edx
xor edx, edx
mov dword [rsp + 0x38], eax
mov rcx, qword gs:[0x60]
mov r8d, eax
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov rbx, rax
mov rdi, rax
test rax, rax
je 0x1400092b9
mov r9d, dword [rsp + 0x38]
lea rax, [rsp + 0x38]
mov rcx, qword [rbp - 0x58]
mov r8, rbx
mov edx, r13d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtQueryObject]
nop dword [rax + rax]
test eax, eax
js 0x140009296
movups xmm0, xmmword [rdi]
mov rax, qword [rbp - 0x50]
lea rdx, [0x14001a928]
movd ecx, xmm0
movups xmmword [rsp + 0x78], xmm0
add cx, 2
add cx, word [rax]
mov word [rsp + 0x7a], cx
lea rcx, [rsp + 0x78]
call qword [sym.imp.ntdll.dll_RtlAppendUnicodeToString]
nop dword [rax + rax]
test eax, eax
js 0x14000929b
mov rdx, qword [rbp - 0x50]
lea rcx, [rsp + 0x78]
call qword [sym.imp.ntdll.dll_RtlAppendUnicodeStringToString]
nop dword [rax + rax]
test eax, eax
js 0x140009296
xor r9d, r9d
mov qword [rsp + 0x28], rsi
lea rdx, [rsp + 0x78]
mov dword [rsp + 0x20], esi
lea r8d, [r9 + 0x10]
lea ecx, [r9 + 0x26]
call qword [sym.imp.ntdll.dll_NtSystemDebugControl]
nop dword [rax + rax]
test rbx, rbx
je 0x1400092b9
mov rcx, qword gs:[0x60]
mov r8, rbx
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
mov dword [rsp + 0x28], 0x60
lea r9, [rbp + 0x60]
lea r8, [rbp - 0x60]
mov dword [rsp + 0x20], 5
mov edx, 0x120020
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntdll.dll_NtOpenFile]
nop dword [rax + rax]
test eax, eax
js 0x1400093d7
mov rcx, qword [rbp - 0x10]
mov qword [rbp - 0x20], r14
mov qword [rbp], r14
test rcx, rcx
je 0x14000931a
movzx eax, word [rcx + 2]
movzx edi, ax
and di, 8
or ax, 8
mov word [rsp + 0x3c], di
mov word [rcx + 2], ax
jmp 0x14000931f
movzx edi, word [rsp + 0x3c]
mov rcx, qword [rsp + 0x60]
lea rdx, [rbp + 0x20]
or rcx, r13
call qword [sym.imp.ntdll.dll_LdrVerifyImageMatchesChecksumEx]
nop dword [rax + rax]
mov rdx, qword [rbp - 0x10]
mov ebx, eax
test rdx, rdx
je 0x140009351
movzx ecx, di
xor cx, word [rdx + 2]
and cx, 8
xor word [rdx + 2], cx
test eax, eax
jns 0x1400093a7
mov byte [rsp + 0x30], r13b
cmp eax, 0xc0000428
jne 0x14000939e
mov rcx, qword [rsp + 0x60]
lea rdx, [rsp + 0x30]
call qword [sym.imp.ntdll.dll_RtlAppxIsFileOwnedByTrustedInstaller]
nop dword [rax + rax]
test eax, eax
js 0x140009382
cmp byte [rsp + 0x30], 0
je 0x1400093c6
lea rdx, str.Verification_of_a_KnownDLL_failed.
lea rcx, [rbp + 0x10]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
nop dword [rax + rax]
jmp 0x1400096b5
cmp eax, 0xc0000035
jne 0x140009382
jmp 0x1400093c6
mov eax, 0x2000
test word [rbp + 0x58], ax
je 0x140009699
mov rcx, qword [rbp + 0x38]
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
xor r14d, r14d
lea rdi, [0x140027300]
inc r12d
cmp r12d, dword [rsp + 0x34]
jb 0x140009050
lea rsi, [0x1400272f0]
mov rcx, qword gs:[0x60]
xor edx, edx
mov r8, qword [rsp + 0x50]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
mov r15, qword [rsp + 0x40]
lea rax, [rsp + 0x40]
xor ecx, ecx
mov qword [rsp + 0x50], rcx
mov r14d, ecx
mov dword [rsp + 0x34], ecx
cmp r15, rax
je 0x14000966a
nop word [rax + rax]
mov rbx, qword [0x1400272f0]
mov r12, r15
mov rdi, r15
mov r15, qword [r15]
cmp rbx, rsi
je 0x1400094cc
nop word [rax + rax]
movups xmm0, xmmword [rbx + 0x10]
movups xmmword [rsp + 0x68], xmm0
cmp cx, word [rbx + 0x10]
jae 0x140009497
mov rax, qword [rbx + 0x18]
movzx ecx, word [rax]
cmp cx, 0x5f
je 0x140009482
cmp cx, 0x2a
jne 0x140009497
add qword [rsp + 0x70], 2
mov eax, 0xfffe
add word [rsp + 0x68], ax
add word [rsp + 0x6a], ax
movzx r8d, r13b
lea rdx, [rdi + 0x10]
lea rcx, [rsp + 0x68]
call qword [sym.imp.ntdll.dll_RtlCompareUnicodeString]
nop dword [rax + rax]
test eax, eax
je 0x1400095a2
mov rbx, qword [rbx]
lea rax, [0x1400272f0]
mov ecx, 0
cmp rbx, rax
jne 0x140009460
inc r14d
mov dword [rsp + 0x34], r14d
lea rax, [rsp + 0x40]
mov ecx, 0
lea rsi, [0x1400272f0]
cmp r15, rax
jne 0x140009440
test r14d, r14d
je 0x14000966a
lea r8, [rsp + 0x34]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x40]
call fcn.1400096f0
mov rcx, qword [rsp + 0x40]
mov edx, eax
mov r8, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
cmp qword [rcx + 8], rax
jne 0x140009663
lea rax, [rsp + 0x40]
cmp qword [r8], rax
jne 0x140009663
mov qword [r8], rcx
lea rsi, [0x1400272f0]
mov qword [rcx + 8], r8
mov rax, qword [0x1400272f0]
mov r9, qword [0x1400272f8]
cmp qword [rax + 8], rsi
jne 0x140009663
cmp qword [r9], rsi
jne 0x140009663
mov rax, qword [rcx]
cmp qword [rax + 8], rcx
jne 0x140009663
cmp qword [r8], rcx
jne 0x140009663
mov qword [r9], rcx
mov rax, qword [rcx + 8]
mov qword [0x1400272f8], rax
mov rax, qword [rcx + 8]
mov qword [rax], rsi
mov qword [rcx + 8], r9
test edx, edx
js 0x140009620
xor r14d, r14d
jmp 0x14000901f
mov rcx, qword [r12]
mov rax, qword [rdi + 8]
cmp qword [rcx + 8], rdi
jne 0x140009663
cmp qword [rax], rdi
jne 0x140009663
mov qword [rax], rcx
mov qword [rcx + 8], rax
lea rcx, [rdi + 0x20]
call qword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
nop dword [rax + rax]
mov r8, qword [rdi + 0x30]
test r8, r8
je 0x1400095f8
mov rcx, qword gs:[0x60]
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
mov rcx, qword gs:[0x60]
mov r8, rdi
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
mov r14d, dword [rsp + 0x34]
jmp 0x1400094d4
lock xadd dword [0x140027960], r13d
inc r13d
and r13d, 0x8000003f
jge 0x14000963f
dec r13d
or r13d, 0xffffffc0
inc r13d
mov r8, qword [rbp - 0x78]
lea rcx, [0x140027960]
movsxd rax, r13d
add rax, rax
mov dword [rcx + rax*8 + 8], 0x13e1
mov dword [rcx + rax*8 + 0xc], edx
mov qword [rcx + rax*8 + 0x10], r8
jmp 0x14000966c
mov ecx, 3
int 0x29
mov edx, ecx
mov eax, edx
mov rcx, qword [rbp + 0x88]
xor rcx, rsp
call fcn.140010a60
mov rbx, qword [rsp + 0x1e0]
add rsp, 0x190
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea rdx, str.Non_DLL_file_included_in_KnownDLL_list.
lea rcx, [rbp + 0x10]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
nop dword [rax + rax]
mov ebx, 0xc000036f
mov edx, 5
mov qword [rbp + 0x80], r14
lea rax, [rbp + 0x10]
mov qword [rbp + 0x70], rax
lea rcx, [rbp + 0x70]
movsxd rax, ebx
lea r8d, [rdx - 2]
mov qword [rbp + 0x78], rax
call fcn.1400179ac
int3