Function at 0x1400af9f0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x250
mov rax, qword [0x14049f410]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov r14, rdx
mov qword [rsp + 0x68], rdx
mov rbp, rcx
mov qword [rsp + 0x70], rcx
mov qword [rsp + 0x88], r9
lea r9, [rcx + 0x190]
mov r10d, dword [r9]
mov edx, r10d
shr edx, 0x14
mov ecx, r10d
and edx, 3
mov qword [rsp + 0x98], r8
inc edx
mov dword [rsp + 0x20], edx
call fcn.14008cdb0
mov r11d, dword [r14 + 8]
xor edi, edi
movzx eax, al
mov esi, 0x80000001
mov dword [rsp + 0x24], eax
mov r15d, 0x7fffffff
add eax, eax
mov dword [rsp + 0x28], eax
mov eax, dword [r14 + 0xc]
imul eax, r11d
mov dword [rsp + 0x38], eax
cmp r10d, 0x20000003
jne 0x1400afaa2
mov qword [rsp + 0x60], rdi
lea ebx, [rdi + 1]
lea r12d, [rdi + 2]
lea r13d, [rdi + 3]
jmp 0x1400afb32
cmp r10d, 0x20000001
jne 0x1400afabf
mov ebx, 3
mov qword [rsp + 0x60], rdi
lea r12d, [rbx - 1]
lea r13d, [rbx - 2]
jmp 0x1400afb32
mov rcx, rdi
cmp r10d, 0x20000002
sete cl
mov qword [rsp + 0x60], rcx
jne 0x1400afae3
mov r12d, 3
mov r13, rdi
lea ebx, [r12 - 1]
jmp 0x1400afb32
cmp r10d, 0x20200001
jne 0x1400afafa
mov r12d, 1
mov r13, rdi
mov rbx, rdi
jmp 0x1400afb32
mov ebx, 1
cmp r10d, 0x30200001
jne 0x1400afb55
mov r12d, ebx
cmp r10d, 0x30200001
mov r13, rdi
setne r13b
cmp r10d, 0x30100001
je 0x1400afb32
cmp r10d, 0x30200001
mov ebx, 2
cmove rbx, rdi
mov ecx, edi
mov eax, r10d
shr eax, 0x1c
cmp eax, 3
sete cl
mov dword [rsp + 0x50], ecx
cmp edx, 1
jbe 0x1400afb81
cmp eax, 1
mov edx, edi
sete dl
inc edx
jmp 0x1400afb85
cmp r10d, 0x30100001
jne 0x1400afb66
mov r12, rbx
mov r13, rdi
jmp 0x1400afb32
cmp r10d, 0x10200001
mov r12d, 3
cmove r12, rbx
jne 0x1400afb0b
mov r13, rdi
mov rbx, rdi
jmp 0x1400afb32
mov edx, dword [rsp + 0x28]
cmp eax, 3
mov dword [rsp + 0x2c], edx
mov eax, dword [r9 + 0x10]
mov ecx, edi
sete cl
inc ecx
mov dword [rsp + 0x34], ecx
mov ecx, r11d
imul ecx, dword [rsp + 0x24]
imul r11d, edx
sub eax, ecx
mov dword [rsp + 0x30], eax
mov eax, r11d
cdq
mov r11d, 0x20
sub eax, edx
mov edx, 0x10
sar eax, 1
mov ecx, edx
cmp dword [rsp + 0x20], 1
cmova ecx, r11d
add rcx, r9
mov qword [rsp + 0x48], rcx
mov ecx, dword [rcx]
sub ecx, eax
cmp dword [rsp + 0x20], 1
mov dword [rsp + 0x54], ecx
mov ecx, 0x30
cmova edx, ecx
lea rcx, [rdx + r9]
mov qword [rsp + 0x80], rcx
mov ecx, dword [rcx]
sub ecx, eax
mov dword [rsp + 0x58], ecx
cmp r10d, 0x20200001
je 0x1400afc35
cmp r10d, 0x10200001
je 0x1400afc35
lea eax, [r10 - 0x20000001]
cmp eax, 1
jbe 0x1400afc35
cmp r10d, 0x30100001
je 0x1400afc35
cmp r10d, 0x30200001
je 0x1400afc35
lea eax, [r11 - 0x26]
jmp 0x1400afffe
mov rcx, qword [rbp + 8]
mov edx, dword [rsp + 0x38]
mov rax, qword [rcx]
lea edx, [rdx*4]
call qword [rax + 8]
mov qword [rsp + 0x78], rax
test rax, rax
jne 0x1400afc5e
mov eax, 0xfffffffd
jmp 0x1400afffe
mov ecx, dword [rbp + 0x37c]
test ecx, ecx
je 0x1400afc7a
cmp ecx, 2
mov eax, 0x39a
mov edx, 0x3b3
cmovne eax, edx
jmp 0x1400afc7f
mov eax, 0x3e6
xor edx, edx
mov dword [rsp + 0x24], eax
mov r8d, 0x194
lea rcx, [rsp + 0xa0]
call fcn.1400fddca
mov r8d, dword [r14]
mov r9d, 0x18
mov rax, qword [rsp + 0x78]
mov ecx, r8d
imul ecx, dword [rsp + 0x28]
imul r8d, dword [rsp + 0x2c]
mov qword [rsp + 0x40], rax
mov eax, dword [r14 + 4]
lea r14, [rbp + 0x190]
movsxd r11, ecx
mov ecx, dword [r14 + 0x10]
imul ecx, eax
sar r11, 1
movsxd r10, r8d
mov r8d, r9d
sar r10, 1
movsxd rdx, ecx
mov ecx, 0x28
add r11, rdx
cdq
idiv dword [rsp + 0x34]
add r11, qword [r14 + 0x18]
cmp dword [rsp + 0x20], 1
mov rdx, qword [rsp + 0x48]
cmova r8d, ecx
mov ecx, eax
imul ecx, dword [rdx]
mov rbp, qword [r8 + r14]
movsxd rdx, ecx
mov ecx, 0x38
add rbp, rdx
add rbp, r10
cmp dword [rsp + 0x20], 1
mov dword [rsp + 0x20], edi
cmova r9d, ecx
mov rcx, qword [rsp + 0x80]
imul eax, dword [rcx]
mov r14, qword [r9 + r14]
cdqe
add r14, rax
mov rax, qword [rsp + 0x68]
add r14, r10
mov r10d, edi
cmp dword [rax + 0xc], 0
jle 0x1400aff07
mov r8d, dword [rax + 8]
movsxd rax, dword [rsp + 0x30]
mov r9, qword [rsp + 0x70]
test r8d, r8d
jle 0x1400afeae
movzx edx, byte [rsp + 0x2b8]
mov rcx, qword [rsp + 0x88]
mov r10, qword [rsp + 0x68]
lea rax, [rdx + 6]
lea rax, [rcx + rax*4]
mov qword [rsp + 0x80], rax
mov eax, edx
lea rdx, [rcx + 0xc]
lea rdx, [rdx + rax*4]
mov qword [rsp + 0x90], rdx
lea rdx, [rcx + rax*4]
mov qword [rsp + 0x48], rdx
mov r8, qword [rsp + 0x2b0]
movzx r9d, byte [rbx + r14]
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x90]
shl r9d, 7
sub r9d, dword [r8 + 8]
imul r9d, dword [rax]
movzx eax, byte [rbp + r13]
shl eax, 7
sub eax, dword [r8 + 4]
imul eax, dword [rcx]
sar r9d, 7
sar eax, 7
add r9d, eax
mov rax, qword [rsp + 0x60]
movzx ecx, byte [rax + r11]
shl ecx, 7
sub ecx, dword [r8]
imul ecx, dword [rdx]
sar ecx, 7
add ecx, r9d
mov eax, ecx
sar eax, 0x1f
mov r8d, eax
xor r8d, ecx
sub r8d, eax
mov rax, qword [rsp + 0x40]
cmp r15d, r8d
mov edx, r8d
cmovl edx, r15d
cmp esi, r8d
mov dword [rax], r8d
movzx ecx, byte [r12 + r11]
cmovg r8d, esi
add rax, 4
shl ecx, 7
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x2b0]
sub ecx, dword [rax]
mov rax, qword [rsp + 0x48]
imul ecx, dword [rax]
sar ecx, 7
add ecx, r9d
mov eax, ecx
sar eax, 0x1f
mov esi, eax
xor esi, ecx
mov ecx, dword [rsp + 0x28]
sub esi, eax
mov rax, qword [rsp + 0x40]
cmp edx, esi
mov r15d, esi
cmovl r15d, edx
cmp r8d, esi
mov rdx, qword [rsp + 0x48]
mov dword [rax], esi
cmovg esi, r8d
mov r8d, dword [r10 + 8]
add r11, rcx
mov ecx, dword [rsp + 0x2c]
add rax, 4
add rbp, rcx
mov qword [rsp + 0x40], rax
add r14, rcx
add edi, 2
cmp edi, r8d
jl 0x1400afda0
mov r10d, dword [rsp + 0x20]
xor edi, edi
mov r9, qword [rsp + 0x70]
movsxd rax, dword [rsp + 0x30]
mov edx, dword [rsp + 0x50]
add r11, rax
mov eax, dword [rsp + 0x54]
inc r10d
and edx, r10d
mov dword [rsp + 0x20], r10d
mov ecx, edx
imul ecx, dword [r9 + 0x1b0]
sub eax, ecx
mov ecx, dword [r9 + 0x1c0]
cdqe
add rbp, rax
imul ecx, edx
mov eax, dword [rsp + 0x58]
sub eax, ecx
cdqe
add r14, rax
mov rax, qword [rsp + 0x68]
cmp r10d, dword [rax + 0xc]
movsxd rax, dword [rsp + 0x30]
jl 0x1400afd57
cmp r15d, esi
je 0x1400affe3
mov r11d, dword [rsp + 0x38]
mov r9d, r11d
mov r8, qword [rsp + 0x78]
test r11d, r11d
je 0x1400aff54
mov r10d, esi
sub r10d, r15d
nop
mov eax, dword [r8]
lea r8, [r8 + 4]
sub eax, r15d
imul eax, eax, 0x3200
cdq
idiv r10d
mov ecx, eax
sar ecx, 0x1f
add eax, ecx
sar eax, 6
inc eax
sar eax, 1
cmovs eax, edi
cdqe
inc dword [rsp + rax*4 + 0xa0]
sub r9d, 1
jne 0x1400aff20
mov edx, dword [rsp + 0x24]
lea rax, [rsp + 0xa0]
imul edx, r11d
sar edx, 0xa
mov ecx, edx
neg ecx
test edx, edx
jne 0x1400aff90
nop
add ecx, dword [rax]
test ecx, ecx
jg 0x1400affa5
add rax, 4
lea rdx, [rsp + 0x230]
cmp rax, rdx
jbe 0x1400aff70
jmp 0x1400affa5
add ecx, dword [rax]
jns 0x1400affa5
add rax, 4
lea rdx, [rsp + 0x230]
cmp rax, rdx
jbe 0x1400aff90
lea rcx, [rsp + 0xa0]
cmp rax, rcx
je 0x1400affc4
lea rcx, [rsp + 0xa0]
sub rax, rcx
sar rax, 2
lea edi, [rax - 1]
mov r9, qword [rsp + 0x70]
sub esi, r15d
imul esi, edi
mov eax, 0x51eb851f
imul esi
sar edx, 5
mov edi, edx
shr edi, 0x1f
add edi, edx
add edi, r15d
mov rax, qword [rsp + 0x98]
mov rdx, qword [rsp + 0x78]
mov dword [rax], edi
mov rcx, qword [r9 + 8]
mov rax, qword [rcx]
call qword [rax + 0x10]
xor eax, eax
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1400fcc70
mov rbx, qword [rsp + 0x2a8]
add rsp, 0x250
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret