Function at 0x140089ce0
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x5a0]
sub rsp, 0x6a0
mov rax, qword [0x140193440]
xor rax, rsp
mov qword [rbp + 0x580], rax
mov rsi, qword [rbp + 0x5f0]
mov edi, edx
mov dword [rsp + 0x4c], r8d
mov rbx, rcx
mov qword [rsp + 0x68], rsi
mov r8d, 0x10
mov qword [rsp + 0x78], r9
cmp edx, 0x100
jbe 0x140089d39
mov r14d, dword [rcx + 0x400]
jmp 0x140089d3c
mov r14d, r8d
xorps xmm1, xmm1
mov dword [rsp + 0x20], r14d
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x38], xmm0
mov dword [rbp - 0x40], eax
movups xmmword [rbp - 0x80], xmm1
movups xmmword [rbp - 0x70], xmm1
movups xmmword [rbp - 0x60], xmm1
movups xmmword [rbp - 0x50], xmm1
mov eax, dword [rcx]
lea rcx, [rcx + 4]
inc dword [rbp + rax*4 - 0x80]
add edx, 0xffffffff
jne 0x140089d61
mov qword [rsp + 0x6e0], r12
lea r12d, [rdx + 1]
cmp dword [rbp - 0x80], edi
jne 0x140089da6
mov edx, r12d
lea ecx, [r12 + 0x2f]
call fcn.1400c537c
mov word [rax + 0x10], 0x163
mov word [rax + 0x20], 0x163
add rax, 0x10
mov dword [rsi], r12d
jmp 0x14008a19c
mov ecx, r12d
nop dword [rax]
mov eax, ecx
cmp dword [rbp + rax*4 - 0x80], 0
jne 0x140089dc0
inc ecx
cmp ecx, r8d
jbe 0x140089db0
cmp dword [rbp - 0x40], 0
mov dword [rsp + 0x28], ecx
jne 0x140089de0
nop word [rax + rax]
test r8d, r8d
je 0x140089de0
dec r8d
cmp dword [rbp + r8*4 - 0x80], 0
je 0x140089dd0
mov eax, dword [rsi]
mov dword [rsp + 0x24], r8d
cmp eax, ecx
jae 0x140089def
mov eax, ecx
jmp 0x140089df6
cmp eax, r8d
cmova eax, r8d
mov r9d, r12d
mov dword [rsi], eax
shl r9d, cl
cmp ecx, r8d
jae 0x140089e1a
mov eax, ecx
sub r9d, dword [rbp + rax*4 - 0x80]
js 0x14008a199
inc ecx
add r9d, r9d
cmp ecx, r8d
jb 0x140089e03
mov eax, r8d
lea rcx, [rbp - 0x80]
lea rcx, [rcx + rax*4]
mov edx, r9d
sub r9d, dword [rcx]
mov dword [rsp + 0x54], r9d
js 0x14008a199
xor esi, esi
mov dword [rcx], edx
mov qword [rsp + 0x698], r13
mov eax, esi
mov dword [rbp + 0x24], esi
lea rcx, [rbp - 0x7c]
lea rdx, [rbp + 0x28]
add r8d, 0xffffffff
je 0x140089e72
nop word [rax + rax]
add eax, dword [rcx]
lea rcx, [rcx + 4]
mov dword [rdx], eax
lea rdx, [rdx + 4]
add r8d, 0xffffffff
jne 0x140089e60
mov edx, 0xff
lea rcx, [rbp + 0xf0]
mov r8d, 0x484
call fcn.140136960
mov edx, esi
nop dword [rax + rax]
mov eax, dword [rbx]
lea rbx, [rbx + 4]
test eax, eax
je 0x140089eaf
lea rcx, [rbp + 0x20]
lea rcx, [rcx + rax*4]
mov eax, dword [rcx]
mov dword [rbp + rax*4 + 0xf0], edx
inc eax
mov dword [rcx], eax
inc edx
cmp edx, edi
jb 0x140089e90
mov r10d, dword [rsp + 0x28]
lea rax, [rsp + 0x60]
mov ebx, dword [rsp + 0x24]
lea r8, [rbp + 0xf0]
mov qword [rsp + 0x58], rax
mov edi, esi
mov qword [rsp + 0x30], r8
mov r9, rsi
mov qword [rsp + 0x60], r12
mov r13d, esi
mov dword [rbp + 0x20], esi
mov dword [rbp - 0x30], esi
mov qword [rbp + 0x70], rsi
cmp r10d, ebx
jg 0x14008a177
mov qword [rsp + 0x690], r15
mov r15, 0xffffffffffffffff
movsxd rax, r10d
mov r11d, dword [rbp + rax*4 - 0x80]
lea rax, [rbp + rax*4 - 0x80]
mov qword [rsp + 0x70], rax
test r11d, r11d
je 0x14008a154
lea ecx, [r10 - 1]
mov eax, r12d
rol eax, cl
lea rdx, [r15*4]
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x48], r11d
dec r11d
mov dword [rsp + 0x2c], r11d
cmp r10d, dword [rbp + rdx - 0x2c]
jle 0x14008a061
nop dword [rax + rax]
mov rcx, qword [rsp + 0x68]
inc r15
mov eax, ebx
mov ebx, r10d
mov r8d, dword [rcx]
mov edi, dword [rbp + r15*4 - 0x30]
sub eax, edi
cmp eax, r8d
cmovbe r8d, eax
sub ebx, edi
mov ecx, ebx
mov eax, r12d
shl eax, cl
cmp eax, dword [rsp + 0x48]
jbe 0x140089fa9
mov ecx, 0xffffffff
inc ebx
sub ecx, r11d
add eax, ecx
mov rcx, qword [rsp + 0x70]
cmp ebx, r8d
jae 0x140089fa9
mov edx, dword [rcx + 4]
lea rcx, [rcx + 4]
add eax, eax
cmp eax, edx
jbe 0x140089fa9
sub eax, edx
inc ebx
cmp ebx, r8d
jb 0x140089f93
lea eax, [rdi + rbx]
cmp eax, r14d
jbe 0x140089fbb
cmp edi, r14d
jge 0x140089fbb
mov ebx, r14d
sub ebx, edi
mov ecx, ebx
lea r14d, [rdi + rbx]
mov r13d, r12d
mov dword [rbp + r15*4 - 0x2c], r14d
shl r13d, cl
mov rdx, r12
lea ecx, [r13 + 1]
shl rcx, 4
call fcn.1400c537c
mov rcx, qword [rsp + 0x58]
lea r9, [rax + 0x10]
add rax, 8
mov qword [rcx], r9
mov qword [rsp + 0x58], rax
mov qword [rbp + r15*8 + 0x70], r9
test r15, r15
je 0x14008a040
movzx eax, dil
mov qword [rsp + 0x40], r9
sub al, byte [rbp + r15*4 - 0x34]
mov ecx, edi
mov byte [rsp + 0x39], al
mov edx, r12d
shl edx, cl
add bl, 0x10
mov ecx, dword [rbp + r15*4 - 0x34]
dec edx
mov eax, esi
and rdx, rax
mov byte [rsp + 0x38], bl
mov rax, qword [rbp + r15*8 + 0x68]
movups xmm0, xmmword [rsp + 0x38]
shr rdx, cl
add rdx, rdx
mov dword [rbp + r15*4 + 0x20], esi
movups xmmword [rax + rdx*8], xmm0
mov r10d, dword [rsp + 0x28]
cmp r10d, r14d
mov r14d, dword [rsp + 0x20]
mov r11d, dword [rsp + 0x2c]
mov ebx, dword [rsp + 0x24]
jg 0x140089f50
mov r8, qword [rsp + 0x30]
mov ecx, dword [r8]
movzx eax, r10b
sub al, dil
mov byte [rsp + 0x39], al
cmp ecx, 0xffffffff
jne 0x14008a07b
mov byte [rsp + 0x38], 0x63
jmp 0x14008a0bd
mov eax, dword [rsp + 0x4c]
add r8, 4
mov qword [rsp + 0x30], r8
cmp ecx, eax
jae 0x14008a0a0
cmp ecx, 0x100
setb al
add al, 0xf
mov byte [rsp + 0x38], al
movzx eax, cx
jmp 0x14008a0b9
mov rdx, qword [rsp + 0x78]
sub ecx, eax
mov qword [rsp + 0x30], r8
movzx eax, byte [rcx + rdx + 0x3e]
mov byte [rsp + 0x38], al
movzx eax, word [rdx + rcx*2]
mov dword [rsp + 0x40], eax
mov ecx, r10d
mov r8d, r12d
sub ecx, edi
mov edx, esi
shl r8d, cl
mov ecx, edi
shr edx, cl
cmp edx, r13d
jae 0x14008a0f2
movups xmm0, xmmword [rsp + 0x38]
nop dword [rax + rax]
mov eax, edx
add edx, r8d
add rax, rax
movups xmmword [r9 + rax*8], xmm0
cmp edx, r13d
jb 0x14008a0e0
mov eax, dword [rsp + 0x50]
test esi, eax
je 0x14008a108
nop word [rax + rax]
xor esi, eax
shr eax, 1
test esi, eax
jne 0x14008a100
xor esi, eax
lea rdx, [r15*4]
mov eax, r12d
shl eax, cl
dec eax
and eax, esi
cmp eax, dword [rbp + rdx + 0x20]
je 0x14008a141
dec r15
mov eax, r12d
lea rdx, [r15*4]
mov edi, dword [rbp + rdx - 0x30]
mov ecx, edi
shl eax, cl
dec eax
and eax, esi
cmp eax, dword [rbp + rdx + 0x20]
jne 0x14008a121
mov r14d, dword [rsp + 0x20]
mov r8, qword [rsp + 0x30]
test r11d, r11d
jne 0x140089f33
mov r14d, dword [rsp + 0x20]
inc r10d
mov dword [rsp + 0x28], r10d
cmp r10d, ebx
jle 0x140089f03
mov r15, qword [rsp + 0x690]
mov r12, qword [rsp + 0x60]
cmp dword [rsp + 0x54], 0
mov rcx, qword [rsp + 0x68]
mov eax, dword [rbp - 0x2c]
mov r13, qword [rsp + 0x698]
mov dword [rcx], eax
je 0x14008a199
cmp ebx, 1
je 0x14008a199
or r12, 1
mov rax, r12
mov r12, qword [rsp + 0x6e0]
mov rcx, qword [rbp + 0x580]
xor rcx, rsp
call fcn.1400b1f80
add rsp, 0x6a0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret