Function at 0x140005a30
Capabilities:
Get system information on windows
Load ntoskrnl
Make suspicious ntquerysysteminformation call
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x47]
sub rsp, 0xb0
mov rax, qword [0x140073060]
xor rax, rsp
mov qword [rbp + 0x3f], rax
mov r15d, 4
mov rax, qword gs:[0x58]
add r15, qword [rax]
xor r14d, r14d
mov eax, dword [r15]
cmp dword [0x140076060], eax
jle 0x140005bf1
lea rcx, [0x140076060]
call fcn.140017d80
cmp dword [0x140076060], 0xffffffff
jne 0x140005bf1
mov ebx, r14d
mov dword [rbp - 0x49], r14d
lea r9, [rbp - 0x49]
xor r8d, r8d
xor edx, edx
lea ecx, [rdx + 0xb]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x140005b06
nop dword [rax + rax]
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [rbp - 0x49]
xor ecx, ecx
lea r9d, [rcx + 4]
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
lea r9, [rbp - 0x49]
mov r8d, dword [rbp - 0x49]
mov rdx, rax
mov ecx, 0xb
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
je 0x140005ac0
test eax, eax
js 0x140005bca
mov edi, r14d
cmp dword [rbx], r14d
jbe 0x140005bca
nop word [rax + rax]
mov esi, edi
imul rax, rsi, 0x128
movzx ecx, word [rax + rbx + 0x2e]
add rcx, rax
lea rdx, [rbx + 0x30]
add rdx, rcx
mov qword [rbp - 0x41], r14
mov qword [rbp - 0x31], r14
mov qword [rbp - 0x29], 0xf
mov r8, 0xffffffffffffffff
nop
inc r8
cmp byte [rdx + r8], 0
jne 0x140005b50
lea rcx, [rbp - 0x41]
call fcn.140002810
lea rcx, [rbp - 0x41]
cmp qword [rbp - 0x29], 0x10
cmovae rcx, qword [rbp - 0x41]
lea rdx, str.ntoskrnl.exe
call fcn.140020974
test eax, eax
je 0x140005f5b
mov rdx, qword [rbp - 0x29]
cmp rdx, 0x10
jb 0x140005bc0
inc rdx
mov rcx, qword [rbp - 0x41]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005bbb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005ff0
call fcn.140017930
inc edi
cmp edi, dword [rbx]
jb 0x140005b20
mov r8d, 0x8000
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdi, r14
mov qword [0x140076180], rdi
lea rcx, [0x140076060]
call fcn.140017d20
movups xmm0, xmmword [0x14006b9a8]
movups xmmword [rbp + 0x1f], xmm0
movups xmm1, xmmword [0x14006b9b8]
movups xmmword [rbp + 0x2f], xmm1
movups xmm0, xmmword [str.xxxxxx________xxxxx________xxxx]
movups xmmword [rbp - 0x41], xmm0
movups xmm1, xmmword [0x14006b9d8]
movups xmmword [rbp - 0x31], xmm1
mov eax, dword [r15]
cmp dword [0x140076064], eax
jle 0x140005c63
lea rcx, [0x140076064]
call fcn.140017d80
cmp dword [0x140076064], 0xffffffff
jne 0x140005c63
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, str.ntoskrnl.exe
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov qword [0x140076140], rax
lea rcx, [0x140076064]
call fcn.140017d20
mov eax, dword [r15]
cmp dword [0x140076194], eax
jle 0x140005c9d
lea rcx, [0x140076194]
call fcn.140017d80
cmp dword [0x140076194], 0xffffffff
jne 0x140005c9d
mov rax, qword [0x140076140]
mov qword [0x140076080], rax
lea rcx, [0x140076194]
call fcn.140017d20
mov ecx, 0x5a4d
mov rax, qword [0x140076080]
cmp word [rax], cx
jne 0x140005fc5
mov eax, dword [r15]
cmp dword [0x140076148], eax
jle 0x140005cf7
lea rcx, [0x140076148]
call fcn.140017d80
cmp dword [0x140076148], 0xffffffff
jne 0x140005cf7
mov rax, qword [0x140076080]
movsxd rdx, dword [rax + 0x3c]
add rdx, qword [0x140076140]
mov qword [0x140076130], rdx
lea rcx, [0x140076148]
call fcn.140017d20
mov rax, qword [0x140076130]
cmp dword [rax], 0x4550
jne 0x140005fc5
mov rbx, qword [0x140076140]
mov r15d, dword [rax + 0x50]
lea rdi, [rbp - 0x21]
mov esi, 0x1f
nop
mov rcx, rdi
call fcn.1400116a0
add rdi, 2
sub rsi, 1
jne 0x140005d20
movzx eax, byte [rbp + 0x1f]
mov byte [rbp - 0x21], al
movzx eax, byte [rbp - 0x41]
mov byte [rbp - 0x20], al
movzx eax, byte [rbp + 0x20]
mov byte [rbp - 0x1f], al
movzx eax, byte [rbp - 0x40]
mov byte [rbp - 0x1e], al
movzx eax, byte [rbp + 0x21]
mov byte [rbp - 0x1d], al
movzx eax, byte [rbp - 0x3f]
mov byte [rbp - 0x1c], al
movzx eax, byte [rbp + 0x22]
mov byte [rbp - 0x1b], al
movzx eax, byte [rbp - 0x3e]
mov byte [rbp - 0x1a], al
movzx eax, byte [rbp + 0x23]
mov byte [rbp - 0x19], al
movzx eax, byte [rbp - 0x3d]
mov byte [rbp - 0x18], al
movzx eax, byte [rbp + 0x24]
mov byte [rbp - 0x17], al
movzx eax, byte [rbp - 0x3c]
mov byte [rbp - 0x16], al
movzx eax, byte [rbp + 0x25]
mov byte [rbp - 0x15], al
movzx eax, byte [rbp - 0x3b]
mov byte [rbp - 0x14], al
movzx eax, byte [rbp + 0x26]
mov byte [rbp - 0x13], al
movzx eax, byte [rbp - 0x3a]
mov byte [rbp - 0x12], al
movzx eax, byte [rbp + 0x27]
mov byte [rbp - 0x11], al
movzx eax, byte [rbp - 0x39]
mov byte [rbp - 0x10], al
movzx eax, byte [rbp + 0x28]
mov byte [rbp - 0xf], al
movzx eax, byte [rbp - 0x38]
mov byte [rbp - 0xe], al
movzx eax, byte [rbp + 0x29]
mov byte [rbp - 0xd], al
movzx eax, byte [rbp - 0x37]
mov byte [rbp - 0xc], al
movzx eax, byte [rbp + 0x2a]
mov byte [rbp - 0xb], al
movzx eax, byte [rbp - 0x36]
mov byte [rbp - 0xa], al
movzx eax, byte [rbp + 0x2b]
mov byte [rbp - 9], al
movzx eax, byte [rbp - 0x35]
mov byte [rbp - 8], al
movzx eax, byte [rbp + 0x2c]
mov byte [rbp - 7], al
movzx eax, byte [rbp - 0x34]
mov byte [rbp - 6], al
movzx eax, byte [rbp + 0x2d]
mov byte [rbp - 5], al
movzx eax, byte [rbp - 0x33]
mov byte [rbp - 4], al
movzx eax, byte [rbp + 0x2e]
mov byte [rbp - 3], al
movzx eax, byte [rbp - 0x32]
mov byte [rbp - 2], al
movzx eax, byte [rbp + 0x2f]
mov byte [rbp - 1], al
movzx eax, byte [rbp - 0x31]
mov byte [rbp], al
movzx eax, byte [rbp + 0x30]
mov byte [rbp + 1], al
movzx eax, byte [rbp - 0x30]
mov byte [rbp + 2], al
movzx eax, byte [rbp + 0x31]
mov byte [rbp + 3], al
movzx eax, byte [rbp - 0x2f]
mov byte [rbp + 4], al
movzx eax, byte [rbp + 0x32]
mov byte [rbp + 5], al
movzx eax, byte [rbp - 0x2e]
mov byte [rbp + 6], al
movzx eax, byte [rbp + 0x33]
mov byte [rbp + 7], al
movzx eax, byte [rbp - 0x2d]
mov byte [rbp + 8], al
movzx eax, byte [rbp + 0x34]
mov byte [rbp + 9], al
movzx eax, byte [rbp - 0x2c]
mov byte [rbp + 0xa], al
movzx eax, byte [rbp + 0x35]
mov byte [rbp + 0xb], al
movzx eax, byte [rbp - 0x2b]
mov byte [rbp + 0xc], al
movzx eax, byte [rbp + 0x36]
mov byte [rbp + 0xd], al
movzx eax, byte [rbp - 0x2a]
mov byte [rbp + 0xe], al
movzx eax, byte [rbp + 0x37]
mov byte [rbp + 0xf], al
movzx eax, byte [rbp - 0x29]
mov byte [rbp + 0x10], al
movzx eax, byte [rbp + 0x38]
mov byte [rbp + 0x11], al
movzx eax, byte [rbp - 0x28]
mov byte [rbp + 0x12], al
movzx eax, byte [rbp + 0x39]
mov byte [rbp + 0x13], al
movzx eax, byte [rbp - 0x27]
mov byte [rbp + 0x14], al
movzx eax, byte [rbp + 0x3a]
mov byte [rbp + 0x15], al
movzx eax, byte [rbp - 0x26]
mov byte [rbp + 0x16], al
movzx eax, byte [rbp + 0x3b]
mov byte [rbp + 0x17], al
movzx eax, byte [rbp - 0x25]
mov byte [rbp + 0x18], al
movzx eax, byte [rbp + 0x3c]
mov byte [rbp + 0x19], al
movzx eax, byte [rbp - 0x24]
mov byte [rbp + 0x1a], al
movzx eax, byte [rbp + 0x3d]
mov byte [rbp + 0x1b], al
movzx eax, byte [rbp - 0x23]
mov byte [rbp + 0x1c], al
lea r11, [r15 + rbx]
mov rax, r11
cmp r15, 0x1f
jb 0x140005f3d
lea r10, [r11 - 0x1f]
nop word [rax + rax]
mov r8, rbx
lea rcx, [rbp - 0x21]
nop word [rax + rax]
movzx r9d, word [rcx]
movzx edx, r9w
shr dx, 8
cmp dl, 0x3f
je 0x140005f2a
cmp byte [r8], r9b
jne 0x140005fb8
inc r8
add rcx, 2
lea rdx, [rbp + 0x1d]
cmp rcx, rdx
jne 0x140005f10
mov rax, rbx
cmp rax, r11
cmovne r14, rax
mov eax, r14d
sub eax, dword [0x140076140]
test r14, r14
je 0x140005fc5
add rax, qword [0x140076180]
jmp 0x140005fc7
imul rax, rsi, 0x128
mov rdi, qword [rax + rbx + 0x18]
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdx, qword [rbp - 0x29]
cmp rdx, 0x10
jb 0x140005bde
inc rdx
mov rcx, qword [rbp - 0x41]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005fae
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005ff0
call fcn.140017930
jmp 0x140005bde
cmp rbx, r10
je 0x140005f3d
inc rbx
jmp 0x140005f00
xor eax, eax
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.140017910
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
call fcn.140020c78
nop
int3