Function at 0x140195bc8
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 - 0x48]
sub rsp, 0x108
mov r10, qword [rcx]
mov r14, rcx
xor r12d, r12d
movaps xmmword [rax - 0x58], xmm6
mov r11, r9
mov ebx, r8d
mov ecx, dword [r10 + 4]
sub ecx, 1
je 0x140195c1b
cmp ecx, 1
je 0x140195c14
mov esi, r12d
jmp 0x140195c20
mov esi, 1
jmp 0x140195c20
mov esi, reloc.OLEAUT32.dll_SafeArrayGetDim
mov r9d, dword [r14 + 0x38]
mov edi, r12d
mov dword [rsp + 0x78], r12d
mov dword [rbp - 0x78], r12d
lea eax, [r9 + r8]
cmp eax, ebx
jae 0x140195c44
mov edi, 0xc004d107
mov ecx, edi
jmp 0x140195f4d
xor edx, edx
div esi
mov r13d, eax
mov dword [rsp + 0x24], eax
imul r13d, esi
mov r10d, eax
mov rax, qword [rbp + 0x70]
mov dword [rbp + 0x60], r13d
cmp dword [rax], r13d
jb 0x140195f35
cmp qword [r11], r12
je 0x140195f35
cmp r13d, esi
jb 0x140195f35
lea r15, [r14 + 0x10]
movzx ecx, byte [r15 + 0x27]
test ecx, ecx
je 0x140195c95
cmp ecx, 1
je 0x140195c90
mov rax, r12
jmp 0x140195c98
mov rax, qword [r15]
jmp 0x140195c98
mov rax, r15
mov r8, qword [0x14042f758]
mov qword [rsp + 0x70], rax
test rax, rax
jne 0x140195cae
mov rax, r12
jmp 0x140195cb6
mov eax, dword [r8]
lea rax, [rsp + rax + 0x70]
movzx ecx, byte [r14 + 0x57]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x48], r12d
movaps xmm6, xmmword [rsp + 0x40]
movaps xmmword [rsp + 0x40], xmm6
test ecx, ecx
je 0x140195ce3
cmp ecx, 1
je 0x140195cdd
mov rax, r12
jmp 0x140195ce7
mov rax, qword [r14 + 0x40]
jmp 0x140195ce7
lea rax, [r14 + 0x40]
mov qword [rbp - 0x80], rax
test rax, rax
jne 0x140195cf5
mov rax, r12
jmp 0x140195cfd
mov eax, dword [r8]
lea rax, [rbp + rax - 0x80]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x38], r12d
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
cmp r9d, esi
jae 0x140195d6d
mov r13, qword [rbp + 0x58]
cmp r12d, ebx
jae 0x140195d60
mov edx, dword [r13 + 8]
mov rcx, qword [r13]
add edx, r12d
call fcn.14017f294
movzx ecx, byte [r15 + 0x27]
mov dl, al
test ecx, ecx
je 0x140195d49
cmp ecx, 1
je 0x140195d44
xor ecx, ecx
jmp 0x140195d4c
mov rcx, qword [r15]
jmp 0x140195d4c
mov rcx, r15
mov eax, dword [r14 + 0x38]
inc r12d
mov byte [rax + rcx], dl
inc dword [r14 + 0x38]
cmp dword [r14 + 0x38], esi
jb 0x140195d1b
mov r13d, dword [rbp + 0x60]
mov r11, qword [rbp + 0x68]
mov r10d, dword [rsp + 0x24]
movaps xmm0, xmmword [r11]
sub ebx, r12d
sub ebx, r13d
movaps xmmword [rsp + 0x60], xmm0
add dword [r14 + 0x38], ebx
xor ebx, ebx
mov dword [rsp + 0x20], ebx
test r10d, r10d
je 0x140195ea1
lea rax, [0x140040438]
mov dword [rsp + 0x50], esi
mov qword [rbp - 0x58], rax
lea rdx, [rbp - 0x60]
lea rax, [rsp + 0x54]
movdqa xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x50], rax
xor r9d, r9d
mov rax, qword [r14]
mov qword [rbp - 0x48], rax
lea rax, [rsp + 0x40]
mov qword [rbp - 0x3c], rax
lea rax, [rbp - 0x20]
mov qword [rbp - 0x30], rax
lea r8d, [r9 + 0x40]
lea rax, [rsp + 0x50]
movdqa xmmword [rsp + 0x40], xmm6
lea ecx, [r8 + 0x79]
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x60], 3
mov dword [rbp - 0x40], 0x40
mov dword [rbp - 0x34], esi
call sub.ntdll.dll_NtQuerySystemInformation
mov edi, dword [rsp + 0x54]
test edi, edi
js 0x140195c3d
test esi, esi
je 0x140195e61
mov r13d, dword [rsp + 0x38]
mov r15d, dword [rsp + 0x68]
sub r13d, r15d
mov r14d, esi
mov rcx, qword [rsp + 0x30]
lea edx, [r15 + r13]
call fcn.14017f294
mov rcx, qword [rsp + 0x60]
mov edx, r15d
mov bl, al
call fcn.14017f294
mov rcx, qword [rsp + 0x60]
xor al, bl
mov r8b, al
mov edx, r15d
call fcn.14017f2dc
inc r15d
sub r14, 1
jne 0x140195e19
mov r14, qword [rbp + 0x50]
mov r13d, dword [rbp + 0x60]
mov ebx, dword [rsp + 0x20]
lea r15, [r14 + 0x10]
mov rdx, qword [rbp + 0x58]
inc ebx
add dword [rsp + 0x68], esi
movdqa xmmword [rsp + 0x30], xmm6
mov dword [rsp + 0x20], ebx
mov ecx, dword [rdx + 8]
mov rax, qword [rdx]
add ecx, r12d
mov dword [rbp - 0x68], ecx
add r12d, esi
mov qword [rbp - 0x70], rax
movaps xmm6, xmmword [rbp - 0x70]
movaps xmmword [rsp + 0x40], xmm6
cmp ebx, dword [rsp + 0x24]
jae 0x140195ea1
movaps xmm0, xmmword [rsp + 0x60]
jmp 0x140195d8f
mov rax, qword [rbp + 0x70]
xor ebx, ebx
mov dword [rax], r13d
test esi, esi
je 0x140195ef3
mov r15d, dword [rsp + 0x38]
xor r12d, r12d
mov rcx, qword [rsp + 0x30]
lea edx, [r15 + rbx]
call fcn.14017f294
movzx ecx, byte [r14 + 0x57]
mov dl, al
test ecx, ecx
je 0x140195ede
cmp ecx, 1
je 0x140195ed8
xor eax, eax
jmp 0x140195ee2
mov rax, qword [r14 + 0x40]
jmp 0x140195ee2
lea rax, [r14 + 0x40]
mov byte [rax + r12], dl
inc ebx
inc r12
cmp ebx, esi
jb 0x140195eb6
lea r15, [r14 + 0x10]
xor ebx, ebx
cmp dword [r14 + 0x38], ebx
jbe 0x140195f52
mov esi, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
lea edx, [rsi + rbx]
call fcn.14017f294
movzx ecx, byte [r15 + 0x27]
mov dl, al
test ecx, ecx
je 0x140195f25
cmp ecx, 1
je 0x140195f20
xor ecx, ecx
jmp 0x140195f28
mov rcx, qword [r15]
jmp 0x140195f28
mov rcx, r15
mov byte [rbx + rcx], dl
inc ebx
cmp ebx, dword [r14 + 0x38]
jb 0x140195eff
jmp 0x140195f52
mov dword [rax], r13d
mov rax, qword [r11]
neg rax
sbb ecx, ecx
and ecx, 0xc004d107
mov edi, ecx
cmp qword [r11], r12
je 0x140195f52
call fcn.1400790f8
mov ecx, edi
call fcn.140079118
movaps xmm6, xmmword [rsp + 0xf0]
mov eax, edi
add rsp, 0x108
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret