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

Disassembly:
jmp 0x140020f70
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 [0x140039018]
xor rax, rbp
mov qword [rbp + 0x288], rax
lea rcx, [0x140041173]
call fcn.140011956
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 0x140021074
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.14001143d
nop
lea rdx, str.c_poc::get_ethread_address
lea rcx, [rbp + 0x1e8]
call fcn.1400113d4
mov eax, dword [rbp + 0x274]
mov dword [rsp + 0x20], eax
lea r9, [rbp + 0x1a8]
lea r8, [rbp + 0x1e8]
mov edx, 0xc
lea rcx, [0x140039450]
call fcn.14001177b
nop
lea rcx, [rbp + 0x1a8]
call fcn.1400111d1
mov eax, 1
jmp 0x140021268
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 0x140021143
cmp qword [rbp + 0x88], 0
je 0x140021104
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 0x14002113e
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 0x14002108d
mov qword [rbp + 0xa8], 0
cmp dword [rbp + 0x44], 0
jl 0x1400211f3
mov dword [rbp + 0xc4], 0
jmp 0x140021172
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 0x1400211f1
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 0x1400211ec
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 0x1400211ec
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 0x1400211f1
jmp 0x140021164
jmp 0x140021261
cmp qword [rbp + 0x88], 0
je 0x140021261
lea rdx, str.NtQuerySystemInformation_failed___code:_0x_X_
lea rcx, [rbp + 0x218]
call fcn.14001143d
nop
lea rdx, str.c_poc::get_ethread_address
lea rcx, [rbp + 0x258]
call fcn.1400113d4
mov eax, dword [rbp + 0x44]
mov dword [rsp + 0x20], eax
lea r9, [rbp + 0x218]
lea r8, [rbp + 0x258]
mov edx, 0xc
lea rcx, [0x140039450]
call fcn.1400118e8
nop
lea rcx, [rbp + 0x218]
call fcn.1400111d1
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ntdll.dll_NtClose]
mov rax, qword [rbp + 0xa8]
mov rdi, rax
lea rcx, [rbp - 0x40]
lea rdx, [0x140031c50]
call fcn.1400117cb
mov rax, rdi
mov rcx, qword [rbp + 0x288]
xor rcx, rbp
call fcn.1400114b0
lea rsp, [rbp + 0x298]
pop rdi
pop rbp
ret