Function at 0x1401d7e80
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x40
mov ebx, r9d
mov r14, r8
mov rsi, rdx
mov rdi, rcx
mov ecx, r9d
and ecx, 0xf
cmp ecx, 4
jae case.default.0x1401d7ebd
lea rax, [0x1407901c8]
mov ecx, ecx
lea rdx, [0x1405ee894]
movsxd rcx, dword [rdx + rcx*4]
add rcx, rdx
jmp rcx
nop
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x20], 0
mov rax, rsi
jmp 0x1401d84c5
cmp ecx, 5
ja 0x1401d7f3f
cmp ecx, 4
jne 0x1401d7fec
nop
inc qword [rsi + 8]
mov rcx, qword [rsi]
mov rax, qword [r14]
mov qword [rdi + 8], rax
mov rdx, qword [r14]
cmp rdx, rcx
je 0x1401d80f9
lea rax, [rdi + 8]
cmp dword [r14 + 8], 0
je 0x1401d8143
nop
mov qword [rdx], rdi
mov rdx, qword [r14]
cmp rdx, qword [rcx]
mov r8, rcx
jne 0x1401d7f26
nop
mov qword [r8], rdi
nop
mov r8, qword [rax]
cmp byte [r8 + 0x18], 0
je 0x1401d815c
nop
mov rax, qword [rcx + 8]
jmp 0x1401d8108
cmp ecx, 6
jne 0x1401d8013
nop
mov rdx, qword [rsi + 8]
test rdx, rdx
sete r8b
movzx eax, byte [0x14072a0f2]
cmp al, 0x11
je 0x1401d85bc
lea rcx, [rsp + 0x28]
test ebx, 0x200
jne 0x1401d80cf
nop
mov qword [rcx], rsi
mov qword [rcx + 8], rsi
mov qword [rcx + 0x10], rsi
mov rax, rsi
jmp 0x1401d87b1
mov rcx, r14
mov rdx, rdi
call fcn.14059bcf8
xor eax, eax
jmp case.0x1401d7ebd.0
nop
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], rsi
mov rdx, r14
sub rdx, rsi
jae 0x1401d8062
test rdi, rdi
je 0x1401d8554
cmp rdi, 1
mov rax, rdi
adc rax, 0
xor ecx, ecx
cmp rdi, 8
jb 0x1401d845b
cmp rdx, 0x20
jb 0x1401d845b
cmp rdi, 0x20
jae 0x1401d83e9
xor ecx, ecx
jmp 0x1401d842b
mov ecx, 0x61a5ab48
mov r8, rsi
call fcn.1401d5cd0
test r14d, r14d
je 0x1401d8040
mov rcx, rsi
call fcn.1400954d0
lea rdx, [rsp + 0x30]
xor r8d, r8d
jmp 0x1401d8391
cmp ecx, 7
jbe 0x1401d806d
cmp ecx, 8
jne 0x1401d811d
lea rax, [0x1405ee640]
mov qword [r14], rax
mov ecx, 0x61a5ab48
mov r8, r14
call fcn.1401d5cd0
test edi, edi
je 0x1401d83d8
test bl, 0x10
jne 0x1401d8115
mov rcx, r14
call fcn.1400954d0
test bl, 0x20
mov rax, r14
je case.0x1401d7ebd.0
jmp 0x1401d84c5
mov rdx, r14
mov rax, rdi
jmp 0x1401d8529
nop
inc qword [rdi + 8]
lea rdx, [rdi + 8]
mov rcx, qword [rdi]
mov rax, qword [r14]
mov qword [rsi + 8], rax
mov r8b, 1
cmp byte [0x140790470], 0
jne 0x1401d7f68
nop
mov rax, qword [r14]
cmp rax, rcx
je 0x1401d7f68
nop
cmp byte [0x140790208], 0
jne 0x1401d83a2
nop
cmp dword [r14 + 8], 0
je 0x1401d83a2
nop
mov qword [rax], rsi
mov rax, qword [r14]
cmp rax, qword [rcx]
mov rax, rcx
jne 0x1401d83b8
jmp 0x1401d83b4
mov cl, 0xf4
nop word cs:[rax + rax]
mov al, 0x1d
lock cmpxchg byte [0x14072a0f2], cl
je 0x1401d8391
cmp al, 0x11
jne 0x1401d80e0
jmp 0x1401d85bc
nop
mov qword [rcx], rdi
mov qword [rcx + 8], rdi
mov qword [rcx + 0x10], rdi
mov rax, rdi
nop
mov byte [rax + 0x18], 1
mov rax, rdi
jmp case.0x1401d7ebd.0
mov rax, rsi
jmp case.0x1401d7ebd.0
nop
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], r14
mov qword [rsp + 0x30], 0
test bl, bl
jns 0x1401d8804
lea rcx, [rsp + 0x20]
jmp 0x1401d83b8
lea r8, [rcx + 0x10]
mov qword [rdx + 0x10], rdi
mov rdx, qword [r14]
cmp rdx, qword [r8]
jne 0x1401d7f26
jmp 0x1401d7f22
lea r9, [r8 + 0x18]
mov rdx, rdi
jmp 0x1401d8198
nop
mov byte [r9], 1
mov byte [r10 + 0x18], 1
mov rdx, qword [rax]
mov rdx, qword [rdx + 8]
mov byte [rdx + 0x18], 0
mov rax, qword [rax]
mov rdx, qword [rax + 8]
lea rax, [rdx + 8]
mov r8, qword [rdx + 8]
lea r9, [r8 + 0x18]
cmp byte [r8 + 0x18], 0
jne 0x1401d7f35
nop
mov r11, qword [r8 + 8]
mov r10, qword [r11]
cmp r8, r10
je 0x1401d8210
nop
cmp byte [r10 + 0x18], 0
je 0x1401d8165
test bl, bl
jns 0x1401d8527
nop
mov rax, qword [r8]
cmp rdx, rax
jne 0x1401d829f
nop
mov rdx, qword [rax + 0x10]
mov qword [r8], rdx
mov rdx, qword [rax + 0x10]
cmp byte [rdx + 0x19], 0
jne 0x1401d81d9
nop
mov qword [rdx + 8], r8
nop
mov rdx, qword [r8 + 8]
mov qword [rax + 8], rdx
mov rdx, qword [rsi]
cmp qword [rdx + 8], r8
je 0x1401d828c
nop
mov r9, qword [r8 + 8]
lea rdx, [r9 + 0x10]
cmp qword [r9 + 0x10], r8
cmovne rdx, r9
jmp 0x1401d8290
nop
mov r10, qword [r11 + 0x10]
cmp byte [r10 + 0x18], 0
je 0x1401d826b
nop
mov rax, qword [r8 + 0x10]
cmp rdx, rax
jne 0x1401d8320
nop
mov rdx, qword [rax]
mov qword [r8 + 0x10], rdx
mov rdx, qword [rax]
cmp byte [rdx + 0x19], 0
jne 0x1401d8240
nop
mov qword [rdx + 8], r8
nop
mov rdx, qword [r8 + 8]
mov qword [rax + 8], rdx
mov rdx, qword [rsi]
cmp qword [rdx + 8], r8
je 0x1401d830e
nop
mov r9, qword [r8 + 8]
lea rdx, [r9 + 0x10]
cmp qword [r9], r8
cmove rdx, r9
jmp 0x1401d8312
nop
mov byte [r9], 1
mov byte [r10 + 0x18], 1
mov rdx, qword [rax]
mov rdx, qword [rdx + 8]
mov byte [rdx + 0x18], 0
mov rax, qword [rax]
mov rdx, qword [rax + 8]
jmp 0x1401d8181
add rdx, 8
nop
mov qword [rdx], rax
mov qword [rax + 0x10], r8
mov qword [r8 + 8], rax
mov rdx, r8
nop
mov rax, qword [rdx + 8]
mov byte [rax + 0x18], 1
mov rax, qword [rdx + 8]
mov rax, qword [rax + 8]
mov byte [rax + 0x18], 0
mov rax, qword [rdx + 8]
mov rax, qword [rax + 8]
mov r8, qword [rax + 0x10]
mov r9, qword [r8]
mov qword [rax + 0x10], r9
mov r9, qword [r8]
cmp byte [r9 + 0x19], 0
jne 0x1401d82d6
nop
mov qword [r9 + 8], rax
nop
mov r9, qword [rax + 8]
mov qword [r8 + 8], r9
mov r9, qword [rsi]
cmp qword [r9 + 8], rax
je 0x1401d82fa
nop
mov r10, qword [rax + 8]
lea r9, [r10 + 0x10]
cmp qword [r10], rax
cmove r9, r10
jmp 0x1401d82fe
add r9, 8
nop
mov qword [r9], r8
mov qword [r8], rax
mov qword [rax + 8], r8
jmp 0x1401d8181
add rdx, 8
nop
mov qword [rdx], rax
mov qword [rax], r8
mov qword [r8 + 8], rax
mov rdx, r8
nop
mov rax, qword [rdx + 8]
mov byte [rax + 0x18], 1
mov rax, qword [rdx + 8]
mov rax, qword [rax + 8]
mov byte [rax + 0x18], 0
mov rax, qword [rdx + 8]
mov rax, qword [rax + 8]
mov r8, qword [rax]
mov r9, qword [r8 + 0x10]
mov qword [rax], r9
mov r9, qword [r8 + 0x10]
cmp byte [r9 + 0x19], 0
jne 0x1401d8357
nop
mov qword [r9 + 8], rax
nop
mov r9, qword [rax + 8]
mov qword [r8 + 8], r9
mov r9, qword [rsi]
cmp qword [r9 + 8], rax
je 0x1401d837c
nop
mov r10, qword [rax + 8]
lea r9, [r10 + 0x10]
cmp qword [r10 + 0x10], rax
cmovne r9, r10
jmp 0x1401d8380
add r9, 8
nop
mov qword [r9], r8
mov qword [r8 + 0x10], rax
mov qword [rax + 8], r8
jmp 0x1401d8181
mov rax, rsi
test bl, 0x40
jne case.0x1401d7ebd.0
jmp 0x1401d8825
nop
mov qword [rax + 0x10], rsi
mov rax, qword [r14]
cmp rax, qword [rcx + 0x10]
jne 0x1401d83b8
lea rax, [rcx + 0x10]
nop
mov qword [rax], rsi
nop
mov r10, qword [rsi + 8]
cmp byte [r10 + 0x18], 0
jne 0x1401d87ac
lea r11, [rsi + 8]
lea r15, [r10 + 0x18]
mov r9, rsi
jmp 0x1401d85cd
mov rax, r14
test bl, 0x40
jne case.0x1401d7ebd.0
jmp 0x1401d852e
mov rcx, rax
and rcx, 0xffffffffffffffe0
xor edx, edx
nop word cs:[rax + rax]
nop
movups xmm0, xmmword [rsi + rdx]
movups xmm1, xmmword [rsi + rdx + 0x10]
movups xmmword [r14 + rdx], xmm0
movups xmmword [r14 + rdx + 0x10], xmm1
add rdx, 0x20
cmp rcx, rdx
jne 0x1401d8400
cmp rax, rcx
je 0x1401d8554
test al, 0x18
je 0x1401d845b
mov rdx, rcx
mov rcx, rax
and rcx, 0xfffffffffffffff8
nop word cs:[rax + rax]
nop
mov r8, qword [rsi + rdx]
mov qword [r14 + rdx], r8
add rdx, 8
cmp rcx, rdx
jne 0x1401d8440
cmp rax, rcx
je 0x1401d8554
mov r8, rax
mov rdx, rcx
and r8, 3
je 0x1401d8482
mov rdx, rcx
nop word [rax + rax]
nop
movzx r9d, byte [rsi + rdx]
mov byte [r14 + rdx], r9b
inc rdx
dec r8
jne 0x1401d8470
sub rcx, rax
cmp rcx, 0xfffffffffffffffc
ja 0x1401d8554
nop
nop
movzx eax, byte [rsi + rdx]
mov byte [r14 + rdx], al
movzx eax, byte [rsi + rdx + 1]
mov byte [r14 + rdx + 1], al
movzx eax, byte [rsi + rdx + 2]
mov byte [r14 + rdx + 2], al
movzx eax, byte [rsi + rdx + 3]
mov byte [r14 + rdx + 3], al
add rdx, 4
cmp rdi, rdx
jne 0x1401d8490
jmp 0x1401d8554
mov r8, r14
cmp qword [rsp + 0x20], rdi
mov r14, rcx
jae 0x1401d8527
test bl, 0x10
jne 0x1401d8551
nop
mov rcx, qword [rsp + 0x20]
movzx r9d, byte [r8 + rcx]
mov r10, qword [rsp + 0x38]
mov byte [r10 + rcx], r9b
inc rcx
mov qword [rsp + 0x20], rcx
lea rcx, [rsp + 0x28]
lea r9, [rsp + 0x38]
lea r12, [rsp + 0x20]
lea r10, [rsp + 0x28]
lea r11, [rsp + 0x28]
mov r15, r12
test bl, 0x40
jne 0x1401d851f
nop
mov qword [r12 + 8], r15
jmp 0x1401d8762
mov rcx, r14
mov r14, r8
jmp 0x1401d84c5
jmp case.0x1401d7ebd.0
test rax, rax
je 0x1401d854c
nop
mov rcx, qword [rsp + 0x20]
lea r8, [rax - 1]
movzx ecx, byte [rcx + rax - 1]
mov r9, qword [rsp + 0x28]
mov byte [r9 + rax - 1], cl
mov rax, r8
jmp 0x1401d8529
test bl, 0x10
je 0x1401d84d7
mov r14, rdx
mov rax, r14
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov edi, ecx
imul rdi, rdi, 0x38e38e39
shr rdi, 0x22
add edi, edi
lea edi, [rdi + rdi*8]
lea ebx, [rax + rdi]
add edi, r10d
movzx edi, byte [rdi + rsi]
xor dil, 0x2d
add byte [r9 + r11 - 1], dil
movzx ebx, byte [rbx + rsi]
xor bl, 0x2d
add byte [r9 + r11], bl
add eax, 0xfffffffe
add ecx, 2
add r9, 2
add r10d, 0xfffffffe
cmp r9, 0x13
jne 0x1401d8570
mov al, 0x11
xchg byte [0x14072a0f2], al
lea rax, [0x14072a0e0]
test r8b, 1
cmove rax, rdx
jmp case.0x1401d7ebd.0
nop
mov r13, qword [r10 + 8]
mov r12, qword [r13]
cmp r10, r12
je 0x1401d86b6
nop
cmp byte [r12 + 0x18], 0
je 0x1401d87be
nop
mov r11, qword [r10]
cmp r9, r11
jne 0x1401d8643
nop
mov r9, qword [r11 + 0x10]
mov qword [r10], r9
mov r9, qword [r11 + 0x10]
cmp byte [r9 + 0x19], 0
jne 0x1401d860d
nop
mov qword [r9 + 8], r10
nop
mov r9, qword [r10 + 8]
mov qword [r11 + 8], r9
mov r15, qword [rdi]
lea r9, [r15 + 8]
cmp qword [r15 + 8], r10
je 0x1401d8634
nop
mov r15, qword [r10 + 8]
lea r9, [r15 + 0x10]
cmp qword [r15 + 0x10], r10
cmovne r9, r15
nop
mov qword [r9], r11
mov qword [r11 + 0x10], r10
mov qword [r10 + 8], r11
mov r9, r10
nop
mov r10, qword [r9 + 8]
mov byte [r10 + 0x18], 1
mov r10, qword [r9 + 8]
mov r10, qword [r10 + 8]
mov byte [r10 + 0x18], 0
mov r10, qword [r9 + 8]
mov r10, qword [r10 + 8]
mov r11, qword [r10 + 0x10]
mov r15, qword [r11]
mov qword [r10 + 0x10], r15
mov r15, qword [r11]
cmp byte [r15 + 0x19], 0
jne 0x1401d867c
nop
mov qword [r15 + 8], r10
nop
mov r15, qword [r10 + 8]
mov qword [r11 + 8], r15
mov r12, qword [rdi]
lea r15, [r12 + 8]
cmp qword [r12 + 8], r10
je 0x1401d86a6
nop
mov r12, qword [r10 + 8]
lea r15, [r12 + 0x10]
cmp qword [r12], r10
cmove r15, r12
nop
mov qword [r15], r11
mov qword [r11], r10
mov qword [r10 + 8], r11
jmp 0x1401d8795
nop
mov r12, qword [r13 + 0x10]
cmp byte [r12 + 0x18], 0
je 0x1401d87de
nop
mov r11, qword [r10 + 0x10]
cmp r9, r11
jne 0x1401d8725
nop
mov r9, qword [r11]
mov qword [r10 + 0x10], r9
mov r9, qword [r11]
cmp byte [r9 + 0x19], 0
jne 0x1401d86f1
test bl, 0x20
je 0x1401d7ffe
nop
mov qword [r9 + 8], r10
nop
mov r9, qword [r10 + 8]
mov qword [r11 + 8], r9
mov r15, qword [rdi]
lea r9, [r15 + 8]
cmp qword [r15 + 8], r10
je 0x1401d8717
nop
mov r15, qword [r10 + 8]
lea r9, [r15 + 0x10]
cmp qword [r15], r10
cmove r9, r15
nop
mov qword [r9], r11
mov qword [r11], r10
mov qword [r10 + 8], r11
mov r9, r10
nop
mov r10, qword [r9 + 8]
mov byte [r10 + 0x18], 1
mov r10, qword [r9 + 8]
mov r10, qword [r10 + 8]
mov byte [r10 + 0x18], 0
mov r10, qword [r9 + 8]
mov r15, qword [r10 + 8]
mov r10, qword [r15]
lea r11, [r10 + 0x10]
mov r12, qword [r10 + 0x10]
mov qword [r15], r12
mov r12, qword [r10 + 0x10]
cmp byte [r12 + 0x19], 0
je 0x1401d850f
nop
mov r12, qword [r15 + 8]
mov qword [r10 + 8], r12
mov r13, qword [rdi]
lea r12, [r13 + 8]
cmp qword [r13 + 8], r15
je 0x1401d8789
nop
mov r13, qword [r15 + 8]
lea r12, [r13 + 0x10]
cmp qword [r13 + 0x10], r15
cmovne r12, r13
nop
mov qword [r12], r10
mov qword [r11], r15
mov qword [r15 + 8], r10
lea r11, [r9 + 8]
mov r10, qword [r9 + 8]
lea r15, [r10 + 0x18]
cmp byte [r10 + 0x18], 0
je 0x1401d85cd
nop
mov rax, qword [rcx + 8]
nop
mov byte [rax + 0x18], 1
mov rax, rsi
jmp case.0x1401d7ebd.0
nop
mov byte [r15], 1
mov byte [r12 + 0x18], 1
mov r9, qword [r11]
mov r9, qword [r9 + 8]
mov byte [r9 + 0x18], 0
mov r9, qword [r11]
mov r9, qword [r9 + 8]
jmp 0x1401d8795
nop
mov byte [r15], 1
mov byte [r12 + 0x18], 1
mov r9, qword [r11]
mov r9, qword [r9 + 8]
mov byte [r9 + 0x18], 0
mov r9, qword [r11]
mov r9, qword [r9 + 8]
jmp 0x1401d8795
nop
inc qword [rsp + 0x30]
nop
mov rcx, qword [rsp + 0x30]
cmp rcx, rdi
jae 0x1401d8853
nop
movzx eax, byte [r14 + rcx]
movzx ecx, byte [rsi + rcx]
mov r8b, 1
lea rdx, [rsp + 0x20]
cmp al, cl
jne 0x1401d8857
test bl, 0x10
je 0x1401d87fe
mov eax, 0x8cebf068
mov ecx, 0x73140fa8
mov r9d, 1
mov r10d, 0x8cebf069
lea r11, [0x14072a0e0]
lea rsi, [0x1405ee820]
jmp 0x1401d8570
xor eax, eax
jmp 0x1401d8859
sub eax, ecx
jmp case.0x1401d7ebd.0