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

Disassembly:
push rbp
push rbx
push r14
lea rbp, [rsp - 0x47]
sub rsp, 0xa0
mov rax, qword [0x18030a008]
xor rax, rsp
mov qword [rbp + 0x17], rax
xor r14d, r14d
mov qword [rbp - 0x21], rdx
xor bl, bl
mov qword [rdx], r14
mov qword [rbp + 0xf], r14
mov dword [rbp - 0x19], r14d
test rcx, rcx
je 0x180008a17
lea rdx, [rbp + 0xf]
call qword [sym.imp.ADVAPI32.dll_ConvertStringSidToSidW]
test eax, eax
je 0x180008a08
mov edx, 0x1000
mov qword [rsp + 0xd0], rsi
lea ecx, [r14 + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
test rax, rax
je 0x180008a00
mov r8d, dword [rbp - 0x19]
lea r9, [rbp - 0x19]
mov qword [rsp + 0x98], rdi
lea ecx, [r14 + 0x10]
mov rdx, rax
mov dil, 1
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov ebx, eax
cmp eax, 0xc0000004
jne 0x180008653
nop word [rax + rax]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov edx, dword [rbp - 0x19]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
test rax, rax
je 0x180008650
mov r8d, dword [rbp - 0x19]
lea r9, [rbp - 0x19]
mov rdx, rax
mov ecx, 0x10
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov ebx, eax
cmp eax, 0xc0000004
je 0x180008610
jmp 0x180008653
xor dil, dil
test ebx, ebx
js 0x1800089e8
test dil, dil
je 0x1800089e8
mov qword [rsp + 0x90], r12
mov r12d, r14d
cmp dword [rsi], r14d
jbe 0x1800089d3
mov qword [rsp + 0x88], r13
mov edx, 1
mov qword [rsp + 0x80], r15
nop dword [rax]
mov eax, r12d
lea rbx, [rax*2 + 1]
add rbx, rax
lea rbx, [rsi + rbx*8]
test rbx, rbx
je 0x180008995
cmp byte [rbx + 4], 5
jne 0x180008995
movzx eax, word [rbx]
cmp eax, 4
jbe 0x180008995
mov r8d, eax
mov qword [rbp - 1], r14
mov ecx, 0x400
mov qword [rbp - 9], r14
mov rdi, r14
xor r13b, r13b
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r15, rax
test rax, rax
jne 0x180008709
movzx r8d, word [rbx]
mov ecx, 0x1000
mov ebx, 1
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r15, rax
test rax, rax
je 0x18000895b
jmp 0x18000870e
mov ebx, 1
lea r8, [rbp - 1]
mov edx, 0xb
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x18000895b
mov rcx, qword [rbp - 1]
lea rax, [rbp - 9]
mov qword [rsp + 0x28], rax
mov r9d, 2
xor r8d, r8d
mov dword [rsp + 0x20], 2
mov edx, 0x2000000
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x18000895b
mov rcx, qword [rbp - 9]
xor r14b, r14b
mov dword [rbp - 0x15], 0
test rcx, rcx
je 0x180008958
lea rax, [rbp - 0x15]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov edx, ebx
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov eax, dword [rbp - 0x15]
test eax, eax
je 0x180008958
mov edx, eax
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov r9d, dword [rbp - 0x15]
mov edx, 1
mov rcx, qword [rbp - 9]
mov rbx, rax
lea rax, [rbp - 0x15]
mov r8, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x180008800
mov edx, 0x44
lea ecx, [rdx - 4]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x180008800
mov r8, qword [rbx]
mov rdx, rax
mov ecx, 0x44
call qword [sym.imp.ADVAPI32.dll_CopySid]
test eax, eax
je 0x1800087f5
mov r14b, 1
jmp 0x180008800
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor edi, edi
test rbx, rbx
je 0x18000880e
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
test r14b, r14b
je 0x180008945
mov rcx, qword [rbp + 0xf]
xor r14d, r14d
xor bl, bl
mov qword [rbp - 0x11], r14
mov qword [rbp + 7], r14
test rcx, rcx
je 0x180008948
test rdi, rdi
je 0x18000895b
lea rdx, [rbp - 0x11]
call qword [sym.imp.ADVAPI32.dll_ConvertSidToStringSidW]
test eax, eax
je 0x180008873
lea rdx, [rbp + 7]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_ConvertSidToStringSidW]
test eax, eax
je 0x180008873
mov rdx, qword [rbp + 7]
mov rcx, qword [rbp - 0x11]
call fcn.18004f6bc
test eax, eax
movzx ebx, bl
mov eax, 1
cmove ebx, eax
mov rcx, qword [rbp - 0x11]
test rcx, rcx
je 0x180008886
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rbp - 0x11], r14
mov rcx, qword [rbp + 7]
test rcx, rcx
je 0x180008895
call qword [sym.imp.KERNEL32.dll_LocalFree]
test bl, bl
je 0x18000894d
mov rcx, qword [rbp - 9]
mov dword [rbp - 0x11], r14d
test rcx, rcx
je 0x18000894d
xor r9d, r9d
lea rax, [rbp - 0x11]
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea edx, [r9 + 0xb]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x1800088d6
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x18000894d
mov eax, dword [rbp - 0x11]
test eax, eax
je 0x18000894d
mov edx, eax
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x18000894d
mov r9d, dword [rbp - 0x11]
lea rax, [rbp - 0x11]
mov rcx, qword [rbp - 9]
mov r8, rbx
mov edx, 0xb
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x180008931
cmp dword [rbx], r14d
jne 0x180008931
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rdi
mov r13b, 1
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x18000895b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x18000895b
xor r14d, r14d
test rdi, rdi
je 0x18000895b
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x18000895b
xor r14d, r14d
mov rcx, qword [rbp - 1]
test rcx, rcx
je 0x18000896a
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp - 1], r14
test r15, r15
je 0x18000897c
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r13b, r13b
jne 0x1800089c6
mov rcx, qword [rbp - 9]
test rcx, rcx
je 0x180008990
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 1
inc r12d
cmp r12d, dword [rsi]
jb 0x180008690
mov rcx, qword [rbp - 0x21]
cmp qword [rcx], 0
mov r13, qword [rsp + 0x88]
mov r15, qword [rsp + 0x80]
setne bl
mov r12, qword [rsp + 0x90]
jmp 0x1800089ef
mov rcx, qword [rbp - 0x21]
mov rax, qword [rbp - 9]
mov qword [rcx], rax
jmp 0x1800089a5
mov rcx, qword [rbp - 0x21]
mov r12, qword [rsp + 0x90]
cmp qword [rcx], 0
setne bl
jmp 0x1800089ef
xor bl, bl
test rsi, rsi
je 0x1800089f8
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rdi, qword [rsp + 0x98]
mov rsi, qword [rsp + 0xd0]
mov rcx, qword [rbp + 0xf]
test rcx, rcx
je 0x180008a17
call qword [sym.imp.KERNEL32.dll_LocalFree]
movzx eax, bl
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.180044eb0
add rsp, 0xa0
pop r14
pop rbx
pop rbp
ret