Function at 0x140054550
Capabilities:
Encode data using xor

Disassembly:
mov dword [rsp + 0x10], edx
push rbp
push rsi
push r13
push r14
lea rbp, [rsp - 0x3f]
sub rsp, 0xe8
mov r14d, edx
mov esi, edx
and r14d, 0x1800000
mov r13, rcx
and esi, 0x700000
je 0x140054586
test r14d, r14d
jne 0x140054cfd
mov qword [rsp + 0xe0], rdi
xor edi, edi
mov edx, edi
mov dword [rbp + 0x77], 0xecf9f9f6
mov dword [rbp + 0x7b], 0xefe2fc
movsxd rcx, edx
lea eax, [rdx - 0x6b]
inc edx
xor byte [rbp + rcx + 0x77], al
cmp edx, 7
jb 0x1400545a0
mov rcx, qword [0x14011d300]
mov byte [rbp + 0x7e], dil
mov eax, dword [rcx + 0x4090]
cmp dword [rcx + 0x4080], eax
jg 0x1400545d5
mov dword [rcx + 0x3fb0], edi
jmp 0x140054cf5
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 + 0x77]
call fcn.14001b4e0
mov ecx, eax
call fcn.14002a040
test al, al
je 0x140054cf5
mov rax, qword [0x14011d300]
mov qword [rsp + 0x110], rbx
movaps xmmword [rsp + 0xc0], xmm6
mov qword [rbp - 0x49], rax
mov ebx, dword [rax + 0x52c4]
test esi, esi
jne 0x1400546f4
mov dword [rbp + 0x77], 0xd5d1c7
mov edx, edi
nop dword [rax + rax]
movsxd rcx, edx
lea eax, [rdx - 0x6b]
inc edx
xor byte [rbp + rcx + 0x77], al
cmp edx, 3
jb 0x140054640
mov edx, ebx
mov byte [rbp + 0x7a], dil
shr edx, 0x14
lea rcx, [rbp + 0x77]
and dl, 1
call fcn.140047590
test al, al
je 0x140054674
and ebx, 0xff9fffff
bts ebx, 0x14
mov dword [rbp + 0x77], 0xc1c5dd
mov edx, edi
nop dword [rax]
movsxd rcx, edx
lea eax, [rdx - 0x6b]
inc edx
xor byte [rbp + rcx + 0x77], al
cmp edx, 3
jb 0x140054680
mov edx, ebx
mov byte [rbp + 0x7a], dil
shr edx, 0x15
lea rcx, [rbp + 0x77]
and dl, 1
call fcn.140047590
test al, al
je 0x1400546b4
and ebx, 0xffafffff
bts ebx, 0x15
mov dword [rbp + 0x77], 0xeff3dd
mov edx, edi
nop dword [rax]
movsxd rcx, edx
lea eax, [rdx - 0x6b]
inc edx
xor byte [rbp + rcx + 0x77], al
cmp edx, 3
jb 0x1400546c0
mov edx, ebx
mov byte [rbp + 0x7a], dil
shr edx, 0x16
lea rcx, [rbp + 0x77]
and dl, 1
call fcn.140047590
test al, al
je 0x1400546f4
and ebx, 0xffcfffff
bts ebx, 0x16
test r14d, r14d
jne 0x1400547d2
test esi, esi
jne 0x14005472a
mov rax, qword [0x14011d300]
mov rcx, qword [rax + 0x3ea8]
cmp byte [rcx + 0x9b], dil
jne 0x14005472a
mov eax, dword [rcx + 0x19c]
neg eax
sbb ecx, ecx
add ecx, 6
call fcn.140047df0
xor eax, eax
mov dword [rbp + 0x7f], 0xaab9b8a5
mov byte [rbp + 0x85], al
mov edx, edi
mov word [rbp + 0x83], 0xafac
nop dword [rax]
nop dword [rax + rax]
movsxd rcx, edx
lea eax, [rdx - 0x6b]
inc edx
xor byte [rbp + rcx + 0x7f], al
cmp edx, 6
jb 0x140054750
mov edx, ebx
mov byte [rbp + 0x85], dil
shr edx, 0x17
lea rcx, [rbp + 0x7f]
and dl, 1
call fcn.140047590
test al, al
je 0x140054785
btr ebx, 0x18
bts ebx, 0x17
xor eax, eax
mov dword [rbp - 0x69], 0xa8a7b8a5
mov byte [rbp - 0x5f], al
mov edx, edi
mov dword [rbp - 0x65], 0xb2aab4b7
mov word [rbp - 0x61], 0xaead
movsxd rcx, edx
lea eax, [rdx - 0x6b]
inc edx
xor byte [rbp + rcx - 0x69], al
cmp edx, 0xa
jb 0x1400547a0
mov edx, ebx
mov byte [rbp - 0x5f], dil
shr edx, 0x18
lea rcx, [rbp - 0x69]
and dl, 1
call fcn.140047590
test al, al
je 0x1400547d2
btr ebx, 0x17
bts ebx, 0x18
test esi, esi
je 0x1400547db
test r14d, r14d
jne 0x140054804
mov rax, qword [0x14011d300]
mov rcx, qword [rax + 0x3ea8]
cmp byte [rcx + 0x9b], dil
jne 0x140054804
mov eax, dword [rcx + 0x19c]
neg eax
sbb ecx, ecx
add ecx, 6
call fcn.140047df0
movss xmm0, dword [0x1400ba470]
xorps xmm6, xmm6
movss dword [rbp + 0x77], xmm0
mov edx, edi
mov dword [rbp + 0x7b], edi
mov dword [rbp - 0x69], 0xe1e7f9d6
mov dword [rbp - 0x65], 0xb2e8fbb9
mov word [rbp - 0x61], 0xb3
nop dword [rax]
movsxd rcx, edx
lea eax, [rdx - 0x6b]
inc edx
xor byte [rbp + rcx - 0x69], al
cmp edx, 9
jb 0x140054830
lea rdx, [rbp + 0x77]
mov byte [rbp - 0x60], dil
lea rcx, [rbp - 0x69]
call fcn.140045d80
test al, al
je 0x1400548ba
xor eax, eax
mov dword [rbp + 0x77], 0xe1e7f9d6
mov byte [rbp + 0x7b], al
mov edx, edi
nop dword [rax]
nop dword [rax + rax]
movsxd rcx, edx
lea eax, [rdx - 0x6b]
inc edx
xor byte [rbp + rcx + 0x77], al
cmp edx, 4
jb 0x140054870
mov rax, qword [0x14011d300]
xor edx, edx
mov byte [rbp + 0x7b], dil
mov rax, qword [rax + 0x3ea8]
movsxd rcx, dword [rax + 0xd0]
mov rax, qword [rax + 0xd8]
mov r8d, dword [rax + rcx*4 - 4]
lea rcx, [rbp + 0x77]
call fcn.14001b4e0
mov ecx, eax
xor edx, edx
call fcn.140029c80
xor eax, eax
mov dword [rbp + 0x77], 0xe1e7f9d6
mov byte [rbp + 0x7b], al
mov edx, edi
nop dword [rax + rax]
movsxd rcx, edx
lea eax, [rdx - 0x6b]
inc edx
xor byte [rbp + rcx + 0x77], al
cmp edx, 4
jb 0x1400548d0
mov rcx, qword [0x14011d300]
mov byte [rbp + 0x7b], dil
mov eax, dword [rcx + 0x4090]
cmp dword [rcx + 0x4080], eax
jg 0x140054905
mov dword [rcx + 0x3fb0], edi
jmp 0x140054c8f
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 + 0x77]
call fcn.14001b4e0
mov ecx, eax
call fcn.14002a040
test al, al
je 0x140054c8f
movss xmm4, dword [r13]
comiss xmm6, xmm4
mov qword [rsp + 0xd8], r12
mov qword [rsp + 0xd0], r15
movss xmm1, dword [0x1400ba314]
movaps xmmword [rsp + 0xb0], xmm7
jbe 0x140054969
movaps xmm0, xmm6
jmp 0x140054970
movaps xmm0, xmm1
minss xmm0, xmm4
movss xmm2, dword [0x1400ba3f8]
movss xmm3, dword [0x1400ba2c4]
movss xmm7, dword [r13 + 4]
comiss xmm6, xmm7
mulss xmm0, xmm2
addss xmm0, xmm3
cvttss2si r12d, xmm0
jbe 0x14005499d
movaps xmm0, xmm6
jmp 0x1400549a4
movaps xmm0, xmm1
minss xmm0, xmm7
movss xmm5, dword [r13 + 8]
comiss xmm6, xmm5
mulss xmm0, xmm2
addss xmm0, xmm3
cvttss2si r15d, xmm0
jbe 0x1400549c1
movaps xmm0, xmm6
jmp 0x1400549c8
movaps xmm0, xmm1
minss xmm0, xmm5
and dword [rbp + 0x6f], 2
mulss xmm0, xmm2
addss xmm0, xmm3
cvttss2si r14d, xmm0
je 0x1400549e2
mov esi, 0xff
jmp 0x140054a03
movss xmm0, dword [r13 + 0xc]
comiss xmm6, xmm0
ja 0x1400549f4
minss xmm1, xmm0
movaps xmm6, xmm1
mulss xmm6, xmm2
movaps xmm1, xmm0
addss xmm6, xmm3
cvttss2si esi, xmm6
cvtps2pd xmm0, xmm1
lea r8, str.__.3ff___.3ff___.3ff___.3ff_
mov edx, 0x40
lea rcx, [rbp - 0x39]
cvtps2pd xmm1, xmm5
movsd qword [rsp + 0x30], xmm0
cvtps2pd xmm3, xmm4
cvtps2pd xmm2, xmm7
movsd qword [rsp + 0x28], xmm1
movq r9, xmm3
movsd qword [rsp + 0x20], xmm2
call fcn.14001b3d0
lea r9, [rbp + 0x77]
mov qword [rbp + 0x77], rdi
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140055190
movaps xmm7, xmmword [rsp + 0xb0]
test al, al
je 0x140054a7a
mov rcx, qword [0x14011d300]
mov rax, qword [rcx + 0xb0]
test rax, rax
je 0x140054a7a
mov rcx, qword [rcx + 0xb8]
lea rdx, [rbp - 0x39]
call rax
mov dword [rbp - 0x5e], 0xb4f3b3bd
mov edx, edi
mov dword [rbp - 0x5a], 0xb9b7febc
mov dword [rbp - 0x56], 0xc4bab2f9
mov word [rbp - 0x52], 0x88
nop word [rax + rax]
movsxd rcx, edx
lea eax, [rdx - 0x6b]
inc edx
xor byte [rbp + rcx - 0x5e], al
cmp edx, 0xd
jb 0x140054aa0
mov dword [rsp + 0x30], esi
lea r8, [rbp - 0x5e]
mov dword [rsp + 0x28], r14d
lea rcx, [rbp - 0x39]
mov r9d, r12d
mov dword [rsp + 0x20], r15d
mov edx, 0x40
mov byte [rbp - 0x51], dil
call fcn.14001b3d0
lea r9, [rbp + 0x77]
mov qword [rbp + 0x77], rdi
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140055190
test al, al
je 0x140054b0f
mov rcx, qword [0x14011d300]
mov rax, qword [rcx + 0xb0]
test rax, rax
je 0x140054b0f
mov rcx, qword [rcx + 0xb8]
lea rdx, [rbp - 0x39]
call rax
mov dword [rbp - 0x5e], 0xaaa7b3b6
mov edx, edi
mov dword [rbp - 0x5a], 0xaeabbfc1
mov dword [rbp - 0x56], 0x92afbbc5
mov word [rbp - 0x52], 0xf9
nop dword [rax]
movsxd rcx, edx
lea eax, [rdx - 0x6b]
inc edx
xor byte [rbp + rcx - 0x5e], al
cmp edx, 0xd
jb 0x140054b30
mov dword [rsp + 0x28], r14d
lea r8, [rbp - 0x5e]
mov r9d, r12d
mov dword [rsp + 0x20], r15d
mov edx, 0x40
mov byte [rbp - 0x51], dil
lea rcx, [rbp - 0x39]
call fcn.14001b3d0
lea r9, [rbp + 0x77]
mov qword [rbp + 0x77], rdi
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140055190
test al, al
je 0x140054b9b
mov rcx, qword [0x14011d300]
mov rax, qword [rcx + 0xb0]
test rax, rax
je 0x140054b9b
mov rcx, qword [rcx + 0xb8]
lea rdx, [rbp - 0x39]
call rax
cmp dword [rbp + 0x6f], edi
jne 0x140054c33
movdqa xmm0, xmmword [0x1400bacc0]
movdqu xmmword [rbp - 0x5e], xmm0
mov word [rbp - 0x4e], 0xfd
nop word [rax + rax]
movsxd rcx, edi
lea eax, [rdi - 0x6b]
inc edi
xor byte [rbp + rcx - 0x5e], al
cmp edi, 0x11
jb 0x140054bc0
mov dword [rsp + 0x30], esi
lea r8, [rbp - 0x5e]
mov dword [rsp + 0x28], r14d
lea rcx, [rbp - 0x39]
mov r9d, r12d
mov dword [rsp + 0x20], r15d
mov edx, 0x40
mov byte [rbp - 0x4d], 0
call fcn.14001b3d0
lea r9, [rbp + 0x77]
mov qword [rbp + 0x77], 0
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140055190
test al, al
je 0x140054c33
mov rcx, qword [0x14011d300]
mov rax, qword [rcx + 0xb0]
test rax, rax
je 0x140054c33
mov rcx, qword [rcx + 0xb8]
lea rdx, [rbp - 0x39]
call rax
mov rdi, qword [0x14011d300]
mov r15, qword [rsp + 0xd0]
mov r12, qword [rsp + 0xd8]
mov rax, qword [rdi + 0x3ea8]
cmp qword [rdi + 0x40b8], rax
jne 0x140054c73
cmp byte [rdi + 0x4115], 0
je 0x140054c73
cmp dword [rdi + 0x40f4], 0
jne 0x140054c73
or dword [rdi + 0x4118], 2
test dword [rax + 0xc], 0x1000000
je 0x140054c83
mov byte [rdi + 0x3e36], 1
call fcn.1400273b0
mov byte [rdi + 0x3e36], 0
mov rax, qword [rbp - 0x49]
movaps xmm6, xmmword [rsp + 0xc0]
mov dword [rax + 0x52c4], ebx
mov rbx, qword [0x14011d300]
mov rax, qword [rbx + 0x3ea8]
cmp qword [rbx + 0x40b8], rax
jne 0x140054cd1
cmp byte [rbx + 0x4115], 0
je 0x140054cd1
cmp dword [rbx + 0x40f4], 0
jne 0x140054cd1
or dword [rbx + 0x4118], 2
test dword [rax + 0xc], 0x1000000
je 0x140054ce1
mov byte [rbx + 0x3e36], 1
call fcn.1400273b0
mov byte [rbx + 0x3e36], 0
mov rbx, qword [rsp + 0x110]
mov rdi, qword [rsp + 0xe0]
add rsp, 0xe8
pop r14
pop r13
pop rsi
pop rbp
ret