Function at 0x140060830
Capabilities:
Enumerate pe sections
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], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x90]
sub rsp, 0x190
mov rax, qword [0x140221880]
xor rax, rsp
mov qword [rbp + 0x80], rax
xor edx, edx
lea rdi, str.ntoskrnl.exe
mov rcx, rdi
lea r8d, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x140060fef
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor edi, edi
mov ebx, 0x5a4d
mov rsi, rax
test rax, rax
je 0x140060913
cmp word [rax], bx
jne 0x140060905
movsxd rax, dword [rax + 0x3c]
cmp dword [rax + rsi], 0x4550
jne 0x140060905
mov eax, dword [rax + rsi + 0x88]
add rax, rsi
je 0x140060905
mov r12d, dword [rax + 0x1c]
mov ebx, edi
mov r13d, dword [rax + 0x24]
add r12, rsi
mov r15d, dword [rax + 0x20]
add r13, rsi
mov r14d, dword [rax + 0x18]
add r15, rsi
test r14, r14
je 0x140060905
mov ecx, dword [r15 + rbx*4]
lea rdx, str.NtCreateFile
add rcx, rsi
call fcn.1401d2370
test eax, eax
je 0x140060ae8
inc rbx
cmp rbx, r14
jb 0x1400608e2
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ebx, 0x5a4d
lea r12, str.ntoskrnl.exe
mov qword [rsp + 0x20], rdi
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x14006099c
cmp word [rax], bx
jne 0x140060993
movsxd rax, dword [rax + 0x3c]
cmp dword [rax + rsi], 0x4550
jne 0x140060993
mov eax, dword [rax + rsi + 0x88]
add rax, rsi
je 0x140060993
mov r12d, dword [rax + 0x1c]
mov rbx, rdi
mov r13d, dword [rax + 0x24]
add r12, rsi
mov r15d, dword [rax + 0x20]
add r13, rsi
mov r14d, dword [rax + 0x18]
add r15, rsi
test r14, r14
je 0x140060993
nop
mov ecx, dword [r15 + rbx*4]
lea rdx, str.NtCreateEvent
add rcx, rsi
call fcn.1401d2370
test eax, eax
je 0x140060cd6
inc rbx
cmp rbx, r14
jb 0x140060970
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov r15, rdi
mov qword [rsp + 0x40], rdi
cmp qword [rsp + 0x20], 0
je 0x140060fef
test r15, r15
je 0x140060fef
lea rcx, [0x1401fded8]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x140060a35
mov eax, 0x5a4d
cmp word [rsi], ax
jne 0x140060a35
movsxd rax, dword [rsi + 0x3c]
cmp dword [rax + rsi], 0x4550
jne 0x140060a35
mov eax, dword [rax + rsi + 0x88]
add rax, rsi
je 0x140060a35
mov r12d, dword [rax + 0x1c]
mov rbx, rdi
mov r13d, dword [rax + 0x24]
add r12, rsi
mov r15d, dword [rax + 0x20]
add r13, rsi
mov r14d, dword [rax + 0x18]
add r15, rsi
test r14, r14
je 0x140060a35
mov ecx, dword [r15 + rbx*4]
lea rdx, str.NtCreateFile
add rcx, rsi
call fcn.1401d2370
test eax, eax
je 0x140060ebc
inc rbx
cmp rbx, r14
jb 0x140060a12
mov r14d, 0xffffffff
mov r12d, r14d
lea rcx, [0x1401fded8]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x140060f08
mov eax, 0x5a4d
cmp word [rsi], ax
jne 0x140060f08
movsxd rax, dword [rsi + 0x3c]
cmp dword [rax + rsi], 0x4550
jne 0x140060f08
mov eax, dword [rax + rsi + 0x88]
add rax, rsi
je 0x140060f08
mov ecx, dword [rax + 0x1c]
mov rbx, rdi
mov r15d, dword [rax + 0x20]
add rcx, rsi
mov r13d, dword [rax + 0x18]
add r15, rsi
mov qword [rsp + 0x48], rcx
mov ecx, dword [rax + 0x24]
add rcx, rsi
mov qword [rsp + 0x28], rcx
test r13, r13
je 0x140060f08
nop dword [rax]
nop word [rax + rax]
mov ecx, dword [r15 + rbx*4]
lea rdx, str.NtCreateEvent
add rcx, rsi
call fcn.1401d2370
test eax, eax
je 0x140060ee6
inc rbx
cmp rbx, r13
jb 0x140060ac0
jmp 0x140060f08
movzx eax, word [r13 + rbx*2]
mov rcx, rsi
mov r12d, dword [r12 + rax*4]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
add r12, rsi
je 0x14006090e
sub r12, rsi
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x20], r12
lea r12, str.ntoskrnl.exe
mov qword [rsp + 0x40], r12
call fcn.1400c03a0
mov r8d, edi
mov dword [rsp + 0x38], edi
nop dword [rax]
xor edx, edx
lea r9, [rsp + 0x38]
lea ecx, [rdx + 0xb]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x140060b4e
mov r8d, dword [rsp + 0x38]
jmp 0x140060b30
lea rdx, [rsp + 0x38]
call fcn.1400c0590
mov rbx, rdi
nop dword [rax + rax]
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [rsp + 0x38]
xor ecx, ecx
mov r8d, 0x3000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, dword [rsp + 0x38]
lea r9, [rsp + 0x38]
mov rdx, rax
mov ecx, ntohs
mov rbx, rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
je 0x140060b60
mov rdx, rbx
call fcn.1400c0770
mov r14, rdi
cmp qword [rbx], rdi
jbe 0x140060ca0
mov r15, qword [rsp + 0x40]
lea rsi, [rbx + 8]
nop word [rax + rax]
mov rax, rsi
lea rcx, [rsp + 0x50]
mov edx, 2
nop dword [rax]
lea rcx, [rcx + 0x80]
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
lea rax, [rax + 0x80]
movups xmmword [rcx - 0x80], xmm0
movups xmm0, xmmword [rax - 0x60]
movups xmmword [rcx - 0x70], xmm1
movups xmm1, xmmword [rax - 0x50]
movups xmmword [rcx - 0x60], xmm0
movups xmm0, xmmword [rax - 0x40]
movups xmmword [rcx - 0x50], xmm1
movups xmm1, xmmword [rax - 0x30]
movups xmmword [rcx - 0x40], xmm0
movups xmm0, xmmword [rax - 0x20]
movups xmmword [rcx - 0x30], xmm1
movups xmm1, xmmword [rax - 0x10]
movups xmmword [rcx - 0x20], xmm0
movups xmmword [rcx - 0x10], xmm1
sub rdx, 1
jne 0x140060be0
movups xmm0, xmmword [rax]
lea r9, [rsp + 0x48]
movups xmm1, xmmword [rax + 0x10]
mov rax, qword [rax + 0x20]
lea rdx, [rsp + 0x40]
movups xmmword [rcx], xmm0
movups xmmword [rcx + 0x10], xmm1
mov qword [rcx + 0x20], rax
lea rcx, [rsp + 0x78]
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x48], rax
movzx eax, word [rsp + 0x76]
add rcx, rax
mov qword [rsp + 0x40], rcx
call fcn.1400c0960
movzx eax, word [rsp + 0x76]
lea rcx, [rsp + 0x78]
add rcx, rax
mov rdx, r15
call fcn.1401af250
test eax, eax
je 0x140060cbb
inc r14
add rsi, 0x128
cmp r14, qword [rbx]
jb 0x140060bd0
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov ebx, 0x5a4d
jmp 0x14006091a
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov ebx, 0x5a4d
jmp 0x14006091f
movzx eax, word [r13 + rbx*2]
mov rcx, rsi
mov r15d, dword [r12 + rax*4]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
add r15, rsi
je 0x14006099c
sub r15, rsi
lea rax, str.ntoskrnl.exe
lea rdx, [rsp + 0x48]
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x48], rax
call fcn.1400c03a0
mov r8d, edi
mov dword [rsp + 0x38], edi
nop word [rax + rax]
xor edx, edx
lea r9, [rsp + 0x38]
lea ecx, [rdx + 0xb]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x140060d3e
mov r8d, dword [rsp + 0x38]
jmp 0x140060d20
lea rdx, [rsp + 0x38]
call fcn.1400c0590
mov r14, rdi
nop dword [rax + rax]
xor edx, edx
mov r8d, 0x8000
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [rsp + 0x38]
xor ecx, ecx
mov r8d, 0x3000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, dword [rsp + 0x38]
lea r9, [rsp + 0x38]
mov rdx, rax
mov ecx, ntohs
mov r14, rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
je 0x140060d50
mov rdx, r14
call fcn.1400c0770
cmp qword [r14], 0
mov rbx, rdi
jbe 0x140060e90
mov r12, qword [rsp + 0x48]
lea rsi, [r14 + 8]
nop word [rax + rax]
mov rcx, rsi
lea rax, [rsp + 0x50]
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 0x140060dd0
movups xmm0, xmmword [rcx]
lea r9, [rsp + 0x48]
movups xmm1, xmmword [rcx + 0x10]
mov rcx, qword [rcx + 0x20]
lea rdx, [rsp + 0x28]
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm1
mov qword [rax + 0x20], rcx
lea rcx, [rsp + 0x78]
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x48], rax
movzx eax, word [rsp + 0x76]
add rcx, rax
mov qword [rsp + 0x28], rcx
call fcn.1400c0960
movzx eax, word [rsp + 0x76]
lea rcx, [rsp + 0x78]
add rcx, rax
mov rdx, r12
call fcn.1401af250
test eax, eax
je 0x140060ea6
inc rbx
add rsi, 0x128
cmp rbx, qword [r14]
jb 0x140060dc0
xor edx, edx
mov r8d, 0x8000
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x14006099c
xor edx, edx
mov r8d, 0x8000
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x1400609a4
movzx eax, word [r13 + rbx*2]
mov r12d, dword [r12 + rax*4]
add r12, rsi
je 0x140060a35
mov r12d, dword [r12 + 4]
mov r14d, 0xffffffff
test r12d, r12d
cmovs r12d, r14d
jmp 0x140060a3e
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x48]
movzx eax, word [rax + rbx*2]
mov eax, dword [rcx + rax*4]
add rax, rsi
je 0x140060f08
mov eax, dword [rax + 4]
test eax, eax
cmovs eax, r14d
mov r14d, eax
cmp r12d, 0xffffffff
je 0x140060fef
cmp r14d, 0xffffffff
je 0x140060fef
mov r13, qword [rsp + 0x30]
mov esi, edi
movsxd r15, dword [r13 + 0x3c]
add r15, r13
movzx eax, word [r15 + 0x14]
lea rbx, [r15 + 0x18]
add rbx, rax
cmp di, word [r15 + 6]
jae 0x140060ff1
nop dword [rax]
nop word [rax + rax]
mov r8d, 8
lea rdx, [0x1401ff368]
mov rcx, rbx
call fcn.1401d22e0
test eax, eax
je 0x140060f7a
movzx eax, word [r15 + 6]
add rbx, 0x28
inc esi
cmp esi, eax
jl 0x140060f50
jmp 0x140060ff1
cmp dword [rbx + 0x14], 0
je 0x140060ff1
cmp dword [rbx + 0x10], 0
je 0x140060ff1
mov r10d, dword [rbx + 8]
lea r8d, [r12*4]
mov rsi, qword [rsp + 0x40]
movsxd r9, r14d
lea r14d, [r14*4]
movsxd r11, r12d
nop word [rax + rax]
cmp r8d, r14d
mov ecx, r14d
mov eax, r10d
cmovg ecx, r8d
sub eax, ecx
cmp edi, eax
jae 0x140060ff1
mov eax, dword [rbx + 0xc]
add eax, edi
mov edx, eax
lea rax, [rax + r11*4]
mov ecx, dword [rax + r13]
cmp rcx, qword [rsp + 0x20]
jne 0x140060fe6
lea rax, [rdx + r9*4]
mov ecx, dword [rax + r13]
cmp rcx, rsi
je 0x140060fea
inc edi
jmp 0x140060fb0
mov rax, rdx
jmp 0x140060ff1
xor eax, eax
mov rcx, qword [rbp + 0x80]
xor rcx, rsp
call fcn.140190770
lea r11, [rsp + 0x190]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret