Function at 0x1401a6860
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 0x1401a68b2
cmp ecx, 1
je 0x1401a68ab
mov esi, r13d
jmp 0x1401a68b7
mov esi, 1
jmp 0x1401a68b7
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 0x1401a68e1
mov r14d, 0xc004d107
mov ecx, r14d
jmp 0x1401a6c2c
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 0x1401a6c14
cmp qword [r9], r13
je 0x1401a6c14
cmp ecx, esi
jb 0x1401a6c14
mov r9, qword [0x14045d6d8]
lea r12, [r15 + 0x10]
movzx edx, byte [r12 + 0x27]
test edx, edx
je 0x1401a6938
cmp edx, 1
je 0x1401a6932
mov qword [rbp - 0x80], r13
jmp 0x1401a6944
mov rax, qword [r12]
jmp 0x1401a693b
mov rax, r12
mov qword [rbp - 0x80], rax
test rax, rax
jne 0x1401a6949
mov rax, r13
jmp 0x1401a6951
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 0x1401a697f
cmp edx, 1
je 0x1401a6979
mov qword [rbp - 0x70], r13
jmp 0x1401a698c
mov rax, qword [r15 + 0x40]
jmp 0x1401a6983
lea rax, [r15 + 0x40]
mov qword [rbp - 0x70], rax
test rax, rax
jne 0x1401a6991
mov rax, r13
jmp 0x1401a6999
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 0x1401a6a12
mov r14, qword [rbp + 0x58]
cmp r13d, ebx
jae 0x1401a6a04
mov edx, dword [r14 + 8]
lea r8, [rbp + 0x60]
mov rcx, qword [r14]
add edx, r13d
call fcn.14018d9f4
mov dl, byte [rbp + 0x60]
movzx ecx, byte [r12 + 0x27]
xor dl, byte [rax]
test ecx, ecx
je 0x1401a69ed
cmp ecx, 1
je 0x1401a69e7
xor ecx, ecx
jmp 0x1401a69f0
mov rcx, qword [r12]
jmp 0x1401a69f0
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 0x1401a69b7
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 0x1401a6b73
mov rax, qword [r15]
lea rdx, [rbp - 0x50]
mov qword [rbp - 0x38], rax
xor r9d, r9d
lea rax, [0x14004755c]
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 0x1401a68d9
test esi, esi
je 0x1401a6b2f
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.14018d9f4
mov bl, byte [rbp + 0x60]
lea r8, [rsp + 0x20]
mov rcx, qword [rsp + 0x70]
mov edx, r15d
xor bl, byte [rax]
call fcn.14018d9f4
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.14018d9f4
mov rcx, rax
inc r15d
mov al, byte [rsp + 0x21]
xor al, dil
mov byte [rcx], al
sub r14, 1
jne 0x1401a6ac3
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 0x1401a6b6f
movaps xmm0, xmmword [rsp + 0x70]
jmp 0x1401a6a32
mov ecx, dword [rsp + 0x30]
mov rax, qword [rbp + 0x70]
xor ebx, ebx
mov dword [rax], ecx
test esi, esi
je 0x1401a6bc9
mov r12d, dword [rsp + 0x48]
xor edi, edi
mov rcx, qword [rsp + 0x40]
lea edx, [r12 + rbx]
lea r8, [rbp + 0x60]
call fcn.14018d9f4
mov dl, byte [rbp + 0x60]
movzx ecx, byte [r15 + 0x57]
xor dl, byte [rax]
test ecx, ecx
je 0x1401a6bb5
cmp ecx, 1
je 0x1401a6baf
xor eax, eax
jmp 0x1401a6bb9
mov rax, qword [r15 + 0x40]
jmp 0x1401a6bb9
lea rax, [r15 + 0x40]
mov byte [rdi + rax], dl
inc ebx
inc rdi
cmp ebx, esi
jb 0x1401a6b86
lea r12, [r15 + 0x10]
xor ebx, ebx
cmp dword [r15 + 0x38], ebx
jbe 0x1401a6c31
mov edi, dword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
lea edx, [rdi + rbx]
lea r8, [rbp + 0x60]
call fcn.14018d9f4
mov dl, byte [rbp + 0x60]
movzx ecx, byte [r12 + 0x27]
xor dl, byte [rax]
test ecx, ecx
je 0x1401a6c04
cmp ecx, 1
je 0x1401a6bfe
xor ecx, ecx
jmp 0x1401a6c07
mov rcx, qword [r12]
jmp 0x1401a6c07
mov rcx, r12
mov byte [rbx + rcx], dl
inc ebx
cmp ebx, dword [r15 + 0x38]
jb 0x1401a6bd5
jmp 0x1401a6c31
mov dword [rax], ecx
mov rax, qword [r9]
neg rax
sbb ecx, ecx
and ecx, 0xc004d107
mov r14d, ecx
cmp qword [r9], r13
je 0x1401a6c31
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