Function at 0x14009fe40
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
push rbx
push rsi
push rdi
push r12
sub rsp, 0x68
mov rax, qword [rcx + 0x10]
mov r12, r9
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
cmp qword [rcx + 8], rax
jne 0x14009fe6e
call fcn.140041540
mov rcx, qword [rdi + 8]
mov rax, r12
shr rax, 2
and r12d, 3
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0xa8], r12
test rax, rax
je 0x1400a0247
mov qword [rsp + 0x60], rbp
lea r8, [rbx + 8]
mov qword [rsp + 0x58], r13
add rcx, 8
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x48], r15
mov r15, rsi
sub r15, rbx
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x90], rax
nop word [rax + rax]
mov r9d, dword [r8 - 8]
mov r13, rcx
mov r10d, dword [r8 - 4]
mov r12d, 8
mov r11d, dword [r8]
mov ebx, dword [r8 + 4]
mov edi, dword [r8 + 8]
mov esi, dword [r8 + 0xc]
mov ebp, dword [r8 + 0x10]
mov r14d, dword [r8 + 0x14]
bswap r9d
bswap r10d
bswap r11d
bswap ebx
bswap edi
bswap esi
bswap ebp
bswap r14d
nop dword [rax]
mov edx, dword [r13 - 8]
mov ecx, r10d
shr ecx, 5
mov eax, r10d
shl eax, 4
xor ecx, eax
mov eax, ebx
add ecx, r10d
shl eax, 4
xor ecx, edx
add r9d, ecx
mov ecx, ebx
shr ecx, 5
xor ecx, eax
mov eax, esi
add ecx, ebx
shl eax, 4
xor ecx, edx
add r11d, ecx
mov ecx, esi
shr ecx, 5
xor ecx, eax
mov eax, r14d
add ecx, esi
shl eax, 4
xor ecx, edx
add edi, ecx
mov ecx, r14d
shr ecx, 5
xor ecx, eax
mov eax, r9d
add ecx, r14d
shl eax, 4
xor ecx, edx
mov edx, dword [r13 - 4]
add ebp, ecx
mov ecx, r9d
shr ecx, 5
xor ecx, eax
mov eax, r11d
add ecx, r9d
shl eax, 4
xor ecx, edx
add r10d, ecx
mov ecx, r11d
shr ecx, 5
xor ecx, eax
mov eax, edi
add ecx, r11d
shl eax, 4
xor ecx, edx
add ebx, ecx
mov ecx, edi
shr ecx, 5
xor ecx, eax
mov eax, ebp
add ecx, edi
shl eax, 4
xor ecx, edx
add esi, ecx
mov ecx, ebp
shr ecx, 5
xor ecx, eax
mov eax, r10d
add ecx, ebp
shl eax, 4
xor ecx, edx
mov edx, dword [r13]
add r14d, ecx
mov ecx, r10d
shr ecx, 5
xor ecx, eax
mov eax, ebx
add ecx, r10d
shl eax, 4
xor ecx, edx
add r9d, ecx
mov ecx, ebx
shr ecx, 5
xor ecx, eax
add ecx, ebx
xor ecx, edx
mov eax, esi
add r11d, ecx
shl eax, 4
mov ecx, esi
shr ecx, 5
xor ecx, eax
mov eax, r14d
add ecx, esi
shl eax, 4
xor ecx, edx
add edi, ecx
mov ecx, r14d
shr ecx, 5
xor ecx, eax
mov eax, r9d
add ecx, r14d
shl eax, 4
xor ecx, edx
mov edx, dword [r13 + 4]
add ebp, ecx
mov ecx, r9d
shr ecx, 5
xor ecx, eax
mov eax, r11d
add ecx, r9d
shl eax, 4
xor ecx, edx
add r10d, ecx
mov ecx, r11d
shr ecx, 5
xor ecx, eax
mov eax, edi
add ecx, r11d
shl eax, 4
xor ecx, edx
add ebx, ecx
mov ecx, edi
shr ecx, 5
xor ecx, eax
mov eax, ebp
add ecx, edi
shl eax, 4
xor ecx, edx
add esi, ecx
mov ecx, ebp
shr ecx, 5
xor ecx, eax
mov eax, r10d
add ecx, ebp
shl eax, 4
xor ecx, edx
mov edx, dword [r13 + 8]
add r14d, ecx
mov ecx, r10d
shr ecx, 5
xor ecx, eax
mov eax, ebx
add ecx, r10d
shl eax, 4
xor ecx, edx
add r9d, ecx
mov ecx, ebx
shr ecx, 5
xor ecx, eax
mov eax, esi
add ecx, ebx
shl eax, 4
xor ecx, edx
add r11d, ecx
mov ecx, esi
shr ecx, 5
xor ecx, eax
mov eax, r14d
add ecx, esi
shl eax, 4
xor ecx, edx
add edi, ecx
mov ecx, r14d
shr ecx, 5
xor ecx, eax
add ecx, r14d
mov eax, r9d
xor ecx, edx
shl eax, 4
add ebp, ecx
mov edx, dword [r13 + 0xc]
mov ecx, r9d
shr ecx, 5
xor ecx, eax
mov eax, r11d
add ecx, r9d
shl eax, 4
xor ecx, edx
add r10d, ecx
mov ecx, r11d
shr ecx, 5
xor ecx, eax
mov eax, edi
add ecx, r11d
shl eax, 4
xor ecx, edx
add ebx, ecx
mov ecx, edi
shr ecx, 5
xor ecx, eax
mov eax, ebp
add ecx, edi
shl eax, 4
xor ecx, edx
add esi, ecx
mov ecx, ebp
shr ecx, 5
xor ecx, eax
mov eax, r10d
add ecx, ebp
shl eax, 4
xor ecx, edx
mov edx, dword [r13 + 0x10]
add r14d, ecx
mov ecx, r10d
shr ecx, 5
xor ecx, eax
mov eax, ebx
add ecx, r10d
shl eax, 4
xor ecx, edx
add r9d, ecx
mov ecx, ebx
shr ecx, 5
xor ecx, eax
mov eax, esi
add ecx, ebx
shl eax, 4
xor ecx, edx
add r11d, ecx
mov ecx, esi
shr ecx, 5
xor ecx, eax
mov eax, r14d
add ecx, esi
shl eax, 4
xor ecx, edx
add edi, ecx
mov ecx, r14d
shr ecx, 5
xor ecx, eax
mov eax, r9d
add ecx, r14d
shl eax, 4
xor ecx, edx
mov edx, dword [r13 + 0x14]
add ebp, ecx
mov ecx, r9d
shr ecx, 5
xor ecx, eax
mov eax, r11d
add ecx, r9d
xor ecx, edx
add r10d, ecx
mov ecx, r11d
shr ecx, 5
shl eax, 4
lea r13, [r13 + 0x20]
xor ecx, eax
mov eax, edi
add ecx, r11d
shl eax, 4
xor ecx, edx
add ebx, ecx
mov ecx, edi
shr ecx, 5
xor ecx, eax
mov eax, ebp
add ecx, edi
shl eax, 4
xor ecx, edx
add esi, ecx
mov ecx, ebp
shr ecx, 5
xor ecx, eax
add ecx, ebp
xor ecx, edx
add r14d, ecx
sub r12, 1
jne 0x14009ff10
mov rcx, qword [rsp + 0x20]
bswap r9d
bswap r10d
bswap r11d
bswap ebx
bswap edi
bswap esi
bswap ebp
bswap r14d
mov dword [r15 + r8 - 8], r9d
mov dword [r15 + r8 - 4], r10d
mov dword [r8 + r15], r11d
mov dword [r15 + r8 + 4], ebx
mov dword [r15 + r8 + 8], edi
mov dword [r15 + r8 + 0xc], esi
mov dword [r15 + r8 + 0x10], ebp
mov dword [r15 + r8 + 0x14], r14d
add r8, 0x20
sub qword [rsp + 0x90], 1
jne 0x14009fed0
mov r12, qword [rsp + 0xa8]
mov rax, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0xa0]
mov r15, qword [rsp + 0x48]
mov r14, qword [rsp + 0x50]
mov r13, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
lea rdi, [rcx + 8]
test r12, r12
je 0x1400a056a
shl rax, 5
lea r10, [rax + 4]
add r10, rsi
sub rbx, rsi
mov r8d, dword [rbx + r10 - 4]
mov r9, rdi
mov eax, dword [rbx + r10]
mov r11d, 2
bswap r8d
bswap eax
nop dword [rax]
mov edx, eax
mov ecx, eax
shr edx, 5
shl ecx, 4
xor edx, ecx
add edx, eax
xor edx, dword [r9 - 8]
add r8d, edx
mov edx, r8d
mov ecx, r8d
shr edx, 5
shl ecx, 4
xor edx, ecx
add edx, r8d
xor edx, dword [r9 - 4]
add eax, edx
mov edx, eax
mov ecx, eax
shr edx, 5
shl ecx, 4
xor edx, ecx
add edx, eax
xor edx, dword [r9]
add r8d, edx
mov edx, r8d
mov ecx, r8d
shr edx, 5
shl ecx, 4
xor edx, ecx
add edx, r8d
xor edx, dword [r9 + 4]
add eax, edx
mov edx, eax
mov ecx, eax
shr edx, 5
shl ecx, 4
xor edx, ecx
add edx, eax
xor edx, dword [r9 + 8]
add r8d, edx
mov edx, r8d
mov ecx, r8d
shr edx, 5
shl ecx, 4
xor edx, ecx
add edx, r8d
xor edx, dword [r9 + 0xc]
add eax, edx
mov edx, eax
mov ecx, eax
shr edx, 5
shl ecx, 4
xor edx, ecx
add edx, eax
xor edx, dword [r9 + 0x10]
add r8d, edx
mov edx, r8d
mov ecx, r8d
shr edx, 5
shl ecx, 4
xor edx, ecx
add edx, r8d
xor edx, dword [r9 + 0x14]
add eax, edx
mov edx, eax
mov ecx, eax
shr edx, 5
shl ecx, 4
xor edx, ecx
add edx, eax
xor edx, dword [r9 + 0x18]
add r8d, edx
mov edx, r8d
mov ecx, r8d
shr edx, 5
shl ecx, 4
xor edx, ecx
add edx, r8d
xor edx, dword [r9 + 0x1c]
add eax, edx
mov edx, eax
shr edx, 5
mov ecx, eax
shl ecx, 4
xor edx, ecx
add edx, eax
xor edx, dword [r9 + 0x20]
add r8d, edx
mov edx, r8d
mov ecx, r8d
shr edx, 5
shl ecx, 4
xor edx, ecx
add edx, r8d
xor edx, dword [r9 + 0x24]
add eax, edx
mov edx, eax
mov ecx, eax
shr edx, 5
shl ecx, 4
xor edx, ecx
add edx, eax
xor edx, dword [r9 + 0x28]
add r8d, edx
mov edx, r8d
mov ecx, r8d
shr edx, 5
shl ecx, 4
xor edx, ecx
add edx, r8d
xor edx, dword [r9 + 0x2c]
add eax, edx
mov edx, eax
mov ecx, eax
shr edx, 5
shl ecx, 4
xor edx, ecx
add edx, eax
xor edx, dword [r9 + 0x30]
add r8d, edx
mov edx, r8d
mov ecx, r8d
shr edx, 5
shl ecx, 4
xor edx, ecx
add edx, r8d
xor edx, dword [r9 + 0x34]
add eax, edx
mov edx, eax
mov ecx, eax
shr edx, 5
shl ecx, 4
xor edx, ecx
add edx, eax
xor edx, dword [r9 + 0x38]
add r8d, edx
mov edx, r8d
mov ecx, r8d
shr edx, 5
shl ecx, 4
xor edx, ecx
add edx, r8d
xor edx, dword [r9 + 0x3c]
add eax, edx
mov edx, eax
mov ecx, eax
shr edx, 5
shl ecx, 4
xor edx, ecx
add edx, eax
xor edx, dword [r9 + 0x40]
add r8d, edx
mov edx, r8d
mov ecx, r8d
shr edx, 5
shl ecx, 4
xor edx, ecx
add edx, r8d
xor edx, dword [r9 + 0x44]
add eax, edx
mov edx, eax
shr edx, 5
mov ecx, eax
shl ecx, 4
xor edx, ecx
add edx, eax
xor edx, dword [r9 + 0x48]
add r8d, edx
mov edx, r8d
mov ecx, r8d
shr edx, 5
shl ecx, 4
xor edx, ecx
add edx, r8d
xor edx, dword [r9 + 0x4c]
add eax, edx
mov edx, eax
mov ecx, eax
shr edx, 5
shl ecx, 4
xor edx, ecx
add edx, eax
xor edx, dword [r9 + 0x50]
add r8d, edx
mov edx, r8d
mov ecx, r8d
shr edx, 5
shl ecx, 4
xor edx, ecx
add edx, r8d
xor edx, dword [r9 + 0x54]
add eax, edx
mov edx, eax
mov ecx, eax
shr edx, 5
shl ecx, 4
xor edx, ecx
add edx, eax
xor edx, dword [r9 + 0x58]
add r8d, edx
mov edx, r8d
mov ecx, r8d
shr edx, 5
shl ecx, 4
xor edx, ecx
add edx, r8d
xor edx, dword [r9 + 0x5c]
add eax, edx
mov edx, eax
mov ecx, eax
shr edx, 5
shl ecx, 4
xor edx, ecx
add edx, eax
xor edx, dword [r9 + 0x60]
add r8d, edx
mov edx, r8d
mov ecx, r8d
shr edx, 5
shl ecx, 4
xor edx, ecx
add edx, r8d
xor edx, dword [r9 + 0x64]
add eax, edx
mov edx, eax
mov ecx, eax
shr edx, 5
shl ecx, 4
xor edx, ecx
add edx, eax
xor edx, dword [r9 + 0x68]
add r8d, edx
mov edx, r8d
mov ecx, r8d
shr edx, 5
shl ecx, 4
xor edx, ecx
add edx, r8d
xor edx, dword [r9 + 0x6c]
add eax, edx
mov edx, eax
mov ecx, eax
shr edx, 5
shl ecx, 4
lea r9, [r9 + 0x80]
xor edx, ecx
add edx, eax
xor edx, dword [r9 - 0x10]
add r8d, edx
mov edx, r8d
mov ecx, r8d
shr edx, 5
shl ecx, 4
xor edx, ecx
add edx, r8d
xor edx, dword [r9 - 0xc]
add eax, edx
sub r11, 1
jne 0x1400a0280
bswap r8d
bswap eax
mov dword [r10 - 4], r8d
mov dword [r10], eax
add r10, 8
sub r12, 1
jne 0x1400a0262
add rsp, 0x68
pop r12
pop rdi
pop rsi
pop rbx
ret