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

Disassembly:
jmp 0x140021170
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x2d8
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0x76
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x2f8]
mov rax, qword [0x140038040]
xor rax, rbp
mov qword [rbp + 0x288], rax
lea rcx, [0x140040167]
call fcn.140011933
nop
mov qword [rbp + 8], 0xfffffffffffffffe
mov qword [rbp + 0x28], 0
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r9, [rbp + 0x28]
mov r8, 0xffffffffffffffff
mov rdx, qword [rbp + 8]
mov rcx, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x140021276
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x274], eax
lea rdx, str.Failed_to_duplicate_handle__error:__lu
lea rcx, [rbp + 0x1a8]
call fcn.14001141f
nop
lea rdx, str.c_poc::get_ethread_address
lea rcx, [rbp + 0x1e8]
call fcn.1400113b6
mov eax, dword [rbp + 0x274]
mov dword [rsp + 0x20], eax
lea r9, [rbp + 0x1a8]
lea r8, [rbp + 0x1e8]
mov edx, 0xc
lea rcx, [0x1400384e0]
call fcn.140011767
nop
lea rcx, [rbp + 0x1a8]
call fcn.1400111b8
nop
mov eax, 1
jmp 0x14002146c
mov dword [rbp + 0x44], 0
mov dword [rbp + 0x64], 0
mov qword [rbp + 0x88], 0
lea r9, [rbp + 0x64]
mov r8d, dword [rbp + 0x64]
mov rdx, qword [rbp + 0x88]
mov ecx, 0x10
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov dword [rbp + 0x44], eax
cmp dword [rbp + 0x44], 0xc0000004
jne 0x140021345
cmp qword [rbp + 0x88], 0
je 0x140021306
mov eax, dword [rbp + 0x64]
shl rax, 1
mov qword [rbp + 0x278], rax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov qword [rbp + 0x280], rax
mov r9, qword [rbp + 0x278]
mov r8, qword [rbp + 0x88]
mov edx, 8
mov rcx, qword [rbp + 0x280]
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov qword [rbp + 0x88], rax
jmp 0x140021340
mov eax, dword [rbp + 0x64]
shl rax, 1
mov qword [rbp + 0x278], rax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov qword [rbp + 0x280], rax
mov r8, qword [rbp + 0x278]
mov edx, 8
mov rcx, qword [rbp + 0x280]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbp + 0x88], rax
jmp 0x14002128f
mov qword [rbp + 0xa8], 0
cmp dword [rbp + 0x44], 0
jl 0x1400213f5
mov dword [rbp + 0xc4], 0
jmp 0x140021374
mov eax, dword [rbp + 0xc4]
inc eax
mov dword [rbp + 0xc4], eax
mov rax, qword [rbp + 0x88]
mov eax, dword [rax]
cmp dword [rbp + 0xc4], eax
jae 0x1400213f3
mov eax, dword [rbp + 0xc4]
imul rax, rax, 0x18
mov rcx, qword [rbp + 0x88]
movzx eax, word [rcx + rax + 8]
mov dword [rbp + 0x274], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [rbp + 0x274]
cmp ecx, eax
jne 0x1400213ee
mov eax, dword [rbp + 0xc4]
imul rax, rax, 0x18
mov rcx, qword [rbp + 0x88]
movzx eax, word [rcx + rax + 0xe]
movzx ecx, word [rbp + 0x28]
cmp eax, ecx
jne 0x1400213ee
mov eax, dword [rbp + 0xc4]
imul rax, rax, 0x18
mov rcx, qword [rbp + 0x88]
mov rax, qword [rcx + rax + 0x10]
mov qword [rbp + 0xa8], rax
jmp 0x1400213f3
jmp 0x140021366
jmp 0x140021465
cmp qword [rbp + 0x88], 0
je 0x140021465
lea rdx, str.NtQuerySystemInformation_failed___code:_0x_X_
lea rcx, [rbp + 0x218]
call fcn.14001141f
nop
lea rdx, str.c_poc::get_ethread_address
lea rcx, [rbp + 0x258]
call fcn.1400113b6
mov eax, dword [rbp + 0x44]
mov dword [rsp + 0x20], eax
lea r9, [rbp + 0x218]
lea r8, [rbp + 0x258]
mov edx, 0xc
lea rcx, [0x1400384e0]
call fcn.1400118cf
nop
lea rcx, [rbp + 0x218]
call fcn.1400111b8
nop
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ntdll.dll_NtClose]
nop
mov rax, qword [rbp + 0xa8]
mov rdi, rax
lea rcx, [rbp - 0x40]
lea rdx, [0x140031d20]
call fcn.1400117b7
mov rax, rdi
mov rcx, qword [rbp + 0x288]
xor rcx, rbp
call fcn.140011497
lea rsp, [rbp + 0x298]
pop rdi
pop rbp
ret