Function at 0x54f410
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
mov rax, qword [rcx + 0x168]
mov rsi, qword [rcx + 0x178]
mov rdi, qword [rcx + 0x180]
mov r15, rcx
mov r12, r8
mov qword [rsp + 0xa8], rdx
mov rdx, r9
mov qword [rsp + 0xb8], r9
mov r8, qword [rcx + 0x160]
xor ecx, ecx
movabs r9, 0xfffffffe0
add rdx, qword [r15 + 0x38]
mov qword [rsp + 0x48], rax
setb cl
cmp rdx, r9
ja 0x54fad0
test rcx, rcx
jne 0x54fad0
mov eax, dword [r15 + 0x174]
mov qword [r15 + 0x38], rdx
test eax, eax
je 0x54f8c6
cmp qword [rsp + 0xb8], 0
je 0x54fa85
movdqu xmm1, xmmword [r15 + 0x40]
mov eax, dword [r15 + 0xc]
mov dword [r15 + 0x174], 0
pxor xmm0, xmm0
bswap eax
mov dword [rsp + 0x34], 0x10
mov ecx, 1
mov dword [rsp + 0x30], eax
movups xmmword [r15 + 0x188], xmm1
movups xmmword [r15 + 0x40], xmm0
cmp qword [rsp + 0xb8], 0xf
jbe 0x54f96b
test cl, cl
je 0x54f96b
lea rdx, [r15 + 0x60]
lea rcx, [r15 + 0x40]
mov r9d, dword [rsp + 0x34]
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x38], rdx
lea r8, [r15 + 0x188]
mov qword [rsp + 0x40], rcx
call rax
cmp qword [rsp + 0xb8], 0xbff
jbe 0x54faa2
mov dword [rsp + 0x34], 0
mov qword [rsp + 0x28], r12
lea rbx, [r12 + 0xc00]
lea rbp, [r15 + 0x10]
mov r12, r15
mov r13d, dword [rsp + 0x30]
mov r15, qword [rsp + 0xa8]
mov r14, qword [rsp + 0x28]
nop word cs:[rax + rax]
add r13d, 1
mov r8, rdi
mov rdx, rbp
mov rcx, r12
call rsi
mov eax, r13d
add r14, 0x10
add r15, 0x10
bswap eax
mov dword [r12 + 0xc], eax
mov rax, qword [r15 - 0x10]
xor rax, qword [r12 + 0x10]
mov qword [r14 - 0x10], rax
mov rax, qword [r15 - 8]
xor rax, qword [r12 + 0x18]
mov qword [r14 - 8], rax
cmp r14, rbx
jne 0x54f560
mov rbx, qword [rsp + 0x28]
mov rax, qword [rsp + 0x48]
mov r9d, 0xc00
add dword [rsp + 0x30], 0xc0
mov rdx, qword [rsp + 0x38]
add qword [rsp + 0xa8], 0xc00
mov r8, rbx
mov rcx, qword [rsp + 0x40]
call rax
mov rax, rbx
lea rbx, [r14 + 0xc00]
sub qword [rsp + 0xb8], 0xc00
add rax, 0xc00
cmp qword [rsp + 0xb8], 0xbff
mov qword [rsp + 0x28], rax
ja 0x54f544
mov r15, r12
mov r12, r14
mov r11, qword [rsp + 0xb8]
and r11, 0xfffffffffffffff0
jne 0x54f9a5
cmp qword [rsp + 0xb8], 0
je 0x54f8a8
lea rdx, [r15 + 0x10]
mov r8, rdi
mov rcx, r15
call rsi
mov rax, qword [rsp + 0xa8]
mov edx, dword [rsp + 0x30]
mov r8d, dword [rsp + 0x34]
add edx, 1
bswap edx
mov dword [r15 + 0xc], edx
movzx edx, byte [r15 + 0x10]
lea ecx, [r8 + 1]
xor dl, byte [rax]
mov rax, r8
mov byte [r12], dl
mov byte [r15 + r8 + 0x188], dl
mov r8, qword [rsp + 0xb8]
sub r8, 1
je 0x54f8a0
mov rsi, qword [rsp + 0xa8]
movzx edx, byte [r15 + 0x11]
mov r9d, ecx
lea r11d, [rax + 2]
xor dl, byte [rsi + 1]
cmp qword [rsp + 0xb8], 2
mov byte [r12 + 1], dl
mov byte [r15 + r9 + 0x188], dl
je 0x54f8a0
movzx edx, byte [rsi + 2]
xor dl, byte [r15 + 0x12]
lea r9d, [rax + 3]
cmp qword [rsp + 0xb8], 3
mov byte [r12 + 2], dl
mov byte [r15 + r11 + 0x188], dl
je 0x54f8a0
movzx edx, byte [rsi + 3]
xor dl, byte [r15 + 0x13]
lea r11d, [rax + 4]
cmp qword [rsp + 0xb8], 4
mov byte [r12 + 3], dl
mov byte [r15 + r9 + 0x188], dl
je 0x54f8a0
movzx edx, byte [rsi + 4]
xor dl, byte [r15 + 0x14]
lea r9d, [rax + 5]
cmp qword [rsp + 0xb8], 5
mov byte [r12 + 4], dl
mov byte [r15 + r11 + 0x188], dl
je 0x54f8a0
movzx edx, byte [rsi + 5]
xor dl, byte [r15 + 0x15]
lea r11d, [rax + 6]
cmp qword [rsp + 0xb8], 6
mov byte [r12 + 5], dl
mov byte [r15 + r9 + 0x188], dl
je 0x54f8a0
movzx edx, byte [rsi + 6]
xor dl, byte [r15 + 0x16]
lea r9d, [rax + 7]
cmp qword [rsp + 0xb8], 7
mov byte [r12 + 6], dl
mov byte [r15 + r11 + 0x188], dl
je 0x54f8a0
movzx edx, byte [rsi + 7]
xor dl, byte [r15 + 0x17]
lea r11d, [rax + 8]
cmp qword [rsp + 0xb8], 8
mov byte [r12 + 7], dl
mov byte [r15 + r9 + 0x188], dl
je 0x54f8a0
movzx edx, byte [rsi + 8]
xor dl, byte [r15 + 0x18]
lea r9d, [rax + 9]
cmp qword [rsp + 0xb8], 9
mov byte [r12 + 8], dl
mov byte [r15 + r11 + 0x188], dl
je 0x54f8a0
movzx edx, byte [rsi + 9]
xor dl, byte [r15 + 0x19]
lea r11d, [rax + 0xa]
cmp qword [rsp + 0xb8], 0xa
mov byte [r12 + 9], dl
mov byte [r15 + r9 + 0x188], dl
je 0x54f8a0
movzx edx, byte [rsi + 0xa]
xor dl, byte [r15 + 0x1a]
lea r9d, [rax + 0xb]
cmp qword [rsp + 0xb8], 0xb
mov byte [r12 + 0xa], dl
mov byte [r15 + r11 + 0x188], dl
je 0x54f8a0
movzx edx, byte [rsi + 0xb]
xor dl, byte [r15 + 0x1b]
lea r11d, [rax + 0xc]
cmp qword [rsp + 0xb8], 0xc
mov byte [r12 + 0xb], dl
mov byte [r15 + r9 + 0x188], dl
je 0x54f8a0
movzx edx, byte [rsi + 0xc]
xor dl, byte [r15 + 0x1c]
lea r9d, [rax + 0xd]
cmp qword [rsp + 0xb8], 0xd
mov byte [r12 + 0xc], dl
mov byte [r15 + r11 + 0x188], dl
je 0x54f8a0
movzx edx, byte [rsi + 0xd]
add eax, 0xe
xor dl, byte [r15 + 0x1d]
cmp qword [rsp + 0xb8], 0xe
mov byte [r12 + 0xd], dl
mov r13d, eax
mov byte [r15 + r9 + 0x188], dl
je 0x54f8a0
movzx edx, byte [rsi + 0xe]
mov eax, r13d
xor dl, byte [r15 + 0x1e]
mov byte [r12 + 0xe], dl
mov byte [r15 + rax + 0x188], dl
lea eax, [rcx + r8]
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x34]
mov dword [r15 + 0x170], eax
xor eax, eax
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov edx, dword [r15 + 0x170]
mov eax, dword [r15 + 0xc]
bswap eax
mov dword [rsp + 0x30], eax
mov eax, edx
and eax, 0xf
je 0x54fabb
cmp qword [rsp + 0xb8], 0
je 0x54f994
mov r8, qword [rsp + 0xa8]
mov r10, qword [rsp + 0xb8]
jmp 0x54f908
test r10, r10
je 0x54f93d
mov r9d, eax
add r8, 1
movzx ecx, byte [r8 - 1]
add r12, 1
xor cl, byte [r15 + r9 + 0x10]
add eax, 1
lea r9d, [rdx + 1]
sub r10, 1
mov byte [r12 - 1], cl
mov byte [r15 + rdx + 0x188], cl
mov edx, r9d
and eax, 0xf
jne 0x54f903
mov dword [rsp + 0x34], eax
mov qword [rsp + 0xa8], r8
mov qword [rsp + 0xb8], r10
test eax, eax
jne 0x54f997
lea rdx, [r15 + 0x60]
lea rcx, [r15 + 0x40]
mov rax, qword [rsp + 0x48]
lea r8, [r15 + 0x188]
call rax
cmp qword [rsp + 0xb8], 0xbff
jbe 0x54f60c
lea rax, [r15 + 0x60]
mov qword [rsp + 0x38], rax
lea rax, [r15 + 0x40]
mov qword [rsp + 0x40], rax
jmp 0x54f530
mov r9d, edx
mov dword [r15 + 0x170], r9d
xor eax, eax
jmp 0x54f8b5
lea rax, [r15 + 0x60]
mov qword [rsp + 0x38], rax
lea rax, [r15 + 0x40]
mov qword [rsp + 0x40], rax
lea rax, [r15 + 0x10]
mov ebp, dword [rsp + 0x30]
mov r13, r12
mov r14, r11
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0xb8]
add ebp, 1
mov qword [rsp + 0xb0], r12
lea rdx, [rax - 0x10]
mov rax, rdx
shr rax, 4
lea ebx, [rbp + rax]
mov r12, rax
mov dword [rsp + 0x30], ebx
mov rbx, qword [rsp + 0xa8]
jmp 0x54fa00
add ebp, 1
mov rdx, qword [rsp + 0x28]
mov r8, rdi
mov rcx, r15
add r13, 0x10
call rsi
mov edx, ebp
add rbx, 0x10
bswap edx
mov dword [r15 + 0xc], edx
mov rdx, qword [rbx - 0x10]
xor rdx, qword [r15 + 0x10]
mov qword [r13 - 0x10], rdx
mov rdx, qword [rbx - 8]
xor rdx, qword [r15 + 0x18]
mov qword [r13 - 8], rdx
cmp ebp, dword [rsp + 0x30]
jne 0x54f9fd
mov rax, r12
mov dword [rsp + 0x30], ebp
mov r9, r14
mov rcx, qword [rsp + 0x40]
mov r12, qword [rsp + 0xb0]
lea rdx, [rax + 1]
and qword [rsp + 0xb8], 0xf
shl rdx, 4
mov rax, qword [rsp + 0x48]
add qword [rsp + 0xa8], rdx
add r12, rdx
mov rdx, qword [rsp + 0x38]
mov r8, r12
sub r8, r14
call rax
jmp 0x54f61e
lea rdx, [r15 + 0x60]
lea rcx, [r15 + 0x40]
call r8
xor eax, eax
mov dword [r15 + 0x174], 0
jmp 0x54f8b5
mov r11, qword [rsp + 0xb8]
mov dword [rsp + 0x34], 0
and r11, 0xfffffffffffffff0
jmp 0x54f9b7
test edx, edx
mov dword [rsp + 0x34], edx
setne cl
jmp 0x54f4da
mov eax, 0xffffffff
jmp 0x54f8b5