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

Disassembly:
push rbp
lea rbp, [rsp - 0xfa0]
mov eax, 0x10a0
call fcn.140002830
sub rsp, rax
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rbp + 0xf80], rax
lea r8, [rbp - 0x70]
mov edx, 0xc0000000
lea rcx, [0x140003dd0]
call qword [sym.imp.ksproxy.ax_KsOpenDefaultDevice]
test eax, eax
je 0x1400013ba
mov edx, eax
lea rcx, str.Error:__ld_n
call fcn.140001010
mov eax, 1
jmp 0x140001afe
lea r8, [rbp - 0x68]
mov edx, 0xc0000000
lea rcx, [0x140003dd0]
call qword [sym.imp.ksproxy.ax_KsOpenDefaultDevice]
test eax, eax
jne 0x1400013a2
lea r8, [rsp + 0x58]
mov edx, 0xc0000000
lea rcx, [0x140003dd0]
call qword [sym.imp.ksproxy.ax_KsOpenDefaultDevice]
test eax, eax
jne 0x1400013a2
mov rdx, qword [rbp - 0x70]
lea rcx, str.___Successfully_got_a_handle_1____p_n
mov qword [rsp + 0x10b0], rbx
mov qword [rsp + 0x10b8], rsi
mov qword [rsp + 0x10c0], rdi
mov qword [rsp + 0x10c8], r12
mov qword [rsp + 0x1098], r14
mov qword [rsp + 0x1090], r15
call fcn.140001010
mov rdx, qword [rbp - 0x68]
lea rcx, str.___Successfully_got_a_handle_2____p_n
call fcn.140001010
mov rdx, qword [rsp + 0x58]
lea rcx, str.___Successfully_got_a_handle_3____p_n
call fcn.140001010
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor r15d, r15d
lea r8, [rbp - 0x60]
mov rcx, rax
mov qword [rbp - 0x60], r15
mov r14d, r15d
mov dword [rsp + 0x50], r15d
mov edi, r15d
lea edx, [r15 + 8]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x14000149a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____Couldnt_open_a_handle_to_the_current_process_token.__Error_code:__d__n
call fcn.140001010
lea edi, [r15 + 0x40]
jmp 0x1400015c5
mov r8d, dword [rsp + 0x50]
lea r9, [rsp + 0x50]
xor edx, edx
lea ecx, [rdx + 0x10]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x140001513
nop word [rax + rax]
mov eax, dword [rsp + 0x50]
lea ebx, [rax + rax]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, 8
mov rcx, rax
test rdi, rdi
je 0x1400014e8
mov r9d, ebx
mov r8, rdi
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
jmp 0x1400014f1
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r8d, dword [rsp + 0x50]
lea r9, [rsp + 0x50]
mov rdx, rax
mov ecx, 0x10
mov rdi, rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
je 0x1400014c0
test eax, eax
jne 0x140001643
mov ebx, r15d
cmp dword [rdi], r15d
jbe 0x140001580
nop dword [rax]
nop word [rax + rax]
mov eax, ebx
lea rcx, [rax + rax*2]
lea rsi, [rdi + rcx*8]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
movzx ecx, word [rsi + 8]
cmp ecx, eax
jne 0x140001552
movzx eax, word [rbp - 0x60]
cmp word [rsi + 0xe], ax
je 0x14000157c
inc ebx
cmp ebx, dword [rdi]
jb 0x140001530
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdi, [r15 + 0x40]
jmp 0x1400015c5
mov r14, qword [rsi + 0x10]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdi, [r14 + 0x40]
test r14, r14
je 0x1400015c5
mov rdx, r14
lea rcx, str.___Target_process_TOKEN_address:__llx_n
call fcn.140001010
mov rdx, rdi
lea rcx, str.___Target_process__SEP_TOKEN_PRIVILEGES_address:__llx_n
call fcn.140001010
mov rbx, qword [rbp - 0x70]
mov qword [rsp + 0x78], r15
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [rsp + 0x48], r15d
movabs r14, 0x136fe7474d
mov eax, eax
xor r9d, r9d
mov qword [rsp + 0x40], r15
xor r8d, r8d
mov qword [rsp + 0x68], rax
xor edx, edx
mov dword [rsp + 0x38], 0x20
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
mov rcx, rbx
lea rax, [rbp - 0x60]
mov dword [rsp + 0x28], 0x2f0400
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x60], 1
mov qword [rsp + 0x70], r14
call qword [sym.imp.ntdll.dll_NtDeviceIoControlFile]
test eax, eax
jne 0x140001682
lea rcx, str.___InitializeContextRendezvous_successfully_n
call fcn.140001010
jmp 0x140001690
test rdi, rdi
je 0x140001580
mov edx, eax
lea rcx, str.____NtQuerySystemInformation_failed.__NTSTATUS_code:_0x_X__n
call fcn.140001010
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, 0x40
jmp 0x1400015c5
mov edx, eax
lea rcx, str.____FSInitializeContextRendezvous_failed_with_0x_X_n
call fcn.140001010
mov rsi, qword [rbp - 0x68]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rbx, rax
movabs r12, 0x1400000000
cmp rax, 0xffffffffffffffff
jne 0x1400016ca
lea rcx, str.____CreateEventW_failed_n
call fcn.140001010
jmp 0x140001766
mov qword [rsp + 0x60], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [rsp + 0x48], r15d
xor r9d, r9d
mov eax, eax
xor r8d, r8d
mov qword [rsp + 0x40], r15
xor edx, edx
mov qword [rsp + 0x68], rax
mov rcx, rsi
mov dword [rsp + 0x38], 0x30
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x60]
mov dword [rsp + 0x28], 0x2f0404
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x78], r12
mov qword [rbp - 0x80], 0x40000
mov qword [rbp - 0x78], rbx
call qword [sym.imp.ntdll.dll_NtDeviceIoControlFile]
test eax, eax
jne 0x14000174f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.___FSInitializeStream_successfully_n
call fcn.140001010
jmp 0x140001766
mov edx, eax
lea rcx, str.____FSInitializeStream_failed_with_0x_X_n
call fcn.140001010
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0x58]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140001797
lea rcx, str.____CreateEventW_failed_n
call fcn.140001010
jmp 0x140001833
mov qword [rsp + 0x60], 2
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [rsp + 0x48], r15d
xor r9d, r9d
mov eax, eax
xor r8d, r8d
mov qword [rsp + 0x40], r15
xor edx, edx
mov qword [rsp + 0x68], rax
mov rcx, rsi
mov dword [rsp + 0x38], 0x30
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x60]
mov dword [rsp + 0x28], 0x2f0420
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x78], r12
mov qword [rbp - 0x80], 0x40000
mov qword [rbp - 0x78], rbx
call qword [sym.imp.ntdll.dll_NtDeviceIoControlFile]
test eax, eax
jne 0x14000181c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.___FSRegisterStream_successfully_n
call fcn.140001010
jmp 0x140001833
mov edx, eax
lea rcx, str.____FSRegisterStream_failed_with_0x_X_n
call fcn.140001010
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
lea rcx, [rbp + 0x28]
xorps xmm0, xmm0
mov qword [rbp - 0x38], rax
xorps xmm1, xmm1
mov qword [rbp - 0x10], rax
xor edx, edx
mov qword [rbp], rax
mov r8d, 0x148
movups xmmword [rbp - 0x48], xmm0
movups xmmword [rbp - 0x20], xmm1
call sub.VCRUNTIME140.dll_memset
mov rcx, qword [rsp + 0x58]
xor eax, eax
mov qword [rsp + 0x70], rax
xorps xmm0, xmm0
mov dword [rsp + 0x48], 0x18
movabs rax, 0x100000003
mov qword [rbp - 0x30], rax
xor r9d, r9d
movabs rax, 0x100000000140
mov qword [rbp - 0x50], 0x1c0
mov qword [rbp + 8], rax
xor r8d, r8d
mov qword [rbp + 0x18], rax
xor edx, edx
lea rax, [rsp + 0x60]
mov qword [rbp - 0x28], 1
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x50]
mov dword [rsp + 0x38], 0x1c0
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x60]
mov dword [rsp + 0x28], 0x2f0408
mov qword [rsp + 0x20], rax
movups xmmword [rsp + 0x60], xmm0
mov qword [rbp - 8], rdi
mov qword [rbp + 0x10], rdi
mov dword [rbp + 0x24], 0x10000000
mov dword [rbp + 0x20], 4
call qword [sym.imp.ntdll.dll_NtDeviceIoControlFile]
mov r15, qword [rsp + 0x1090]
mov r14, qword [rsp + 0x1098]
mov r12, qword [rsp + 0x10c8]
mov rsi, qword [rsp + 0x10b8]
test eax, eax
jne 0x140001951
mov eax, dword [rsp + 0x74]
lea rcx, str.___PublishTx_stats_txsize:_I64d_rxsize:_I64d_txcount:_d_rxcount:_d__n
mov r9d, dword [rsp + 0x70]
mov r8, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x60]
mov dword [rsp + 0x20], eax
call fcn.140001010
lea rcx, str.___PublishTx_successfully_n
call fcn.140001010
jmp 0x14000195f
mov edx, eax
lea rcx, str.____PublishTx_failed_with_0x_X_n
call fcn.140001010
mov rdi, qword [rsp + 0x58]
lea rcx, [rbp - 0x50]
xor edx, edx
mov r8d, 0xfd0
call sub.VCRUNTIME140.dll_memset
xor ecx, ecx
mov edx, 0x1000
mov r8d, 0x3000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne 0x1400019a6
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.____VirtualAlloc_failed_with_0x_X_n
jmp 0x140001aaa
mov rdx, rbx
lea rcx, str.___VirtualAlloc_buffer____p_n
call fcn.140001010
movaps xmm1, xmmword [rbp - 0x40]
lea rax, [rsp + 0x60]
mov dword [rsp + 0x48], 0xfd0
xor r9d, r9d
mov qword [rsp + 0x40], rbx
xor r8d, r8d
mov dword [rsp + 0x38], 0xfd0
xor edx, edx
mov qword [rsp + 0x30], rbx
mov rcx, rdi
mov qword [rbp - 0x50], 0x1000
movaps xmm0, xmmword [rbp - 0x50]
movups xmmword [rbx], xmm0
mov qword [rbp - 0x30], 6
movaps xmm0, xmmword [rbp - 0x30]
movups xmmword [rbx + 0x10], xmm1
mov dword [rsp + 0x28], 0x2f0410
movups xmmword [rbx + 0x20], xmm0
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtDeviceIoControlFile]
test eax, eax
jne 0x140001aa3
movups xmm0, xmmword [rbx + 0x40]
mov rax, qword [rbx + 0x18]
lea rcx, str.___ConsumeTx_stats_txsize:_I64d_rxsize:_I64d_txcount:_d_rxcount:_d__n
mov r9d, dword [rbx + 0x18]
mov r8, qword [rbx + 0x10]
mov rdx, qword [rbx + 8]
shr rax, 0x20
movups xmmword [rbp - 0x60], xmm0
mov dword [rsp + 0x20], eax
call fcn.140001010
movups xmm0, xmmword [rbp - 0x60]
lea rcx, str.___ConsumeTx_successfully_n
psrldq xmm0, 8
movq rbx, xmm0
call fcn.140001010
mov rdx, rbx
lea rcx, str.___Aligned_VA_Base_Address____p_n
and rdx, 0xfffffffffffff000
call fcn.140001010
mov rdx, rbx
lea rcx, str.___VA_Token_Address____p_n
call fcn.140001010
test rbx, rbx
je 0x140001acd
movdqa xmm0, xmmword [0x140003de0]
movups xmmword [rbx], xmm0
call fcn.1400010d0
jmp 0x140001acd
lea rcx, str.____ConsumeTx_failed_with_0x_X_n
mov edx, eax
call fcn.140001010
xor edx, edx
lea rcx, str.___Aligned_VA_Base_Address____p_n
call fcn.140001010
xor edx, edx
lea rcx, str.___VA_Token_Address____p_n
call fcn.140001010
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, qword [rsp + 0x10c0]
xor eax, eax
mov rbx, qword [rsp + 0x10b0]
mov rcx, qword [rbp + 0xf80]
xor rcx, rsp
call fcn.140001b30
add rsp, 0x10a0
pop rbp
ret