Function at 0x608b5b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push esi
push 0xa
pop eax
mov esi, ecx
cmp eax, dword [ebp + 0x10]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
sbb al, al
inc al
push 4
mov byte [esi + 0xd], al
lea eax, [ebp - 0x40]
push eax
push 1
call fcn.006062ed
add esp, 0x14
push 8
pop eax
push ebx
push edi
mov edx, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x34]
shr edx, 0x18
mov edi, ecx
mov ebx, ecx
mov edx, dword [edx*4 + 0x8738a0]
shr edi, 0x18
shr ebx, 0x10
xor edx, dword [edi*4 + 0x8738a0]
movzx edi, bl
mov ebx, ecx
xor edx, dword [edi*4 + 0x8730a0]
shr ebx, 8
movzx edi, bl
movzx ecx, cl
xor edx, dword [edi*4 + 0x873ca0]
xor edx, dword [ecx*4 + 0x8734a0]
xor edx, dword [ebp - 0x40]
mov ecx, edx
shr ecx, 0x18
shl ecx, 2
mov dword [ebp - 4], ecx
mov ecx, edx
shr ecx, 0x10
movzx edi, cl
mov ecx, edx
shr ecx, 8
movzx ecx, cl
shl ecx, 2
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0x38]
shr ecx, 8
movzx ebx, dl
movzx ecx, cl
shl ebx, 2
mov ecx, dword [ecx*4 + 0x873ca0]
mov dword [ebp - 0x24], ebx
xor ecx, dword [ebx + 0x873ca0]
mov ebx, dword [ebp - 8]
shl edi, 2
xor ecx, dword [ebx + 0x8734a0]
mov ebx, dword [ebp - 4]
mov dword [ebp - 0x20], edi
xor ecx, dword [ebx + 0x8730a0]
xor ecx, dword [edi + 0x8738a0]
xor ecx, dword [ebp - 0x38]
mov edi, ecx
mov ebx, ecx
shr edi, 0x18
shl edi, 2
shr ebx, 0x10
mov dword [ebp + 0xc], edi
mov dword [ebp - 0x4c], ecx
movzx edi, bl
mov ebx, ecx
shr ebx, 8
movzx ebx, bl
shl ebx, 2
mov dword [ebp + 0x10], ebx
mov ebx, dword [ebp - 0x38]
shr ebx, 0x10
movzx ecx, cl
movzx ebx, bl
shl ecx, 2
mov ebx, dword [ebx*4 + 0x8730a0]
mov dword [ebp - 0x18], ecx
xor ebx, dword [ecx + 0x8730a0]
mov ecx, dword [ebp + 0xc]
shl edi, 2
xor ebx, dword [ecx + 0x873ca0]
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x1c], edi
xor ebx, dword [edi + 0x8738a0]
xor ebx, dword [ebp - 0x34]
xor ebx, dword [ecx + 0x8734a0]
mov ecx, ebx
shr ecx, 0x18
shl ecx, 2
mov dword [ebp - 0x10], ecx
mov ecx, ebx
shr ecx, 0x10
movzx ecx, cl
shl ecx, 2
mov dword [ebp - 0xc], ecx
mov ecx, dword [ecx + 0x8734a0]
mov dword [ebp - 0x28], ecx
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
lea ecx, [ecx*4 + 0x8730a0]
mov dword [ebp - 0x2c], ecx
movzx ecx, bl
shl ecx, 2
mov dword [ebp - 0x14], ecx
movzx ecx, byte [ebp - 0x38]
mov edi, dword [ecx*4 + 0x8734a0]
mov ecx, dword [ebp - 0x14]
xor edi, dword [ecx + 0x8738a0]
mov ecx, dword [ebp - 0x10]
xor edi, dword [ecx + 0x873ca0]
mov ecx, dword [ebp - 0x2c]
xor edi, dword [ebp - 0x28]
xor edi, dword [ecx]
mov ecx, dword [ebp - 0x10]
xor edi, dword [ebp - 0x3c]
mov ecx, dword [ecx + 0x8730a0]
mov dword [ebp - 0x44], edi
mov edi, dword [ebp - 0x18]
xor ecx, dword [edi + 0x8738a0]
mov edi, dword [ebp - 8]
xor ecx, dword [edi + 0x8730a0]
mov edi, dword [ebp + 0x10]
xor ecx, dword [edi + 0x873ca0]
mov edi, dword [esi + 0x98]
xor ecx, dword [ebp - 0x28]
mov dword [edi + eax - 8], ecx
mov ecx, dword [ebp - 0x14]
mov edi, dword [ebp + 0xc]
mov ecx, dword [ecx + 0x8734a0]
xor ecx, dword [edi + 0x873ca0]
mov edi, dword [ebp - 0x1c]
xor ecx, dword [edi + 0x8738a0]
mov edi, dword [ebp - 0x2c]
xor ecx, dword [edi]
mov edi, dword [ebp + 0x10]
xor ecx, dword [edi + 0x8734a0]
mov edi, dword [esi + 0x98]
mov dword [edi + eax - 4], ecx
mov ecx, dword [ebp - 0x44]
mov edi, dword [ebp - 0x44]
shr ecx, 0x10
movzx ecx, cl
shr edi, 0x18
mov ecx, dword [ecx*4 + 0x8734a0]
shl edi, 2
mov dword [ebp - 0x28], edi
xor ecx, dword [edi + 0x8730a0]
mov edi, dword [ebp - 0xc]
xor ecx, dword [edi + 0x8738a0]
mov edi, dword [ebp - 0x24]
xor ecx, dword [edi + 0x8738a0]
mov edi, dword [ebp - 8]
xor ecx, dword [edi + 0x873ca0]
mov edi, dword [esi + 0x98]
mov dword [eax + edi], ecx
mov ecx, dword [ebp - 0x44]
movzx edi, byte [ebp - 0x44]
shr ecx, 8
movzx ecx, cl
mov ecx, dword [ecx*4 + 0x8730a0]
xor ecx, dword [edi*4 + 0x8734a0]
mov edi, dword [ebp - 0x28]
xor ecx, dword [edi + 0x873ca0]
mov edi, dword [ebp - 4]
xor ecx, dword [edi + 0x873ca0]
mov edi, dword [ebp - 0x20]
xor ecx, dword [edi + 0x8738a0]
mov edi, dword [esi + 0x98]
mov dword [edi + eax + 4], ecx
mov ecx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x1c]
mov ecx, dword [ecx + 0x8734a0]
xor ecx, dword [edi + 0x8730a0]
mov edi, dword [ebp + 0xc]
xor ecx, dword [edi + 0x8738a0]
mov edi, dword [ebp - 4]
xor ecx, dword [edi + 0x8738a0]
mov edi, dword [ebp + 0x10]
xor ecx, dword [edi + 0x873ca0]
xor ecx, ebx
mov ebx, ecx
mov dword [ebp - 0x40], ecx
shr ebx, 8
movzx edi, bl
mov ebx, ecx
mov edi, dword [edi*4 + 0x8734a0]
mov dword [ebp + 0xc], edi
movzx edi, cl
shr ecx, 0x10
shr ebx, 0x18
movzx ecx, cl
mov ebx, dword [ebx*4 + 0x8730a0]
xor ebx, dword [ecx*4 + 0x8738a0]
mov ecx, dword [ebp - 8]
shl edi, 2
xor ebx, dword [edi + 0x873ca0]
xor ebx, dword [ebp + 0xc]
xor ebx, dword [ecx + 0x873ca0]
xor ebx, edx
mov edx, ebx
mov ecx, ebx
shr edx, 0x10
shr ecx, 0x18
movzx edx, dl
mov ecx, dword [ecx*4 + 0x873ca0]
mov dword [ebp - 0x3c], ebx
xor ecx, dword [edx*4 + 0x8738a0]
mov edx, ebx
shr edx, 8
movzx edx, dl
xor ecx, dword [edx*4 + 0x8734a0]
movzx edx, bl
xor ecx, dword [edx*4 + 0x8730a0]
mov edx, dword [ebp - 0x20]
xor ecx, dword [edx + 0x8730a0]
xor ecx, dword [ebp - 0x4c]
mov edx, ecx
mov ebx, ecx
shr edx, 0x18
shl edx, 2
mov dword [ebp + 0x10], edx
mov edx, ecx
shr edx, 0x10
movzx edx, dl
shr ebx, 8
mov edx, dword [edx*4 + 0x8734a0]
mov dword [ebp - 0x38], ecx
movzx ebx, bl
movzx ecx, cl
xor edx, dword [ebx*4 + 0x8730a0]
xor edx, dword [ecx*4 + 0x8738a0]
mov ecx, dword [ebp - 0x24]
xor edx, dword [ecx + 0x8734a0]
mov ecx, dword [ebp + 0x10]
xor edx, dword [ecx + 0x873ca0]
xor edx, dword [ebp - 0x44]
mov dword [ebp - 0x34], edx
mov ebx, edx
shr edx, 0x10
shr ebx, 0x18
movzx edx, dl
mov ebx, dword [ebx*4 + 0x8738a0]
xor ebx, dword [edx*4 + 0x873ca0]
xor ebx, dword [edi + 0x8730a0]
xor ebx, dword [ecx + 0x8730a0]
mov ecx, dword [esi + 0x98]
xor ebx, dword [ebp + 0xc]
mov dword [ecx + eax + 8], ebx
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x34]
shr ecx, 0x10
movzx ecx, cl
shr edx, 8
mov ecx, dword [ecx*4 + 0x8734a0]
movzx edx, dl
xor ecx, dword [edx*4 + 0x8738a0]
mov edx, dword [ebp - 0x40]
shr edx, 0x18
xor ecx, dword [edx*4 + 0x8734a0]
mov edx, dword [ebp - 0x40]
shr edx, 0x10
movzx edx, dl
xor ecx, dword [edx*4 + 0x8730a0]
movzx edx, byte [ebp - 0x34]
xor ecx, dword [edx*4 + 0x873ca0]
mov edx, dword [esi + 0x98]
mov dword [edx + eax + 0xc], ecx
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x38]
shr ecx, 8
movzx ecx, cl
shr edx, 0x18
mov ecx, dword [ecx*4 + 0x8734a0]
xor ecx, dword [edx*4 + 0x8738a0]
mov edx, dword [ebp - 0x38]
shr edx, 0x10
movzx edx, dl
xor ecx, dword [edx*4 + 0x873ca0]
movzx edx, byte [ebp - 0x3c]
xor ecx, dword [edx*4 + 0x8730a0]
movzx edx, byte [ebp - 0x40]
xor ecx, dword [edx*4 + 0x8738a0]
mov edx, dword [esi + 0x98]
mov dword [edx + eax + 0x10], ecx
mov edx, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x3c]
shr edx, 0x10
shr ecx, 0x18
movzx edx, dl
mov ecx, dword [ecx*4 + 0x8734a0]
xor ecx, dword [edx*4 + 0x8730a0]
mov edx, dword [ebp - 0x38]
shr edx, 8
movzx edx, dl
xor ecx, dword [edx*4 + 0x8738a0]
movzx edx, byte [ebp - 0x3c]
xor ecx, dword [edx*4 + 0x873ca0]
movzx edx, byte [ebp - 0x38]
xor ecx, dword [edx*4 + 0x873ca0]
mov edx, dword [esi + 0x98]
mov dword [edx + eax + 0x14], ecx
mov edx, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x34]
shr edx, 0x18
mov edi, ecx
mov ebx, dword [edx*4 + 0x8738a0]
mov edx, ecx
shr edx, 0x10
shr edi, 0x18
movzx edx, dl
xor ebx, dword [edi*4 + 0x8738a0]
xor ebx, dword [edx*4 + 0x8730a0]
mov edx, ecx
shr edx, 8
movzx edx, dl
movzx ecx, cl
xor ebx, dword [edx*4 + 0x873ca0]
xor ebx, dword [ecx*4 + 0x8734a0]
xor ebx, dword [ebp - 0x40]
mov ecx, ebx
shr ecx, 0x18
shl ecx, 2
mov dword [ebp - 4], ecx
mov ecx, ebx
shr ecx, 0x10
movzx edi, cl
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
shl edi, 2
shl ecx, 2
mov dword [ebp - 8], ecx
mov dword [ebp - 0x20], edi
mov ecx, dword [ecx + 0x8734a0]
mov dword [ebp - 0x2c], ecx
mov ecx, dword [ebp - 0x38]
shr ecx, 8
movzx ecx, cl
movzx edx, bl
mov ecx, dword [ecx*4 + 0x873ca0]
shl edx, 2
mov dword [ebp - 0x24], edx
xor ecx, dword [edx + 0x873ca0]
mov edx, dword [ebp - 4]
xor ecx, dword [edi + 0x8738a0]
xor ecx, dword [edx + 0x8730a0]
xor ecx, dword [ebp - 0x2c]
xor ecx, dword [ebp - 0x38]
mov edx, ecx
mov dword [ebp - 0x4c], ecx
shr edx, 0x18
shl edx, 2
mov dword [ebp + 0xc], edx
mov edx, ecx
shr edx, 0x10
movzx edi, dl
mov edx, ecx
shr edx, 8
movzx edx, dl
shl edx, 2
mov dword [ebp + 0x10], edx
mov edx, dword [ebp - 0x38]
shr edx, 0x10
movzx edx, dl
shl edi, 2
mov edx, dword [edx*4 + 0x8730a0]
mov dword [ebp - 0x1c], edi
xor edx, dword [edi + 0x8738a0]
mov edi, dword [ebp + 0xc]
movzx ecx, cl
xor edx, dword [edi + 0x873ca0]
shl ecx, 2
mov dword [ebp - 0x18], ecx
xor edx, dword [ecx + 0x8730a0]
mov ecx, dword [ebp + 0x10]
xor edx, dword [ebp - 0x34]
xor edx, dword [ecx + 0x8734a0]
mov ecx, edx
shr ecx, 0x18
shl ecx, 2
mov dword [ebp - 0x10], ecx
mov ecx, edx
shr ecx, 0x10
movzx ecx, cl
shl ecx, 2
mov dword [ebp - 0xc], ecx
mov ecx, edx
shr ecx, 8
movzx ecx, cl
shl ecx, 2
mov dword [ebp - 0x30], ecx
movzx ecx, dl
shl ecx, 2
mov dword [ebp - 0x14], ecx
movzx ecx, byte [ebp - 0x38]
mov edi, dword [ecx*4 + 0x8734a0]
mov ecx, dword [ebp - 0x14]
xor edi, dword [ecx + 0x8738a0]
mov ecx, dword [ebp - 0x30]
xor edi, dword [ecx + 0x8730a0]
mov ecx, dword [ebp - 0xc]
xor edi, dword [ecx + 0x8734a0]
mov ecx, dword [ebp - 0x10]
xor edi, dword [ecx + 0x873ca0]
xor edi, dword [ebp - 0x3c]
mov dword [ebp - 0x44], edi
mov ecx, dword [ebp - 0x44]
shr ecx, 0x10
movzx ecx, cl
shr edi, 0x18
mov ecx, dword [ecx*4 + 0x873ca0]
shl edi, 2
mov dword [ebp - 0x28], edi
xor ecx, dword [edi + 0x8738a0]
mov edi, dword [ebp - 0xc]
xor ecx, dword [edi + 0x8730a0]
mov edi, dword [ebp - 0x24]
xor ecx, dword [edi + 0x8730a0]
mov edi, dword [esi + 0x98]
xor ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x2c], eax
mov dword [edi + eax + 0x18], ecx
mov ecx, dword [ebp - 0x44]
movzx edi, byte [ebp - 0x44]
shr ecx, 8
movzx ecx, cl
mov ecx, dword [ecx*4 + 0x8738a0]
xor ecx, dword [edi*4 + 0x873ca0]
mov edi, dword [ebp - 0x28]
xor ecx, dword [edi + 0x8734a0]
mov edi, dword [ebp - 4]
xor ecx, dword [edi + 0x8734a0]
mov edi, dword [ebp - 0x20]
xor ecx, dword [edi + 0x8730a0]
mov edi, dword [esi + 0x98]
mov dword [edi + eax + 0x1c], ecx
mov ecx, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
mov ecx, dword [ecx + 0x873ca0]
xor ecx, dword [edi + 0x8738a0]
mov edi, dword [ebp - 8]
xor ecx, dword [edi + 0x8738a0]
mov edi, dword [ebp - 0x18]
xor ecx, dword [edi + 0x8730a0]
mov edi, dword [ebp + 0x10]
xor ecx, dword [edi + 0x8734a0]
mov edi, dword [esi + 0x98]
mov dword [edi + eax + 0x20], ecx
mov ecx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x30]
mov ecx, dword [ecx + 0x873ca0]
xor ecx, dword [edi + 0x8738a0]
mov edi, dword [ebp + 0xc]
xor ecx, dword [edi + 0x8734a0]
mov edi, dword [ebp - 0x1c]
xor ecx, dword [edi + 0x8730a0]
mov edi, dword [ebp + 0x10]
xor ecx, dword [edi + 0x873ca0]
mov edi, dword [esi + 0x98]
mov dword [edi + eax + 0x24], ecx
mov ecx, dword [ebp - 0x18]
mov edi, dword [ebp + 0xc]
mov ecx, dword [ecx + 0x8734a0]
xor ecx, dword [edi + 0x8738a0]
mov edi, dword [ebp - 4]
xor ecx, dword [edi + 0x8738a0]
mov edi, dword [ebp - 0x1c]
xor ecx, dword [edi + 0x8730a0]
mov edi, dword [ebp + 0x10]
xor ecx, dword [edi + 0x873ca0]
xor ecx, edx
movzx edx, cl
shl edx, 2
mov eax, ecx
mov dword [ebp + 0xc], edx
mov edx, ecx
mov dword [ebp - 0x40], ecx
shr eax, 0x10
shr edx, 0x18
movzx edi, al
mov edx, dword [edx*4 + 0x8730a0]
xor edx, dword [edi*4 + 0x8738a0]
shr ecx, 8
movzx ecx, cl
xor edx, dword [ecx*4 + 0x8734a0]
mov ecx, dword [ebp + 0xc]
xor edx, dword [ecx + 0x873ca0]
mov ecx, dword [ebp - 8]
xor edx, dword [ecx + 0x873ca0]
xor edx, ebx
mov ecx, edx
mov dword [ebp - 0x3c], edx
shr ecx, 8
movzx edi, cl
shl edi, 2
movzx ebx, dl
mov ecx, edx
mov eax, dword [ebp - 0x2c]
shr edx, 0x10
movzx edx, dl
shr ecx, 0x18
shl ebx, 2
mov ecx, dword [ecx*4 + 0x873ca0]
xor ecx, dword [edx*4 + 0x8738a0]
mov edx, dword [ebp - 0x20]
xor ecx, dword [ebx + 0x8730a0]
xor ecx, dword [edi + 0x8734a0]
xor ecx, dword [edx + 0x8730a0]
xor ecx, dword [ebp - 0x4c]
mov edx, ecx
mov dword [ebp - 0x38], ecx
shr edx, 0x18
shl edx, 2
mov dword [ebp + 0x10], edx
mov edx, ecx
shr edx, 0x10
movzx edx, dl
mov edx, dword [edx*4 + 0x8734a0]
mov dword [ebp - 0x30], edx
mov edx, ecx
shr edx, 8
movzx edx, dl
movzx ecx, cl
mov edx, dword [edx*4 + 0x8730a0]
xor edx, dword [ecx*4 + 0x8738a0]
mov ecx, dword [ebp - 0x24]
xor edx, dword [ecx + 0x8734a0]
mov ecx, dword [ebp + 0x10]
xor edx, dword [ecx + 0x873ca0]
mov ecx, dword [ebx + 0x8738a0]
xor ecx, dword [edi + 0x873ca0]
xor edx, dword [ebp - 0x30]
xor edx, dword [ebp - 0x44]
mov dword [ebp - 0x34], edx
mov edx, dword [ebp + 0xc]
xor ecx, dword [edx + 0x8730a0]
mov edx, dword [ebp + 0x10]
xor ecx, dword [edx + 0x8730a0]
mov edx, dword [esi + 0x98]
xor ecx, dword [ebp - 0x30]
mov dword [edx + eax + 0x28], ecx
mov edx, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x3c]
shr edx, 0x10
shr ecx, 0x18
movzx edx, dl
mov ecx, dword [ecx*4 + 0x873ca0]
xor ecx, dword [edx*4 + 0x8738a0]
mov edx, dword [ebp - 0x38]
shr edx, 8
movzx edx, dl
xor ecx, dword [edx*4 + 0x8730a0]
movzx edx, byte [ebp - 0x3c]
xor ecx, dword [edx*4 + 0x8734a0]
movzx edx, byte [ebp - 0x38]
xor ecx, dword [edx*4 + 0x8734a0]
mov edx, dword [esi + 0x98]
mov dword [edx + eax + 0x2c], ecx
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x34]
shr ecx, 0x18
shr edx, 0x18
mov ecx, dword [ecx*4 + 0x8738a0]
xor ecx, dword [edx*4 + 0x8730a0]
mov edx, dword [ebp - 0x34]
shr edx, 0x10
movzx edx, dl
xor ecx, dword [edx*4 + 0x8734a0]
mov edx, dword [ebp - 0x40]
shr edx, 8
movzx edx, dl
xor ecx, dword [edx*4 + 0x873ca0]
movzx edx, byte [ebp - 0x40]
xor ecx, dword [edx*4 + 0x8738a0]
mov edx, dword [esi + 0x98]
mov dword [edx + eax + 0x30], ecx
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x40]
push 0x40
shr ecx, 0x10
movzx ecx, cl
shr edx, 0x18
mov ecx, dword [ecx*4 + 0x873ca0]
xor ecx, dword [edx*4 + 0x873ca0]
mov edx, dword [ebp - 0x34]
shr edx, 8
movzx edx, dl
xor ecx, dword [edx*4 + 0x8730a0]
mov edx, dword [ebp - 0x40]
shr edx, 0x10
movzx edx, dl
xor ecx, dword [edx*4 + 0x8738a0]
movzx edx, byte [ebp - 0x34]
xor ecx, dword [edx*4 + 0x8734a0]
mov edx, dword [esi + 0x98]
mov dword [edx + eax + 0x34], ecx
pop ecx
add eax, ecx
cmp eax, 0x48
jbe 0x608b8c
pop edi
pop ebx
mov eax, dword [esi + 0x98]
add eax, ecx
add ecx, 4
and dword [eax], 0x1f
cmp ecx, 0x80
jb 0x6094af
pop esi
leave
ret 0xc