Function at 0x140195f80
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 - 0x58]
sub rsp, 0x118
mov r10, qword [rcx]
mov rsi, rcx
movaps xmmword [rax - 0x58], xmm6
mov ebx, r8d
mov r13, rdx
mov ecx, dword [r10 + 4]
sub ecx, 1
je 0x140195fcf
cmp ecx, 1
je 0x140195fc8
xor edi, edi
jmp 0x140195fd4
mov edi, 1
jmp 0x140195fd4
mov edi, reloc.OLEAUT32.dll_SafeArrayGetDim
mov ecx, dword [rsi + 0x38]
and dword [rbp - 0x20], 0
lea eax, [rcx + r8]
cmp eax, ebx
jb 0x14019648c
mov rdx, qword [r9]
mov qword [rsp + 0x30], rdx
test rdx, rdx
jne 0x140196014
lea eax, [rcx + rdi]
lea ecx, [r8 - 1]
add ecx, eax
mov eax, ecx
div edi
mov rax, qword [rbp + 0x80]
sub ecx, edx
mov dword [rax], ecx
xor r14d, r14d
jmp 0x140196499
cmp eax, edi
ja 0x140196072
xor edi, edi
test ebx, ebx
je 0x140196060
mov r15d, dword [r13 + 8]
mov r12, qword [r13]
lea edx, [r15 + rdi]
mov rcx, r12
call fcn.14017f294
movzx ecx, byte [rsi + 0x37]
mov dl, al
test ecx, ecx
je 0x14019604b
cmp ecx, 1
je 0x140196045
xor ecx, ecx
jmp 0x14019604f
mov rcx, qword [rsi + 0x10]
jmp 0x14019604f
lea rcx, [rsi + 0x10]
mov eax, dword [rsi + 0x38]
add eax, edi
inc edi
mov byte [rax + rcx], dl
cmp edi, ebx
jb 0x140196026
mov ecx, dword [rsi + 0x38]
lea eax, [rcx + rbx]
mov dword [rsi + 0x38], eax
mov rax, qword [rbp + 0x80]
and dword [rax], 0
jmp 0x14019600c
xor edx, edx
lea eax, [rcx - 1]
add eax, edi
add eax, ebx
div edi
mov rdx, qword [rbp + 0x80]
dec eax
mov dword [rsp + 0x24], eax
imul eax, edi
mov dword [rsp + 0x40], eax
cmp dword [rdx], eax
jb 0x14019648a
xor r12d, r12d
cmp ecx, edi
jae 0x1401960ee
cmp r12d, ebx
jae 0x1401960e6
mov edx, dword [r13 + 8]
mov rcx, qword [r13]
add edx, r12d
call fcn.14017f294
lea rcx, [rsi + 0x10]
mov r8b, al
movzx edx, byte [rcx + 0x27]
test edx, edx
je 0x1401960d0
cmp edx, 1
je 0x1401960cd
xor ecx, ecx
jmp 0x1401960d0
mov rcx, qword [rcx]
mov eax, dword [rsi + 0x38]
inc r12d
mov byte [rax + rcx], r8b
mov ecx, dword [rsi + 0x38]
inc ecx
mov dword [rsi + 0x38], ecx
cmp ecx, edi
jb 0x1401960a0
mov eax, dword [rsp + 0x40]
mov r9, qword [rbp + 0x78]
movaps xmm0, xmmword [r9]
lea r15, [rsi + 0x10]
sub ecx, eax
mov dword [rbp + 0x70], edi
sub ecx, r12d
movdqa xmmword [rbp - 0x10], xmm0
add ecx, ebx
mov dword [rsi + 0x38], ecx
movzx ecx, byte [r15 + 0x27]
test ecx, ecx
je 0x14019611f
cmp ecx, 1
je 0x14019611a
xor eax, eax
jmp 0x140196122
mov rax, qword [r15]
jmp 0x140196122
mov rax, r15
and dword [rsp + 0x58], 0
mov qword [rsp + 0x50], rax
test rax, rax
je 0x140196142
mov rax, qword [0x14042f758]
mov ecx, dword [rax]
lea rax, [rsp + 0x50]
add rax, rcx
and dword [rsp + 0x68], 0
lea rdx, [rbp - 0x70]
mov qword [rsp + 0x60], rax
mov ecx, 0x40
movaps xmm0, xmmword [rsp + 0x60]
lea rax, [0x140034138]
mov qword [rbp - 0x68], rax
mov r8d, ecx
lea rax, [rsp + 0x78]
mov dword [rbp - 0x50], ecx
mov qword [rbp - 0x60], rax
xor r9d, r9d
mov rax, qword [rsi]
mov qword [rbp - 0x58], rax
lea ecx, [r8 + 0x79]
lea rax, [rbp - 0x80]
movdqa xmmword [rbp - 0x80], xmm0
mov qword [rbp - 0x4c], rax
lea rax, [rbp - 0x10]
mov qword [rbp - 0x40], rax
lea rax, [rbp + 0x70]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x70], 3
mov dword [rbp - 0x44], edi
call sub.ntdll.dll_NtQuerySystemInformation
mov r14d, dword [rsp + 0x78]
mov dword [rsp + 0x20], r14d
test r14d, r14d
jns 0x1401961c6
mov ecx, r14d
jmp 0x140196494
test edi, edi
je 0x140196239
mov rax, qword [rbp + 0x78]
lea r15, [rsi + 0x40]
mov r13, qword [rsp + 0x30]
xor r14d, r14d
mov esi, dword [rax + 8]
mov eax, edi
mov qword [rsp + 0x70], rax
movzx ecx, byte [r15 + 0x17]
test ecx, ecx
je 0x1401961fb
cmp ecx, 1
je 0x1401961f6
xor eax, eax
jmp 0x1401961fe
mov rax, qword [r15]
jmp 0x1401961fe
mov rax, r15
mov bl, byte [r14 + rax]
mov edx, esi
mov rcx, r13
call fcn.14017f294
xor al, bl
mov edx, esi
mov r8b, al
mov rcx, r13
call fcn.14017f2dc
inc esi
inc r14
sub qword [rsp + 0x70], 1
jne 0x1401961e4
mov rsi, qword [rbp + 0x60]
mov r14d, dword [rsp + 0x20]
mov r13, qword [rbp + 0x68]
lea r15, [rsi + 0x10]
mov eax, dword [r13 + 8]
mov rcx, qword [r13]
mov qword [rsp + 0x60], rcx
mov dword [rsp + 0x70], eax
add eax, r12d
mov dword [rsp + 0x68], eax
mov rax, qword [rbp + 0x78]
movaps xmm6, xmmword [rsp + 0x60]
mov qword [rbp - 0x30], rcx
movaps xmmword [rsp + 0x60], xmm6
mov ecx, dword [rax + 8]
mov rax, qword [rsp + 0x30]
add ecx, edi
mov dword [rsp + 0x38], ecx
movzx ecx, byte [r15 + 0x27]
mov qword [rsp + 0x30], rax
movaps xmm1, xmmword [rsp + 0x30]
movaps xmmword [rsp + 0x30], xmm1
test ecx, ecx
je 0x140196297
cmp ecx, 1
je 0x140196292
xor eax, eax
jmp 0x14019629a
mov rax, qword [r15]
jmp 0x14019629a
mov rax, r15
mov qword [rbp - 0x28], rax
test rax, rax
je 0x1401962b3
mov rax, qword [0x14042f758]
mov ecx, dword [rax]
lea rax, [rbp - 0x28]
add rax, rcx
and dword [rsp + 0x58], 0
mov ebx, 0
add dword [rsp + 0x24], 0xffffffff
mov qword [rsp + 0x50], rax
movaps xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0x50], xmm0
mov dword [rsp + 0x20], ebx
je 0x1401963f3
mov r13d, dword [rsp + 0x38]
mov ecx, 0x40
mov dword [rbp + 0x70], edi
lea rax, [0x140034138]
mov dword [rbp - 0x50], ecx
mov qword [rbp - 0x68], rax
lea rdx, [rbp - 0x70]
lea rax, [rsp + 0x7c]
movdqa xmmword [rsp + 0x60], xmm1
mov qword [rbp - 0x60], rax
mov r8d, ecx
mov rax, qword [rsi]
xor r9d, r9d
mov qword [rbp - 0x58], rax
lea rax, [rbp - 0x10]
mov qword [rbp - 0x4c], rax
lea rax, [rsp + 0x60]
mov qword [rbp - 0x40], rax
lea ecx, [r8 + 0x79]
lea rax, [rbp + 0x70]
movdqa xmmword [rbp - 0x10], xmm6
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x70], 3
mov dword [rbp - 0x44], edi
call sub.ntdll.dll_NtQuerySystemInformation
mov r14d, dword [rsp + 0x7c]
test r14d, r14d
js 0x1401961be
test edi, edi
je 0x1401963b1
mov esi, dword [rsp + 0x58]
mov r15d, r13d
sub esi, r13d
mov r13d, edi
mov rcx, qword [rsp + 0x50]
lea edx, [r15 + rsi]
call fcn.14017f294
mov rcx, qword [rsp + 0x30]
mov edx, r15d
mov bl, al
call fcn.14017f294
mov rcx, qword [rsp + 0x30]
xor al, bl
mov r8b, al
mov edx, r15d
call fcn.14017f2dc
inc r15d
sub r13, 1
jne 0x140196368
mov rsi, qword [rbp + 0x60]
mov r13d, dword [rsp + 0x38]
mov ebx, dword [rsp + 0x20]
lea r15, [rsi + 0x10]
mov eax, dword [rsp + 0x70]
add r12d, edi
mov rcx, qword [rbp - 0x30]
add eax, r12d
add r13d, edi
mov dword [rbp - 0x78], eax
inc ebx
movdqa xmmword [rsp + 0x50], xmm6
mov qword [rbp - 0x80], rcx
movaps xmm6, xmmword [rbp - 0x80]
movaps xmmword [rsp + 0x60], xmm6
mov dword [rsp + 0x38], r13d
mov dword [rsp + 0x20], ebx
cmp ebx, dword [rsp + 0x24]
jae 0x1401963f3
movaps xmm1, xmmword [rsp + 0x30]
jmp 0x1401962e1
mov rcx, qword [rbp + 0x80]
xor ebx, ebx
mov eax, dword [rsp + 0x40]
mov dword [rcx], eax
test edi, edi
je 0x14019644a
mov r15d, dword [rsp + 0x58]
xor r12d, r12d
mov rcx, qword [rsp + 0x50]
lea edx, [r15 + rbx]
call fcn.14017f294
movzx ecx, byte [rsi + 0x57]
mov dl, al
test ecx, ecx
je 0x140196435
cmp ecx, 1
je 0x14019642f
xor eax, eax
jmp 0x140196439
mov rax, qword [rsi + 0x40]
jmp 0x140196439
lea rax, [rsi + 0x40]
mov byte [rax + r12], dl
inc ebx
inc r12
cmp ebx, edi
jb 0x14019640e
lea r15, [rsi + 0x10]
xor ebx, ebx
cmp dword [rsi + 0x38], ebx
jbe 0x140196499
mov edi, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
lea edx, [rdi + rbx]
call fcn.14017f294
movzx ecx, byte [r15 + 0x27]
mov dl, al
test ecx, ecx
je 0x14019647b
cmp ecx, 1
je 0x140196476
xor ecx, ecx
jmp 0x14019647e
mov rcx, qword [r15]
jmp 0x14019647e
mov rcx, r15
mov byte [rbx + rcx], dl
inc ebx
cmp ebx, dword [rsi + 0x38]
jb 0x140196455
jmp 0x140196499
mov dword [rdx], eax
mov ecx, 0xc004d107
mov r14d, ecx
call fcn.1400790f8
mov ecx, r14d
call fcn.140079118
movaps xmm6, xmmword [rsp + 0x100]
mov eax, r14d
add rsp, 0x118
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret