Function at 0x557ef0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb8
push ebx
push esi
mov esi, dword [ebp + 0x10]
xor ebx, ebx
shr esi, 3
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x28], 2
cmp esi, 0x14
je 0x557f24
cmp esi, 0x1c
je 0x557f24
cmp esi, 0x20
je 0x557f24
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [ebp + 0x14]
test edi, edi
jne 0x557f5a
cmp esi, 0x14
jne 0x557f3d
call fcn.004e9770
mov edi, eax
mov dword [ebp + 0x14], edi
jmp 0x557f65
cmp esi, 0x1c
jne 0x557f4e
call fcn.004e9780
mov edi, eax
mov dword [ebp + 0x14], edi
jmp 0x557f65
call fcn.004e9790
mov edi, eax
mov dword [ebp + 0x14], edi
jmp 0x557f65
push edi
call fcn.004a3e00
add esp, 4
mov esi, eax
mov ecx, 0x200
cmp dword [ebp + 0xc], ecx
cmovae ecx, dword [ebp + 0xc]
add ecx, 0x3f
and ecx, 0xffffffc0
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x18]
test ecx, ecx
je 0x557fba
mov eax, dword [ebp + 0x1c]
cmp eax, esi
jae 0x557fa6
push 0x55
push 0x62ba38
push 0x6e
push 0x7d
push 0xa
call fcn.004ace10
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmova eax, esi
push eax
push ecx
lea eax, [ebp - 0xb8]
push eax
call fcn.00594dc0
add esp, 0xc
call fcn.005512f0
mov dword [ebp - 0x14], eax
test eax, eax
je 0x55858f
call fcn.0051f950
mov dword [ebp + 0x10], eax
test eax, eax
je 0x558591
push eax
call fcn.0051fa40
mov ebx, dword [ebp + 0x10]
push ebx
call fcn.0051f7f0
push ebx
mov dword [ebp - 0x54], eax
call fcn.0051f7f0
push ebx
mov dword [ebp - 0x10], eax
call fcn.0051f7f0
push ebx
mov dword [ebp - 0x20], eax
call fcn.0051f7f0
push ebx
mov dword [ebp - 0xc], eax
call fcn.0051f7f0
push ebx
mov dword [ebp - 0x58], eax
call fcn.0051f7f0
push ebx
mov dword [ebp - 0x30], eax
call fcn.0051f7f0
push ebx
mov dword [ebp - 8], eax
call fcn.0051f7f0
mov ebx, eax
add esp, 0x24
mov dword [ebp - 4], ebx
test ebx, ebx
je 0x558089
mov eax, dword [ebp - 0x1c]
dec eax
push eax
call fcn.004f6d30
push eax
push ebx
call fcn.004f7510
add esp, 0xc
test eax, eax
je 0x558089
nop dword [eax]
push dword [ebp - 0x18]
xor ebx, ebx
cmp dword [ebp + 0x18], ebx
push 0
push dword [ebp + 0x2c]
sete bl
call fcn.0057edf0
inc dword [ebp - 0x18]
add esp, 0xc
test eax, eax
je 0x558089
cmp dword [ebp + 0x18], 0
jne 0x55809e
lea eax, [ebp - 0xb8]
push esi
push eax
call fcn.004a21a0
add esp, 8
test eax, eax
jg 0x5580a5
xor ebx, ebx
push dword [ebp + 0x10]
call fcn.0051f6f0
mov eax, dword [ebp + 0x10]
add esp, 4
jmp 0x558591
mov dword [ebp + 0x18], 0
push esi
lea eax, [ebp - 0xb8]
push eax
lea eax, [ebp - 0x98]
push eax
call fcn.00594dc0
push esi
lea eax, [ebp - 0xb8]
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.00594dc0
lea eax, [esi - 1]
add esp, 0x18
test eax, eax
js 0x5580e3
add byte [ebp + eax - 0x98], 1
jne 0x5580e3
sub eax, 1
jns 0x5580d4
push 0
push edi
push 0
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0xb8]
push esi
push eax
call fcn.004b7cc0
add esp, 0x18
test eax, eax
je 0x558089
push 0
push edi
push 0
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x98]
push esi
push eax
call fcn.004b7cc0
add esp, 0x18
test eax, eax
je 0x558089
xor ecx, ecx
test esi, esi
jle 0x5581a4
cmp esi, 0x40
jb 0x558193
mov eax, esi
and eax, 0x8000003f
jns 0x55813a
dec eax
or eax, 0xffffffc0
inc eax
mov edx, esi
sub edx, eax
nop
movups xmm0, xmmword [ebp + ecx - 0x50]
movups xmm1, xmmword [ebp + ecx - 0x78]
pxor xmm1, xmm0
movups xmmword [ebp + ecx - 0x50], xmm1
movups xmm0, xmmword [ebp + ecx - 0x40]
movups xmm1, xmmword [ebp + ecx - 0x68]
pxor xmm1, xmm0
movups xmmword [ebp + ecx - 0x40], xmm1
movups xmm0, xmmword [ebp + ecx - 0x30]
movups xmm1, xmmword [ebp + ecx - 0x58]
pxor xmm1, xmm0
movups xmmword [ebp + ecx - 0x30], xmm1
movups xmm0, xmmword [ebp + ecx - 0x20]
movups xmm1, xmmword [ebp + ecx - 0x48]
pxor xmm1, xmm0
movups xmmword [ebp + ecx - 0x20], xmm1
add ecx, 0x40
cmp ecx, edx
jl 0x558140
cmp ecx, esi
jge 0x5581a4
mov al, byte [ebp + ecx - 0x78]
xor byte [ebp + ecx - 0x50], al
inc ecx
cmp ecx, esi
jl 0x558197
push dword [ebp - 0xc]
or byte [ebp - 0x50], 0x80
lea eax, [ebp - 0x50]
or byte [ebp + esi - 0x51], 1
push esi
push eax
call fcn.004f60c0
add esp, 0xc
test eax, eax
je 0x558089
push dword [ebp + 0x2c]
push ebx
push dword [ebp + 0x10]
push 0x40
push dword [ebp - 0xc]
call fcn.0057f2d0
add esp, 0x14
test eax, eax
jg 0x5581e8
je 0x558050
jmp 0x558089
mov ebx, dword [ebp + 0x2c]
push 0
push 2
push ebx
call fcn.0057edf0
add esp, 0xc
test eax, eax
je 0x558089
push 0
push 3
push ebx
call fcn.0057edf0
add esp, 0xc
test eax, eax
je 0x558089
mov ecx, dword [ebp - 0x1c]
mov eax, 0xcccccccd
mov ebx, dword [ebp - 0x54]
xor edi, edi
mov dword [ebp - 0x24], edi
lea ecx, [ecx - 1]
mul ecx
mov eax, edx
shr eax, 7
mov dword [ebp - 0x2c], eax
test edi, edi
je 0x55824c
push edi
push 0
push dword [ebp + 0x2c]
call fcn.0057edf0
add esp, 0xc
test eax, eax
je 0x558089
push dword [ebp - 0x20]
call fcn.004f6d80
xor edi, edi
add esp, 4
cmp dword [ebp - 0x2c], edi
jl 0x5582f5
lea eax, [esi - 1]
test eax, eax
js 0x55827f
nop dword [eax]
add byte [ebp + eax - 0x98], 1
jne 0x55827f
sub eax, 1
jns 0x558270
push 0
push dword [ebp + 0x14]
lea eax, [ebp - 0x50]
push 0
push eax
lea eax, [ebp - 0x98]
push esi
push eax
call fcn.004b7cc0
add esp, 0x18
test eax, eax
je 0x558089
push ebx
lea eax, [ebp - 0x50]
push esi
push eax
call fcn.004f60c0
add esp, 0xc
test eax, eax
je 0x558089
lea eax, [esi*8]
imul eax, edi
push eax
push ebx
push ebx
call fcn.004f7510
add esp, 0xc
test eax, eax
je 0x558089
mov eax, dword [ebp - 0x20]
push ebx
push eax
push eax
call fcn.00525f20
add esp, 0xc
test eax, eax
je 0x558089
inc edi
cmp edi, dword [ebp - 0x2c]
jle 0x558262
mov eax, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x20]
dec eax
push eax
push edi
call fcn.004f68e0
add esp, 8
test eax, eax
je 0x558089
push edi
mov edi, dword [ebp - 0x58]
push edi
call fcn.004f6640
add esp, 8
test eax, eax
je 0x558089
push dword [ebp - 4]
push edi
push edi
call fcn.00525f20
add esp, 0xc
test eax, eax
je 0x558089
push dword [ebp - 0xc]
push ebx
call fcn.004f7640
add esp, 8
test eax, eax
je 0x558089
push dword [ebp + 0x10]
push ebx
push edi
push dword [ebp - 0x30]
push 0
call fcn.00550d80
add esp, 0x14
test eax, eax
je 0x558089
call fcn.004f6d30
push eax
push dword [ebp - 0x30]
push ebx
call fcn.00525fb0
add esp, 0xc
test eax, eax
je 0x558089
push ebx
push edi
mov edi, dword [ebp - 8]
push edi
call fcn.00525fb0
add esp, 0xc
test eax, eax
je 0x558089
push dword [ebp - 4]
push edi
call fcn.004f62b0
add esp, 8
test eax, eax
js 0x5583c6
mov edi, dword [ebp + 0x2c]
push edi
push 1
push dword [ebp + 0x10]
push 0x40
push dword [ebp - 8]
call fcn.0057f2d0
add esp, 0x14
test eax, eax
jg 0x5583e1
jne 0x558089
mov edi, dword [ebp - 0x24]
inc edi
mov dword [ebp - 0x24], edi
cmp edi, 0x1000
jl 0x558232
mov edi, dword [ebp + 0x14]
jmp 0x558050
push 1
push 2
push edi
call fcn.0057edf0
add esp, 0xc
test eax, eax
je 0x558089
call fcn.004f6d30
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.00525fb0
add esp, 0xc
test eax, eax
je 0x558089
push dword [ebp + 0x10]
push dword [ebp - 0xc]
push dword [ebp - 4]
push 0
push ebx
call fcn.00550d80
add esp, 0x14
test eax, eax
je 0x558089
push 2
push dword [ebp - 4]
call fcn.004f6c70
add esp, 8
test eax, eax
je 0x558089
push dword [ebp + 0x10]
push dword [ebp - 8]
push dword [ebp - 0x14]
call fcn.00551370
add esp, 0xc
test eax, eax
je 0x558089
push dword [ebp - 0x14]
push dword [ebp + 0x10]
push dword [ebp - 8]
push ebx
push dword [ebp - 4]
push dword [ebp - 0x10]
call fcn.0054f8f0
add esp, 0x18
test eax, eax
je 0x558089
nop dword [eax]
push dword [ebp - 0x10]
call fcn.004f6860
add esp, 4
test eax, eax
je 0x5584ce
call fcn.004f6d30
push eax
mov eax, dword [ebp - 4]
push eax
push eax
call fcn.00525f20
add esp, 0xc
test eax, eax
je 0x558089
push dword [ebp - 0x14]
inc dword [ebp - 0x28]
push dword [ebp + 0x10]
push dword [ebp - 8]
push ebx
push dword [ebp - 4]
push dword [ebp - 0x10]
call fcn.0054f8f0
add esp, 0x18
test eax, eax
jne 0x558480
jmp 0x558089
push 1
push 3
push edi
call fcn.0057edf0
add esp, 0xc
test eax, eax
je 0x558089
mov ebx, 1
nop dword [eax + eax]
mov edi, dword [ebp + 8]
push dword [edi + 8]
call fcn.004f6760
push dword [edi + 0xc]
call fcn.004f6760
push dword [edi + 0x10]
call fcn.004f6760
push dword [ebp - 8]
call fcn.004f66a0
push dword [ebp - 0xc]
mov dword [edi + 8], eax
call fcn.004f66a0
push dword [ebp - 0x10]
mov dword [edi + 0xc], eax
call fcn.004f66a0
add esp, 0x18
mov dword [edi + 0x10], eax
cmp dword [edi + 8], 0
je 0x558089
cmp dword [edi + 0xc], 0
je 0x558089
test eax, eax
je 0x558089
mov eax, dword [ebp + 0x24]
test eax, eax
je 0x558557
mov ecx, dword [ebp - 0x24]
mov dword [eax], ecx
mov eax, dword [ebp + 0x28]
test eax, eax
je 0x558563
mov ecx, dword [ebp - 0x28]
mov dword [eax], ecx
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x55808b
push esi
lea ecx, [ebp - 0xb8]
push ecx
push eax
call fcn.00594dc0
add esp, 0xc
push dword [ebp + 0x10]
call fcn.0051f6f0
mov eax, dword [ebp + 0x10]
add esp, 4
jmp 0x558591
xor eax, eax
push eax
call fcn.0051f760
push dword [ebp - 0x14]
call fcn.005512a0
add esp, 8
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret