Function at 0x555cb5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
push ebx
push esi
push edi
mov edi, dword [ebp + 0x34]
imul edi, edi, 0x104
lea eax, [ebp - 0x231]
and al, 0xe0
mov esi, ecx
add edi, dword [esi + 0x20c4]
cmp dword [esi + 0x5ff4], 0
mov dword [esi + 0x498], 1
mov dword [ebp - 0x14], eax
je 0x555d43
cmp dword [esi + 0x1a8], 0
je 0x555d01
fld dword [0x405da4]
jmp 0x555d03
fld1
fild dword [esi + 0x14c]
mov eax, dword [esi + 0x150]
mov ecx, 0x87
sub ecx, eax
fsqrt
mov dword [ebp + 0x34], ecx
mov dword [ebp - 0x18], eax
fild dword [ebp + 0x34]
fmulp st(1)
fld st(1)
fmulp st(1)
fmul qword [0x407340]
fidiv dword [ebp - 0x18]
fadd qword [0x403970]
call fcn.005d02c0
fstp st(0)
mov dword [esi + 0x16d4], eax
cmp dword [esi + 0x17e4], 0
mov ebx, dword [ebp + 8]
je 0x555d5a
test ebx, ebx
jne 0x555d5a
mov ecx, esi
call fcn.00526a15
cmp ebx, dword [ebp + 0xc]
mov dword [ebp + 0x34], ebx
jae 0x5560bc
mov eax, dword [ebp + 0x28]
mov ecx, dword [ebp + 0x2c]
xor ebx, ebx
cmp dword [esi + 0xb0], ebx
mov dword [ebp + 8], eax
mov dword [ebp - 4], ecx
jbe 0x556098
mov eax, dword [ebp + 0x30]
sub eax, ecx
mov dword [ebp - 0x30], eax
mov eax, dword [esi + 0xf0]
mov dword [ebp - 0x18], eax
cdq
push 4
pop ecx
idiv ecx
xor ecx, ecx
push 0
imul eax, dword [ebp + 0x34]
lea eax, [ebx + eax*4]
shl eax, 2
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0xb4]
dec eax
cmp dword [ebp + 0x34], eax
mov eax, dword [esi + 0xb0]
sete cl
dec eax
push ecx
xor ecx, ecx
cmp ebx, eax
mov eax, dword [esi + 0x16b4]
sete cl
add eax, dword [ebp - 0x1c]
push ecx
push eax
mov eax, dword [esi + 0x16b0]
add eax, dword [ebp - 0x1c]
mov ecx, esi
push eax
mov eax, dword [ebp - 0x18]
imul eax, dword [ebp + 0x34]
add eax, ebx
shl eax, 4
add eax, dword [esi + 0x16ac]
push eax
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
call fcn.0054d0e8
cmp dword [esi + 0x17e4], 0
je 0x555e1b
cmp dword [ebp + 0x34], 0
jne 0x555e1b
push dword [ebp + 0x24]
mov ecx, esi
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
call fcn.00527116
mov eax, dword [esi + 0x14c]
push edi
mov ecx, esi
mov dword [edi + 0x68], eax
call fcn.0052763f
push dword [ebp - 0x14]
mov eax, dword [ebp - 4]
push dword [ebp + 0x54]
mov ecx, dword [ebp - 0x30]
push dword [ebp + 0x50]
add ecx, eax
push dword [ebp + 0x4c]
mov dword [ebp - 0x24], ecx
push dword [ebp + 0x48]
mov byte [edi + 0x58], 0
push dword [ebp + 0x44]
push dword [ebp + 0x40]
push dword [ebp + 0x3c]
push dword [ebp + 0x38]
push ecx
push eax
push dword [ebp + 8]
mov ecx, esi
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push edi
push ebx
push dword [ebp + 0x34]
call fcn.005545be
mov ecx, dword [ebp + 0x1c]
mov eax, dword [ebp + 8]
and dword [ebp - 0x1c], 0
mov dword [ebp - 0xc], ecx
mov ecx, dword [esi + 0x128]
mov dword [ebp - 8], eax
mov dword [ebp - 0x28], 0x10
jmp 0x555e92
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
sub edx, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x20], 0x10
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x2c]
movzx edx, byte [edx + eax]
movzx eax, byte [eax]
sub eax, edx
cdq
xor eax, edx
sub eax, edx
add dword [ebp - 0x1c], eax
inc dword [ebp - 0x10]
dec dword [ebp - 0x20]
jne 0x555ea4
add dword [ebp - 8], ecx
add dword [ebp - 0xc], 0x10
dec dword [ebp - 0x28]
jne 0x555e8f
push dword [ebp - 0x14]
mov ecx, esi
push dword [ebp + 0x54]
mov byte [edi + 0x58], 2
push dword [ebp + 0x48]
mov byte [edi + 0x82], 0
push dword [ebp + 0x44]
mov byte [edi + 0x83], 0
push dword [ebp + 0x40]
push dword [ebp + 0x3c]
push dword [ebp + 0x38]
push dword [ebp - 0x24]
push dword [ebp - 4]
push dword [ebp + 8]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push edi
push ebx
push dword [ebp + 0x34]
call fcn.00554174
push dword [ebp - 0x14]
mov ecx, esi
push dword [ebp + 0x54]
push dword [ebp + 0x50]
push dword [ebp + 0x4c]
push dword [ebp + 0x40]
push dword [ebp + 0x3c]
push dword [ebp + 0x38]
push dword [ebp - 0x24]
push dword [ebp - 4]
push dword [ebp + 8]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push edi
push ebx
push dword [ebp + 0x34]
call fcn.0055438d
mov ecx, dword [ebp + 0x1c]
mov eax, dword [ebp + 8]
and dword [ebp - 0x20], 0
mov dword [ebp - 0xc], ecx
mov ecx, dword [esi + 0x128]
mov dword [ebp - 8], eax
mov dword [ebp - 0x18], 0x10
jmp 0x555f69
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
sub edx, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x28], 0x10
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x2c]
movzx edx, byte [eax + edx]
movzx eax, byte [eax]
sub eax, edx
cdq
xor eax, edx
sub eax, edx
add dword [ebp - 0x20], eax
inc dword [ebp - 0x10]
dec dword [ebp - 0x28]
jne 0x555f7b
add dword [ebp - 8], ecx
add dword [ebp - 0xc], 0x10
dec dword [ebp - 0x18]
jne 0x555f66
mov eax, dword [ebp - 0x20]
cmp dword [ebp - 0x1c], eax
jg 0x555fb2
mov byte [edi + 0x58], 0
cmp byte [edi + 0x58], 0
push dword [ebp - 0x14]
mov ecx, esi
push dword [ebp + 0x54]
jne 0x555ff3
push dword [ebp + 0x50]
push dword [ebp + 0x4c]
push dword [ebp + 0x48]
push dword [ebp + 0x44]
push dword [ebp + 0x40]
push dword [ebp + 0x3c]
push dword [ebp + 0x38]
push dword [ebp - 0x24]
push dword [ebp - 4]
push dword [ebp + 8]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push edi
push ebx
push dword [ebp + 0x34]
call fcn.005545be
jmp 0x55605f
push dword [ebp + 0x48]
mov byte [edi + 0x82], 0
push dword [ebp + 0x44]
mov byte [edi + 0x83], 0
push dword [ebp + 0x40]
push dword [ebp + 0x3c]
push dword [ebp + 0x38]
push dword [ebp - 0x24]
push dword [ebp - 4]
push dword [ebp + 8]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push edi
push ebx
push dword [ebp + 0x34]
call fcn.00554174
push dword [ebp - 0x14]
mov ecx, esi
push dword [ebp + 0x54]
push dword [ebp + 0x50]
push dword [ebp + 0x4c]
push dword [ebp + 0x40]
push dword [ebp + 0x3c]
push dword [ebp + 0x38]
push dword [ebp - 0x24]
push dword [ebp - 4]
push dword [ebp + 8]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push edi
push ebx
push dword [ebp + 0x34]
call fcn.0055438d
add dword [ebp + 8], 0x10
add dword [ebp - 4], 4
add dword [ebp + 0x3c], 0xc00
add dword [ebp + 0x40], 0x18
add dword [ebp + 0x48], 0x18
add dword [ebp + 0x50], 0x18
mov eax, 0x600
add dword [ebp + 0x44], eax
add dword [ebp + 0x4c], eax
add edi, 0x104
inc ebx
cmp ebx, dword [esi + 0xb0]
jb 0x555d88
mov eax, dword [esi + 0x140]
add dword [ebp + 0x28], eax
mov eax, dword [esi + 0x148]
add dword [ebp + 0x2c], eax
add dword [ebp + 0x30], eax
inc dword [ebp + 0x34]
mov eax, dword [ebp + 0x34]
cmp eax, dword [ebp + 0xc]
jb 0x555d66
call fcn.005dbdb8
test eax, eax
pop edi
pop esi
pop ebx
je 0x5560ca
emms
leave
ret 0x50