Function at 0x14019a884
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 0x14019a8d7
cmp ecx, 1
je 0x14019a8d0
mov esi, r12d
jmp 0x14019a8dc
mov esi, 1
jmp 0x14019a8dc
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 0x14019a900
mov edi, 0xc004d107
mov ecx, edi
jmp 0x14019ac07
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 0x14019abef
cmp qword [r11], r12
je 0x14019abef
cmp r13d, esi
jb 0x14019abef
lea r15, [r14 + 0x10]
movzx ecx, byte [r15 + 0x27]
test ecx, ecx
je 0x14019a951
cmp ecx, 1
je 0x14019a94c
mov rax, r12
jmp 0x14019a954
mov rax, qword [r15]
jmp 0x14019a954
mov rax, r15
mov r8, qword [0x140440198]
mov qword [rsp + 0x70], rax
test rax, rax
jne 0x14019a96a
mov rax, r12
jmp 0x14019a972
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 0x14019a99f
cmp ecx, 1
je 0x14019a999
mov rax, r12
jmp 0x14019a9a3
mov rax, qword [r14 + 0x40]
jmp 0x14019a9a3
lea rax, [r14 + 0x40]
mov qword [rbp - 0x80], rax
test rax, rax
jne 0x14019a9b1
mov rax, r12
jmp 0x14019a9b9
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 0x14019aa29
mov r13, qword [rbp + 0x58]
cmp r12d, ebx
jae 0x14019aa1c
mov edx, dword [r13 + 8]
mov rcx, qword [r13]
add edx, r12d
call fcn.140183d24
movzx ecx, byte [r15 + 0x27]
mov dl, al
test ecx, ecx
je 0x14019aa05
cmp ecx, 1
je 0x14019aa00
xor ecx, ecx
jmp 0x14019aa08
mov rcx, qword [r15]
jmp 0x14019aa08
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 0x14019a9d7
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 0x14019ab5d
lea rax, [0x14002bc98]
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 0x14019a8f9
test esi, esi
je 0x14019ab1d
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.140183d24
mov rcx, qword [rsp + 0x60]
mov edx, r15d
mov bl, al
call fcn.140183d24
mov rcx, qword [rsp + 0x60]
xor al, bl
mov r8b, al
mov edx, r15d
call fcn.140183d6c
inc r15d
sub r14, 1
jne 0x14019aad5
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 0x14019ab5d
movaps xmm0, xmmword [rsp + 0x60]
jmp 0x14019aa4b
mov rax, qword [rbp + 0x70]
xor ebx, ebx
mov dword [rax], r13d
test esi, esi
je 0x14019abaf
mov r15d, dword [rsp + 0x38]
xor r12d, r12d
mov rcx, qword [rsp + 0x30]
lea edx, [r15 + rbx]
call fcn.140183d24
movzx ecx, byte [r14 + 0x57]
mov dl, al
test ecx, ecx
je 0x14019ab9a
cmp ecx, 1
je 0x14019ab94
xor eax, eax
jmp 0x14019ab9e
mov rax, qword [r14 + 0x40]
jmp 0x14019ab9e
lea rax, [r14 + 0x40]
mov byte [rax + r12], dl
inc ebx
inc r12
cmp ebx, esi
jb 0x14019ab72
lea r15, [r14 + 0x10]
xor ebx, ebx
cmp dword [r14 + 0x38], ebx
jbe 0x14019ac0c
mov esi, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
lea edx, [rsi + rbx]
call fcn.140183d24
movzx ecx, byte [r15 + 0x27]
test ecx, ecx
je 0x14019abdf
cmp ecx, 1
je 0x14019abda
xor ecx, ecx
jmp 0x14019abe2
mov rcx, qword [r15]
jmp 0x14019abe2
mov rcx, r15
mov byte [rbx + rcx], al
inc ebx
cmp ebx, dword [r14 + 0x38]
jb 0x14019abbb
jmp 0x14019ac0c
mov dword [rax], r13d
mov rax, qword [r11]
neg rax
sbb ecx, ecx
and ecx, 0xc004d107
mov edi, ecx
cmp qword [r11], r12
je 0x14019ac0c
call fcn.140079c40
mov ecx, edi
call fcn.140079c60
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