Function at 0x14003ea80
Capabilities:
Encode data using xor

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x118
lea rbp, [rsp + 0x80]
movdqa xmmword [rbp + 0x80], xmm6
mov qword [rbp + 0x78], 0xfffffffffffffffe
mov qword [rbp + 0x18], r8
mov qword [rbp - 0x20], rdx
mov al, byte [r9 + 0xa8]
add al, 0xff
movzx edi, al
cmp dil, 3
ja 0x14003f2fb
mov rsi, r9
mov qword [rbp - 0x50], rcx
mov rax, qword [0x1401ac9d0]
mov qword [rbp + 0x50], rax
pxor xmm0, xmm0
movdqu xmmword [rbp + 0x58], xmm0
lea rcx, [rbp + 0x50]
mov r8d, 1
xor edx, edx
call fcn.140190b80
mov rax, qword [rbp + 0x50]
mov rcx, qword [rbp + 0x60]
mov byte [rax + rcx], 1
mov rax, qword [rbp + 0x58]
mov rdx, qword [rbp + 0x60]
add rdx, 1
mov qword [rbp + 0x60], rdx
cmp rax, rdx
jne 0x14003eb29
lea rcx, [rbp + 0x50]
mov r8d, 1
call fcn.140190b80
mov rdx, qword [rbp + 0x60]
mov rax, qword [rbp + 0x50]
mov byte [rax + rdx], 1
add qword [rbp + 0x60], 1
mov rax, qword [0x1401ac9c0]
mov qword [rbp + 0x38], rax
pxor xmm0, xmm0
movdqu xmmword [rbp + 0x40], xmm0
cmp qword [rbp + 0x18], 0
je 0x14003f311
mov rax, qword [rbp - 0x20]
mov ebx, dword [rax]
lea rcx, [rbp + 0x38]
mov r8d, 1
xor edx, edx
call fcn.140191010
mov rax, qword [rbp + 0x38]
mov rcx, qword [rbp + 0x48]
mov dword [rax + rcx*4], ebx
mov rdx, qword [rbp + 0x48]
add rdx, 1
mov qword [rbp + 0x48], rdx
cmp qword [rbp + 0x18], 2
jb 0x14003f323
mov rax, qword [rbp - 0x20]
mov ebx, dword [rax + 4]
cmp qword [rbp + 0x40], rdx
jne 0x14003ebae
lea rcx, [rbp + 0x38]
mov r8d, 1
call fcn.140191010
mov rdx, qword [rbp + 0x48]
lea rax, [0x1401acdfc]
mov r10d, dword [rax + rdi*4]
mov rax, qword [rbp + 0x38]
mov dword [rax + rdx*4], ebx
add qword [rbp + 0x48], 1
mov rdi, qword [rsi + 0x78]
mov rax, qword [rsi + 0x88]
mov qword [rbp + 0x30], rax
lea rax, [rdi + rax*4]
mov qword [rbp - 0x38], rax
mov eax, 2
xor ecx, ecx
mov rbx, rdi
xor r12d, r12d
mov dword [rbp + 0x6c], r10d
mov qword [rbp + 0x28], rdi
jmp 0x14003ec20
mov rdi, qword [rbp + 0x28]
mov rbx, qword [rbp + 8]
mov r12, qword [rbp + 0x10]
mov rax, qword [rbp + 0x38]
mov dword [rax + rdx*4], r15d
lea rax, [rbp + 0x48]
add qword [rax], 1
mov cl, 1
xor eax, eax
test cl, 1
je 0x14003efc5
mov rdx, rbx
cmp rdx, qword [rbp - 0x38]
je 0x14003efea
mov qword [rbp - 0x28], r12
lea rax, str.smallerbigger
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], 7
cmp r12, qword [rbp + 0x30]
jae 0x14003f1e2
mov eax, dword [rdi + r12*4]
mov dword [rbp + 0x68], eax
lea rcx, [rbp + 0x70]
mov qword [rbp - 0x30], rcx
test r12, r12
je 0x14003f2b5
lea r10, [rdx + 4]
lea r11, [r12 + 1]
lea r15, [rdi + r12*4]
mov rcx, rdi
xor ebx, ebx
nop word cs:[rax + rax]
nop dword [rax + rax]
cmp dword [rcx], eax
jb 0x14003ecb0
add rcx, 4
add rbx, 1
cmp rcx, r15
jne 0x14003ec90
jmp 0x14003f2b5
mov qword [rbp - 0x58], rdx
lea rsi, [rdi + rbx*4]
mov r8, r15
sub r8, rsi
shr r8, 2
mov rdx, r15
mov qword [rbp + 8], r10
mov qword [rbp + 0x10], r11
nop dword [rax]
mov rdi, rdx
cmp rsi, rdx
je 0x14003ed30
lea rdx, [rdi - 4]
mov r9d, dword [rdi - 4]
add r8, 0xffffffffffffffff
cmp r9d, eax
jae 0x14003ecd0
mov rax, rdx
sub rax, rsi
shr rax, 2
mov qword [rbp - 0x18], rax
lea rax, [rbp - 0x30]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x68]
mov qword [rbp - 8], rax
lea rax, [rbp + 0x70]
mov qword [rbp], rax
lea rax, [rbp - 0x18]
mov qword [rsp + 0x20], rax
mov rcx, rsi
call fcn.14004ab80
mov dword [rbp + 0x24], edx
mov r14, rax
jmp 0x14003ed33
xor r14d, r14d
cmp rbx, qword [rbp + 0x30]
jae 0x14003f1fa
cmp rsi, rdi
mov rdx, qword [rbp + 0x28]
jne 0x14003ed4c
mov eax, dword [rdx + rbx*4]
mov dword [rbp + 0x24], eax
add r14, rbx
mov qword [rbp - 0x28], r12
lea rax, [0x1401acdbf]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], 6
mov eax, dword [rdx + r12*4]
mov dword [rbp + 0x68], eax
lea rcx, [rbp + 0x70]
mov qword [rbp - 0x30], rcx
mov rcx, rdx
xor r13d, r13d
nop dword [rax + rax]
cmp eax, dword [rcx]
jb 0x14003eda0
add rcx, 4
add r13, 1
cmp rcx, r15
jne 0x14003ed80
jmp 0x14003f2d8
lea rbx, [rdx + r13*4]
mov r8, r15
sub r8, rbx
shr r8, 2
nop
mov rdi, r15
cmp rbx, r15
je 0x14003ee10
lea r15, [rdi - 4]
mov r9d, dword [rdi - 4]
add r8, 0xffffffffffffffff
cmp eax, r9d
jae 0x14003edb0
mov rax, r15
sub rax, rbx
shr rax, 2
mov qword [rbp - 0x18], rax
lea rax, [rbp - 0x30]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x68]
mov qword [rbp - 8], rax
lea rax, [rbp + 0x70]
mov qword [rbp], rax
lea rax, [rbp - 0x18]
mov qword [rsp + 0x20], rax
mov rcx, rbx
mov rdx, r15
call fcn.14004ab20
mov r11, rax
mov esi, edx
jmp 0x14003ee13
xor r11d, r11d
cmp r13, qword [rbp + 0x30]
jae 0x14003f212
cmp rbx, rdi
jne 0x14003ee24
mov esi, dword [rbx]
mov r9, qword [rbp + 0x48]
cmp r9, r14
jbe 0x14003f22a
add r11, r13
cmp r9, r11
jbe 0x14003f241
mov ecx, dword [rbp + 0x24]
sub esi, ecx
je 0x14003f258
mov r8, qword [rbp + 0x38]
mov ebx, dword [r8 + r14*4]
mov edi, dword [r8 + r11*4]
sub edi, ebx
mov rax, qword [rbp - 0x58]
mov eax, dword [rax]
mov edx, edi
neg edx
cmovl edx, edi
sub eax, ecx
imul eax, edx
xor edx, edx
div esi
mov esi, eax
neg esi
test edi, edi
cmovns esi, eax
cmp r12, qword [rbp + 0x18]
jae 0x14003f275
add esi, ebx
mov rax, qword [rbp - 0x20]
mov r15d, dword [rax + r12*4]
mov r10d, dword [rbp + 0x6c]
mov r12d, r10d
sub r12d, esi
cmp r12d, esi
mov ebx, r12d
cmovg ebx, esi
test r15d, r15d
jle 0x14003ef20
mov rdx, qword [rbp + 0x60]
cmp rdx, r14
jbe 0x14003f28d
mov rax, qword [rbp + 0x50]
mov byte [rax + r14], 1
mov rdx, qword [rbp + 0x60]
cmp rdx, r11
jbe 0x14003f2a1
mov rax, qword [rbp + 0x50]
mov byte [rax + r11], 1
mov rdx, qword [rbp + 0x60]
cmp qword [rbp + 0x58], rdx
jne 0x14003eeee
mov r8d, 1
lea rcx, [rbp + 0x50]
call fcn.140190b80
mov rdx, qword [rbp + 0x60]
mov r10d, dword [rbp + 0x6c]
add ebx, ebx
mov rax, qword [rbp + 0x50]
mov byte [rax + rdx], 1
add qword [rbp + 0x60], 1
cmp r15d, ebx
jge 0x14003ef90
mov eax, r15d
and eax, 1
neg eax
xor eax, r15d
sar eax, 1
add eax, esi
mov r15d, eax
jmp 0x14003ef9b
cmp qword [rbp + 0x40], r9
jne 0x14003ef44
mov r8d, 1
lea rcx, [rbp + 0x38]
mov rdx, r9
call fcn.140191010
mov r8, qword [rbp + 0x38]
mov r9, qword [rbp + 0x48]
mov r10d, dword [rbp + 0x6c]
mov dword [r8 + r9*4], esi
add qword [rbp + 0x48], 1
mov rdx, qword [rbp + 0x60]
cmp qword [rbp + 0x58], rdx
jne 0x14003ef6e
mov r8d, 1
lea rcx, [rbp + 0x50]
call fcn.140190b80
mov rdx, qword [rbp + 0x60]
mov r10d, dword [rbp + 0x6c]
mov rdi, qword [rbp + 0x28]
mov rbx, qword [rbp + 8]
mov r12, qword [rbp + 0x10]
mov rax, qword [rbp + 0x50]
mov byte [rax + rdx], 0
lea rax, [rbp + 0x60]
jmp 0x14003ec18
cmp r12d, esi
jg 0x14003ef9b
not r15d
add r15d, r10d
mov rdx, qword [rbp + 0x48]
cmp qword [rbp + 0x40], rdx
jne 0x14003ec00
mov r8d, 1
lea rcx, [rbp + 0x38]
call fcn.140191010
mov rdx, qword [rbp + 0x48]
mov r10d, dword [rbp + 0x6c]
jmp 0x14003ec00
lea rcx, [rax - 1]
mov rdx, qword [rbp - 0x38]
sub rdx, rbx
shr rdx, 2
cmp rdx, rcx
jbe 0x14003efea
lea rdx, [rbx + rax*4]
add r12, rax
cmp rdx, qword [rbp - 0x38]
jne 0x14003ec36
mov r9, qword [rbp + 0x48]
test r9, r9
je 0x14003f197
mov rcx, qword [rbp + 0x38]
add r10d, 0xffffffff
lea rdx, [r9*4 - 4]
mov rax, rcx
cmp rdx, 0x1c
jb 0x14003f17a
shr rdx, 2
add rdx, 1
mov r8, rdx
and r8, 0xfffffffffffffff8
movd xmm0, r10d
pshufd xmm0, xmm0, 0
lea rax, [r8 - 8]
mov rbx, rax
shr rbx, 3
add rbx, 1
test rax, rax
je 0x14003f1d5
mov rsi, rbx
and rsi, 0xfffffffffffffffe
xor edi, edi
movdqa xmm1, xmmword [0x1401ac980]
movdqa xmm2, xmm0
pxor xmm2, xmm1
nop
lea rax, [rdi*4]
movdqu xmm3, xmmword [rcx + rdi*4]
movdqu xmm4, xmmword [rcx + rdi*4 + 0x10]
movdqa xmm5, xmm3
pxor xmm5, xmm1
pcmpgtd xmm5, xmm2
movdqa xmm6, xmm0
pand xmm6, xmm5
pandn xmm5, xmm3
por xmm5, xmm6
movdqa xmm3, xmm4
pxor xmm3, xmm1
pcmpgtd xmm3, xmm2
movdqa xmm6, xmm0
pand xmm6, xmm3
pandn xmm3, xmm4
por xmm3, xmm6
movdqu xmmword [rcx + rdi*4], xmm5
movdqu xmmword [rcx + rdi*4 + 0x10], xmm3
or rax, 0x20
movdqu xmm3, xmmword [rcx + rax]
movdqu xmm4, xmmword [rcx + rax + 0x10]
movdqa xmm5, xmm3
pxor xmm5, xmm1
pcmpgtd xmm5, xmm2
movdqa xmm6, xmm0
pand xmm6, xmm5
pandn xmm5, xmm3
por xmm5, xmm6
movdqa xmm3, xmm4
pxor xmm3, xmm1
pcmpgtd xmm3, xmm2
movdqa xmm6, xmm0
pand xmm6, xmm3
pandn xmm3, xmm4
por xmm3, xmm6
movdqu xmmword [rcx + rax], xmm5
movdqu xmmword [rcx + rax + 0x10], xmm3
add rdi, 0x10
add rsi, 0xfffffffffffffffe
jne 0x14003f060
test bl, 1
je 0x14003f171
movdqu xmm1, xmmword [rcx + rdi*4]
movdqu xmm2, xmmword [rcx + rdi*4 + 0x10]
movdqa xmm3, xmmword [0x1401ac980]
movdqa xmm4, xmm0
pxor xmm4, xmm3
movdqa xmm5, xmm1
pxor xmm5, xmm3
pcmpgtd xmm5, xmm4
movdqa xmm6, xmm0
pand xmm6, xmm5
pandn xmm5, xmm1
por xmm5, xmm6
pxor xmm3, xmm2
pcmpgtd xmm3, xmm4
pand xmm0, xmm3
pandn xmm3, xmm2
por xmm3, xmm0
movdqu xmmword [rcx + rdi*4], xmm5
movdqu xmmword [rcx + rdi*4 + 0x10], xmm3
cmp rdx, r8
je 0x14003f197
lea rax, [rcx + r8*4]
lea rcx, [rcx + r9*4]
nop
mov edx, dword [rax]
cmp r10d, edx
cmovbe edx, r10d
mov dword [rax], edx
lea rdx, [rax + 4]
mov rax, rdx
cmp rdx, rcx
jne 0x14003f180
mov rcx, qword [rbp + 0x48]
mov rax, qword [rbp - 0x50]
mov qword [rax + 0x10], rcx
movups xmm0, xmmword [rbp + 0x38]
movups xmmword [rax], xmm0
movups xmm0, xmmword [rbp + 0x50]
movups xmmword [rax + 0x18], xmm0
mov rcx, qword [rbp + 0x60]
mov qword [rax + 0x28], rcx
movaps xmm6, xmmword [rbp + 0x80]
add rsp, 0x118
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
xor edi, edi
test bl, 1
jne 0x14003f11b
jmp 0x14003f171
lea r8, [0x1401acc08]
mov rcx, r12
mov rdx, qword [rbp + 0x30]
call fcn.14019e3e0
jmp 0x14003f339
lea r8, [0x1401acc20]
mov rcx, rbx
mov rdx, qword [rbp + 0x30]
call fcn.14019e3e0
jmp 0x14003f339
lea r8, [0x1401acc20]
mov rcx, r13
mov rdx, qword [rbp + 0x30]
call fcn.14019e3e0
jmp 0x14003f339
lea r8, [0x1401ace58]
mov rcx, r14
mov rdx, r9
call fcn.14019e3e0
jmp 0x14003f339
lea r8, [0x1401ace70]
mov rcx, r11
mov rdx, r9
call fcn.14019e3e0
jmp 0x14003f339
lea rcx, [0x1401acde0]
lea r8, [0x1401acdc8]
mov edx, 0x19
call fcn.14019e390
jmp 0x14003f339
lea r8, [0x1401ace88]
mov rcx, r12
mov rdx, qword [rbp + 0x18]
call fcn.14019e3e0
jmp 0x14003f339
lea r8, [0x1401acea0]
mov rcx, r14
call fcn.14019e3e0
jmp 0x14003f339
lea r8, [0x1401aceb8]
mov rcx, r11
call fcn.14019e3e0
jmp 0x14003f339
lea rax, [rbp - 0x28]
mov qword [rbp - 0x18], rax
lea rax, [rbp - 0x48]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x68]
mov qword [rbp - 8], rax
lea rcx, [rbp - 0x18]
call fcn.14003e9e0
jmp 0x14003f339
lea rax, [rbp - 0x28]
mov qword [rbp - 0x18], rax
lea rax, [rbp - 0x48]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x68]
mov qword [rbp - 8], rax
lea rcx, [rbp - 0x18]
call fcn.14003e9e0
jmp 0x14003f339
lea r8, [0x1401ace10]
mov edx, 4
mov rcx, rdi
call fcn.14019e3e0
ud2
lea r8, [0x1401ace28]
xor ecx, ecx
xor edx, edx
call fcn.14019e3e0
jmp 0x14003f339
lea r8, [0x1401ace40]
mov ecx, 1
mov edx, 1
call fcn.14019e3e0
ud2