Function at 0x140033580
Capabilities:
Encrypt data using camellia

Disassembly:
mov qword [rsp + 0x20], r9
push rbx
push rsi
push r12
push r13
sub rsp, 0x38
mov r12, rdx
mov rbx, rcx
lea rdx, [0x14009dc00]
mov ecx, 0x100
mov rsi, r9
mov r13, r8
call fcn.140086920
lea rdx, [0x14009dd00]
mov ecx, 0x100
call fcn.140086920
lea rdx, [0x14009de00]
mov ecx, 0x100
call fcn.140086920
lea rdx, [0x14009df00]
mov ecx, 0x100
call fcn.140086920
test r13, r13
je 0x140033936
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], r14
mov r14, qword [rsp + 0x80]
dec r14
mov qword [rsp + 0x20], r15
sub r12, rbx
lea r15, [rbx + 8]
mov qword [rsp + 0x68], r12
nop dword [rax]
nop word [rax + rax]
mov rcx, qword [r15 - 8]
mov r11d, ecx
mov edx, ecx
shl r11d, 0x10
mov eax, edx
and eax, 0xff0000
mov r8, rcx
shr r8, 0x20
and ecx, 0xff00
or r11d, ecx
mov r9, r8
mov rcx, qword [r15]
and rdx, 0xffffffffff000000
shl r11d, 8
mov edi, ecx
shl edi, 0x10
shl r11, 8
or r11, rax
mov eax, r8d
shl eax, 0x10
and r8d, 0xff00
or eax, r8d
shl r11, 0x10
shl eax, 8
or r11, rdx
mov edx, ecx
mov r8, rcx
and ecx, 0xff00
shr r8, 0x20
or edi, ecx
shl r11, 8
mov rcx, qword [rsi]
or r11, rax
shl edi, 8
mov rax, r9
and eax, 0xff0000
shl rdi, 8
shr r9, 0x10
or rax, r9
mov r9, r8
shr rax, 8
or r11, rax
mov eax, edx
and eax, 0xff0000
and rdx, 0xffffffffff000000
or rdi, rax
mov eax, r8d
shl eax, 0x10
and r8d, 0xff00
or eax, r8d
shl rdi, 0x10
shl eax, 8
or rdi, rdx
shl rdi, 8
or rdi, rax
mov rax, r9
and eax, 0xff0000
shr r9, 0x10
or rax, r9
shr rax, 8
or rdi, rax
mov rax, qword [rsi + 8]
sub rax, rcx
sar rax, 3
xor r11, qword [rcx + rax*8 - 0x10]
lea rsi, [rcx + rax*8]
mov rdx, qword [rsi - 0x18]
mov rcx, r11
call fcn.140033440
mov rdx, qword [rsi - 0x20]
mov rbp, rax
xor rbp, rdi
xor rbp, qword [rsi - 8]
sub rsi, 0x28
mov rcx, rbp
call fcn.140033440
xor r11, rax
mov ebx, 1
cmp rbx, r14
je 0x14003380a
movabs r12, 0xaaaaaaaaaaaaaaab
nop dword [rax]
nop word [rax + rax]
mov rax, r12
mul rbx
shr rdx, 1
lea rcx, [rdx + rdx*2]
cmp rbx, rcx
jne 0x1400337d8
mov rdx, qword [rsi]
mov r8, r11
shr r8, 0x20
mov rcx, rdx
shr rcx, 0x20
mov rax, rbp
and ecx, r8d
shr rax, 0x20
ror ecx, 0x1f
xor ecx, r11d
mov r11d, edx
or r11, rcx
xor r11, r8
shl r11, 0x20
or r11, rcx
mov rcx, qword [rsi - 8]
mov r8, rcx
sub rsi, 0x10
or r8, rbp
shr rcx, 0x20
xor r8, rax
mov eax, ebp
and ecx, r8d
mov edx, ecx
add ecx, ecx
shr rdx, 0x1f
or rdx, rcx
mov rbp, rdx
xor rbp, rax
mov eax, r8d
shl rax, 0x20
or rbp, rax
mov rdx, qword [rsi]
mov rcx, r11
call fcn.140033440
mov rdx, qword [rsi - 8]
xor rbp, rax
mov rcx, rbp
sub rsi, 0x10
call fcn.140033440
xor r11, rax
inc rbx
cmp rbx, r14
jne 0x140033760
mov r12, qword [rsp + 0x68]
mov rdx, qword [rsi]
mov rcx, r11
call fcn.140033440
mov rdx, qword [rsi - 8]
xor rbp, rax
mov rcx, rbp
call fcn.140033440
xor rbp, qword [rsi - 0x18]
mov r10, rax
xor r10, qword [rsi - 0x10]
mov r8d, ebp
mov rsi, qword [rsp + 0x78]
xor r10, r11
shl r8d, 0x10
mov rdx, rbp
shr rdx, 0x20
mov r9, rdx
mov ecx, ebp
mov eax, ecx
and ebp, 0xff00
and eax, 0xff0000
or r8d, ebp
shl r8d, 8
and rcx, 0xffffffffff000000
shl r8, 8
or r8, rax
mov eax, edx
shl eax, 0x10
and edx, 0xff00
or eax, edx
shl r8, 0x10
or r8, rcx
shl eax, 8
shl r8, 8
mov rdx, r10
or r8, rax
shr rdx, 0x20
mov rax, r9
mov ecx, r10d
and eax, 0xff0000
shr r9, 0x10
or rax, r9
mov r9, rdx
shr rax, 8
or r8, rax
mov eax, ecx
mov qword [r12 + r15 - 8], r8
and eax, 0xff0000
mov r8d, r10d
and rcx, 0xffffffffff000000
shl r8d, 0x10
and r10d, 0xff00
or r8d, r10d
shl r8d, 8
shl r8, 8
or r8, rax
mov eax, edx
shl eax, 0x10
and edx, 0xff00
or eax, edx
shl r8, 0x10
shl eax, 8
or r8, rcx
shl r8, 8
or r8, rax
mov rax, r9
and eax, 0xff0000
shr r9, 0x10
or rax, r9
shr rax, 8
or r8, rax
mov qword [r12 + r15], r8
add r15, 0x10
sub r13, 1
jne 0x140033620
mov r15, qword [rsp + 0x20]
mov r14, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x60]
add rsp, 0x38
pop r13
pop r12
pop rsi
pop rbx
ret