Function at 0x1403cc270
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov rbx, r9
mov rdi, r8
mov rsi, rcx
mov r13, qword [rsp + 0xb0]
mov rcx, qword [rcx + 0x38]
add rcx, r13
setb r9b
xor eax, eax
movabs r8, 0xfffffffe0
cmp rcx, r8
ja 0x1403cc50f
test r9b, r9b
jne 0x1403cc50f
mov qword [rsp + 0x28], rdx
lea rbp, [rsi + 0x50]
mov r15, qword [rsi + 0x160]
mov r12, qword [rsi + 0x150]
mov rax, qword [rsi + 0x158]
mov qword [rsp + 0x38], rax
mov qword [rsi + 0x38], rcx
cmp dword [rsi + 0x174], 0
je 0x1403cc304
lea rcx, [rsi + 0x40]
mov rdx, rbp
mov rax, r12
call qword [case.0x14012d181.0]
mov dword [rsi + 0x174], 0
mov eax, dword [rsi + 0x170]
test eax, eax
je 0x1403cc359
test r13, r13
je 0x1403cc504
mov ecx, eax
mov dl, byte [rsi + rcx + 0x10]
xor dl, byte [rdi]
inc rdi
mov byte [rbx], dl
xor byte [rsi + rcx + 0x40], dl
inc rbx
lea r14, [r13 - 1]
inc eax
and eax, 0xf
je 0x1403cc33f
cmp r13, 1
mov r13, r14
jne 0x1403cc317
test eax, eax
jne 0x1403cc504
lea rcx, [rsi + 0x40]
mov rdx, rbp
mov rax, r12
call qword [case.0x14012d181.0]
jmp 0x1403cc35c
mov r14, r13
mov r13d, dword [rsi + 0xc]
bswap r13d
cmp r14, 0xc00
mov qword [rsp + 0x30], rbp
jb 0x1403cc449
mov qword [rsp + 0x20], r14
lea rbp, [rsi + 0x10]
lea rax, [rsi + 0x40]
mov qword [rsp + 0x40], rax
mov r14, 0xfffffffffffff400
mov r12, qword [rsp + 0x28]
mov rcx, rsi
mov rdx, rbp
mov r8, r12
mov rax, r15
call qword [case.0x14012d181.0]
inc r13d
mov eax, r13d
bswap eax
mov dword [rsi + 0xc], eax
mov rax, qword [rsi + 0x10]
xor rax, qword [rdi + r14 + 0xc00]
mov qword [rbx + r14 + 0xc00], rax
mov rax, qword [rsi + 0x18]
xor rax, qword [rdi + r14 + 0xc08]
mov qword [rbx + r14 + 0xc08], rax
add r14, 0x10
jne 0x1403cc393
mov r12, rbx
add r12, r14
mov r9d, 0xc00
mov rcx, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x30]
mov r8, r12
mov rax, qword [rsp + 0x38]
call qword [case.0x14012d181.0]
mov rcx, qword [rsp + 0x20]
add rcx, 0xfffffffffffff400
mov rax, rdi
add rax, r14
mov edx, 0xc00
lea rdi, [rax + rdx]
lea rbx, [r12 + rdx]
mov qword [rsp + 0x20], rcx
cmp rcx, 0xbff
ja 0x1403cc387
mov ecx, 0xc00
add rax, rcx
add r12, rcx
mov rbx, r12
mov rdi, rax
mov r14, qword [rsp + 0x20]
mov rax, r14
and rax, 0xff0
je 0x1403cc4c6
mov qword [rsp + 0x20], rax
lea rbp, [rsi + 0x10]
mov r12, qword [rsp + 0x28]
mov rcx, rsi
mov rdx, rbp
mov r8, r12
mov rax, r15
call qword [case.0x14012d181.0]
inc r13d
mov eax, r13d
bswap eax
mov dword [rsi + 0xc], eax
mov rax, qword [rsi + 0x10]
xor rax, qword [rdi]
mov qword [rbx], rax
mov rax, qword [rsi + 0x18]
xor rax, qword [rdi + 8]
mov qword [rbx + 8], rax
add rbx, 0x10
add rdi, 0x10
add r14, 0xfffffffffffffff0
cmp r14, 0xf
ja 0x1403cc462
mov r8, rbx
mov r9, qword [rsp + 0x20]
sub r8, r9
lea rcx, [rsi + 0x40]
mov rdx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x38]
call qword [case.0x14012d181.0]
test r14, r14
mov r8, qword [rsp + 0x28]
je 0x1403cc520
lea rdx, [rsi + 0x10]
mov rcx, rsi
mov rax, r15
call qword [case.0x14012d181.0]
inc r13d
bswap r13d
mov dword [rsi + 0xc], r13d
xor eax, eax
mov ecx, eax
mov dl, byte [rsi + rcx + 0x10]
xor dl, byte [rdi + rcx]
mov byte [rbx + rcx], dl
xor byte [rsi + rcx + 0x40], dl
inc rax
cmp r14, rax
jne 0x1403cc4ec
mov dword [rsi + 0x170], eax
mov eax, 1
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor eax, eax
jmp 0x1403cc504