Function at 0x140054590
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 0x1400545c6
test r14d, r14d
jne 0x140054d3d
mov qword [rsp + 0xe0], rdi
xor edi, edi
mov edx, edi
mov dword [rbp + 0x77], 0xbca9a9a6
mov dword [rbp + 0x7b], 0xbfb2ac
movsxd rcx, edx
lea eax, [rdx - 0x3b]
inc edx
xor byte [rbp + rcx + 0x77], al
cmp edx, 7
jb 0x1400545e0
mov rcx, qword [0x14011d300]
mov byte [rbp + 0x7e], dil
mov eax, dword [rcx + 0x4090]
cmp dword [rcx + 0x4080], eax
jg 0x140054615
mov dword [rcx + 0x3fb0], edi
jmp 0x140054d35
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.14001b520
mov ecx, eax
call fcn.14002a080
test al, al
je 0x140054d35
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 0x140054734
mov dword [rbp + 0x77], 0x858197
mov edx, edi
nop dword [rax + rax]
movsxd rcx, edx
lea eax, [rdx - 0x3b]
inc edx
xor byte [rbp + rcx + 0x77], al
cmp edx, 3
jb 0x140054680
mov edx, ebx
mov byte [rbp + 0x7a], dil
shr edx, 0x14
lea rcx, [rbp + 0x77]
and dl, 1
call fcn.1400475d0
test al, al
je 0x1400546b4
and ebx, 0xff9fffff
bts ebx, 0x14
mov dword [rbp + 0x77], 0x91958d
mov edx, edi
nop dword [rax]
movsxd rcx, edx
lea eax, [rdx - 0x3b]
inc edx
xor byte [rbp + rcx + 0x77], al
cmp edx, 3
jb 0x1400546c0
mov edx, ebx
mov byte [rbp + 0x7a], dil
shr edx, 0x15
lea rcx, [rbp + 0x77]
and dl, 1
call fcn.1400475d0
test al, al
je 0x1400546f4
and ebx, 0xffafffff
bts ebx, 0x15
mov dword [rbp + 0x77], 0xbfa38d
mov edx, edi
nop dword [rax]
movsxd rcx, edx
lea eax, [rdx - 0x3b]
inc edx
xor byte [rbp + rcx + 0x77], al
cmp edx, 3
jb 0x140054700
mov edx, ebx
mov byte [rbp + 0x7a], dil
shr edx, 0x16
lea rcx, [rbp + 0x77]
and dl, 1
call fcn.1400475d0
test al, al
je 0x140054734
and ebx, 0xffcfffff
bts ebx, 0x16
test r14d, r14d
jne 0x140054812
test esi, esi
jne 0x14005476a
mov rax, qword [0x14011d300]
mov rcx, qword [rax + 0x3ea8]
cmp byte [rcx + 0x9b], dil
jne 0x14005476a
mov eax, dword [rcx + 0x19c]
neg eax
sbb ecx, ecx
add ecx, 6
call fcn.140047e30
xor eax, eax
mov dword [rbp + 0x7f], 0xfae9e8f5
mov byte [rbp + 0x85], al
mov edx, edi
mov word [rbp + 0x83], 0xfffc
nop dword [rax]
nop dword [rax + rax]
movsxd rcx, edx
lea eax, [rdx - 0x3b]
inc edx
xor byte [rbp + rcx + 0x7f], al
cmp edx, 6
jb 0x140054790
mov edx, ebx
mov byte [rbp + 0x85], dil
shr edx, 0x17
lea rcx, [rbp + 0x7f]
and dl, 1
call fcn.1400475d0
test al, al
je 0x1400547c5
btr ebx, 0x18
bts ebx, 0x17
xor eax, eax
mov dword [rbp - 0x69], 0xf8f7e8f5
mov byte [rbp - 0x5f], al
mov edx, edi
mov dword [rbp - 0x65], 0xe2fae4e7
mov word [rbp - 0x61], 0xfefd
movsxd rcx, edx
lea eax, [rdx - 0x3b]
inc edx
xor byte [rbp + rcx - 0x69], al
cmp edx, 0xa
jb 0x1400547e0
mov edx, ebx
mov byte [rbp - 0x5f], dil
shr edx, 0x18
lea rcx, [rbp - 0x69]
and dl, 1
call fcn.1400475d0
test al, al
je 0x140054812
btr ebx, 0x17
bts ebx, 0x18
test esi, esi
je 0x14005481b
test r14d, r14d
jne 0x140054844
mov rax, qword [0x14011d300]
mov rcx, qword [rax + 0x3ea8]
cmp byte [rcx + 0x9b], dil
jne 0x140054844
mov eax, dword [rcx + 0x19c]
neg eax
sbb ecx, ecx
add ecx, 6
call fcn.140047e30
movss xmm0, dword [0x1400ba470]
xorps xmm6, xmm6
movss dword [rbp + 0x77], xmm0
mov edx, edi
mov dword [rbp + 0x7b], edi
mov dword [rbp - 0x69], 0xb1b7a986
mov dword [rbp - 0x65], 0xe2b8abe9
mov word [rbp - 0x61], 0xe3
nop dword [rax]
movsxd rcx, edx
lea eax, [rdx - 0x3b]
inc edx
xor byte [rbp + rcx - 0x69], al
cmp edx, 9
jb 0x140054870
lea rdx, [rbp + 0x77]
mov byte [rbp - 0x60], dil
lea rcx, [rbp - 0x69]
call fcn.140045dc0
test al, al
je 0x1400548fa
xor eax, eax
mov dword [rbp + 0x77], 0xb1b7a986
mov byte [rbp + 0x7b], al
mov edx, edi
nop dword [rax]
nop dword [rax + rax]
movsxd rcx, edx
lea eax, [rdx - 0x3b]
inc edx
xor byte [rbp + rcx + 0x77], al
cmp edx, 4
jb 0x1400548b0
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.14001b520
mov ecx, eax
xor edx, edx
call fcn.140029cc0
xor eax, eax
mov dword [rbp + 0x77], 0xb1b7a986
mov byte [rbp + 0x7b], al
mov edx, edi
nop dword [rax + rax]
movsxd rcx, edx
lea eax, [rdx - 0x3b]
inc edx
xor byte [rbp + rcx + 0x77], al
cmp edx, 4
jb 0x140054910
mov rcx, qword [0x14011d300]
mov byte [rbp + 0x7b], dil
mov eax, dword [rcx + 0x4090]
cmp dword [rcx + 0x4080], eax
jg 0x140054945
mov dword [rcx + 0x3fb0], edi
jmp 0x140054ccf
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.14001b520
mov ecx, eax
call fcn.14002a080
test al, al
je 0x140054ccf
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 0x1400549a9
movaps xmm0, xmm6
jmp 0x1400549b0
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 0x1400549dd
movaps xmm0, xmm6
jmp 0x1400549e4
movaps xmm0, xmm1
minss xmm0, xmm7
movss xmm5, dword [r13 + 8]
comiss xmm6, xmm5
mulss xmm0, xmm2
addss xmm0, xmm3
cvttss2si r15d, xmm0
jbe 0x140054a01
movaps xmm0, xmm6
jmp 0x140054a08
movaps xmm0, xmm1
minss xmm0, xmm5
and dword [rbp + 0x6f], 2
mulss xmm0, xmm2
addss xmm0, xmm3
cvttss2si r14d, xmm0
je 0x140054a22
mov esi, 0xff
jmp 0x140054a43
movss xmm0, dword [r13 + 0xc]
comiss xmm6, xmm0
ja 0x140054a34
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.14001b410
lea r9, [rbp + 0x77]
mov qword [rbp + 0x77], rdi
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400551d0
movaps xmm7, xmmword [rsp + 0xb0]
test al, al
je 0x140054aba
mov rcx, qword [0x14011d300]
mov rax, qword [rcx + 0xb0]
test rax, rax
je 0x140054aba
mov rcx, qword [rcx + 0xb8]
lea rdx, [rbp - 0x39]
call rax
mov dword [rbp - 0x5e], 0xe4a3e3ed
mov edx, edi
mov dword [rbp - 0x5a], 0xe9e7aeec
mov dword [rbp - 0x56], 0xb4eae2a9
mov word [rbp - 0x52], 0xf8
nop word [rax + rax]
movsxd rcx, edx
lea eax, [rdx - 0x3b]
inc edx
xor byte [rbp + rcx - 0x5e], al
cmp edx, 0xd
jb 0x140054ae0
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.14001b410
lea r9, [rbp + 0x77]
mov qword [rbp + 0x77], rdi
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400551d0
test al, al
je 0x140054b4f
mov rcx, qword [0x14011d300]
mov rax, qword [rcx + 0xb0]
test rax, rax
je 0x140054b4f
mov rcx, qword [rcx + 0xb8]
lea rdx, [rbp - 0x39]
call rax
mov dword [rbp - 0x5e], 0xfaf7e3e6
mov edx, edi
mov dword [rbp - 0x5a], 0xfefbef91
mov dword [rbp - 0x56], 0xe2ffeb95
mov word [rbp - 0x52], 0x89
nop dword [rax]
movsxd rcx, edx
lea eax, [rdx - 0x3b]
inc edx
xor byte [rbp + rcx - 0x5e], al
cmp edx, 0xd
jb 0x140054b70
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.14001b410
lea r9, [rbp + 0x77]
mov qword [rbp + 0x77], rdi
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400551d0
test al, al
je 0x140054bdb
mov rcx, qword [0x14011d300]
mov rax, qword [rcx + 0xb0]
test rax, rax
je 0x140054bdb
mov rcx, qword [rcx + 0xb8]
lea rdx, [rbp - 0x39]
call rax
cmp dword [rbp + 0x6f], edi
jne 0x140054c73
movdqa xmm0, xmmword [0x1400bb1a0]
movdqu xmmword [rbp - 0x5e], xmm0
mov word [rbp - 0x4e], 0x8d
nop word [rax + rax]
movsxd rcx, edi
lea eax, [rdi - 0x3b]
inc edi
xor byte [rbp + rcx - 0x5e], al
cmp edi, 0x11
jb 0x140054c00
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.14001b410
lea r9, [rbp + 0x77]
mov qword [rbp + 0x77], 0
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400551d0
test al, al
je 0x140054c73
mov rcx, qword [0x14011d300]
mov rax, qword [rcx + 0xb0]
test rax, rax
je 0x140054c73
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 0x140054cb3
cmp byte [rdi + 0x4115], 0
je 0x140054cb3
cmp dword [rdi + 0x40f4], 0
jne 0x140054cb3
or dword [rdi + 0x4118], 2
test dword [rax + 0xc], 0x1000000
je 0x140054cc3
mov byte [rdi + 0x3e36], 1
call fcn.1400273f0
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 0x140054d11
cmp byte [rbx + 0x4115], 0
je 0x140054d11
cmp dword [rbx + 0x40f4], 0
jne 0x140054d11
or dword [rbx + 0x4118], 2
test dword [rax + 0xc], 0x1000000
je 0x140054d21
mov byte [rbx + 0x3e36], 1
call fcn.1400273f0
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