Function at 0x140061030
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 r13, rax
test rax, rax
je 0x140061108
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
test rax, rax
je 0x140061108
mov eax, 0x5a4d
cmp word [rbx], ax
jne 0x1400610ff
movsxd rax, dword [rbx + 0x3c]
cmp dword [rax + rbx], 0x4550
jne 0x1400610ff
mov eax, dword [rax + rbx + 0x88]
add rax, rbx
je 0x1400610ff
mov r15d, dword [rax + 0x1c]
xor esi, esi
mov r12d, dword [rax + 0x24]
add r15, rbx
mov r14d, dword [rax + 0x20]
add r12, rbx
mov ebp, dword [rax + 0x18]
add r14, rbx
mov edi, esi
test rbp, rbp
je 0x1400610ff
nop dword [rax + rax]
mov ecx, dword [r14 + rdi*4]
lea rdx, str.PsGetProcessId
add rcx, rbx
call fcn.1401d2370
test eax, eax
je 0x14006113b
inc rdi
cmp rdi, rbp
jb 0x1400610e0
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 [r12 + rdi*2]
mov rcx, rbx
mov r14d, dword [r15 + rax*4]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
add r14, rbx
je 0x140061108
lea rax, str.ntoskrnl.exe
sub r14, rbx
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x30], rax
call fcn.1400c03a0
mov r8d, esi
mov dword [rsp + 0x28], esi
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 0x14006119e
mov r8d, dword [rsp + 0x28]
jmp 0x140061180
lea rdx, [rsp + 0x28]
call fcn.1400c0590
mov rbx, rsi
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 0x1400611b0
mov rdx, rbx
call fcn.1400c0770
mov rdi, rsi
cmp qword [rbx], rsi
jbe 0x1400612f0
mov r15, qword [rsp + 0x30]
lea rbp, [rbx + 8]
nop word [rax + rax]
mov rcx, rbp
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 0x140061230
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, r15
call fcn.1401af250
test eax, eax
je 0x140061306
inc rdi
add rbp, 0x128
cmp rdi, qword [rbx]
jb 0x140061220
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x140061108
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
test r14, r14
je 0x140061108
movzx eax, byte [r14 + r13]
lea rcx, [r14 + r13]
cmp al, 0xc3
je 0x140061345
nop dword [rax]
cmp al, 0xcc
je 0x140061108
movzx eax, byte [rcx + 1]
inc rcx
inc esi
cmp al, 0xc3
jne 0x140061330
movsxd rax, esi
add rax, r14
mov eax, dword [rax + r13 - 4]
jmp 0x14006110a