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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r14
lea rbp, [rax - 0x5f]
sub rsp, 0x90
mov rax, qword [0x1406ce080]
xor rax, rsp
mov qword [rbp + 0x37], rax
movups xmm0, xmmword [0x1406be208]
movups xmmword [rbp + 0x1f], xmm0
mov al, byte [0x1406be218]
mov byte [rbp + 0x2f], al
movups xmm0, xmmword [str.xxx____x____xxxx]
movups xmmword [rbp - 0x21], xmm0
mov al, byte [0x1406be230]
mov byte [rbp - 0x11], al
mov r12d, 4
mov rax, qword gs:[0x58]
mov rbx, qword [rax]
mov eax, dword [r12 + rbx]
cmp dword [0x1406d01c0], eax
jle 0x1405f394d
lea rcx, [0x1406d01c0]
call fcn.140657238
cmp dword [0x1406d01c0], 0xffffffff
jne 0x1405f394d
mov eax, dword [r12 + rbx]
cmp dword [0x1406d00ac], eax
jle 0x1405f37e7
lea rcx, [0x1406d00ac]
call fcn.140657238
cmp dword [0x1406d00ac], 0xffffffff
jne 0x1405f37e7
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [0x14066aa98]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov qword [0x1406cffc8], rax
lea rcx, [0x1406d00ac]
call fcn.1406571d8
mov eax, dword [r12 + rbx]
cmp dword [0x1406d00a4], eax
jle 0x1405f3822
lea rcx, [0x1406d00a4]
call fcn.140657238
cmp dword [0x1406d00a4], 0xffffffff
jne 0x1405f3822
mov rax, qword [0x1406cffc8]
mov qword [0x1406d0038], rax
lea rcx, [0x1406d00a4]
call fcn.1406571d8
mov ecx, 0x5a4d
mov rax, qword [0x1406d0038]
cmp word [rax], cx
jne 0x1405f3932
mov eax, dword [r12 + rbx]
cmp dword [0x1406cff68], eax
jle 0x1405f387d
lea rcx, [0x1406cff68]
call fcn.140657238
cmp dword [0x1406cff68], 0xffffffff
jne 0x1405f387d
mov rax, qword [0x1406d0038]
movsxd rcx, dword [rax + 0x3c]
add rcx, qword [0x1406cffc8]
mov qword [0x1406d0220], rcx
lea rcx, [0x1406cff68]
call fcn.1406571d8
mov rax, qword [0x1406d0220]
cmp dword [rax], 0x4550
jne 0x1405f3932
mov r8d, dword [rax + 0x50]
mov rdi, qword [0x1406cffc8]
xor eax, eax
and word [rbp + rax*2 - 1], 0
inc rax
cmp rax, 0x10
jb 0x1405f389d
xor edx, edx
mov al, byte [rbp + rdx + 0x1f]
mov cl, byte [rbp + rdx - 0x21]
mov byte [rbp + rdx*2 - 1], al
mov byte [rbp + rdx*2], cl
inc rdx
cmp rdx, 0x10
jb 0x1405f38ae
lea r10, [rdi + r8]
mov rax, r10
cmp r8, 0x10
jb 0x1405f390a
lea rsi, [r10 - 0x10]
mov r8, rdi
mov r11, r8
lea r9, [rbp - 1]
movzx ecx, word [r9]
movzx edx, cx
shr dx, 8
cmp dl, 0x3f
je 0x1405f38f7
cmp byte [r11], cl
jne 0x1405f3928
inc r11
add r9, 2
lea rcx, [rbp + 0x1f]
cmp r9, rcx
jne 0x1405f38e2
mov rax, r8
xor ecx, ecx
cmp rax, r10
cmovne rcx, rax
mov rax, rcx
sub rax, rdi
mov qword [0x1406cffa0], rcx
mov dword [0x1406cffa8], eax
jmp 0x1405f3941
cmp r8, rsi
je 0x1405f390a
inc r8
jmp 0x1405f38db
and qword [0x1406cffa0], 0
and dword [0x1406cffa8], 0
lea rcx, [0x1406d01c0]
call fcn.1406571d8
mov eax, dword [r12 + rbx]
cmp dword [0x1406d0044], eax
jle 0x1405f398e
lea rcx, [0x1406d0044]
call fcn.140657238
cmp dword [0x1406d0044], 0xffffffff
jne 0x1405f398e
lea rcx, [0x14066aa98]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [0x1406d00f8], rax
lea rcx, [0x1406d0044]
call fcn.1406571d8
mov rcx, qword [0x1406cffa0]
test rcx, rcx
je 0x1405f3b85
mov rdx, qword [0x1406d00f8]
test rdx, rdx
je 0x1405f3b85
movsxd r14, dword [rcx + 3]
sub r14, rdx
add r14, 7
add r14, rcx
mov eax, dword [r12 + rbx]
cmp dword [0x1406d02f0], eax
jle 0x1405f3b21
lea rcx, [0x1406d02f0]
call fcn.140657238
cmp dword [0x1406d02f0], 0xffffffff
jne 0x1405f3b21
xor ebx, ebx
and dword [rbp - 0x29], ebx
lea r9, [rbp - 0x29]
xor r8d, r8d
xor edx, edx
lea edi, [rbx + 0xb]
mov ecx, edi
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov esi, 0xc0000004
mov r12d, 0x8000
jmp 0x1405f3a44
mov r8d, r12d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [rbp - 0x29]
xor ecx, ecx
lea r9d, [rcx + 4]
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
lea r9, [rbp - 0x29]
mov r8d, dword [rbp - 0x29]
mov rdx, rax
mov ecx, edi
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, esi
je 0x1405f3a0b
test eax, eax
js 0x1405f3afe
xor edi, edi
cmp dword [rbx], edi
jbe 0x1405f3afe
mov eax, edi
imul rsi, rax, 0x128
movzx edx, word [rsi + rbx + 0x2e]
add rdx, 0x30
add rdx, rsi
add rdx, rbx
xorps xmm0, xmm0
movups xmmword [rbp - 0x21], xmm0
and qword [rbp - 0x11], 0
and qword [rbp - 9], 0
or r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], 0
jne 0x1405f3a87
lea rcx, [rbp - 0x21]
call fcn.1405ab00c
lea rcx, [rbp - 0x21]
cmp qword [rbp - 9], 0x10
cmovae rcx, qword [rbp - 0x21]
lea rdx, [0x14066aa98]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x1405f3b32
mov rdx, qword [rbp - 9]
cmp rdx, 0x10
jb 0x1405f3af4
inc rdx
mov rcx, qword [rbp - 0x21]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1405f3aef
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1405f3b77
call fcn.140657384
inc edi
cmp edi, dword [rbx]
jb 0x1405f3a5a
mov r8d, r12d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor edi, edi
mov qword [0x1406d00e0], rdi
lea rcx, [0x1406d02f0]
call fcn.1406571d8
mov rax, qword [0x1406d00e0]
test rax, rax
je 0x1405f3b85
add rax, r14
jmp 0x1405f3b87
mov rdi, qword [rsi + rbx + 0x18]
mov r8d, r12d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdx, qword [rbp - 9]
cmp rdx, 0x10
jb 0x1405f3b0e
inc rdx
mov rcx, qword [rbp - 0x21]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1405f3b7e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1405f3b7e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140657384
jmp 0x1405f3b0e
xor eax, eax
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.140657090
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop r12
pop rbp
ret