Function at 0x140054d50
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push r12
push r13
push r15
lea rbp, [rsp - 0x3f]
sub rsp, 0xa8
mov r12d, edx
mov r13d, edx
and r12d, 0x6000000
and r13d, 0x10002
mov dword [rbp + 0x6f], r12d
mov r15d, edx
mov dword [rbp + 0x77], r13d
test r12d, r12d
je 0x140054d95
test r13d, r13d
jne 0x1400551b5
mov qword [rsp + 0x90], rdi
xor edi, edi
mov edx, edi
mov dword [rbp + 0x7f], 0xbca9a9a6
mov dword [rbp + 0x83], 0xbfb2ac
nop dword [rax]
nop word [rax + rax]
movsxd rcx, edx
lea eax, [rdx - 0x3b]
inc edx
xor byte [rbp + rcx + 0x7f], al
cmp edx, 7
jb 0x140054dc0
mov rcx, qword [0x14011d300]
mov byte [rbp + 0x86], dil
mov eax, dword [rcx + 0x4090]
cmp dword [rcx + 0x4080], eax
jg 0x140054df8
mov dword [rcx + 0x3fb0], edi
jmp 0x1400551ad
mov rax, qword [rcx + 0x3ea8]
xor edx, edx
movsxd rcx, dword [rax + 0xd0]
mov rax, qword [rax + 0xd8]
mov r8d, dword [rax + rcx*4 - 4]
lea rcx, [rbp + 0x7f]
call fcn.14001b520
mov ecx, eax
call fcn.14002a080
test al, al
je 0x1400551ad
mov qword [rsp + 0xa0], rbx
mov rbx, qword [0x14011d300]
mov qword [rsp + 0x88], r14
mov r14, rbx
test r12d, r12d
jne 0x1400550b9
movss xmm1, dword [rbx + 0x3c18]
movss xmm2, dword [rbx + 0x3838]
movaps xmm0, xmm1
mulss xmm0, dword [0x1400ba384]
addss xmm2, xmm2
mov qword [rsp + 0x98], rsi
movaps xmmword [rsp + 0x70], xmm6
movaps xmmword [rsp + 0x60], xmm7
movss dword [rbp + 0x7f], xmm0
addss xmm2, xmm1
movaps xmm1, xmm0
addss xmm2, dword [rbx + 0x384c]
subss xmm1, xmm2
maxss xmm1, dword [0x1400ba314]
movss dword [rbp + 0x83], xmm1
call fcn.140028d70
mov rbx, qword [0x14011d300]
and r15d, 2
mov r13, qword [rbp + 0x67]
mov esi, edi
mov r12d, 0x1a8
test esi, esi
je 0x140054eea
mov rax, qword [rbx + 0x3ea8]
cmp byte [rax + 0x9b], dil
jne 0x140054eea
mov eax, dword [rax + 0x19c]
neg eax
sbb ecx, ecx
add ecx, 6
call fcn.140047e30
mov ecx, esi
call fcn.140027e70
test esi, esi
mov ebx, 0x20001a8
cmovne ebx, r12d
or ebx, r15d
cmp esi, 1
jne 0x140054f08
bts ebx, 0x1a
mov rax, qword [0x14011d300]
mov edx, edi
mov dword [rbp - 0x49], 0xadb4e5e6
mov dword [rbp - 0x45], 0xb8a8afa5
mov dword [rbp - 0x41], 0xb5a3acac
mov rcx, qword [rax + 0x3ea8]
xor eax, eax
mov byte [rbp - 0x3d], al
movss xmm6, dword [rcx + 0xe0]
movss xmm7, dword [rcx + 0xe4]
nop dword [rax]
nop word [rax + rax]
movsxd rcx, edx
lea eax, [rdx - 0x3b]
inc edx
xor byte [rbp + rcx - 0x49], al
cmp edx, 0xc
jb 0x140054f50
lea r9, [rbp + 0x7f]
mov byte [rbp - 0x3d], dil
xor edx, edx
lea rcx, [rbp - 0x49]
call fcn.1400551d0
test al, al
je 0x140054f91
and dword [r14 + 0x52c4], 0xf9ffffff
mov eax, ebx
and eax, 0x6000000
or dword [r14 + 0x52c4], eax
mov rcx, qword [0x14011d300]
test bl, 2
mov r8d, 0x10
mov rdx, r13
mov rax, qword [rcx + 0x3ea8]
mov byte [rax + 0x98], 1
mov rax, qword [rcx + 0x3ea8]
lea rcx, [rbp - 0x39]
movss dword [rax + 0xe0], xmm6
movss dword [rax + 0xe4], xmm7
movss xmm0, dword [rax + 0xfc]
movss xmm1, dword [rax + 0xf8]
maxss xmm0, xmm7
maxss xmm1, xmm6
movss dword [rax + 0xfc], xmm0
xorps xmm0, xmm0
movss dword [rax + 0xf8], xmm1
mov eax, 0xc
cmovne r8d, eax
movups xmmword [rbp - 0x39], xmm0
call fcn.140079a30
movdqa xmm0, xmmword [0x1400bafb0]
mov edx, edi
movdqu xmmword [rbp - 0x29], xmm0
mov dword [rbp - 0x19], 0xa5b3be
movsxd rcx, edx
lea eax, [rdx - 0x3b]
inc edx
xor byte [rbp + rcx - 0x29], al
cmp edx, 0x13
jb 0x140055020
xor r9d, r9d
mov byte [rbp - 0x16], dil
mov r8d, ebx
lea rdx, [rbp - 0x39]
lea rcx, [rbp - 0x29]
call fcn.1400512b0
mov rbx, qword [0x14011d300]
inc esi
mov rax, qword [rbx + 0x3ea8]
dec dword [rax + 0xd0]
cmp esi, 2
jl 0x140054ec4
mov rax, qword [rbx + 0x3ea8]
mov r12d, dword [rbp + 0x6f]
mov r13d, dword [rbp + 0x77]
movaps xmm7, xmmword [rsp + 0x60]
movaps xmm6, xmmword [rsp + 0x70]
mov rsi, qword [rsp + 0x98]
mov byte [rax + 0x98], 1
mov r8, qword [rbx + 0x3ea8]
movsxd rdx, dword [r8 + 0x1b0]
mov rax, qword [r8 + 0x1b8]
mov ecx, dword [rax + rdx*4 - 4]
lea eax, [rdx - 1]
mov dword [r8 + 0x1b0], eax
mov dword [r8 + 0x1a4], ecx
test r13d, r13d
jne 0x140055158
test r12d, r12d
jne 0x1400550e9
mov rax, qword [rbx + 0x3ea8]
cmp byte [rax + 0x9b], dil
jne 0x1400550e9
mov eax, dword [rax + 0x19c]
neg eax
sbb ecx, ecx
add ecx, 6
call fcn.140047e30
mov dword [rbp - 0x49], 0xa0b7aa84
mov dword [rbp - 0x45], 0xad89eaa8
mov word [rbp - 0x41], 0xbf
nop dword [rax]
movsxd rcx, edi
lea eax, [rdi - 0x3b]
inc edi
xor byte [rbp + rcx - 0x49], al
cmp edi, 9
jb 0x140055100
movzx eax, byte [r14 + 0x52c6]
lea rdx, [rbp + 0x6f]
and al, 1
mov byte [rbp - 0x40], 0
lea rcx, [rbp - 0x49]
mov byte [rbp + 0x6f], al
call fcn.140047130
mov rbx, qword [0x14011d300]
test al, al
je 0x140055158
cmp byte [rbp + 0x6f], 0
mov eax, dword [r14 + 0x52c4]
je 0x14005514d
bts eax, 0x10
jmp 0x140055151
btr eax, 0x10
mov dword [r14 + 0x52c4], eax
mov rax, qword [rbx + 0x3ea8]
mov r14, qword [rsp + 0x88]
cmp qword [rbx + 0x40b8], rax
jne 0x140055189
cmp byte [rbx + 0x4115], 0
je 0x140055189
cmp dword [rbx + 0x40f4], 0
jne 0x140055189
or dword [rbx + 0x4118], 2
test dword [rax + 0xc], 0x1000000
je 0x140055199
mov byte [rbx + 0x3e36], 1
call fcn.1400273f0
mov byte [rbx + 0x3e36], 0
mov rbx, qword [rsp + 0xa0]
mov rdi, qword [rsp + 0x90]
add rsp, 0xa8
pop r15
pop r13
pop r12
pop rbp
ret