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

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], rbx
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x48]
sub rsp, 0x110
mov r10, qword [rcx]
mov r15, rcx
xor r13d, r13d
movaps xmmword [rax - 0x48], xmm6
mov rdi, r9
mov ebx, r8d
mov ecx, dword [r10 + 4]
sub ecx, 1
je 0x1401a68c2
cmp ecx, 1
je 0x1401a68bb
mov esi, r13d
jmp 0x1401a68c7
mov esi, 1
jmp 0x1401a68c7
mov esi, reloc.OLEAUT32.dll_SafeArrayGetDim
mov r10d, dword [r15 + 0x38]
mov r14d, r13d
mov dword [rbp - 0x78], r13d
mov dword [rbp - 0x68], r13d
mov dword [rsp + 0x24], r13d
lea eax, [r10 + r8]
cmp eax, ebx
jae 0x1401a68f1
mov r14d, 0xc004d107
mov ecx, r14d
jmp 0x1401a6c3c
xor edx, edx
div esi
mov ecx, eax
mov dword [rsp + 0x2c], eax
imul ecx, esi
mov r11d, eax
mov rax, qword [rbp + 0x70]
mov dword [rsp + 0x30], ecx
cmp dword [rax], ecx
jb 0x1401a6c24
cmp qword [r9], r13
je 0x1401a6c24
cmp ecx, esi
jb 0x1401a6c24
mov r9, qword [0x14045d6d8]
lea r12, [r15 + 0x10]
movzx edx, byte [r12 + 0x27]
test edx, edx
je 0x1401a6948
cmp edx, 1
je 0x1401a6942
mov qword [rbp - 0x80], r13
jmp 0x1401a6954
mov rax, qword [r12]
jmp 0x1401a694b
mov rax, r12
mov qword [rbp - 0x80], rax
test rax, rax
jne 0x1401a6959
mov rax, r13
jmp 0x1401a6961
mov eax, dword [r9]
lea rax, [rbp + rax - 0x80]
movzx edx, byte [r15 + 0x57]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x58], r13d
movaps xmm6, xmmword [rsp + 0x50]
movaps xmmword [rsp + 0x50], xmm6
test edx, edx
je 0x1401a698f
cmp edx, 1
je 0x1401a6989
mov qword [rbp - 0x70], r13
jmp 0x1401a699c
mov rax, qword [r15 + 0x40]
jmp 0x1401a6993
lea rax, [r15 + 0x40]
mov qword [rbp - 0x70], rax
test rax, rax
jne 0x1401a69a1
mov rax, r13
jmp 0x1401a69a9
mov eax, dword [r9]
lea rax, [rbp + rax - 0x70]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x48], r13d
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x40], xmm0
cmp r10d, esi
jae 0x1401a6a22
mov r14, qword [rbp + 0x58]
cmp r13d, ebx
jae 0x1401a6a14
mov edx, dword [r14 + 8]
lea r8, [rbp + 0x60]
mov rcx, qword [r14]
add edx, r13d
call fcn.14018da04
mov dl, byte [rbp + 0x60]
movzx ecx, byte [r12 + 0x27]
xor dl, byte [rax]
test ecx, ecx
je 0x1401a69fd
cmp ecx, 1
je 0x1401a69f7
xor ecx, ecx
jmp 0x1401a6a00
mov rcx, qword [r12]
jmp 0x1401a6a00
mov rcx, r12
mov eax, dword [r15 + 0x38]
inc r13d
mov byte [rcx + rax], dl
inc dword [r15 + 0x38]
cmp dword [r15 + 0x38], esi
jb 0x1401a69c7
mov r14d, dword [rsp + 0x24]
mov ecx, dword [rsp + 0x30]
mov r11d, dword [rsp + 0x2c]
movaps xmm0, xmmword [rdi]
sub ebx, r13d
sub ebx, ecx
movaps xmmword [rsp + 0x70], xmm0
add dword [r15 + 0x38], ebx
xor ebx, ebx
mov dword [rsp + 0x28], ebx
test r11d, r11d
je 0x1401a6b83
mov rax, qword [r15]
lea rdx, [rbp - 0x50]
mov qword [rbp - 0x38], rax
xor r9d, r9d
lea rax, [0x14003e65c]
mov dword [rsp + 0x60], esi
mov qword [rbp - 0x48], rax
lea rax, [rsp + 0x64]
mov qword [rbp - 0x40], rax
lea rax, [rsp + 0x50]
mov qword [rbp - 0x2c], rax
lea r8d, [r9 + 0x40]
lea rax, [rbp - 0x10]
movdqa xmmword [rbp - 0x10], xmm0
mov qword [rbp - 0x20], rax
lea ecx, [r8 + 0x79]
lea rax, [rsp + 0x60]
movdqa xmmword [rsp + 0x50], xmm6
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x50], 3
mov dword [rbp - 0x30], 0x40
mov dword [rbp - 0x24], esi
call sub.ntdll.dll_NtQuerySystemInformation
mov r14d, dword [rsp + 0x64]
mov dword [rsp + 0x24], r14d
test r14d, r14d
js 0x1401a68e9
test esi, esi
je 0x1401a6b3f
mov r12d, dword [rsp + 0x48]
mov r15d, dword [rsp + 0x78]
sub r12d, r15d
mov r14d, esi
mov rcx, qword [rsp + 0x40]
lea edx, [r12 + r15]
lea r8, [rbp + 0x60]
call fcn.14018da04
mov bl, byte [rbp + 0x60]
lea r8, [rsp + 0x20]
mov rcx, qword [rsp + 0x70]
mov edx, r15d
xor bl, byte [rax]
call fcn.14018da04
mov dil, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov rcx, qword [rsp + 0x70]
mov edx, r15d
xor dil, byte [rax]
xor dil, bl
call fcn.14018da04
mov rcx, rax
inc r15d
mov al, byte [rsp + 0x21]
xor al, dil
mov byte [rcx], al
sub r14, 1
jne 0x1401a6ad3
mov r15, qword [rbp + 0x50]
mov r14d, dword [rsp + 0x24]
mov ebx, dword [rsp + 0x28]
lea r12, [r15 + 0x10]
mov rdx, qword [rbp + 0x58]
inc ebx
add dword [rsp + 0x78], esi
movdqa xmmword [rsp + 0x40], xmm6
mov dword [rsp + 0x28], ebx
mov ecx, dword [rdx + 8]
mov rax, qword [rdx]
add ecx, r13d
mov dword [rbp - 0x58], ecx
add r13d, esi
mov qword [rbp - 0x60], rax
movaps xmm6, xmmword [rbp - 0x60]
movaps xmmword [rsp + 0x50], xmm6
cmp ebx, dword [rsp + 0x2c]
jae 0x1401a6b7f
movaps xmm0, xmmword [rsp + 0x70]
jmp 0x1401a6a42
mov ecx, dword [rsp + 0x30]
mov rax, qword [rbp + 0x70]
xor ebx, ebx
mov dword [rax], ecx
test esi, esi
je 0x1401a6bd9
mov r12d, dword [rsp + 0x48]
xor edi, edi
mov rcx, qword [rsp + 0x40]
lea edx, [r12 + rbx]
lea r8, [rbp + 0x60]
call fcn.14018da04
mov dl, byte [rbp + 0x60]
movzx ecx, byte [r15 + 0x57]
xor dl, byte [rax]
test ecx, ecx
je 0x1401a6bc5
cmp ecx, 1
je 0x1401a6bbf
xor eax, eax
jmp 0x1401a6bc9
mov rax, qword [r15 + 0x40]
jmp 0x1401a6bc9
lea rax, [r15 + 0x40]
mov byte [rdi + rax], dl
inc ebx
inc rdi
cmp ebx, esi
jb 0x1401a6b96
lea r12, [r15 + 0x10]
xor ebx, ebx
cmp dword [r15 + 0x38], ebx
jbe 0x1401a6c41
mov edi, dword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
lea edx, [rdi + rbx]
lea r8, [rbp + 0x60]
call fcn.14018da04
mov dl, byte [rbp + 0x60]
movzx ecx, byte [r12 + 0x27]
xor dl, byte [rax]
test ecx, ecx
je 0x1401a6c14
cmp ecx, 1
je 0x1401a6c0e
xor ecx, ecx
jmp 0x1401a6c17
mov rcx, qword [r12]
jmp 0x1401a6c17
mov rcx, r12
mov byte [rbx + rcx], dl
inc ebx
cmp ebx, dword [r15 + 0x38]
jb 0x1401a6be5
jmp 0x1401a6c41
mov dword [rax], ecx
mov rax, qword [r9]
neg rax
sbb ecx, ecx
and ecx, 0xc004d107
mov r14d, ecx
cmp qword [r9], r13
je 0x1401a6c41
call fcn.14007ac40
mov ecx, r14d
call fcn.14007ace8
lea r11, [rsp + 0x110]
mov eax, r14d
mov rbx, qword [r11 + 0x58]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret