Function at 0x1401a6c64
Capabilities:
Encode data using xor
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], r9
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x78]
sub rsp, 0x138
mov r10, qword [rcx]
mov r14, rcx
mov r11, r9
movaps xmmword [rax - 0x58], xmm6
mov ebx, r8d
mov r9, rdx
mov ecx, dword [r10 + 4]
sub ecx, 1
je 0x1401a6cb6
cmp ecx, 1
je 0x1401a6caf
xor esi, esi
jmp 0x1401a6cbb
mov esi, 1
jmp 0x1401a6cbb
mov esi, reloc.OLEAUT32.dll_SafeArrayGetDim
mov ecx, dword [r14 + 0x38]
and dword [rbp - 0x60], 0
lea eax, [rcx + r8]
cmp eax, ebx
jb 0x1401a7228
mov rdx, qword [r11]
mov qword [rsp + 0x40], rdx
test rdx, rdx
jne 0x1401a6cfc
lea eax, [rcx + rsi]
lea ecx, [r8 - 1]
add ecx, eax
mov eax, ecx
div esi
mov rax, qword [rbp + 0xa0]
sub ecx, edx
mov dword [rax], ecx
xor r15d, r15d
jmp 0x1401a7235
cmp eax, esi
ja 0x1401a6d63
xor edi, edi
test ebx, ebx
je 0x1401a6d53
mov r15d, dword [r9 + 8]
mov r12, qword [r9]
lea edx, [r15 + rdi]
mov rcx, r12
lea r8, [rbp + 0x90]
call fcn.14018d9f4
mov dl, byte [rbp + 0x90]
movzx ecx, byte [r14 + 0x37]
xor dl, byte [rax]
test ecx, ecx
je 0x1401a6d40
cmp ecx, 1
je 0x1401a6d3a
xor ecx, ecx
jmp 0x1401a6d44
mov rcx, qword [r14 + 0x10]
jmp 0x1401a6d44
lea rcx, [r14 + 0x10]
mov eax, dword [r14 + 0x38]
add eax, edi
inc edi
mov byte [rcx + rax], dl
cmp edi, ebx
jb 0x1401a6d0d
mov rax, qword [rbp + 0xa0]
add dword [r14 + 0x38], ebx
and dword [rax], 0
jmp 0x1401a6cf4
xor edx, edx
lea eax, [rcx - 1]
add eax, esi
add eax, ebx
div esi
mov rdx, qword [rbp + 0xa0]
lea edi, [rax - 1]
mov eax, edi
mov dword [rsp + 0x30], edi
imul eax, esi
mov dword [rsp + 0x50], eax
cmp dword [rdx], eax
jb 0x1401a7226
xor r13d, r13d
mov dword [rsp + 0x24], r13d
cmp ecx, esi
jae 0x1401a6e07
cmp r13d, ebx
jae 0x1401a6df7
mov edx, dword [r9 + 8]
lea r8, [rbp + 0x90]
mov rcx, qword [r9]
add edx, r13d
call fcn.14018d9f4
mov r8b, byte [rbp + 0x90]
lea rcx, [r14 + 0x10]
movzx edx, byte [r14 + 0x37]
xor r8b, byte [rax]
test edx, edx
je 0x1401a6dd7
cmp edx, 1
je 0x1401a6dd4
xor ecx, ecx
jmp 0x1401a6dd7
mov rcx, qword [rcx]
mov eax, dword [r14 + 0x38]
inc r13d
mov r9, qword [rbp + 0x88]
mov byte [rcx + rax], r8b
mov ecx, dword [r14 + 0x38]
inc ecx
mov dword [r14 + 0x38], ecx
cmp ecx, esi
jb 0x1401a6d99
mov eax, dword [rsp + 0x50]
mov r11, qword [rbp + 0x98]
mov dword [rsp + 0x24], r13d
mov rdx, qword [r14]
lea r12, [r14 + 0x10]
sub ecx, eax
mov dword [rsp + 0x28], esi
sub ecx, r13d
add ecx, ebx
mov dword [r14 + 0x38], ecx
movzx ecx, byte [r12 + 0x27]
test ecx, ecx
je 0x1401a6e36
cmp ecx, 1
je 0x1401a6e30
xor eax, eax
jmp 0x1401a6e39
mov rax, qword [r12]
jmp 0x1401a6e39
mov rax, r12
and dword [rsp + 0x68], 0
mov qword [rsp + 0x60], rax
test rax, rax
je 0x1401a6e59
mov rax, qword [0x14045d6d8]
mov ecx, dword [rax]
lea rax, [rsp + 0x60]
add rax, rcx
movaps xmm0, xmmword [r11]
mov ecx, 0x40
and dword [rbp - 0x78], 0
mov r8d, ecx
mov qword [rbp - 0x80], rax
xor r9d, r9d
movaps xmm1, xmmword [rbp - 0x80]
lea rax, [0x14003095c]
mov qword [rbp - 0x38], rax
lea rax, [rbp - 0x70]
mov qword [rbp - 0x30], rax
lea rax, [rbp - 0x50]
mov qword [rbp - 0x1c], rax
lea rax, [rbp + 0x10]
mov qword [rbp - 0x10], rax
lea rax, [rsp + 0x28]
mov qword [rbp - 0x28], rdx
lea rdx, [rbp - 0x40]
mov dword [rbp - 0x20], ecx
lea ecx, [r8 + 0x79]
mov qword [rbp - 8], rax
movdqa xmmword [rbp + 0x10], xmm0
movdqa xmmword [rbp - 0x50], xmm1
mov qword [rbp - 0x40], 3
mov dword [rbp - 0x14], esi
call sub.ntdll.dll_NtQuerySystemInformation
mov r15d, dword [rbp - 0x70]
mov dword [rsp + 0x2c], r15d
test r15d, r15d
jns 0x1401a6edf
mov ecx, r15d
jmp 0x1401a7230
test esi, esi
je 0x1401a6f84
mov rax, qword [rbp + 0x98]
lea r12, [r14 + 0x40]
mov r13, qword [rsp + 0x40]
xor r15d, r15d
mov r14d, dword [rax + 8]
mov eax, esi
mov qword [rsp + 0x70], rax
movzx ecx, byte [r12 + 0x17]
test ecx, ecx
je 0x1401a6f1e
cmp ecx, 1
je 0x1401a6f18
xor eax, eax
jmp 0x1401a6f21
mov rax, qword [r12]
jmp 0x1401a6f21
mov rax, r12
mov bl, byte [r15 + rax]
lea r8, [rbp + 0x90]
mov edx, r14d
mov rcx, r13
call fcn.14018d9f4
mov dil, byte [rbp + 0x90]
lea r8, [rsp + 0x20]
mov edx, r14d
mov rcx, r13
xor dil, byte [rax]
xor dil, bl
call fcn.14018d9f4
mov cl, byte [rsp + 0x20]
inc r14d
xor cl, dil
inc r15
sub qword [rsp + 0x70], 1
mov byte [rax], cl
jne 0x1401a6f05
mov r14, qword [rbp + 0x80]
mov r15d, dword [rsp + 0x2c]
mov r13d, dword [rsp + 0x24]
mov edi, dword [rsp + 0x30]
lea r12, [r14 + 0x10]
mov rcx, qword [rbp + 0x88]
mov eax, dword [rcx + 8]
mov rcx, qword [rcx]
mov qword [rbp], rcx
mov dword [rsp + 0x70], eax
add eax, r13d
mov dword [rbp + 8], eax
mov rax, qword [rbp + 0x98]
movaps xmm6, xmmword [rbp]
movaps xmmword [rbp - 0x80], xmm6
mov ecx, dword [rax + 8]
mov rax, qword [rsp + 0x40]
add ecx, esi
mov dword [rsp + 0x48], ecx
movzx ecx, byte [r12 + 0x27]
mov qword [rsp + 0x40], rax
movaps xmm1, xmmword [rsp + 0x40]
movaps xmmword [rsp + 0x40], xmm1
test ecx, ecx
je 0x1401a6fe7
cmp ecx, 1
je 0x1401a6fe1
and qword [rbp - 0x68], 0
jmp 0x1401a6ff3
mov rax, qword [r12]
jmp 0x1401a6fea
mov rax, r12
mov qword [rbp - 0x68], rax
test rax, rax
jne 0x1401a6ff7
xor eax, eax
jmp 0x1401a7007
mov rax, qword [0x14045d6d8]
mov ecx, dword [rax]
lea rax, [rbp - 0x68]
add rax, rcx
and dword [rsp + 0x68], 0
mov ebx, 0
mov qword [rsp + 0x60], rax
add edi, 0xffffffff
movaps xmm0, xmmword [rsp + 0x60]
mov dword [rsp + 0x30], edi
movdqa xmmword [rsp + 0x60], xmm0
mov dword [rsp + 0x24], ebx
je 0x1401a7174
mov rax, qword [r14]
lea rdx, [rbp - 0x40]
mov qword [rbp - 0x28], rax
mov ecx, 0x40
lea rax, [0x14003095c]
mov dword [rbp - 0x20], ecx
mov qword [rbp - 0x38], rax
mov r8d, ecx
lea rax, [rbp - 0x6c]
mov dword [rsp + 0x28], esi
mov qword [rbp - 0x30], rax
xor r9d, r9d
lea rax, [rbp + 0x10]
movdqa xmmword [rbp - 0x80], xmm1
mov qword [rbp - 0x1c], rax
lea ecx, [r8 + 0x79]
lea rax, [rbp - 0x80]
movdqa xmmword [rbp + 0x10], xmm6
mov qword [rbp - 0x10], rax
lea rax, [rsp + 0x28]
mov qword [rbp - 8], rax
mov qword [rbp - 0x40], 3
mov dword [rbp - 0x14], esi
call sub.ntdll.dll_NtQuerySystemInformation
mov r15d, dword [rbp - 0x6c]
mov dword [rsp + 0x2c], r15d
test r15d, r15d
js 0x1401a6ed7
test esi, esi
je 0x1401a7139
mov r12d, dword [rsp + 0x68]
mov r14d, dword [rsp + 0x48]
sub r12d, r14d
mov r15d, esi
mov rcx, qword [rsp + 0x60]
lea edx, [r14 + r12]
lea r8, [rbp + 0x90]
call fcn.14018d9f4
mov bl, byte [rbp + 0x90]
lea r8, [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
mov edx, r14d
xor bl, byte [rax]
call fcn.14018d9f4
mov dil, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov rcx, qword [rsp + 0x40]
mov edx, r14d
xor dil, byte [rax]
xor dil, bl
call fcn.14018d9f4
mov cl, byte [rsp + 0x21]
inc r14d
xor cl, dil
mov byte [rax], cl
sub r15, 1
jne 0x1401a70c3
mov r14, qword [rbp + 0x80]
mov r15d, dword [rsp + 0x2c]
mov ebx, dword [rsp + 0x24]
mov edi, dword [rsp + 0x30]
lea r12, [r14 + 0x10]
mov eax, dword [rsp + 0x70]
add r13d, esi
mov rcx, qword [rbp]
add eax, r13d
add dword [rsp + 0x48], esi
inc ebx
mov dword [rbp - 0x48], eax
movdqa xmmword [rsp + 0x60], xmm6
mov qword [rbp - 0x50], rcx
movaps xmm6, xmmword [rbp - 0x50]
movaps xmmword [rbp - 0x80], xmm6
mov dword [rsp + 0x24], ebx
cmp ebx, edi
jae 0x1401a7174
movaps xmm1, xmmword [rsp + 0x40]
jmp 0x1401a7032
mov rcx, qword [rbp + 0xa0]
xor ebx, ebx
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
test esi, esi
je 0x1401a71d7
mov r12d, dword [rsp + 0x68]
xor edi, edi
mov rcx, qword [rsp + 0x60]
lea edx, [r12 + rbx]
lea r8, [rbp + 0x90]
call fcn.14018d9f4
mov dl, byte [rbp + 0x90]
movzx ecx, byte [r14 + 0x57]
xor dl, byte [rax]
test ecx, ecx
je 0x1401a71c3
cmp ecx, 1
je 0x1401a71bd
xor eax, eax
jmp 0x1401a71c7
mov rax, qword [r14 + 0x40]
jmp 0x1401a71c7
lea rax, [r14 + 0x40]
mov byte [rdi + rax], dl
inc ebx
inc rdi
cmp ebx, esi
jb 0x1401a718e
lea r12, [r14 + 0x10]
xor ebx, ebx
cmp dword [r14 + 0x38], ebx
jbe 0x1401a7235
mov edi, dword [rbp - 0x78]
mov rcx, qword [rbp - 0x80]
lea edx, [rdi + rbx]
lea r8, [rbp + 0x90]
call fcn.14018d9f4
mov dl, byte [rbp + 0x90]
movzx ecx, byte [r12 + 0x27]
xor dl, byte [rax]
test ecx, ecx
je 0x1401a7216
cmp ecx, 1
je 0x1401a7210
xor ecx, ecx
jmp 0x1401a7219
mov rcx, qword [r12]
jmp 0x1401a7219
mov rcx, r12
mov byte [rbx + rcx], dl
inc ebx
cmp ebx, dword [r14 + 0x38]
jb 0x1401a71e2
jmp 0x1401a7235
mov dword [rdx], eax
mov ecx, 0xc004d107
mov r15d, ecx
call fcn.14007ac40
mov ecx, r15d
call fcn.14007ace8
movaps xmm6, xmmword [rsp + 0x120]
mov eax, r15d
add rsp, 0x138
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret