Function at 0x1401a6c74
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 0x1401a6cc6
cmp ecx, 1
je 0x1401a6cbf
xor esi, esi
jmp 0x1401a6ccb
mov esi, 1
jmp 0x1401a6ccb
mov esi, reloc.OLEAUT32.dll_SafeArrayGetDim
mov ecx, dword [r14 + 0x38]
and dword [rbp - 0x60], 0
lea eax, [rcx + r8]
cmp eax, ebx
jb 0x1401a7238
mov rdx, qword [r11]
mov qword [rsp + 0x40], rdx
test rdx, rdx
jne 0x1401a6d0c
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 0x1401a7245
cmp eax, esi
ja 0x1401a6d73
xor edi, edi
test ebx, ebx
je 0x1401a6d63
mov r15d, dword [r9 + 8]
mov r12, qword [r9]
lea edx, [r15 + rdi]
mov rcx, r12
lea r8, [rbp + 0x90]
call fcn.14018da04
mov dl, byte [rbp + 0x90]
movzx ecx, byte [r14 + 0x37]
xor dl, byte [rax]
test ecx, ecx
je 0x1401a6d50
cmp ecx, 1
je 0x1401a6d4a
xor ecx, ecx
jmp 0x1401a6d54
mov rcx, qword [r14 + 0x10]
jmp 0x1401a6d54
lea rcx, [r14 + 0x10]
mov eax, dword [r14 + 0x38]
add eax, edi
inc edi
mov byte [rcx + rax], dl
cmp edi, ebx
jb 0x1401a6d1d
mov rax, qword [rbp + 0xa0]
add dword [r14 + 0x38], ebx
and dword [rax], 0
jmp 0x1401a6d04
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 0x1401a7236
xor r13d, r13d
mov dword [rsp + 0x24], r13d
cmp ecx, esi
jae 0x1401a6e17
cmp r13d, ebx
jae 0x1401a6e07
mov edx, dword [r9 + 8]
lea r8, [rbp + 0x90]
mov rcx, qword [r9]
add edx, r13d
call fcn.14018da04
mov r8b, byte [rbp + 0x90]
lea rcx, [r14 + 0x10]
movzx edx, byte [r14 + 0x37]
xor r8b, byte [rax]
test edx, edx
je 0x1401a6de7
cmp edx, 1
je 0x1401a6de4
xor ecx, ecx
jmp 0x1401a6de7
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 0x1401a6da9
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 0x1401a6e46
cmp ecx, 1
je 0x1401a6e40
xor eax, eax
jmp 0x1401a6e49
mov rax, qword [r12]
jmp 0x1401a6e49
mov rax, r12
and dword [rsp + 0x68], 0
mov qword [rsp + 0x60], rax
test rax, rax
je 0x1401a6e69
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, [0x14003e65c]
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 0x1401a6eef
mov ecx, r15d
jmp 0x1401a7240
test esi, esi
je 0x1401a6f94
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 0x1401a6f2e
cmp ecx, 1
je 0x1401a6f28
xor eax, eax
jmp 0x1401a6f31
mov rax, qword [r12]
jmp 0x1401a6f31
mov rax, r12
mov bl, byte [r15 + rax]
lea r8, [rbp + 0x90]
mov edx, r14d
mov rcx, r13
call fcn.14018da04
mov dil, byte [rbp + 0x90]
lea r8, [rsp + 0x20]
mov edx, r14d
mov rcx, r13
xor dil, byte [rax]
xor dil, bl
call fcn.14018da04
mov cl, byte [rsp + 0x20]
inc r14d
xor cl, dil
inc r15
sub qword [rsp + 0x70], 1
mov byte [rax], cl
jne 0x1401a6f15
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 0x1401a6ff7
cmp ecx, 1
je 0x1401a6ff1
and qword [rbp - 0x68], 0
jmp 0x1401a7003
mov rax, qword [r12]
jmp 0x1401a6ffa
mov rax, r12
mov qword [rbp - 0x68], rax
test rax, rax
jne 0x1401a7007
xor eax, eax
jmp 0x1401a7017
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 0x1401a7184
mov rax, qword [r14]
lea rdx, [rbp - 0x40]
mov qword [rbp - 0x28], rax
mov ecx, 0x40
lea rax, [0x14003e65c]
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 0x1401a6ee7
test esi, esi
je 0x1401a7149
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.14018da04
mov bl, byte [rbp + 0x90]
lea r8, [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
mov edx, r14d
xor bl, byte [rax]
call fcn.14018da04
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.14018da04
mov cl, byte [rsp + 0x21]
inc r14d
xor cl, dil
mov byte [rax], cl
sub r15, 1
jne 0x1401a70d3
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 0x1401a7184
movaps xmm1, xmmword [rsp + 0x40]
jmp 0x1401a7042
mov rcx, qword [rbp + 0xa0]
xor ebx, ebx
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
test esi, esi
je 0x1401a71e7
mov r12d, dword [rsp + 0x68]
xor edi, edi
mov rcx, qword [rsp + 0x60]
lea edx, [r12 + rbx]
lea r8, [rbp + 0x90]
call fcn.14018da04
mov dl, byte [rbp + 0x90]
movzx ecx, byte [r14 + 0x57]
xor dl, byte [rax]
test ecx, ecx
je 0x1401a71d3
cmp ecx, 1
je 0x1401a71cd
xor eax, eax
jmp 0x1401a71d7
mov rax, qword [r14 + 0x40]
jmp 0x1401a71d7
lea rax, [r14 + 0x40]
mov byte [rdi + rax], dl
inc ebx
inc rdi
cmp ebx, esi
jb 0x1401a719e
lea r12, [r14 + 0x10]
xor ebx, ebx
cmp dword [r14 + 0x38], ebx
jbe 0x1401a7245
mov edi, dword [rbp - 0x78]
mov rcx, qword [rbp - 0x80]
lea edx, [rdi + rbx]
lea r8, [rbp + 0x90]
call fcn.14018da04
mov dl, byte [rbp + 0x90]
movzx ecx, byte [r12 + 0x27]
xor dl, byte [rax]
test ecx, ecx
je 0x1401a7226
cmp ecx, 1
je 0x1401a7220
xor ecx, ecx
jmp 0x1401a7229
mov rcx, qword [r12]
jmp 0x1401a7229
mov rcx, r12
mov byte [rbx + rcx], dl
inc ebx
cmp ebx, dword [r14 + 0x38]
jb 0x1401a71f2
jmp 0x1401a7245
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