Function at 0x1401a8328
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 - 0x68]
sub rsp, 0x128
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 0x1401a837a
cmp ecx, 1
je 0x1401a8373
xor esi, esi
jmp 0x1401a837f
mov esi, 1
jmp 0x1401a837f
mov esi, reloc.OLEAUT32.dll_SafeArrayGetDim
mov ecx, dword [r14 + 0x38]
and dword [rbp - 0x68], 0
lea eax, [rcx + r8]
cmp eax, ebx
jb 0x1401a88f8
mov rdx, qword [r11]
mov qword [rsp + 0x40], rdx
test rdx, rdx
jne 0x1401a83c0
lea eax, [rcx + rsi]
lea ecx, [r8 - 1]
add ecx, eax
mov eax, ecx
div esi
mov rax, qword [rbp + 0x90]
sub ecx, edx
mov dword [rax], ecx
xor r15d, r15d
jmp 0x1401a8905
cmp eax, esi
ja 0x1401a842e
xor edi, edi
test ebx, ebx
je 0x1401a841b
mov r15d, dword [r9 + 8]
mov r12, qword [r9]
lea edx, [r15 + rdi]
mov rcx, r12
lea r8, [rbp + 0x80]
call fcn.14018f20c
movzx ecx, byte [r14 + 0x37]
mov dl, byte [rax]
xor dl, byte [rbp + 0x80]
test ecx, ecx
je 0x1401a8404
cmp ecx, 1
je 0x1401a83fe
xor ecx, ecx
jmp 0x1401a8408
mov rcx, qword [r14 + 0x10]
jmp 0x1401a8408
lea rcx, [r14 + 0x10]
mov eax, dword [r14 + 0x38]
add eax, edi
inc edi
mov byte [rcx + rax], dl
cmp edi, ebx
jb 0x1401a83d1
mov ecx, dword [r14 + 0x38]
lea eax, [rcx + rbx]
mov dword [r14 + 0x38], eax
mov rax, qword [rbp + 0x90]
and dword [rax], 0
jmp 0x1401a83b8
xor edx, edx
lea eax, [rcx - 1]
add eax, esi
add eax, ebx
div esi
mov rdx, qword [rbp + 0x90]
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 0x1401a88f6
xor r13d, r13d
mov dword [rsp + 0x24], r13d
cmp ecx, esi
jae 0x1401a84ce
cmp r13d, ebx
jae 0x1401a84be
mov edx, dword [r9 + 8]
lea r8, [rbp + 0x80]
mov rcx, qword [r9]
add edx, r13d
call fcn.14018f20c
lea rcx, [r14 + 0x10]
movzx edx, byte [rcx + 0x27]
mov r8b, byte [rax]
xor r8b, byte [rbp + 0x80]
test edx, edx
je 0x1401a84a1
cmp edx, 1
je 0x1401a849e
xor ecx, ecx
jmp 0x1401a84a1
mov rcx, qword [rcx]
mov eax, dword [r14 + 0x38]
inc r13d
mov r9, qword [rbp + 0x78]
mov byte [rcx + rax], r8b
mov ecx, dword [r14 + 0x38]
inc ecx
mov dword [r14 + 0x38], ecx
cmp ecx, esi
jb 0x1401a8464
mov eax, dword [rsp + 0x50]
mov r11, qword [rbp + 0x88]
mov dword [rsp + 0x24], r13d
mov rdx, qword [r14]
lea r12, [r14 + 0x10]
sub ecx, eax
mov dword [rsp + 0x2c], esi
sub ecx, r13d
add ecx, ebx
mov dword [r14 + 0x38], ecx
movzx ecx, byte [r12 + 0x27]
test ecx, ecx
je 0x1401a84fd
cmp ecx, 1
je 0x1401a84f7
xor eax, eax
jmp 0x1401a8500
mov rax, qword [r12]
jmp 0x1401a8500
mov rax, r12
and dword [rsp + 0x68], 0
mov qword [rsp + 0x60], rax
test rax, rax
je 0x1401a8520
mov rax, qword [0x1404524a8]
mov ecx, dword [rax]
lea rax, [rsp + 0x60]
add rax, rcx
movaps xmm0, xmmword [r11]
mov ecx, 0x40
and dword [rsp + 0x78], 0
mov r8d, ecx
mov qword [rsp + 0x70], rax
xor r9d, r9d
movaps xmm1, xmmword [rsp + 0x70]
lea rax, [0x140054e1c]
mov qword [rbp - 0x48], rax
lea rax, [rbp - 0x78]
mov qword [rbp - 0x40], rax
lea rax, [rbp - 0x60]
mov qword [rbp - 0x2c], rax
lea rax, [rbp]
mov qword [rbp - 0x20], rax
lea rax, [rsp + 0x2c]
mov qword [rbp - 0x38], rdx
lea rdx, [rbp - 0x50]
mov dword [rbp - 0x30], ecx
lea ecx, [r8 + 0x79]
mov qword [rbp - 0x18], rax
movdqa xmmword [rbp], xmm0
movdqa xmmword [rbp - 0x60], xmm1
mov qword [rbp - 0x50], 3
mov dword [rbp - 0x24], esi
call sub.ntdll.dll_NtQuerySystemInformation
mov r15d, dword [rbp - 0x78]
mov dword [rsp + 0x28], r15d
test r15d, r15d
jns 0x1401a85a9
mov ecx, r15d
jmp 0x1401a8900
test esi, esi
je 0x1401a8649
mov rax, qword [rbp + 0x88]
lea r12, [r14 + 0x40]
mov r14, qword [rsp + 0x40]
xor r13d, r13d
mov r15d, dword [rax + 8]
mov eax, esi
mov qword [rbp - 0x80], rax
movzx ecx, byte [r12 + 0x17]
test ecx, ecx
je 0x1401a85e7
cmp ecx, 1
je 0x1401a85e1
xor eax, eax
jmp 0x1401a85ea
mov rax, qword [r12]
jmp 0x1401a85ea
mov rax, r12
mov bl, byte [rax + r13]
lea r8, [rbp + 0x80]
mov edx, r15d
mov rcx, r14
call fcn.14018f20c
lea r8, [rsp + 0x20]
mov edx, r15d
mov rcx, r14
mov dil, byte [rax]
xor dil, byte [rbp + 0x80]
xor dil, bl
call fcn.14018f20c
mov cl, byte [rsp + 0x20]
inc r15d
xor cl, dil
inc r13
sub qword [rbp - 0x80], 1
mov byte [rax], cl
jne 0x1401a85ce
mov r14, qword [rbp + 0x70]
mov r15d, dword [rsp + 0x28]
mov r13d, dword [rsp + 0x24]
mov edi, dword [rsp + 0x30]
lea r12, [r14 + 0x10]
mov rcx, qword [rbp + 0x78]
mov eax, dword [rcx + 8]
mov rcx, qword [rcx]
mov qword [rsp + 0x70], rcx
mov dword [rbp - 0x80], eax
add eax, r13d
mov dword [rsp + 0x78], eax
mov rax, qword [rbp + 0x88]
movaps xmm6, xmmword [rsp + 0x70]
mov qword [rbp - 0x10], rcx
movaps xmmword [rsp + 0x70], 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 0x1401a86b0
cmp ecx, 1
je 0x1401a86aa
and qword [rbp - 0x70], 0
jmp 0x1401a86bc
mov rax, qword [r12]
jmp 0x1401a86b3
mov rax, r12
mov qword [rbp - 0x70], rax
test rax, rax
jne 0x1401a86c0
xor eax, eax
jmp 0x1401a86d0
mov rax, qword [0x1404524a8]
mov ecx, dword [rax]
lea rax, [rbp - 0x70]
add rax, rcx
and dword [rsp + 0x68], 0
add edi, 0xffffffff
mov qword [rsp + 0x60], rax
movaps xmm0, xmmword [rsp + 0x60]
mov dword [rsp + 0x30], edi
mov edi, 0
mov dword [rsp + 0x28], edi
movdqa xmmword [rsp + 0x60], xmm0
je 0x1401a8842
mov ebx, dword [rsp + 0x48]
mov rax, qword [r14]
lea rdx, [rbp - 0x50]
mov qword [rbp - 0x38], rax
mov ecx, 0x40
lea rax, [0x140054e1c]
mov dword [rbp - 0x30], ecx
mov qword [rbp - 0x48], rax
mov r8d, ecx
lea rax, [rbp - 0x74]
mov dword [rsp + 0x2c], esi
mov qword [rbp - 0x40], rax
xor r9d, r9d
lea rax, [rbp]
movdqa xmmword [rsp + 0x70], xmm1
mov qword [rbp - 0x2c], rax
lea ecx, [r8 + 0x79]
lea rax, [rsp + 0x70]
movdqa xmmword [rbp], xmm6
mov qword [rbp - 0x20], rax
lea rax, [rsp + 0x2c]
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x50], 3
mov dword [rbp - 0x24], esi
call sub.ntdll.dll_NtQuerySystemInformation
mov r15d, dword [rbp - 0x74]
test r15d, r15d
js 0x1401a85a1
test esi, esi
je 0x1401a87fe
mov r12d, dword [rsp + 0x68]
mov r14d, ebx
sub r12d, ebx
mov r13d, esi
mov rcx, qword [rsp + 0x60]
lea edx, [r12 + r14]
lea r8, [rbp + 0x80]
call fcn.14018f20c
mov rcx, qword [rsp + 0x40]
lea r8, [rsp + 0x20]
mov edx, r14d
mov bl, byte [rax]
xor bl, byte [rbp + 0x80]
call fcn.14018f20c
mov rcx, qword [rsp + 0x40]
lea r8, [rsp + 0x21]
mov edx, r14d
mov dil, byte [rax]
xor dil, byte [rsp + 0x20]
xor dil, bl
call fcn.14018f20c
mov cl, byte [rsp + 0x21]
inc r14d
xor cl, dil
mov byte [rax], cl
sub r13, 1
jne 0x1401a878b
mov r14, qword [rbp + 0x70]
mov r13d, dword [rsp + 0x24]
mov ebx, dword [rsp + 0x48]
mov edi, dword [rsp + 0x28]
lea r12, [r14 + 0x10]
mov eax, dword [rbp - 0x80]
add r13d, esi
mov rcx, qword [rbp - 0x10]
add eax, r13d
add ebx, esi
mov dword [rbp - 0x58], eax
inc edi
movdqa xmmword [rsp + 0x60], xmm6
mov qword [rbp - 0x60], rcx
movaps xmm6, xmmword [rbp - 0x60]
movaps xmmword [rsp + 0x70], xmm6
mov dword [rsp + 0x24], r13d
mov dword [rsp + 0x48], ebx
mov dword [rsp + 0x28], edi
cmp edi, dword [rsp + 0x30]
jae 0x1401a8842
movaps xmm1, xmmword [rsp + 0x40]
jmp 0x1401a86ff
mov rcx, qword [rbp + 0x90]
xor ebx, ebx
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
test esi, esi
je 0x1401a88a5
mov r12d, dword [rsp + 0x68]
xor edi, edi
mov rcx, qword [rsp + 0x60]
lea edx, [r12 + rbx]
lea r8, [rbp + 0x80]
call fcn.14018f20c
movzx ecx, byte [r14 + 0x57]
mov dl, byte [rax]
xor dl, byte [rbp + 0x80]
test ecx, ecx
je 0x1401a8891
cmp ecx, 1
je 0x1401a888b
xor eax, eax
jmp 0x1401a8895
mov rax, qword [r14 + 0x40]
jmp 0x1401a8895
lea rax, [r14 + 0x40]
mov byte [rdi + rax], dl
inc ebx
inc rdi
cmp ebx, esi
jb 0x1401a885c
lea r12, [r14 + 0x10]
xor ebx, ebx
cmp dword [r14 + 0x38], ebx
jbe 0x1401a8905
mov edi, dword [rsp + 0x78]
mov rcx, qword [rsp + 0x70]
lea edx, [rdi + rbx]
lea r8, [rbp + 0x80]
call fcn.14018f20c
movzx ecx, byte [r12 + 0x27]
mov dl, byte [rax]
xor dl, byte [rbp + 0x80]
test ecx, ecx
je 0x1401a88e6
cmp ecx, 1
je 0x1401a88e0
xor ecx, ecx
jmp 0x1401a88e9
mov rcx, qword [r12]
jmp 0x1401a88e9
mov rcx, r12
mov byte [rbx + rcx], dl
inc ebx
cmp ebx, dword [r14 + 0x38]
jb 0x1401a88b1
jmp 0x1401a8905
mov dword [rdx], eax
mov ecx, 0xc004d107
mov r15d, ecx
call fcn.140082a8c
mov ecx, r15d
call fcn.140082b34
movaps xmm6, xmmword [rsp + 0x110]
mov eax, r15d
add rsp, 0x128
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret