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

Disassembly:
jmp 0x140021360
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x248
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0x52
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x268]
mov rax, qword [0x140039018]
xor rax, rbp
mov qword [rbp + 0x1f8], rax
lea rcx, [0x140041173]
call fcn.140011956
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov r8d, 3
mov edx, 0xc0000000
lea rcx, str.C:UsersPublicexample.txt
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0xffffffffffffffff
jne 0x14002145b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x1e4], eax
lea rdx, str.Failed_to_open_dummy_file__error:__lu
lea rcx, [rbp + 0x188]
call fcn.14001143d
nop
lea rdx, str.c_poc::get_file_object_address
lea rcx, [rbp + 0x1c8]
call fcn.1400113d4
mov eax, dword [rbp + 0x1e4]
mov dword [rsp + 0x20], eax
lea r9, [rbp + 0x188]
lea r8, [rbp + 0x1c8]
mov edx, 0xc
lea rcx, [0x140039450]
call fcn.14001177b
nop
lea rcx, [rbp + 0x188]
call fcn.1400111d1
mov eax, 1
jmp 0x1400215be
mov dword [rbp + 0x24], 0
mov dword [rbp + 0x44], 0
mov qword [rbp + 0x68], 0
lea r9, [rbp + 0x44]
mov r8d, dword [rbp + 0x44]
mov rdx, qword [rbp + 0x68]
mov ecx, 0x10
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov dword [rbp + 0x24], eax
cmp dword [rbp + 0x24], 0xc0000004
jne 0x140021518
cmp qword [rbp + 0x68], 0
je 0x1400214dc
mov eax, dword [rbp + 0x44]
shl rax, 1
mov qword [rbp + 0x1e8], rax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov qword [rbp + 0x1f0], rax
mov r9, qword [rbp + 0x1e8]
mov r8, qword [rbp + 0x68]
mov edx, 8
mov rcx, qword [rbp + 0x1f0]
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov qword [rbp + 0x68], rax
jmp 0x140021513
mov eax, dword [rbp + 0x44]
shl rax, 1
mov qword [rbp + 0x1e8], rax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov qword [rbp + 0x1f0], rax
mov r8, qword [rbp + 0x1e8]
mov edx, 8
mov rcx, qword [rbp + 0x1f0]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbp + 0x68], rax
jmp 0x140021471
mov qword [rbp + 0x88], 0
cmp dword [rbp + 0x24], 0
jl 0x1400215b7
mov dword [rbp + 0xa4], 0
jmp 0x140021547
mov eax, dword [rbp + 0xa4]
inc eax
mov dword [rbp + 0xa4], eax
mov rax, qword [rbp + 0x68]
mov eax, dword [rax]
cmp dword [rbp + 0xa4], eax
jae 0x1400215b7
mov eax, dword [rbp + 0xa4]
imul rax, rax, 0x18
mov rcx, qword [rbp + 0x68]
movzx eax, word [rcx + rax + 8]
mov dword [rbp + 0x1e4], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [rbp + 0x1e4]
cmp ecx, eax
jne 0x1400215b5
mov eax, dword [rbp + 0xa4]
imul rax, rax, 0x18
mov rcx, qword [rbp + 0x68]
movzx eax, word [rcx + rax + 0xe]
movzx ecx, word [rbp + 8]
cmp eax, ecx
jne 0x1400215b5
mov eax, dword [rbp + 0xa4]
imul rax, rax, 0x18
mov rcx, qword [rbp + 0x68]
mov rax, qword [rcx + rax + 0x10]
mov qword [rbp + 0x88], rax
jmp 0x1400215b7
jmp 0x140021539
mov rax, qword [rbp + 0x88]
mov rdi, rax
lea rcx, [rbp - 0x40]
lea rdx, [0x140031ce0]
call fcn.1400117cb
mov rax, rdi
mov rcx, qword [rbp + 0x1f8]
xor rcx, rbp
call fcn.1400114b0
lea rsp, [rbp + 0x208]
pop rdi
pop rbp
ret