Function at 0x1401a7f20
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 0x1401a7f72
cmp ecx, 1
je 0x1401a7f6b
mov esi, r13d
jmp 0x1401a7f77
mov esi, 1
jmp 0x1401a7f77
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 0x1401a7fa1
mov r14d, 0xc004d107
mov ecx, r14d
jmp 0x1401a82f1
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 0x1401a82d9
cmp qword [r9], r13
je 0x1401a82d9
cmp ecx, esi
jb 0x1401a82d9
mov r9, qword [0x1404524a8]
lea r12, [r15 + 0x10]
movzx edx, byte [r12 + 0x27]
test edx, edx
je 0x1401a7ff8
cmp edx, 1
je 0x1401a7ff2
mov qword [rbp - 0x80], r13
jmp 0x1401a8004
mov rax, qword [r12]
jmp 0x1401a7ffb
mov rax, r12
mov qword [rbp - 0x80], rax
test rax, rax
jne 0x1401a8009
mov rax, r13
jmp 0x1401a8011
mov eax, dword [r9]
lea rax, [rbp + rax - 0x80]
mov qword [rsp + 0x50], rax
lea r8, [r15 + 0x40]
movzx edx, byte [r8 + 0x17]
mov dword [rsp + 0x58], r13d
movaps xmm6, xmmword [rsp + 0x50]
movaps xmmword [rsp + 0x50], xmm6
test edx, edx
je 0x1401a8040
cmp edx, 1
je 0x1401a803d
mov qword [rbp - 0x70], r13
jmp 0x1401a8049
mov r8, qword [r8]
mov qword [rbp - 0x70], r8
test r8, r8
jne 0x1401a804e
mov rax, r13
jmp 0x1401a8056
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 0x1401a80cf
mov r14, qword [rbp + 0x58]
cmp r13d, ebx
jae 0x1401a80c1
mov edx, dword [r14 + 8]
lea r8, [rbp + 0x60]
mov rcx, qword [r14]
add edx, r13d
call fcn.14018f20c
movzx ecx, byte [r12 + 0x27]
mov dl, byte [rax]
xor dl, byte [rbp + 0x60]
test ecx, ecx
je 0x1401a80aa
cmp ecx, 1
je 0x1401a80a4
xor ecx, ecx
jmp 0x1401a80ad
mov rcx, qword [r12]
jmp 0x1401a80ad
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 0x1401a8074
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 edi, edi
mov dword [rsp + 0x28], edi
test r11d, r11d
je 0x1401a8238
mov ebx, dword [rsp + 0x78]
mov rax, qword [r15]
lea rdx, [rbp - 0x50]
mov qword [rbp - 0x38], rax
xor r9d, r9d
lea rax, [0x140054e1c]
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 0x1401a7f99
test esi, esi
je 0x1401a81f2
mov r12d, dword [rsp + 0x48]
mov r15d, ebx
sub r12d, ebx
mov r14d, esi
mov rcx, qword [rsp + 0x40]
lea edx, [r12 + r15]
lea r8, [rbp + 0x60]
call fcn.14018f20c
mov rcx, qword [rsp + 0x70]
lea r8, [rsp + 0x20]
mov edx, r15d
mov bl, byte [rax]
xor bl, byte [rbp + 0x60]
call fcn.14018f20c
mov rcx, qword [rsp + 0x70]
lea r8, [rsp + 0x21]
mov edx, r15d
mov dil, byte [rax]
xor dil, byte [rsp + 0x20]
xor dil, bl
call fcn.14018f20c
mov rcx, rax
inc r15d
mov al, byte [rsp + 0x21]
xor al, dil
mov byte [rcx], al
sub r14, 1
jne 0x1401a8182
mov r15, qword [rbp + 0x50]
mov r14d, dword [rsp + 0x24]
mov ebx, dword [rsp + 0x78]
mov edi, dword [rsp + 0x28]
lea r12, [r15 + 0x10]
mov rdx, qword [rbp + 0x58]
add ebx, esi
inc edi
movdqa xmmword [rsp + 0x40], xmm6
mov dword [rsp + 0x78], ebx
mov dword [rsp + 0x28], edi
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 edi, dword [rsp + 0x2c]
jae 0x1401a8234
movaps xmm0, xmmword [rsp + 0x70]
jmp 0x1401a80f3
mov ecx, dword [rsp + 0x30]
mov rax, qword [rbp + 0x70]
xor ebx, ebx
mov dword [rax], ecx
test esi, esi
je 0x1401a828e
mov r12d, dword [rsp + 0x48]
xor edi, edi
mov rcx, qword [rsp + 0x40]
lea edx, [r12 + rbx]
lea r8, [rbp + 0x60]
call fcn.14018f20c
movzx ecx, byte [r15 + 0x57]
mov dl, byte [rax]
xor dl, byte [rbp + 0x60]
test ecx, ecx
je 0x1401a827a
cmp ecx, 1
je 0x1401a8274
xor eax, eax
jmp 0x1401a827e
mov rax, qword [r15 + 0x40]
jmp 0x1401a827e
lea rax, [r15 + 0x40]
mov byte [rdi + rax], dl
inc ebx
inc rdi
cmp ebx, esi
jb 0x1401a824b
lea r12, [r15 + 0x10]
xor ebx, ebx
cmp dword [r15 + 0x38], ebx
jbe 0x1401a82f6
mov edi, dword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
lea edx, [rdi + rbx]
lea r8, [rbp + 0x60]
call fcn.14018f20c
movzx ecx, byte [r12 + 0x27]
mov dl, byte [rax]
xor dl, byte [rbp + 0x60]
test ecx, ecx
je 0x1401a82c9
cmp ecx, 1
je 0x1401a82c3
xor ecx, ecx
jmp 0x1401a82cc
mov rcx, qword [r12]
jmp 0x1401a82cc
mov rcx, r12
mov byte [rbx + rcx], dl
inc ebx
cmp ebx, dword [r15 + 0x38]
jb 0x1401a829a
jmp 0x1401a82f6
mov dword [rax], ecx
mov rax, qword [r9]
neg rax
sbb ecx, ecx
and ecx, 0xc004d107
mov r14d, ecx
cmp qword [r9], r13
je 0x1401a82f6
call fcn.140082a8c
mov ecx, r14d
call fcn.140082b34
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