Function at 0x14019ac38
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 0x14019ac87
cmp ecx, 1
je 0x14019ac80
xor edi, edi
jmp 0x14019ac8c
mov edi, 1
jmp 0x14019ac8c
mov edi, reloc.OLEAUT32.dll_SafeArrayGetDim
mov ecx, dword [rsi + 0x38]
and dword [rbp - 0x20], 0
lea eax, [rcx + r8]
cmp eax, ebx
jb 0x14019b142
mov rdx, qword [r9]
mov qword [rsp + 0x30], rdx
test rdx, rdx
jne 0x14019accc
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 0x14019b14f
cmp eax, edi
ja 0x14019ad2a
xor edi, edi
test ebx, ebx
je 0x14019ad18
mov r15d, dword [r13 + 8]
mov r12, qword [r13]
lea edx, [r15 + rdi]
mov rcx, r12
call fcn.140183d24
movzx ecx, byte [rsi + 0x37]
mov dl, al
test ecx, ecx
je 0x14019ad03
cmp ecx, 1
je 0x14019acfd
xor ecx, ecx
jmp 0x14019ad07
mov rcx, qword [rsi + 0x10]
jmp 0x14019ad07
lea rcx, [rsi + 0x10]
mov eax, dword [rsi + 0x38]
add eax, edi
inc edi
mov byte [rax + rcx], dl
cmp edi, ebx
jb 0x14019acde
mov ecx, dword [rsi + 0x38]
lea eax, [rcx + rbx]
mov dword [rsi + 0x38], eax
mov rax, qword [rbp + 0x80]
and dword [rax], 0
jmp 0x14019acc4
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 0x14019b140
xor r12d, r12d
cmp ecx, edi
jae 0x14019ada6
cmp r12d, ebx
jae 0x14019ad9e
mov edx, dword [r13 + 8]
mov rcx, qword [r13]
add edx, r12d
call fcn.140183d24
lea rcx, [rsi + 0x10]
mov r8b, al
movzx edx, byte [rcx + 0x27]
test edx, edx
je 0x14019ad88
cmp edx, 1
je 0x14019ad85
xor ecx, ecx
jmp 0x14019ad88
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 0x14019ad58
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 0x14019add7
cmp ecx, 1
je 0x14019add2
xor eax, eax
jmp 0x14019adda
mov rax, qword [r15]
jmp 0x14019adda
mov rax, r15
and dword [rsp + 0x58], 0
mov qword [rsp + 0x50], rax
test rax, rax
je 0x14019adfa
mov rax, qword [0x140440198]
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, [0x14003c098]
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 0x14019ae7e
mov ecx, r14d
jmp 0x14019b14a
test edi, edi
je 0x14019aef1
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 0x14019aeb3
cmp ecx, 1
je 0x14019aeae
xor eax, eax
jmp 0x14019aeb6
mov rax, qword [r15]
jmp 0x14019aeb6
mov rax, r15
mov bl, byte [r14 + rax]
mov edx, esi
mov rcx, r13
call fcn.140183d24
xor al, bl
mov edx, esi
mov r8b, al
mov rcx, r13
call fcn.140183d6c
inc esi
inc r14
sub qword [rsp + 0x70], 1
jne 0x14019ae9c
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 0x14019af4f
cmp ecx, 1
je 0x14019af4a
xor eax, eax
jmp 0x14019af52
mov rax, qword [r15]
jmp 0x14019af52
mov rax, r15
mov qword [rbp - 0x28], rax
test rax, rax
je 0x14019af6b
mov rax, qword [0x140440198]
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 0x14019b0ab
mov r13d, dword [rsp + 0x38]
mov ecx, 0x40
mov dword [rbp + 0x70], edi
lea rax, [0x14003c098]
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 0x14019ae76
test edi, edi
je 0x14019b069
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.140183d24
mov rcx, qword [rsp + 0x30]
mov edx, r15d
mov bl, al
call fcn.140183d24
mov rcx, qword [rsp + 0x30]
xor al, bl
mov r8b, al
mov edx, r15d
call fcn.140183d6c
inc r15d
sub r13, 1
jne 0x14019b020
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 0x14019b0ab
movaps xmm1, xmmword [rsp + 0x30]
jmp 0x14019af99
mov rcx, qword [rbp + 0x80]
xor ebx, ebx
mov eax, dword [rsp + 0x40]
mov dword [rcx], eax
test edi, edi
je 0x14019b102
mov r15d, dword [rsp + 0x58]
xor r12d, r12d
mov rcx, qword [rsp + 0x50]
lea edx, [r15 + rbx]
call fcn.140183d24
movzx ecx, byte [rsi + 0x57]
mov dl, al
test ecx, ecx
je 0x14019b0ed
cmp ecx, 1
je 0x14019b0e7
xor eax, eax
jmp 0x14019b0f1
mov rax, qword [rsi + 0x40]
jmp 0x14019b0f1
lea rax, [rsi + 0x40]
mov byte [rax + r12], dl
inc ebx
inc r12
cmp ebx, edi
jb 0x14019b0c6
lea r15, [rsi + 0x10]
xor ebx, ebx
cmp dword [rsi + 0x38], ebx
jbe 0x14019b14f
mov edi, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
lea edx, [rdi + rbx]
call fcn.140183d24
movzx ecx, byte [r15 + 0x27]
test ecx, ecx
je 0x14019b131
cmp ecx, 1
je 0x14019b12c
xor ecx, ecx
jmp 0x14019b134
mov rcx, qword [r15]
jmp 0x14019b134
mov rcx, r15
mov byte [rbx + rcx], al
inc ebx
cmp ebx, dword [rsi + 0x38]
jb 0x14019b10d
jmp 0x14019b14f
mov dword [rdx], eax
mov ecx, 0xc004d107
mov r14d, ecx
call fcn.140079c40
mov ecx, r14d
call fcn.140079c60
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