Function at 0x1400241a0
Capabilities:
Allocate or change rwx memory
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
push rsi
push rdi
sub rsp, 0xe8
mov rax, qword [0x140034040]
xor rax, rsp
mov qword [rsp + 0xd0], rax
mov dword [rsp + 0xa0], 0
mov qword [rsp + 0x28], 0
lea r9, [rsp + 0xa0]
mov r8d, dword [rsp + 0xa0]
mov rdx, qword [rsp + 0x28]
mov ecx, 0x40
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0xc0000004
jne 0x140024259
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [rsp + 0xa0]
mov r9d, 4
mov r8d, 0x3000
mov edx, eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0xa0]
mov r8d, dword [rsp + 0xa0]
mov rdx, qword [rsp + 0x28]
mov ecx, 0x40
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov dword [rsp + 0x30], eax
jmp 0x1400241f4
cmp dword [rsp + 0x30], 0
jl 0x140024268
cmp qword [rsp + 0x28], 0
jne 0x14002428a
cmp qword [rsp + 0x28], 0
je 0x140024283
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor al, al
jmp 0x14002455a
mov qword [rsp + 0x40], 0
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x20], 0
jmp 0x1400242b1
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x48]
cmp rax, qword [rcx]
jae 0x140024313
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x28
lea rcx, [rsp + 0x78]
mov rdx, qword [rsp + 0x48]
mov rdi, rcx
lea rsi, [rdx + rax + 0x10]
mov ecx, 0x28
rep movsb byte [rdi], byte [rsi]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov eax, eax
cmp qword [rsp + 0x80], rax
je 0x1400242f4
jmp 0x1400242a7
mov rax, qword [0x140039ef8]
cmp qword [rsp + 0x88], rax
jne 0x140024311
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x40], rax
jmp 0x140024313
jmp 0x1400242a7
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
cmp qword [rsp + 0x40], 0
jne 0x140024335
xor al, al
jmp 0x14002455a
mov qword [rsp + 0xc0], 0
mov rax, qword [rsp + 0x40]
add rax, 8
mov r8d, 8
lea rdx, [rsp + 0xc0]
mov rcx, rax
call fcn.140019c90
movzx eax, al
test eax, eax
je 0x140024372
cmp qword [rsp + 0xc0], 0
jne 0x140024379
xor al, al
jmp 0x14002455a
mov qword [rsp + 0xc8], 0
mov rax, qword [rsp + 0xc0]
add rax, 8
mov r8d, 8
lea rdx, [rsp + 0xc8]
mov rcx, rax
call fcn.140019c90
movzx eax, al
test eax, eax
je 0x1400243b9
cmp qword [rsp + 0xc8], 0
jne 0x1400243c0
xor al, al
jmp 0x14002455a
mov qword [rsp + 0xa8], 0
mov rax, qword [rsp + 0xc8]
add rax, 0x28
mov r8d, 8
lea rdx, [rsp + 0xa8]
mov rcx, rax
call fcn.140019c90
movzx eax, al
test eax, eax
je 0x140024400
cmp qword [rsp + 0xa8], 0
jne 0x140024407
xor al, al
jmp 0x14002455a
lea rax, [rsp + 0xb0]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
mov rax, qword [rsp + 0xa8]
add rax, 0x58
mov r8d, 0x10
lea rdx, [rsp + 0xb0]
mov rcx, rax
call fcn.140019c90
movzx eax, al
test eax, eax
je 0x140024450
movzx eax, word [rsp + 0xb0]
test eax, eax
jne 0x140024457
xor al, al
jmp 0x14002455a
movzx eax, word [rsp + 0xb0]
xor edx, edx
mov ecx, 2
div rcx
inc rax
mov qword [rsp + 0x58], rax
mov eax, 2
mov rcx, qword [rsp + 0x58]
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.14002b5b8
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x38], rax
movzx eax, word [rsp + 0xb0]
add rax, 2
mov qword [rsp + 0x68], rax
mov rdi, qword [rsp + 0x38]
xor eax, eax
mov rcx, qword [rsp + 0x68]
rep stosb byte [rdi], al
movzx eax, word [rsp + 0xb0]
mov r8d, eax
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0xb8]
call fcn.140019c90
movzx eax, al
test eax, eax
jne 0x1400244e7
xor al, al
jmp 0x14002455a
xor eax, eax
mov word [rsp + 0xb0], ax
mov rax, qword [rsp + 0xa8]
add rax, 0x58
mov r8d, 0x10
lea rdx, [rsp + 0xb0]
mov rcx, rax
call fcn.14001aed0
movzx eax, al
test eax, eax
jne 0x14002451e
xor al, al
jmp 0x14002455a
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x50], rax
mov rcx, qword [rsp + 0x50]
call fcn.14002b224
cmp qword [rsp + 0x50], 0
jne 0x140024545
mov qword [rsp + 0x70], 0
jmp 0x140024558
mov qword [rsp + 0x38], 0x8123
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x70], rax
mov al, 1
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.14002b1c0
add rsp, 0xe8
pop rdi
pop rsi
ret