Function at 0x1400596a0
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x10], edx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x70]
sub rsp, 0x170
xor r14d, r14d
xorps xmm0, xmm0
mov r12, r8
mov dword [rbp + 0xc0], r14d
mov r13, rcx
movdqa xmmword [rbp + 0x10], xmm0
xorps xmm1, xmm1
mov qword [rbp + 0x28], r14
lea r8d, [r14 + 0x20]
movdqa xmmword [rbp + 0x30], xmm1
xor edx, edx
movdqa xmmword [rbp + 0x40], xmm0
lea rcx, [rbp - 0x20]
mov qword [rbp + 0x50], r14
mov r15d, r14d
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x38], r14
mov qword [rbp - 0x48], r14
mov qword [rbp - 0x50], r14
call sub.msvcrt.dll_memset
xor edx, edx
mov qword [rbp - 0x18], r14
lea r8d, [r14 + 0x30]
mov qword [rbp - 0x10], r14
lea rcx, [rbp - 0x20]
mov qword [rbp - 8], r14
call sub.msvcrt.dll_memset
mov qword [rsp + 0x28], r14
mov ebx, r14d
mov qword [rbp - 0x28], rbx
mov esi, r14d
mov qword [rbp - 0x58], r14
mov edi, r14d
test r12, r12
jne 0x14005975e
mov ecx, 0x80070057
mov r14d, ecx
call fcn.140078308
jmp 0x140059de1
cmp qword [rbp + 0xd0], r14
je 0x14005974c
cmp qword [rbp + 0xd8], r14
je 0x14005974c
mov rax, qword [0x140421ad0]
mov qword [rbp - 0x30], rax
lea r15, [rax + 8]
mov qword [rsp + 0x20], r15
test r15, r15
je 0x1400597a4
mov edx, 1
mov rcx, r15
call fcn.140070fcc
mov rax, qword [rbp - 0x30]
mov dword [rbp + 0xc0], 1
cmp qword [r13 + 0x30], r14
jne 0x1400597b1
mov ecx, 0x80070005
jmp 0x140059751
cmp qword [r13 + 0x38], r14
je 0x1400597aa
mov r14, qword [rax + 0xd8]
lea rdx, [0x1404203bc]
lea rcx, [0x1403f9860]
call fcn.1400e7de0
mov rax, qword [0x140421b40]
mov qword [rbp - 0x40], rax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor edx, edx
mov rcx, rax
lea r8d, [rdx + 0x28]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r15, rax
mov eax, 0x8007000e
test r15, r15
je 0x140059848
xor edx, edx
mov rcx, r15
lea r8d, [rdx + 0x28]
call sub.msvcrt.dll_memset
mov rdx, qword [rbp - 0x40]
xor eax, eax
mov qword [r15], rax
mov r8, r14
mov qword [r15 + 8], rax
mov rcx, r15
mov qword [r15 + 0x10], rax
mov qword [r15 + 0x18], rax
mov qword [r15 + 0x20], rax
mov qword [rbp - 0x60], r15
call fcn.140069280
mov r14d, eax
test eax, eax
js 0x14005984f
and qword [rbp - 0x60], rbx
mov rbx, r15
mov qword [rbp - 0x28], rbx
jmp 0x140059856
and qword [rbp - 0x60], rbx
mov r14d, eax
mov ecx, eax
call fcn.140078308
mov ecx, r14d
call fcn.140078324
lea rcx, [rbp - 0x60]
call fcn.14005a0f0
test r14d, r14d
jns 0x140059874
mov ecx, r14d
jmp 0x140059dd7
mov eax, dword [rbp + 0xb8]
lea rdx, [rsp + 0x28]
lea rcx, [rbp - 0x40]
mov dword [rbp - 0x38], eax
mov qword [rbp - 0x40], r12
call fcn.14005f300
mov r14d, eax
test eax, eax
jns 0x14005989d
mov ecx, eax
jmp 0x140059dd7
mov r15, qword [rbx + 0x18]
mov rax, qword [r15]
mov r14, qword [rax + 0x18]
mov rcx, r14
call qword [0x1403a2250]
mov rdx, qword [rsp + 0x28]
mov rcx, r15
call r14
mov r14d, eax
test eax, eax
js 0x140059896
mov rax, qword [rsp + 0x28]
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x60], rax
xor r9d, r9d
lea rax, [0x14001dee0]
mov qword [rsp + 0x40], 3
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x78]
mov qword [rsp + 0x50], rax
lea rax, [rbp + 0x10]
lea r12d, [r9 + 0x48]
mov qword [rsp + 0x58], rax
mov r8d, r12d
lea ecx, [r12 + 0x71]
call sub.ntdll.dll_NtQuerySystemInformation
mov r14d, dword [rbp - 0x78]
test r14d, r14d
js 0x14005986c
mov rcx, qword [rbp + 0x10]
test rcx, rcx
jne 0x14005992d
mov ecx, 0x8000ffff
jmp 0x140059dd4
mov rdx, qword [r13 + 0x30]
mov rax, qword [rdx]
cmp rax, qword [rcx]
jne 0x140059dcf
mov rax, qword [rdx + 8]
cmp rax, qword [rcx + 8]
jne 0x140059dcf
mov rcx, qword [rbp + 0x18]
test rcx, rcx
je 0x140059923
mov rax, qword [r13 + 0x38]
sub rcx, rax
movzx edx, word [rax]
movzx r8d, word [rax + rcx]
sub edx, r8d
jne 0x140059971
add rax, 2
test r8d, r8d
jne 0x14005995b
test edx, edx
jne 0x140059dcf
mov rcx, qword [rbp + 0x38]
test rcx, rcx
je 0x1400599b9
lea rdx, [rbp - 0x58]
call fcn.1400781e4
mov r14d, eax
test eax, eax
jns 0x1400599b5
mov ecx, eax
call fcn.140078308
lea rdx, [0x14041fd70]
lea rcx, [0x1403f91cc]
call fcn.1400e7a9c
mov rdi, qword [rbp - 0x58]
jmp 0x140059ddc
mov rdi, qword [rbp - 0x58]
mov r15, qword [rbx + 0x18]
mov rax, qword [r15]
mov r14, qword [rax + 0x20]
mov rcx, r14
call qword [0x1403a2250]
mov rdx, qword [rsp + 0x28]
mov rcx, r15
call r14
mov r14d, eax
test eax, eax
js 0x140059896
mov r14, qword [rbp - 0x18]
mov r15, rdi
mov rax, qword [rbp - 0x30]
xor edi, edi
mov qword [rbp], r13
mov qword [rbp + 8], rax
test r14, r14
je 0x140059a19
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea r8, [r14 - 4]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor ecx, ecx
call fcn.140078324
lea rax, [0x14001b4a0]
mov qword [rbp - 0x18], r15
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x40]
lea rax, [rbp - 0x74]
mov qword [rsp + 0x40], 3
mov qword [rsp + 0x50], rax
mov r15d, 0xb9
lea rax, [rbp - 0x20]
xor r9d, r9d
mov qword [rsp + 0x58], rax
mov r8, r12
lea rax, [rbp - 0x50]
mov ecx, r15d
mov qword [rsp + 0x60], rax
call sub.ntdll.dll_NtQuerySystemInformation
mov r14d, dword [rbp - 0x74]
test r14d, r14d
js 0x14005986c
mov rax, qword [rbp - 0x50]
lea rdx, [rsp + 0x40]
mov rcx, qword [rbp + 0x28]
xor r9d, r9d
mov qword [rsp + 0x58], rax
mov r8, r12
lea rax, [0x1400364e0]
mov qword [rsp + 0x70], rcx
mov qword [rsp + 0x48], rax
mov ecx, r15d
lea rax, [rbp - 0x70]
mov qword [rsp + 0x40], 3
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x60], rax
lea rax, [rbp - 0x6c]
mov qword [rsp + 0x68], rax
mov eax, dword [rbp + 0x20]
mov dword [rsp + 0x78], eax
call sub.ntdll.dll_NtQuerySystemInformation
mov r14d, dword [rbp - 0x70]
test r14d, r14d
js 0x14005986c
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov esi, 0x28
xor edx, edx
mov rcx, rax
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbp - 0x40], rax
mov r15, rax
test rax, rax
je 0x140059dc6
mov r8d, esi
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
xor r14d, r14d
mov dword [r15], 1
lea r12, [r15 + 8]
mov qword [r12], r14
lea rdx, [0x140420f50]
mov qword [r15 + 0x10], r14
lea rcx, [0x140403078]
mov qword [r15 + 0x18], r14
call fcn.1400e7410
mov qword [r15 + 0x20], r14
mov rsi, r15
cmp qword [rbx + 8], rdi
jne 0x140059b5c
mov ecx, 0x80004005
mov r14d, ecx
call fcn.140078308
jmp 0x140059ba3
cmp qword [rbx + 0x10], rdi
je 0x140059b4d
lea rax, [0x14001a460]
mov qword [rsp + 0x40], 3
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x60], rbx
lea rax, [rbp + 0x60]
mov qword [rsp + 0x50], rax
lea rax, [r15 + 0x10]
mov qword [rsp + 0x58], rax
lea r8d, [r9 + 0x48]
lea ecx, [r8 + 0x71]
call sub.ntdll.dll_NtQuerySystemInformation
mov ecx, r14d
call fcn.140078324
test r14d, r14d
js 0x14005986c
mov rax, qword [rsp + 0x38]
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x68], rax
mov ebx, 1
lea rax, [0x14001a120]
mov qword [rsp + 0x40], 3
mov qword [rsp + 0x48], rax
xor r9d, r9d
lea rax, [rbp - 0x68]
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x50], rax
lea r8d, [rbx + 0x47]
mov eax, dword [rbp - 0x6c]
lea ecx, [r8 + 0x71]
mov dword [rsp + 0x70], eax
lea rax, [rbp - 0x48]
mov qword [rsp + 0x78], rax
lea rax, [rbp - 0x64]
mov qword [rbp - 0x80], rax
mov dword [rsp + 0x60], ebx
call sub.ntdll.dll_NtQuerySystemInformation
mov r14d, dword [rbp - 0x68]
test r14d, r14d
js 0x14005986c
mov r9, qword [rbp - 0x48]
lea rcx, [rsp + 0x30]
mov r8d, dword [rbp - 0x64]
mov edx, ebx
call fcn.14005365c
mov r14d, eax
test eax, eax
js 0x140059896
mov r9, qword [rbp + 0x30]
test r9, r9
je 0x140059c73
lea rdx, [rbp + 0xc8]
mov rcx, r9
call fcn.140076fc4
mov r14d, eax
test eax, eax
js 0x140059896
mov r9, qword [rbp + 0x30]
mov r8d, dword [rbp + 0xc8]
jmp 0x140059c7d
xor r8d, r8d
mov dword [rbp + 0xc8], r8d
mov edx, 2
lea rcx, [rsp + 0x30]
call fcn.14005365c
mov r14d, eax
test eax, eax
js 0x140059896
mov r9, qword [rbp - 0x10]
test r9, r9
je 0x140059ce2
lea rdx, [rbp + 0xc8]
mov rcx, r9
call fcn.140076fc4
mov r14d, eax
test eax, eax
jns 0x140059cd5
mov ecx, eax
call fcn.140078308
lea rdx, [0x14041b370]
lea rcx, [0x14040c80c]
call fcn.1400e6078
jmp 0x140059ddc
mov r9, qword [rbp - 0x10]
mov r8d, dword [rbp + 0xc8]
jmp 0x140059ce5
xor r8d, r8d
mov edx, 3
lea rcx, [rsp + 0x30]
call fcn.14005365c
mov r14d, eax
test eax, eax
js 0x140059896
mov r8, qword [rbp + 0xd0]
lea rcx, [rsp + 0x30]
mov rdx, qword [rbp + 0xd8]
call fcn.1400535bc
mov r14d, eax
test eax, eax
js 0x140059896
mov rbx, qword [r12]
test rbx, rbx
je 0x140059d4b
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea r8, [rbx - 4]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor ecx, ecx
call fcn.140078324
and qword [r12], rdi
mov r15, qword [rbp - 8]
xor r14d, r14d
test r15, r15
je 0x140059d93
mov ebx, dword [r15 - 4]
xor ecx, ecx
call fcn.140078324
mov r8, r12
mov edx, ebx
mov rcx, r15
call fcn.1400780c4
mov r14d, eax
test eax, eax
jns 0x140059d97
lea rdx, [0x140419790]
lea rcx, [0x14040b5d0]
call fcn.1400e775c
mov ecx, r14d
call fcn.140078308
jmp 0x140059d97
and qword [r12], rdi
mov ecx, r14d
call fcn.140078324
test r14d, r14d
js 0x14005986c
mov rcx, qword [r13 + 0x28]
test rcx, rcx
je 0x140059dba
call fcn.1400665ec
and qword [r13 + 0x28], rdi
mov rax, qword [rbp - 0x40]
xor esi, esi
mov qword [r13 + 0x28], rax
jmp 0x140059ddc
xor esi, esi
mov ecx, 0x8007000e
jmp 0x140059dd4
mov ecx, 0x80070005
mov r14d, ecx
call fcn.140078308
mov r15, qword [rsp + 0x20]
mov ecx, r14d
call fcn.140078324
test rdi, rdi
je 0x140059e0a
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea r8, [rdi - 4]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor ecx, ecx
call fcn.140078324
mov rbx, qword [rsp + 0x28]
test rbx, rbx
je 0x140059e2f
mov rax, qword [rbx]
mov rdi, qword [rax + 0x10]
mov rcx, rdi
call qword [0x1403a2250]
mov rcx, rbx
call rdi
and qword [rsp + 0x28], 0
lea rcx, [rbp - 0x28]
call fcn.14005a0f0
test rsi, rsi
je 0x140059e45
mov rcx, rsi
call fcn.1400665ec
lea rcx, [rbp - 0x20]
call fcn.1400570b0
lea rcx, [rbp - 0x50]
call fcn.14005700c
lea rcx, [rbp - 0x48]
call fcn.14005a080
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140059e76
call qword [sym.imp.KERNEL32.dll_LocalFree]
and qword [rsp + 0x38], 0
mov rbx, qword [rsp + 0x30]
test rbx, rbx
je 0x140059e95
mov rax, qword [rbx]
mov rdi, qword [rax + 0x10]
mov rcx, rdi
call qword [0x1403a2250]
mov rcx, rbx
call rdi
lea rcx, [rbp + 0x10]
call fcn.140059ed4
test r15, r15
je 0x140059eb4
cmp dword [rbp + 0xc0], 0
je 0x140059eb4
mov rcx, r15
call fcn.140070e60
mov eax, r14d
mov rbx, qword [rsp + 0x1b0]
add rsp, 0x170
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret