Function at 0x140054630
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 0x140054666
test r14d, r14d
jne 0x140054ddd
mov qword [rsp + 0xe0], rdi
xor edi, edi
mov edx, edi
mov dword [rbp + 0x77], 0x958eb0bd
mov dword [rbp + 0x7b], 0x909b87
movsxd rcx, edx
lea eax, [rdx - 0x22]
inc edx
xor byte [rbp + rcx + 0x77], al
cmp edx, 7
jb 0x140054680
mov rcx, qword [0x140124520]
mov byte [rbp + 0x7e], dil
mov eax, dword [rcx + 0x4090]
cmp dword [rcx + 0x4080], eax
jg 0x1400546b5
mov dword [rcx + 0x3fb0], edi
jmp 0x140054dd5
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.14001b5c0
mov ecx, eax
call fcn.14002a120
test al, al
je 0x140054dd5
mov rax, qword [0x140124520]
mov qword [rsp + 0x110], rbx
movaps xmmword [rsp + 0xc0], xmm6
mov qword [rbp - 0x49], rax
mov ebx, dword [rax + 0x52c4]
test esi, esi
jne 0x1400547d4
mov dword [rbp + 0x77], 0xa2988c
mov edx, edi
nop dword [rax + rax]
movsxd rcx, edx
lea eax, [rdx - 0x22]
inc edx
xor byte [rbp + rcx + 0x77], al
cmp edx, 3
jb 0x140054720
mov edx, ebx
mov byte [rbp + 0x7a], dil
shr edx, 0x14
lea rcx, [rbp + 0x77]
and dl, 1
call fcn.140047670
test al, al
je 0x140054754
and ebx, 0xff9fffff
bts ebx, 0x14
mov dword [rbp + 0x77], 0xb68c96
mov edx, edi
nop dword [rax]
movsxd rcx, edx
lea eax, [rdx - 0x22]
inc edx
xor byte [rbp + rcx + 0x77], al
cmp edx, 3
jb 0x140054760
mov edx, ebx
mov byte [rbp + 0x7a], dil
shr edx, 0x15
lea rcx, [rbp + 0x77]
and dl, 1
call fcn.140047670
test al, al
je 0x140054794
and ebx, 0xffafffff
bts ebx, 0x15
mov dword [rbp + 0x77], 0x98ba96
mov edx, edi
nop dword [rax]
movsxd rcx, edx
lea eax, [rdx - 0x22]
inc edx
xor byte [rbp + rcx + 0x77], al
cmp edx, 3
jb 0x1400547a0
mov edx, ebx
mov byte [rbp + 0x7a], dil
shr edx, 0x16
lea rcx, [rbp + 0x77]
and dl, 1
call fcn.140047670
test al, al
je 0x1400547d4
and ebx, 0xffcfffff
bts ebx, 0x16
test r14d, r14d
jne 0x1400548b2
test esi, esi
jne 0x14005480a
mov rax, qword [0x140124520]
mov rcx, qword [rax + 0x3ea8]
cmp byte [rcx + 0x9b], dil
jne 0x14005480a
mov eax, dword [rcx + 0x19c]
neg eax
sbb ecx, ecx
add ecx, 6
call fcn.140047ed0
xor eax, eax
mov dword [rbp + 0x7f], 0xd3cef1ee
mov byte [rbp + 0x85], al
mov edx, edi
mov word [rbp + 0x83], 0xd6d7
nop dword [rax]
nop dword [rax + rax]
movsxd rcx, edx
lea eax, [rdx - 0x22]
inc edx
xor byte [rbp + rcx + 0x7f], al
cmp edx, 6
jb 0x140054830
mov edx, ebx
mov byte [rbp + 0x85], dil
shr edx, 0x17
lea rcx, [rbp + 0x7f]
and dl, 1
call fcn.140047670
test al, al
je 0x140054865
btr ebx, 0x18
bts ebx, 0x17
xor eax, eax
mov dword [rbp - 0x69], 0xd1d0f1ee
mov byte [rbp - 0x5f], al
mov edx, edi
mov dword [rbp - 0x65], 0xcbd5cdcc
mov word [rbp - 0x61], 0xd7d6
movsxd rcx, edx
lea eax, [rdx - 0x22]
inc edx
xor byte [rbp + rcx - 0x69], al
cmp edx, 0xa
jb 0x140054880
mov edx, ebx
mov byte [rbp - 0x5f], dil
shr edx, 0x18
lea rcx, [rbp - 0x69]
and dl, 1
call fcn.140047670
test al, al
je 0x1400548b2
btr ebx, 0x17
bts ebx, 0x18
test esi, esi
je 0x1400548bb
test r14d, r14d
jne 0x1400548e4
mov rax, qword [0x140124520]
mov rcx, qword [rax + 0x3ea8]
cmp byte [rcx + 0x9b], dil
jne 0x1400548e4
mov eax, dword [rcx + 0x19c]
neg eax
sbb ecx, ecx
add ecx, 6
call fcn.140047ed0
movss xmm0, dword [0x1400bc4d0]
xorps xmm6, xmm6
movss dword [rbp + 0x77], xmm0
mov edx, edi
mov dword [rbp + 0x7b], edi
mov dword [rbp - 0x69], 0x9890b09d
mov dword [rbp - 0x65], 0xcb9782c2
mov word [rbp - 0x61], 0xc8
nop dword [rax]
movsxd rcx, edx
lea eax, [rdx - 0x22]
inc edx
xor byte [rbp + rcx - 0x69], al
cmp edx, 9
jb 0x140054910
lea rdx, [rbp + 0x77]
mov byte [rbp - 0x60], dil
lea rcx, [rbp - 0x69]
call fcn.140045e60
test al, al
je 0x14005499a
xor eax, eax
mov dword [rbp + 0x77], 0x9890b09d
mov byte [rbp + 0x7b], al
mov edx, edi
nop dword [rax]
nop dword [rax + rax]
movsxd rcx, edx
lea eax, [rdx - 0x22]
inc edx
xor byte [rbp + rcx + 0x77], al
cmp edx, 4
jb 0x140054950
mov rax, qword [0x140124520]
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.14001b5c0
mov ecx, eax
xor edx, edx
call fcn.140029d60
xor eax, eax
mov dword [rbp + 0x77], 0x9890b09d
mov byte [rbp + 0x7b], al
mov edx, edi
nop dword [rax + rax]
movsxd rcx, edx
lea eax, [rdx - 0x22]
inc edx
xor byte [rbp + rcx + 0x77], al
cmp edx, 4
jb 0x1400549b0
mov rcx, qword [0x140124520]
mov byte [rbp + 0x7b], dil
mov eax, dword [rcx + 0x4090]
cmp dword [rcx + 0x4080], eax
jg 0x1400549e5
mov dword [rcx + 0x3fb0], edi
jmp 0x140054d6f
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.14001b5c0
mov ecx, eax
call fcn.14002a120
test al, al
je 0x140054d6f
movss xmm4, dword [r13]
comiss xmm6, xmm4
mov qword [rsp + 0xd8], r12
mov qword [rsp + 0xd0], r15
movss xmm1, dword [0x1400bc358]
movaps xmmword [rsp + 0xb0], xmm7
jbe 0x140054a49
movaps xmm0, xmm6
jmp 0x140054a50
movaps xmm0, xmm1
minss xmm0, xmm4
movss xmm2, dword [0x1400bc460]
movss xmm3, dword [0x1400bc304]
movss xmm7, dword [r13 + 4]
comiss xmm6, xmm7
mulss xmm0, xmm2
addss xmm0, xmm3
cvttss2si r12d, xmm0
jbe 0x140054a7d
movaps xmm0, xmm6
jmp 0x140054a84
movaps xmm0, xmm1
minss xmm0, xmm7
movss xmm5, dword [r13 + 8]
comiss xmm6, xmm5
mulss xmm0, xmm2
addss xmm0, xmm3
cvttss2si r15d, xmm0
jbe 0x140054aa1
movaps xmm0, xmm6
jmp 0x140054aa8
movaps xmm0, xmm1
minss xmm0, xmm5
and dword [rbp + 0x6f], 2
mulss xmm0, xmm2
addss xmm0, xmm3
cvttss2si r14d, xmm0
je 0x140054ac2
mov esi, 0xff
jmp 0x140054ae3
movss xmm0, dword [r13 + 0xc]
comiss xmm6, xmm0
ja 0x140054ad4
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.14001b4b0
lea r9, [rbp + 0x77]
mov qword [rbp + 0x77], rdi
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140055270
movaps xmm7, xmmword [rsp + 0xb0]
test al, al
je 0x140054b5a
mov rcx, qword [0x140124520]
mov rax, qword [rcx + 0xb0]
test rax, rax
je 0x140054b5a
mov rcx, qword [rcx + 0xb8]
lea rdx, [rbp - 0x39]
call rax
mov dword [rbp - 0x5e], 0xcd84faf6
mov edx, edi
mov dword [rbp - 0x5a], 0xc0c887c7
mov dword [rbp - 0x56], 0x8dcdcb82
mov word [rbp - 0x52], 0xc3
nop word [rax + rax]
movsxd rcx, edx
lea eax, [rdx - 0x22]
inc edx
xor byte [rbp + rcx - 0x5e], al
cmp edx, 0xd
jb 0x140054b80
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.14001b4b0
lea r9, [rbp + 0x77]
mov qword [rbp + 0x77], rdi
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140055270
test al, al
je 0x140054bef
mov rcx, qword [0x140124520]
mov rax, qword [rcx + 0xb0]
test rax, rax
je 0x140054bef
mov rcx, qword [rcx + 0xb8]
lea rdx, [rbp - 0x39]
call rax
mov dword [rbp - 0x5e], 0xd3d0fafd
mov edx, edi
mov dword [rbp - 0x5a], 0xd7d4c6ba
mov dword [rbp - 0x56], 0xdbd8c2be
mov word [rbp - 0x52], 0xb2
nop dword [rax]
movsxd rcx, edx
lea eax, [rdx - 0x22]
inc edx
xor byte [rbp + rcx - 0x5e], al
cmp edx, 0xd
jb 0x140054c10
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.14001b4b0
lea r9, [rbp + 0x77]
mov qword [rbp + 0x77], rdi
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140055270
test al, al
je 0x140054c7b
mov rcx, qword [0x140124520]
mov rax, qword [rcx + 0xb0]
test rax, rax
je 0x140054c7b
mov rcx, qword [rcx + 0xb8]
lea rdx, [rbp - 0x39]
call rax
cmp dword [rbp + 0x6f], edi
jne 0x140054d13
movdqa xmm0, xmmword [0x1400bd360]
movdqu xmmword [rbp - 0x5e], xmm0
mov word [rbp - 0x4e], 0xb6
nop word [rax + rax]
movsxd rcx, edi
lea eax, [rdi - 0x22]
inc edi
xor byte [rbp + rcx - 0x5e], al
cmp edi, 0x11
jb 0x140054ca0
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.14001b4b0
lea r9, [rbp + 0x77]
mov qword [rbp + 0x77], 0
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140055270
test al, al
je 0x140054d13
mov rcx, qword [0x140124520]
mov rax, qword [rcx + 0xb0]
test rax, rax
je 0x140054d13
mov rcx, qword [rcx + 0xb8]
lea rdx, [rbp - 0x39]
call rax
mov rdi, qword [0x140124520]
mov r15, qword [rsp + 0xd0]
mov r12, qword [rsp + 0xd8]
mov rax, qword [rdi + 0x3ea8]
cmp qword [rdi + 0x40b8], rax
jne 0x140054d53
cmp byte [rdi + 0x4115], 0
je 0x140054d53
cmp dword [rdi + 0x40f4], 0
jne 0x140054d53
or dword [rdi + 0x4118], 2
test dword [rax + 0xc], 0x1000000
je 0x140054d63
mov byte [rdi + 0x3e36], 1
call fcn.140027490
mov byte [rdi + 0x3e36], 0
mov rax, qword [rbp - 0x49]
movaps xmm6, xmmword [rsp + 0xc0]
mov dword [rax + 0x52c4], ebx
mov rbx, qword [0x140124520]
mov rax, qword [rbx + 0x3ea8]
cmp qword [rbx + 0x40b8], rax
jne 0x140054db1
cmp byte [rbx + 0x4115], 0
je 0x140054db1
cmp dword [rbx + 0x40f4], 0
jne 0x140054db1
or dword [rbx + 0x4118], 2
test dword [rax + 0xc], 0x1000000
je 0x140054dc1
mov byte [rbx + 0x3e36], 1
call fcn.140027490
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