Function at 0x1400cb310
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rdi, qword [rcx + 0x168]
mov rbp, qword [rcx + 0x178]
mov r12, qword [rcx + 0x180]
mov rbx, rcx
mov rax, rdx
mov r10, r8
mov rdx, r9
mov qword [rsp + 0xa8], r9
mov r8, qword [rcx + 0x160]
xor ecx, ecx
movabs r9, 0xfffffffe0
add rdx, qword [rbx + 0x38]
mov qword [rsp + 0x20], rdi
setb cl
cmp r9, rdx
jb 0x1400cb98b
test rcx, rcx
jne 0x1400cb98b
mov qword [rbx + 0x38], rdx
mov edx, dword [rbx + 0x174]
mov r9d, dword [rbx + 0x170]
test edx, edx
je 0x1400cb89d
cmp qword [rsp + 0xa8], 0
je 0x1400cb963
movdqu xmm1, xmmword [rbx + 0x40]
pxor xmm0, xmm0
mov edx, 1
mov esi, dword [rbx + 0xc]
mov dword [rbx + 0x174], 0
mov r15d, 0x10
movups xmmword [rbx + 0x188], xmm1
movups xmmword [rbx + 0x40], xmm0
bswap esi
cmp qword [rsp + 0xa8], 0xf
jbe 0x1400cb41b
test dl, dl
je 0x1400cb41b
mov qword [rsp + 0xa0], r10
mov r9d, r15d
lea rdx, [rbx + 0x60]
lea rcx, [rbx + 0x40]
mov qword [rsp + 0x98], rax
lea r8, [rbx + 0x188]
mov rax, qword [rsp + 0x20]
xor r15d, r15d
call rax
mov rax, qword [rsp + 0x98]
mov r10, qword [rsp + 0xa0]
cmp qword [rsp + 0xa8], 0xbff
jbe 0x1400cb52e
lea rdx, [rbx + 0x60]
lea rcx, [rbx + 0x40]
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x28], rcx
lea edi, [rsi + 0xc0]
lea r13, [rbx + 0x10]
mov qword [rsp + 0xa0], r10
mov qword [rsp + 0x30], rdx
mov dword [rsp + 0x3c], r15d
mov r15, rbx
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
mov r9d, 0xc00
lea esi, [rdi - 0xc0]
mov r8, qword [rsp + 0x98]
mov rax, qword [rsp + 0x20]
call rax
mov rbx, qword [rsp + 0x98]
mov r14, qword [rsp + 0xa0]
nop word cs:[rax + rax]
add esi, 1
mov rdx, r13
mov r8, r12
mov rcx, r15
call rbp
mov edx, esi
add r14, 0x10
add rbx, 0x10
bswap edx
mov dword [r15 + 0xc], edx
mov rdx, qword [rbx - 0x10]
xor rdx, qword [r15 + 0x10]
mov qword [r14 - 0x10], rdx
mov rdx, qword [rbx - 8]
xor rdx, qword [r15 + 0x18]
mov qword [r14 - 8], rdx
cmp edi, esi
jne 0x1400cb4a0
add qword [rsp + 0xa0], 0xc00
add edi, 0xc0
add qword [rsp + 0x98], 0xc00
sub qword [rsp + 0xa8], 0xc00
cmp qword [rsp + 0xa8], 0xbff
ja 0x1400cb461
mov rbx, r15
mov rax, qword [rsp + 0x98]
mov r15d, dword [rsp + 0x3c]
mov r10, qword [rsp + 0xa0]
mov r9, qword [rsp + 0xa8]
and r9, 0xfffffffffffffff0
je 0x1400cb622
mov qword [rsp + 0xa0], r10
lea rdx, [rbx + 0x60]
mov r8, rax
lea rcx, [rbx + 0x40]
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x20]
lea r13, [rbx + 0x10]
call rax
mov rax, qword [rsp + 0xa8]
lea r11d, [rsi + 1]
mov r9, r13
mov r10, qword [rsp + 0xa0]
mov esi, r11d
lea rdx, [rax - 0x10]
shr rdx, 4
mov rdi, r10
lea eax, [r11 + rdx]
mov r13, rdx
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x98]
mov r14, rax
jmp 0x1400cb5ab
mov r9, qword [rsp + 0x28]
add esi, 1
mov rdx, r9
mov qword [rsp + 0x28], r9
mov r8, r12
mov rcx, rbx
mov qword [rsp + 0xa0], r10
add rdi, 0x10
add r14, 0x10
mov qword [rsp + 0x98], rax
call rbp
mov edx, esi
mov rax, qword [rsp + 0x98]
mov r10, qword [rsp + 0xa0]
bswap edx
mov dword [rbx + 0xc], edx
mov rdx, qword [r14 - 0x10]
xor rdx, qword [rbx + 0x10]
mov qword [rdi - 0x10], rdx
mov rdx, qword [r14 - 8]
xor rdx, qword [rbx + 0x18]
mov qword [rdi - 8], rdx
cmp dword [rsp + 0x20], esi
jne 0x1400cb5a3
and qword [rsp + 0xa8], 0xf
mov rdx, r13
add rdx, 1
shl rdx, 4
add r10, rdx
add rax, rdx
cmp qword [rsp + 0xa8], 0
mov qword [rsp + 0xa0], r10
mov qword [rsp + 0x98], rax
je 0x1400cb883
lea rdx, [rbx + 0x10]
mov r8, r12
mov rcx, rbx
call rbp
mov rax, qword [rsp + 0x98]
lea edx, [rsi + 1]
mov ecx, r15d
bswap edx
mov dword [rbx + 0xc], edx
movzx edx, byte [rax]
lea r8d, [r15 + 1]
mov r10, qword [rsp + 0xa0]
mov byte [rbx + rcx + 0x188], dl
mov rcx, qword [rsp + 0xa8]
xor dl, byte [rbx + 0x10]
mov byte [r10], dl
sub rcx, 1
je 0x1400cb87f
movzx edx, byte [rax + 1]
mov r9d, r8d
lea r11d, [r15 + 2]
mov byte [rbx + r9 + 0x188], dl
xor dl, byte [rbx + 0x11]
mov byte [r10 + 1], dl
cmp rcx, 1
je 0x1400cb87f
movzx edx, byte [rax + 2]
lea r9d, [r15 + 3]
mov byte [rbx + r11 + 0x188], dl
xor dl, byte [rbx + 0x12]
cmp qword [rsp + 0xa8], 3
mov byte [r10 + 2], dl
je 0x1400cb87f
movzx edx, byte [rax + 3]
lea r11d, [r15 + 4]
mov byte [rbx + r9 + 0x188], dl
xor dl, byte [rbx + 0x13]
cmp qword [rsp + 0xa8], 4
mov byte [r10 + 3], dl
je 0x1400cb87f
movzx edx, byte [rax + 4]
lea r9d, [r15 + 5]
mov byte [rbx + r11 + 0x188], dl
xor dl, byte [rbx + 0x14]
cmp qword [rsp + 0xa8], 5
mov byte [r10 + 4], dl
je 0x1400cb87f
movzx edx, byte [rax + 5]
lea r11d, [r15 + 6]
mov byte [rbx + r9 + 0x188], dl
xor dl, byte [rbx + 0x15]
cmp qword [rsp + 0xa8], 6
mov byte [r10 + 5], dl
je 0x1400cb87f
movzx edx, byte [rax + 6]
lea r9d, [r15 + 7]
mov byte [rbx + r11 + 0x188], dl
xor dl, byte [rbx + 0x16]
cmp qword [rsp + 0xa8], 7
mov byte [r10 + 6], dl
je 0x1400cb87f
movzx edx, byte [rax + 7]
lea r11d, [r15 + 8]
mov byte [rbx + r9 + 0x188], dl
xor dl, byte [rbx + 0x17]
cmp qword [rsp + 0xa8], 8
mov byte [r10 + 7], dl
je 0x1400cb87f
movzx edx, byte [rax + 8]
lea r9d, [r15 + 9]
mov byte [rbx + r11 + 0x188], dl
xor dl, byte [rbx + 0x18]
cmp qword [rsp + 0xa8], 9
mov byte [r10 + 8], dl
je 0x1400cb87f
movzx edx, byte [rax + 9]
lea r11d, [r15 + 0xa]
mov byte [rbx + r9 + 0x188], dl
xor dl, byte [rbx + 0x19]
cmp qword [rsp + 0xa8], 0xa
mov byte [r10 + 9], dl
je 0x1400cb87f
movzx edx, byte [rax + 0xa]
lea r9d, [r15 + 0xb]
mov byte [rbx + r11 + 0x188], dl
xor dl, byte [rbx + 0x1a]
cmp qword [rsp + 0xa8], 0xb
mov byte [r10 + 0xa], dl
je 0x1400cb87f
movzx edx, byte [rax + 0xb]
lea r11d, [r15 + 0xc]
mov byte [rbx + r9 + 0x188], dl
xor dl, byte [rbx + 0x1b]
cmp qword [rsp + 0xa8], 0xc
mov byte [r10 + 0xb], dl
je 0x1400cb87f
movzx edx, byte [rax + 0xc]
lea r9d, [r15 + 0xd]
mov byte [rbx + r11 + 0x188], dl
xor dl, byte [rbx + 0x1c]
cmp qword [rsp + 0xa8], 0xd
mov byte [r10 + 0xc], dl
je 0x1400cb87f
movzx edx, byte [rax + 0xd]
add r15d, 0xe
mov byte [rbx + r9 + 0x188], dl
xor dl, byte [rbx + 0x1d]
cmp qword [rsp + 0xa8], 0xe
mov byte [r10 + 0xd], dl
je 0x1400cb87f
movzx eax, byte [rax + 0xe]
mov edx, r15d
mov byte [rbx + rdx + 0x188], al
xor al, byte [rbx + 0x1e]
mov byte [r10 + 0xe], al
lea r15d, [r8 + rcx]
mov dword [rbx + 0x170], r15d
xor eax, eax
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov r15d, r9d
mov esi, dword [rbx + 0xc]
bswap esi
and r15d, 0xf
je 0x1400cb97d
cmp qword [rsp + 0xa8], 0
je 0x1400cb957
mov r8, qword [rsp + 0xa8]
jmp 0x1400cb8d5
test r8, r8
je 0x1400cb94a
movzx edx, byte [rax]
mov ecx, r9d
add r10, 1
add rax, 1
add r9d, 1
sub r8, 1
mov byte [rbx + rcx + 0x188], dl
mov ecx, r15d
add r15d, 1
xor dl, byte [rbx + rcx + 0x10]
mov byte [r10 - 1], dl
and r15d, 0xf
jne 0x1400cb8d0
mov qword [rsp + 0xa8], r8
mov qword [rsp + 0xa0], r10
lea rdx, [rbx + 0x60]
lea rcx, [rbx + 0x40]
mov qword [rsp + 0x98], rax
lea r8, [rbx + 0x188]
mov rax, qword [rsp + 0x20]
call rax
mov rax, qword [rsp + 0x98]
mov r10, qword [rsp + 0xa0]
jmp 0x1400cb41b
mov qword [rsp + 0xa8], r8
test r15d, r15d
je 0x1400cb90f
mov dword [rbx + 0x170], r9d
jmp 0x1400cb88a
lea rdx, [rbx + 0x60]
lea rcx, [rbx + 0x40]
call r8
mov dword [rbx + 0x174], 0
jmp 0x1400cb88a
test r9d, r9d
mov r15d, r9d
setne dl
jmp 0x1400cb3d0
mov eax, 0xffffffff
jmp 0x1400cb88c