Function at 0x140061380
Capabilities:
Check for software breakpoints
Get system information on windows
Load ntoskrnl
Make suspicious ntquerysysteminformation call
Parse pe header
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x180
mov rax, qword [0x140221880]
xor rax, rsp
mov qword [rsp + 0x170], rax
xor edx, edx
lea rbx, str.ntoskrnl.exe
mov rcx, rbx
lea r8d, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov r12, rax
test rax, rax
je 0x140061458
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
test rax, rax
je 0x140061458
mov eax, 0x5a4d
cmp word [rbx], ax
jne 0x14006144f
movsxd rax, dword [rbx + 0x3c]
cmp dword [rax + rbx], 0x4550
jne 0x14006144f
mov eax, dword [rax + rbx + 0x88]
add rax, rbx
je 0x14006144f
mov r14d, dword [rax + 0x1c]
xor r13d, r13d
mov r15d, dword [rax + 0x24]
add r14, rbx
mov ebp, dword [rax + 0x20]
add r15, rbx
mov esi, dword [rax + 0x18]
add rbp, rbx
mov edi, r13d
test rsi, rsi
je 0x14006144f
nop dword [rax]
mov ecx, dword [rbp + rdi*4]
lea rdx, str.PsLookupProcessByProcessId
add rcx, rbx
call fcn.1401d2370
test eax, eax
je 0x14006148b
inc rdi
cmp rdi, rsi
jb 0x140061430
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.140190770
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
movzx eax, word [r15 + rdi*2]
mov rcx, rbx
mov r14d, dword [r14 + rax*4]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
add r14, rbx
je 0x140061458
lea rax, str.ntoskrnl.exe
sub r14, rbx
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x30], rax
call fcn.1400c03a0
mov r8d, r13d
mov dword [rsp + 0x28], r13d
nop dword [rax]
nop word [rax + rax]
xor edx, edx
lea r9, [rsp + 0x28]
lea ecx, [rdx + 0xb]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x1400614ee
mov r8d, dword [rsp + 0x28]
jmp 0x1400614d0
lea rdx, [rsp + 0x28]
call fcn.1400c0590
mov rbx, r13
nop dword [rax + rax]
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [rsp + 0x28]
xor ecx, ecx
mov r8d, 0x3000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, dword [rsp + 0x28]
lea r9, [rsp + 0x28]
mov rdx, rax
mov ecx, ntohs
mov rbx, rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
je 0x140061500
mov rdx, rbx
call fcn.1400c0770
mov rdi, r13
cmp qword [rbx], r13
jbe 0x140061640
mov rbp, qword [rsp + 0x30]
lea rsi, [rbx + 8]
nop word [rax + rax]
mov rcx, rsi
lea rax, [rsp + 0x40]
mov edx, 2
nop dword [rax]
lea rax, [rax + 0x80]
movups xmm0, xmmword [rcx]
movups xmm1, xmmword [rcx + 0x10]
lea rcx, [rcx + 0x80]
movups xmmword [rax - 0x80], xmm0
movups xmm0, xmmword [rcx - 0x60]
movups xmmword [rax - 0x70], xmm1
movups xmm1, xmmword [rcx - 0x50]
movups xmmword [rax - 0x60], xmm0
movups xmm0, xmmword [rcx - 0x40]
movups xmmword [rax - 0x50], xmm1
movups xmm1, xmmword [rcx - 0x30]
movups xmmword [rax - 0x40], xmm0
movups xmm0, xmmword [rcx - 0x20]
movups xmmword [rax - 0x30], xmm1
movups xmm1, xmmword [rcx - 0x10]
movups xmmword [rax - 0x20], xmm0
movups xmmword [rax - 0x10], xmm1
sub rdx, 1
jne 0x140061580
movups xmm0, xmmword [rcx]
lea r9, [rsp + 0x30]
movups xmm1, xmmword [rcx + 0x10]
mov rcx, qword [rcx + 0x20]
lea rdx, [rsp + 0x20]
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm1
mov qword [rax + 0x20], rcx
lea rcx, [rsp + 0x68]
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x30], rax
movzx eax, word [rsp + 0x66]
add rcx, rax
mov qword [rsp + 0x20], rcx
call fcn.1400c0960
movzx eax, word [rsp + 0x66]
lea rcx, [rsp + 0x68]
add rcx, rax
mov rdx, rbp
call fcn.1401af250
test eax, eax
je 0x140061656
inc rdi
add rsi, 0x128
cmp rdi, qword [rbx]
jb 0x140061570
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x140061458
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
test r14, r14
je 0x140061458
movzx eax, byte [r14 + r12]
lea r8, [r14 + r12]
cmp al, 0xcc
je 0x140061458
mov rcx, r8
cmp al, 0xe8
jne 0x1400616a7
movsxd rdx, dword [rcx + 1]
sub rdx, r8
add rdx, 4
add rdx, rcx
add rdx, r14
add rdx, r12
cmp byte [rdx], 0xcc
jne 0x1400616a7
cmp byte [rdx + 1], 0xcc
jne 0x1400616b7
movzx eax, byte [rcx + 1]
inc rcx
cmp al, 0xcc
jne 0x140061684
jmp 0x140061458
sub rdx, r12
add rdx, 1
je 0x140061458
movzx r8d, byte [rdx + r12]
lea rcx, [rdx + r12]
mov r9d, r13d
cmp r8b, 0xcc
je 0x14006171f
mov rax, rcx
nop dword [rax]
cmp r8b, 0x48
jne 0x1400616f2
cmp byte [rcx + 1], 0x8b
jne 0x1400616f2
cmp byte [rcx + 2], 5
je 0x14006170e
movzx r8d, byte [rax + 1]
inc rax
inc r9d
mov rcx, rax
cmp r8b, 0xcc
jne 0x1400616e0
mov eax, r13d
jmp 0x14006145a
mov r13d, dword [rcx + 3]
add r13, 7
movsxd rcx, r9d
add r13, rdx
add r13, rcx
mov eax, r13d
jmp 0x14006145a