Function at 0x140054800
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 0x140054836
test r14d, r14d
jne 0x140054fad
mov qword [rsp + 0xe0], rdi
xor edi, edi
mov edx, edi
mov dword [rbp + 0x77], 0x9885858a
mov dword [rbp + 0x7b], 0x9b9688
movsxd rcx, edx
lea eax, [rdx - 0x17]
inc edx
xor byte [rbp + rcx + 0x77], al
cmp edx, 7
jb 0x140054850
mov rcx, qword [0x140125820]
mov byte [rbp + 0x7e], dil
mov eax, dword [rcx + 0x4090]
cmp dword [rcx + 0x4080], eax
jg 0x140054885
mov dword [rcx + 0x3fb0], edi
jmp 0x140054fa5
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.14001b790
mov ecx, eax
call fcn.14002a2f0
test al, al
je 0x140054fa5
mov rax, qword [0x140125820]
mov qword [rsp + 0x110], rbx
movaps xmmword [rsp + 0xc0], xmm6
mov qword [rbp - 0x49], rax
mov ebx, dword [rax + 0x52c4]
test esi, esi
jne 0x1400549a4
mov dword [rbp + 0x77], 0xa9adbb
mov edx, edi
nop dword [rax + rax]
movsxd rcx, edx
lea eax, [rdx - 0x17]
inc edx
xor byte [rbp + rcx + 0x77], al
cmp edx, 3
jb 0x1400548f0
mov edx, ebx
mov byte [rbp + 0x7a], dil
shr edx, 0x14
lea rcx, [rbp + 0x77]
and dl, 1
call fcn.140047840
test al, al
je 0x140054924
and ebx, 0xff9fffff
bts ebx, 0x14
mov dword [rbp + 0x77], 0xbdb9a1
mov edx, edi
nop dword [rax]
movsxd rcx, edx
lea eax, [rdx - 0x17]
inc edx
xor byte [rbp + rcx + 0x77], al
cmp edx, 3
jb 0x140054930
mov edx, ebx
mov byte [rbp + 0x7a], dil
shr edx, 0x15
lea rcx, [rbp + 0x77]
and dl, 1
call fcn.140047840
test al, al
je 0x140054964
and ebx, 0xffafffff
bts ebx, 0x15
mov dword [rbp + 0x77], 0x938fa1
mov edx, edi
nop dword [rax]
movsxd rcx, edx
lea eax, [rdx - 0x17]
inc edx
xor byte [rbp + rcx + 0x77], al
cmp edx, 3
jb 0x140054970
mov edx, ebx
mov byte [rbp + 0x7a], dil
shr edx, 0x16
lea rcx, [rbp + 0x77]
and dl, 1
call fcn.140047840
test al, al
je 0x1400549a4
and ebx, 0xffcfffff
bts ebx, 0x16
test r14d, r14d
jne 0x140054a82
test esi, esi
jne 0x1400549da
mov rax, qword [0x140125820]
mov rcx, qword [rax + 0x3ea8]
cmp byte [rcx + 0x9b], dil
jne 0x1400549da
mov eax, dword [rcx + 0x19c]
neg eax
sbb ecx, ecx
add ecx, 6
call fcn.1400480a0
xor eax, eax
mov dword [rbp + 0x7f], 0xdec5c4d9
mov byte [rbp + 0x85], al
mov edx, edi
mov word [rbp + 0x83], 0xdbd8
nop dword [rax]
nop dword [rax + rax]
movsxd rcx, edx
lea eax, [rdx - 0x17]
inc edx
xor byte [rbp + rcx + 0x7f], al
cmp edx, 6
jb 0x140054a00
mov edx, ebx
mov byte [rbp + 0x85], dil
shr edx, 0x17
lea rcx, [rbp + 0x7f]
and dl, 1
call fcn.140047840
test al, al
je 0x140054a35
btr ebx, 0x18
bts ebx, 0x17
xor eax, eax
mov dword [rbp - 0x69], 0xdcdbc4d9
mov byte [rbp - 0x5f], al
mov edx, edi
mov dword [rbp - 0x65], 0xdedec0c3
mov word [rbp - 0x61], 0xc2c1
movsxd rcx, edx
lea eax, [rdx - 0x17]
inc edx
xor byte [rbp + rcx - 0x69], al
cmp edx, 0xa
jb 0x140054a50
mov edx, ebx
mov byte [rbp - 0x5f], dil
shr edx, 0x18
lea rcx, [rbp - 0x69]
and dl, 1
call fcn.140047840
test al, al
je 0x140054a82
btr ebx, 0x17
bts ebx, 0x18
test esi, esi
je 0x140054a8b
test r14d, r14d
jne 0x140054ab4
mov rax, qword [0x140125820]
mov rcx, qword [rax + 0x3ea8]
cmp byte [rcx + 0x9b], dil
jne 0x140054ab4
mov eax, dword [rcx + 0x19c]
neg eax
sbb ecx, ecx
add ecx, 6
call fcn.1400480a0
movss xmm0, dword [0x1400bd5a0]
xorps xmm6, xmm6
movss dword [rbp + 0x77], xmm0
mov edx, edi
mov dword [rbp + 0x7b], edi
mov dword [rbp - 0x69], 0x959b85aa
mov dword [rbp - 0x65], 0xde9c8fcd
mov word [rbp - 0x61], 0xdf
nop dword [rax]
movsxd rcx, edx
lea eax, [rdx - 0x17]
inc edx
xor byte [rbp + rcx - 0x69], al
cmp edx, 9
jb 0x140054ae0
lea rdx, [rbp + 0x77]
mov byte [rbp - 0x60], dil
lea rcx, [rbp - 0x69]
call fcn.140046030
test al, al
je 0x140054b6a
xor eax, eax
mov dword [rbp + 0x77], 0x959b85aa
mov byte [rbp + 0x7b], al
mov edx, edi
nop dword [rax]
nop dword [rax + rax]
movsxd rcx, edx
lea eax, [rdx - 0x17]
inc edx
xor byte [rbp + rcx + 0x77], al
cmp edx, 4
jb 0x140054b20
mov rax, qword [0x140125820]
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.14001b790
mov ecx, eax
xor edx, edx
call fcn.140029f30
xor eax, eax
mov dword [rbp + 0x77], 0x959b85aa
mov byte [rbp + 0x7b], al
mov edx, edi
nop dword [rax + rax]
movsxd rcx, edx
lea eax, [rdx - 0x17]
inc edx
xor byte [rbp + rcx + 0x77], al
cmp edx, 4
jb 0x140054b80
mov rcx, qword [0x140125820]
mov byte [rbp + 0x7b], dil
mov eax, dword [rcx + 0x4090]
cmp dword [rcx + 0x4080], eax
jg 0x140054bb5
mov dword [rcx + 0x3fb0], edi
jmp 0x140054f3f
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.14001b790
mov ecx, eax
call fcn.14002a2f0
test al, al
je 0x140054f3f
movss xmm4, dword [r13]
comiss xmm6, xmm4
mov qword [rsp + 0xd8], r12
mov qword [rsp + 0xd0], r15
movss xmm1, dword [0x1400bd428]
movaps xmmword [rsp + 0xb0], xmm7
jbe 0x140054c19
movaps xmm0, xmm6
jmp 0x140054c20
movaps xmm0, xmm1
minss xmm0, xmm4
movss xmm2, dword [0x1400bd530]
movss xmm3, dword [0x1400bd3d4]
movss xmm7, dword [r13 + 4]
comiss xmm6, xmm7
mulss xmm0, xmm2
addss xmm0, xmm3
cvttss2si r12d, xmm0
jbe 0x140054c4d
movaps xmm0, xmm6
jmp 0x140054c54
movaps xmm0, xmm1
minss xmm0, xmm7
movss xmm5, dword [r13 + 8]
comiss xmm6, xmm5
mulss xmm0, xmm2
addss xmm0, xmm3
cvttss2si r15d, xmm0
jbe 0x140054c71
movaps xmm0, xmm6
jmp 0x140054c78
movaps xmm0, xmm1
minss xmm0, xmm5
and dword [rbp + 0x6f], 2
mulss xmm0, xmm2
addss xmm0, xmm3
cvttss2si r14d, xmm0
je 0x140054c92
mov esi, 0xff
jmp 0x140054cb3
movss xmm0, dword [r13 + 0xc]
comiss xmm6, xmm0
ja 0x140054ca4
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.14001b680
lea r9, [rbp + 0x77]
mov qword [rbp + 0x77], rdi
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140055440
movaps xmm7, xmmword [rsp + 0xb0]
test al, al
je 0x140054d2a
mov rcx, qword [0x140125820]
mov rax, qword [rcx + 0xb0]
test rax, rax
je 0x140054d2a
mov rcx, qword [rcx + 0xb8]
lea rdx, [rbp - 0x39]
call rax
mov dword [rbp - 0x5e], 0xc08fcfc1
mov edx, edi
mov dword [rbp - 0x5a], 0xd5c38ac8
mov dword [rbp - 0x56], 0x90d6de95
mov word [rbp - 0x52], 0xdc
nop word [rax + rax]
movsxd rcx, edx
lea eax, [rdx - 0x17]
inc edx
xor byte [rbp + rcx - 0x5e], al
cmp edx, 0xd
jb 0x140054d50
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.14001b680
lea r9, [rbp + 0x77]
mov qword [rbp + 0x77], rdi
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140055440
test al, al
je 0x140054dbf
mov rcx, qword [0x140125820]
mov rax, qword [rcx + 0xb0]
test rax, rax
je 0x140054dbf
mov rcx, qword [rcx + 0xb8]
lea rdx, [rbp - 0x39]
call rax
mov dword [rbp - 0x5e], 0xdedbcfca
mov edx, edi
mov dword [rbp - 0x5a], 0xc2dfcbb5
mov dword [rbp - 0x56], 0xc6c3d7a9
mov word [rbp - 0x52], 0xad
nop dword [rax]
movsxd rcx, edx
lea eax, [rdx - 0x17]
inc edx
xor byte [rbp + rcx - 0x5e], al
cmp edx, 0xd
jb 0x140054de0
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.14001b680
lea r9, [rbp + 0x77]
mov qword [rbp + 0x77], rdi
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140055440
test al, al
je 0x140054e4b
mov rcx, qword [0x140125820]
mov rax, qword [rcx + 0xb0]
test rax, rax
je 0x140054e4b
mov rcx, qword [rcx + 0xb8]
lea rdx, [rbp - 0x39]
call rax
cmp dword [rbp + 0x6f], edi
jne 0x140054ee3
movdqa xmm0, xmmword [0x1400be420]
movdqu xmmword [rbp - 0x5e], xmm0
mov word [rbp - 0x4e], 0xa1
nop word [rax + rax]
movsxd rcx, edi
lea eax, [rdi - 0x17]
inc edi
xor byte [rbp + rcx - 0x5e], al
cmp edi, 0x11
jb 0x140054e70
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.14001b680
lea r9, [rbp + 0x77]
mov qword [rbp + 0x77], 0
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140055440
test al, al
je 0x140054ee3
mov rcx, qword [0x140125820]
mov rax, qword [rcx + 0xb0]
test rax, rax
je 0x140054ee3
mov rcx, qword [rcx + 0xb8]
lea rdx, [rbp - 0x39]
call rax
mov rdi, qword [0x140125820]
mov r15, qword [rsp + 0xd0]
mov r12, qword [rsp + 0xd8]
mov rax, qword [rdi + 0x3ea8]
cmp qword [rdi + 0x40b8], rax
jne 0x140054f23
cmp byte [rdi + 0x4115], 0
je 0x140054f23
cmp dword [rdi + 0x40f4], 0
jne 0x140054f23
or dword [rdi + 0x4118], 2
test dword [rax + 0xc], 0x1000000
je 0x140054f33
mov byte [rdi + 0x3e36], 1
call fcn.140027660
mov byte [rdi + 0x3e36], 0
mov rax, qword [rbp - 0x49]
movaps xmm6, xmmword [rsp + 0xc0]
mov dword [rax + 0x52c4], ebx
mov rbx, qword [0x140125820]
mov rax, qword [rbx + 0x3ea8]
cmp qword [rbx + 0x40b8], rax
jne 0x140054f81
cmp byte [rbx + 0x4115], 0
je 0x140054f81
cmp dword [rbx + 0x40f4], 0
jne 0x140054f81
or dword [rbx + 0x4118], 2
test dword [rax + 0xc], 0x1000000
je 0x140054f91
mov byte [rbx + 0x3e36], 1
call fcn.140027660
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