Function at 0x14004e840
Capabilities:
Allocate or change rwx memory
Encode data using xor
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rdi
push r14
lea rbp, [rsp - 0x47]
sub rsp, 0xc0
mov rax, qword [0x140093010]
xor rax, rsp
mov qword [rbp + 0x37], rax
xor ebx, ebx
lea r9, [rbp + 7]
mov r14, rcx
mov dword [rbp + 7], ebx
xor r8d, r8d
xor edx, edx
mov edi, ebx
lea ecx, [rbx + 0x40]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x14004e8d6
nop word [rax + rax]
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [rbp + 7]
xor ecx, ecx
mov r8d, 0x3000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, dword [rbp + 7]
lea r9, [rbp + 7]
mov rdx, rax
mov ecx, 0x40
mov rdi, rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
je 0x14004e890
mov qword [rsp + 0xe8], rsi
mov qword [rsp + 0xf0], r15
test eax, eax
js 0x14004ef71
test rdi, rdi
je 0x14004ef87
mov r15, rbx
mov esi, ebx
cmp qword [rdi], rbx
jbe 0x14004e968
mov rax, rbx
nop dword [rax]
nop dword [rax + rax]
lea rax, [rax + rax*4]
movups xmm0, xmmword [rdi + rax*8 + 0x10]
movsd xmm1, qword [rdi + rax*8 + 0x30]
movups xmmword [rbp - 9], xmm0
movups xmmword [rbp - 0x59], xmm0
movups xmm0, xmmword [rdi + rax*8 + 0x20]
movsd qword [rbp - 0x39], xmm1
movups xmmword [rbp - 0x49], xmm0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
movups xmm0, xmmword [rbp - 9]
mov ecx, eax
psrldq xmm0, 8
movq rax, xmm0
cmp rax, rcx
jne 0x14004e956
cmp qword [rbp - 0x49], r14
je 0x14004e964
inc esi
mov eax, esi
cmp rax, qword [rdi]
jb 0x14004e910
jmp 0x14004ef76
mov r15, qword [rbp - 0x59]
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
test r15, r15
je 0x14004ef87
lea r8, [r15 + 8]
mov qword [rbp + 0x27], rbx
mov r9d, 8
lea rdx, [rbp + 0x27]
mov rcx, r14
call fcn.14004d3a0
test al, al
je 0x14004eed1
mov r8, qword [rbp + 0x27]
test r8, r8
je 0x14004eed1
add r8, 8
mov qword [rbp + 0x2f], rbx
mov r9d, 8
lea rdx, [rbp + 0x2f]
mov rcx, r14
call fcn.14004d3a0
test al, al
je 0x14004ee31
mov r8, qword [rbp + 0x2f]
test r8, r8
je 0x14004ee31
add r8, 0x28
mov qword [rbp + 0x1f], rbx
mov r9d, 8
lea rdx, [rbp + 0x1f]
mov rcx, r14
call fcn.14004d3a0
test al, al
je 0x14004ed89
mov r8, qword [rbp + 0x1f]
test r8, r8
je 0x14004ed89
xorps xmm0, xmm0
lea rdx, [rbp + 0xf]
add r8, 0x58
mov r9d, reloc.WS2_32.dll_recv
mov rcx, r14
movups xmmword [rbp + 0xf], xmm0
call fcn.14004d3a0
test al, al
je 0x14004ecf2
movzx eax, word [rbp + 0xf]
test ax, ax
je 0x14004ecf2
mov ecx, eax
mov eax, 2
shr rcx, 1
inc rcx
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.14006d164
movzx r8d, word [rbp + 0xf]
xor edx, edx
add r8, 2
mov rcx, rax
mov rdi, rax
call fcn.14006ddba
movzx r9d, word [rbp + 0xf]
mov rdx, rdi
mov r8, qword [rbp + 0x17]
mov rcx, r14
call fcn.14004d3a0
test al, al
jne 0x14004eb4d
mov dword [rbp - 0x59], 0xc5efc596
mov ecx, 0x3a33
mov dword [rbp - 0x55], 0xc5f0c592
mov dword [rbp - 0x51], 0xc5b3c597
mov dword [rbp - 0x4d], 0xc5b8c5ba
mov dword [rbp - 0x49], 0xc5b2c5b0
mov dword [rbp - 0x45], 0xc5acc5f7
mov dword [rbp - 0x41], 0xc5fac5b6
mov dword [rbp - 0x3d], 0xc5b9c5a9
mov dword [rbp - 0x39], 0xc5bac5bc
mov dword [rbp - 0x35], 0xc584c5ff
mov dword [rbp - 0x31], 0xc58bc593
mov dword [rbp - 0x2d], 0xc581c595
mov dword [rbp - 0x29], 0xc5c6c597
mov dword [rbp - 0x25], 0xc589c589
mov dword [rbp - 0x21], 0xc58fc584
mov word [rbp - 0x1d], bx
mov byte [rbp - 0x1b], 1
nop dword [rax]
movzx eax, bx
sub ax, cx
xor word [rbp + rbx*2 - 0x59], ax
inc rbx
cmp rbx, 0x1e
jb 0x14004eb10
mov byte [rbp - 0x1b], 0
lea rdx, [rbp - 0x59]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.140054ba0
lea rdx, [0x140054d80]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
jmp 0x14004ef87
mov rdx, qword [rbp + 0x1f]
lea r8, [rbp + 0xf]
add rdx, 0x58
mov word [rbp + 0xf], bx
mov r9d, reloc.WS2_32.dll_recv
mov rcx, r14
call fcn.14004d3a0
mov dword [rbp - 0x55], 0xc5f0c592
mov ecx, 0x3a33
test al, al
jne 0x14004ec31
mov dword [rbp - 0x59], 0xc5efc596
mov dword [rbp - 0x51], 0xc5b3c597
mov dword [rbp - 0x4d], 0xc5b8c5ba
mov dword [rbp - 0x49], 0xc5b2c5b0
mov dword [rbp - 0x45], 0xc5acc5f7
mov dword [rbp - 0x41], 0xc5fac5b6
mov dword [rbp - 0x3d], 0xc5aec5ac
mov dword [rbp - 0x39], 0xc5aac5b4
mov dword [rbp - 0x35], 0xc5c0c5ba
mov dword [rbp - 0x31], 0xc590c585
mov dword [rbp - 0x2d], 0xc592c58a
mov dword [rbp - 0x29], 0xc594c580
mov dword [rbp - 0x25], 0xc586c5c7
mov dword [rbp - 0x21], 0xc587c588
mov dword [rbp - 0x1d], 0xc5ccc58e
mov dword [rbp - 0x19], 0xc58bc581
mov dword [rbp - 0x15], 0xc597c581
mov dword [rbp - 0x11], 0xc59ac585
mov word [rbp - 0xd], bx
mov byte [rbp - 0xb], 1
nop word [rax + rax]
movzx eax, bx
sub ax, cx
xor word [rbp + rbx*2 - 0x59], ax
inc rbx
cmp rbx, 0x26
jb 0x14004ec10
mov byte [rbp - 0xb], 0
lea rdx, [rbp - 0x59]
jmp 0x14004eb2c
mov dword [rbp - 0x59], 0xc5e5c596
mov dword [rbp - 0x51], 0xc5bfc59c
mov dword [rbp - 0x4d], 0xc5bac586
mov dword [rbp - 0x49], 0xc5b9c5b9
mov dword [rbp - 0x45], 0xc5bcc5b6
mov dword [rbp - 0x41], 0xc5bec5bc
mov dword [rbp - 0x3d], 0xc5aec59f
mov dword [rbp - 0x39], 0xc5a8c5b4
mov dword [rbp - 0x35], 0xc592c5ba
mov dword [rbp - 0x31], 0xc5c2c592
mov dword [rbp - 0x2d], 0xc588c5a0
mov dword [rbp - 0x29], 0xc587c580
mov dword [rbp - 0x25], 0xc58dc589
mov dword [rbp - 0x21], 0xc5d0c58d
mov dword [rbp - 0x1d], 0xc5cb
mov byte [rbp - 0x19], 1
nop
movzx eax, bx
sub ax, cx
xor word [rbp + rbx*2 - 0x59], ax
inc rbx
cmp rbx, 0x1f
jb 0x14004eca0
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
lea rdx, [rbp - 0x59]
mov byte [rbp - 0x19], 0
call fcn.140054ba0
mov rcx, rax
mov rdx, rdi
call fcn.140054ba0
lea rdx, [0x140054d80]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
mov rcx, rdi
call fcn.14006cbc0
mov al, 1
jmp 0x14004ef89
mov dword [rbp - 0x59], 0xc5efc596
mov ecx, 0x3a33
mov dword [rbp - 0x55], 0xc5f0c592
mov dword [rbp - 0x51], 0xc5b3c597
mov dword [rbp - 0x4d], 0xc5b8c5ba
mov dword [rbp - 0x49], 0xc5b2c5b0
mov dword [rbp - 0x45], 0xc5acc5f7
mov dword [rbp - 0x41], 0xc5fac5b6
mov dword [rbp - 0x3d], 0xc5b5c5bd
mov dword [rbp - 0x39], 0xc5bac5b3
mov dword [rbp - 0x35], 0xc584c5ff
mov dword [rbp - 0x31], 0xc58bc593
mov dword [rbp - 0x2d], 0xc581c595
mov dword [rbp - 0x29], 0xc5c6c597
mov dword [rbp - 0x25], 0xc589c589
mov dword [rbp - 0x21], 0xc58fc584
mov word [rbp - 0x1d], bx
mov byte [rbp - 0x1b], 1
nop dword [rax + rax]
movzx eax, bx
sub ax, cx
xor word [rbp + rbx*2 - 0x59], ax
inc rbx
cmp rbx, 0x1e
jb 0x14004ed70
jmp 0x14004eb24
mov dword [rbp - 0x59], 0xc5efc596
mov ecx, 0x3a33
mov dword [rbp - 0x55], 0xc5f0c592
mov dword [rbp - 0x51], 0xc5b3c597
mov dword [rbp - 0x4d], 0xc5b8c5ba
mov dword [rbp - 0x49], 0xc5b2c5b0
mov dword [rbp - 0x45], 0xc5acc5f7
mov dword [rbp - 0x41], 0xc5fac5b6
mov dword [rbp - 0x3d], 0xc5b5c5bd
mov dword [rbp - 0x39], 0xc5bac5b3
mov dword [rbp - 0x35], 0xc584c5ff
mov dword [rbp - 0x31], 0xc58bc593
mov dword [rbp - 0x2d], 0xc581c595
mov dword [rbp - 0x29], 0xc5b9c597
mov dword [rbp - 0x25], 0xc58dc594
mov dword [rbp - 0x21], 0xc59ec58a
mov dword [rbp - 0x1d], 0xc583c582
mov dword [rbp - 0x19], 0xc583
mov byte [rbp - 0x15], 1
nop dword [rax]
movzx eax, bx
sub ax, cx
xor word [rbp + rbx*2 - 0x59], ax
inc rbx
cmp rbx, 0x21
jb 0x14004ee10
mov byte [rbp - 0x15], 0
lea rdx, [rbp - 0x59]
jmp 0x14004eb2c
mov dword [rbp - 0x59], 0xc5efc596
mov ecx, 0x3a33
mov dword [rbp - 0x55], 0xc5f0c592
mov dword [rbp - 0x51], 0xc5b3c597
mov dword [rbp - 0x4d], 0xc5b8c5ba
mov dword [rbp - 0x49], 0xc5b2c5b0
mov dword [rbp - 0x45], 0xc5acc5f7
mov dword [rbp - 0x41], 0xc5fac5b6
mov dword [rbp - 0x3d], 0xc5b5c5bd
mov dword [rbp - 0x39], 0xc5bac5b3
mov dword [rbp - 0x35], 0xc584c5ff
mov dword [rbp - 0x31], 0xc58bc593
mov dword [rbp - 0x2d], 0xc581c595
mov dword [rbp - 0x29], 0xc5b9c597
mov dword [rbp - 0x25], 0xc58ac588
mov dword [rbp - 0x21], 0xc58fc583
mov dword [rbp - 0x1d], 0xc598c588
mov word [rbp - 0x19], bx
mov byte [rbp - 0x17], 1
nop
movzx eax, bx
sub ax, cx
xor word [rbp + rbx*2 - 0x59], ax
inc rbx
cmp rbx, 0x20
jb 0x14004eeb0
mov byte [rbp - 0x17], 0
lea rdx, [rbp - 0x59]
jmp 0x14004eb2c
mov dword [rbp - 0x59], 0xc5efc596
mov ecx, 0x3a33
mov dword [rbp - 0x55], 0xc5f0c592
mov dword [rbp - 0x51], 0xc5b3c597
mov dword [rbp - 0x4d], 0xc5b8c5ba
mov dword [rbp - 0x49], 0xc5b2c5b0
mov dword [rbp - 0x45], 0xc5acc5f7
mov dword [rbp - 0x41], 0xc5fac5b6
mov dword [rbp - 0x3d], 0xc5b5c5bd
mov dword [rbp - 0x39], 0xc5bac5b3
mov dword [rbp - 0x35], 0xc584c5ff
mov dword [rbp - 0x31], 0xc594c584
mov dword [rbp - 0x2d], 0xc587c58a
mov dword [rbp - 0x29], 0xc5b9c580
mov dword [rbp - 0x25], 0xc58ac588
mov dword [rbp - 0x21], 0xc58fc583
mov dword [rbp - 0x1d], 0xc598c588
mov word [rbp - 0x19], bx
mov byte [rbp - 0x17], 1
nop
movzx eax, bx
sub ax, cx
xor word [rbp + rbx*2 - 0x59], ax
inc rbx
cmp rbx, 0x20
jb 0x14004ef50
mov byte [rbp - 0x17], 0
lea rdx, [rbp - 0x59]
jmp 0x14004eb2c
test rdi, rdi
je 0x14004ef87
mov r8d, 0x8000
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor al, al
mov r15, qword [rsp + 0xf0]
mov rsi, qword [rsp + 0xe8]
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.14006cad0
mov rbx, qword [rsp + 0xf8]
add rsp, 0xc0
pop r14
pop rdi
pop rbp
ret