Function at 0x14000362c
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x18
mov rax, rdx
mov rdx, r8
cmp r8, 0x20
ja 0x140003666
mov rcx, rax
cmp rdx, 0x10
ja 0x140003684
add rsp, 0x18
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp 0x1400038f8
cmp rdx, 0x40
ja 0x14000369a
mov rcx, rax
add rsp, 0x18
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp fcn.140003a66
nop
add rsp, 0x18
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp 0x1400039da
movabs r12, 0xb492b66fbe98f273
movabs r8, 0x9ddfea08eb382d69
mov rcx, rdx
mov rdi, qword [rax + rdx - 0x28]
mov r9, qword [rax + rdx - 0x10]
mov rbp, qword [rax + rdx - 0x38]
mov r10, qword [rax + rdx - 0x30]
mov r13, rax
lea rax, [r9 + rbp]
mov rsi, qword [r13 + rdx - 0x18]
lea rbx, [r10 + rdx]
xor rbx, rsi
imul rbx, r8
mov r11, rsi
xor r11, rbx
shr rbx, 0x2f
xor rbx, r11
imul rbx, r8
mov rdx, rbx
shr rdx, 0x2f
xor rdx, rbx
imul rdx, r8
mov r14, qword [r13 + rcx - 0x40]
add r14, rcx
lea r15, [r14 + rdi]
add r15, rdx
rol r15, 0x2b
add rbp, r10
add rbp, r14
mov rbx, rbp
rol rbx, 0x14
add rbx, r14
add rbx, r15
add rbp, rdi
mov r10, qword [r13 + rcx - 0x20]
add r10, rax
mov r15, qword [r13 + rcx - 8]
mov r8, r12
add r10, r12
lea r12, [r15 + rdi]
add r12, r10
rol r12, 0x2b
add rsi, r9
add rsi, r10
mov r14, rsi
rol r14, 0x14
add r14, r10
add r14, r12
imul rdi, r8
mov qword [rsp], r13
add rdi, qword [r13]
add rsi, r15
dec rcx
and rcx, 0xffffffffffffffc0
mov qword [rsp + 8], rcx
xor r15d, r15d
mov r11, qword [rsp]
mov r13, rdx
add rdi, rbp
add rdi, rax
mov r10, qword [r11 + r15 + 8]
mov r12, qword [r11 + r15 + 0x10]
add rdi, r10
rol rdi, 0x1b
add rax, rbx
mov rcx, qword [r11 + r15 + 0x30]
mov qword [rsp + 0x10], rcx
add rax, rcx
rol rax, 0x16
movabs r8, 0xb492b66fbe98f273
imul rdi, r8
mov r9, rax
imul r9, r8
mov rdx, rdi
xor rdx, r14
mov rcx, qword [r11 + r15 + 0x28]
add rbp, rcx
mov rax, rbp
add rax, r9
add r13, rsi
imul rbx, r8
mov r9, qword [r11 + r15 + 0x18]
add rbx, qword [r11 + r15]
add rsi, r9
add rsi, rbx
add rsi, rdx
rol rsi, 0x2b
add r10, r12
add r10, rbx
mov rdi, r10
rol rdi, 0x14
add rbx, rdi
add rbx, rsi
rol r13, 0x1f
mov rbp, r10
mov rdi, r13
imul rdi, r8
add rbp, r9
add r14, rdi
mov r9, qword [r11 + r15 + 0x38]
add r14, qword [r11 + r15 + 0x20]
add r12, r9
add r12, rax
add r12, r14
add rcx, qword [rsp + 0x10]
add rcx, r14
mov r8, rcx
rol r8, 0x14
add r14, r8
rol r12, 0x2b
add r14, r12
mov rsi, rcx
add rsi, r9
add r15, 0x40
cmp qword [rsp + 8], r15
jne 0x140003777
xor rbx, r14
movabs r9, 0x9ddfea08eb382d69
imul rbx, r9
xor r14, rbx
shr rbx, 0x2f
xor rbx, r14
imul rbx, r9
mov rcx, rbx
shr rcx, 0x2f
xor rcx, rbx
imul rcx, r9
add rcx, rdi
xor rbp, rsi
imul rbp, r9
xor rsi, rbp
shr rbp, 0x2f
xor rbp, rsi
imul rbp, r9
mov r10, rbp
shr r10, 0x2f
xor r10, rbp
imul r10, r9
mov r8, rax
shr r8, 0x2f
xor r8, rax
movabs rax, 0xb492b66fbe98f273
imul r8, rax
add r8, rdx
add r8, r10
xor r8, rcx
imul r8, r9
xor rcx, r8
shr r8, 0x2f
xor r8, rcx
imul r8, r9
mov rax, r8
shr rax, 0x2f
xor rax, r8
imul rax, r9
add rsp, 0x18
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov r8, rcx
cmp rdx, 9
jb 0x140003943
mov r9, qword [r8 + rdx - 8]
lea rax, [r9 + rdx]
mov ecx, edx
ror rax, cl
mov rcx, qword [r8]
xor rcx, rax
movabs rdx, 0x9ddfea08eb382d69
imul rcx, rdx
xor rax, rcx
shr rcx, 0x2f
xor rcx, rax
imul rcx, rdx
mov rax, rcx
shr rax, 0x2f
xor rax, rcx
imul rax, rdx
xor rax, r9
ret
cmp rdx, 4
jb 0x140003983
mov eax, dword [r8]
mov ecx, dword [r8 + rdx - 4]
lea rdx, [rdx + rax*8]
xor rdx, rcx
movabs r8, 0x9ddfea08eb382d69
imul rdx, r8
xor rcx, rdx
shr rdx, 0x2f
xor rdx, rcx
imul rdx, r8
mov rax, rdx
shr rax, 0x2f
xor rax, rdx
imul rax, r8
ret
movabs rax, 0x9ae16a3b2f90404f
test rdx, rdx
je 0x1400039d8
movzx ecx, byte [r8]
mov r9, rdx
shr r9, 1
movzx r9d, byte [r8 + r9]
movzx r8d, byte [r8 + rdx - 1]
shl r9d, 8
or r9, rcx
shl r8d, 2
or r8, rdx
imul r9, rax
movabs rcx, 0xc949d7c7509e6557
imul rcx, r8
xor rcx, r9
mov rdx, rcx
shr rdx, 0x2f
xor rdx, rcx
imul rax, rdx
ret
movabs rax, 0xb492b66fbe98f273
imul rax, qword [rcx]
mov r9, qword [rcx + 8]
movabs r8, 0x9ae16a3b2f90404f
imul r8, qword [rcx + rdx - 8]
movabs r10, 0xc3a5c85c97cb3127
imul r10, qword [rcx + rdx - 0x10]
movabs rcx, 0xc949d7c7509e6557
xor rcx, r9
rol rcx, 0x2c
add rdx, rax
add rcx, rdx
sub rcx, r8
sub rax, r9
rol rax, 0x15
rol r8, 0x22
add r8, r10
add r8, rax
xor r8, rcx
movabs rdx, 0x9ddfea08eb382d69
imul r8, rdx
xor rcx, r8
shr r8, 0x2f
xor r8, rcx
imul r8, rdx
mov rax, r8
shr rax, 0x2f
xor rax, r8
imul rax, rdx
ret