Function at 0x4ffb92
Capabilities:
Encode data using xor

Disassembly:
push ebp
lea ebp, [esp - 0x60]
sub esp, 0x90
mov eax, dword [ebp + 0x7c]
mov ecx, dword [ebp + 0x78]
add ecx, eax
cmp eax, ecx
push edi
mov edi, dword [ebp + 0x74]
mov dword [ebp + 0x24], eax
mov dword [ebp - 0x24], ecx
jae 0x50015e
push ebx
push esi
mov esi, edi
shl esi, 3
mov dword [ebp - 0x18], esi
mov esi, edi
imul esi, esi, 9
lea eax, [edi + edi]
sub esi, eax
mov dword [ebp - 0x30], esi
mov esi, edi
imul esi, esi, 7
sub esi, eax
mov dword [ebp - 0x20], esi
sub dword [ebp - 0x18], eax
lea esi, [ebp + 0x38]
sub esi, 4
mov dword [ebp - 0x2c], esi
mov esi, dword [ebp + 0x7c]
shl esi, 2
mov dword [ebp + 0x28], esi
mov esi, dword [ebp - 0x24]
mov edx, edi
imul edx, edx, 5
shl esi, 2
mov dword [ebp + 0x20], esi
mov esi, dword [ebp + 0x6c]
sub esi, edx
mov ebx, edi
shl ebx, 2
mov dword [ebp - 8], esi
mov dword [ebp - 4], ebx
sub dword [ebp - 4], eax
mov dword [ebp - 0x10], edx
mov edx, dword [ebp + 0x70]
sub dword [ebp - 0x10], eax
mov ecx, edi
imul ecx, ecx, 3
mov ebx, edi
mov esi, edi
imul ebx, ebx, 6
shl esi, 3
sub edx, esi
lea esi, [edx - 4]
add edx, 0xfffffffb
mov dword [ebp + 0x18], edx
sub ebx, eax
mov edx, edi
shl edx, 2
mov dword [ebp], edi
sub dword [ebp], eax
mov dword [ebp + 0x10], ecx
sub dword [ebp + 0x10], eax
sub eax, edx
add eax, dword [ebp + 0x70]
mov dword [ebp + 0x14], esi
mov esi, dword [ebp + 0x70]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0x6c]
sub esi, edx
sub eax, ecx
mov dword [ebp - 0x28], ebx
mov dword [ebp + 0x1c], esi
mov dword [ebp + 4], eax
jmp 0x4ffc67
mov esi, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x68]
mov eax, dword [eax + 0x140]
mov ecx, dword [ebp + 0x20]
mov eax, dword [ecx + eax]
mov eax, dword [eax*4 + 0x54ac58]
mov ecx, dword [ebp + 0xc]
mov dword [ebp + 8], eax
imul eax, eax, 3
sar eax, 2
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 8]
sub eax, dword [ebp + 0x1c]
mov dword [ebp + 0x2c], esi
mov esi, dword [ebp + 4]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], 8
jmp 0x4ffca7
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp + 0x2c]
movzx eax, byte [eax + edx]
mov dword [ebp + 0x38], eax
mov eax, dword [ebp]
movzx eax, byte [eax + esi]
mov dword [ebp + 0x3c], eax
movzx eax, byte [esi]
mov dword [ebp + 0x40], eax
mov eax, dword [ebp + 0x10]
movzx eax, byte [eax + esi]
mov dword [ebp + 0x44], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + esi]
mov dword [ebp + 0x48], eax
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax + esi]
and dword [ebp + 0x78], 0
mov dword [ebp + 0x4c], eax
movzx eax, byte [ebx + esi]
and dword [ebp + 0x30], 0
mov dword [ebp + 0x50], eax
mov eax, dword [ebp - 0x20]
movzx eax, byte [eax + esi]
mov dword [ebp + 0x54], eax
mov eax, dword [ebp - 0x18]
movzx eax, byte [eax + esi]
mov dword [ebp + 0x58], eax
mov eax, dword [ebp - 0x30]
movzx eax, byte [eax + esi]
mov dword [ebp + 0x5c], eax
mov dword [ebp + 0x34], 1
mov ebx, dword [ebp + 0x34]
mov edx, dword [ebp - 0x2c]
shl ebx, 2
mov eax, dword [ebp + ebx + 0x38]
sub eax, dword [edx + ebx]
cdq
xor eax, edx
sub eax, edx
add dword [ebp + 0x30], eax
mov eax, dword [ebp + ebx + 0x48]
sub eax, dword [ebp + ebx + 0x4c]
cdq
xor eax, edx
sub eax, edx
add dword [ebp + 0x78], eax
inc dword [ebp + 0x34]
cmp dword [ebp + 0x34], 4
jbe 0x4ffd13
mov eax, dword [ebp + 0x30]
mov edx, 0xff
cmp eax, edx
mov dword [ebp + 0x34], edx
jg 0x4ffd56
mov dword [ebp + 0x34], eax
mov eax, dword [ebp + 0x68]
mov eax, dword [eax + 0x13c]
mov ebx, dword [ebp + 0x28]
add eax, ebx
mov ebx, dword [ebp + 0x34]
add dword [eax], ebx
cmp dword [ebp + 0x78], edx
jg 0x4ffd71
mov edx, dword [ebp + 0x78]
mov eax, dword [ebp + 0x68]
mov eax, dword [eax + 0x13c]
mov ebx, dword [ebp + 0x20]
add eax, ebx
add dword [eax], edx
mov eax, dword [ebp - 0x1c]
cmp dword [ebp + 0x30], eax
jge 0x4ffea8
cmp dword [ebp + 0x78], eax
jge 0x4ffea8
mov eax, dword [ebp + 0x4c]
sub eax, dword [ebp + 0x48]
cmp eax, dword [ebp + 8]
jge 0x4ffea8
mov eax, dword [ebp + 0x48]
sub eax, dword [ebp + 0x4c]
cmp eax, dword [ebp + 8]
jge 0x4ffea8
mov eax, dword [ebp + 0x38]
mov edx, dword [ebp + 0x3c]
imul eax, eax, 3
add eax, dword [ebp + 0x48]
mov ebx, dword [ebp + 0x2c]
lea edx, [eax + edx*2 + 4]
add edx, dword [ebp + 0x44]
mov eax, dword [ebp + 0x40]
add edx, eax
sar edx, 3
mov byte [ebx], dl
mov edx, dword [ebp + 0x38]
add edx, eax
mov ebx, dword [ebp + 0x4c]
lea edx, [ebx + edx*2 + 4]
add edx, dword [ebp + 0x48]
mov ebx, dword [ebp]
add edx, dword [ebp + 0x44]
add edx, dword [ebp + 0x3c]
sar edx, 3
mov byte [ebx + ecx], dl
mov ebx, dword [ebp + 0x50]
mov edx, dword [ebp + 0x44]
lea edx, [ebx + edx*2 + 4]
add edx, dword [ebp + 0x4c]
mov ebx, dword [ebp + 0x54]
add edx, dword [ebp + 0x48]
add edx, eax
add edx, dword [ebp + 0x3c]
add edx, dword [ebp + 0x38]
sar edx, 3
mov byte [ecx], dl
mov edx, dword [ebp + 0x48]
lea edx, [ebx + edx*2 + 4]
add edx, dword [ebp + 0x50]
mov ebx, dword [ebp + 0x10]
add edx, dword [ebp + 0x4c]
add edx, dword [ebp + 0x44]
add edx, eax
add edx, dword [ebp + 0x3c]
sar edx, 3
mov byte [ebx + ecx], dl
mov ebx, dword [ebp + 0x58]
mov edx, dword [ebp + 0x4c]
lea edx, [ebx + edx*2 + 4]
add edx, dword [ebp + 0x54]
add edx, dword [ebp + 0x50]
add edx, dword [ebp + 0x48]
add edx, dword [ebp + 0x44]
add edx, eax
mov eax, dword [ebp - 4]
sar edx, 3
mov byte [eax + ecx], dl
mov eax, dword [ebp + 0x5c]
mov edx, dword [ebp + 0x50]
lea edx, [eax + edx*2 + 4]
add edx, ebx
add edx, dword [ebp + 0x54]
mov ebx, dword [ebp - 0x10]
add edx, dword [ebp + 0x4c]
add edx, dword [ebp + 0x48]
add edx, dword [ebp + 0x44]
sar edx, 3
mov byte [ebx + ecx], dl
mov edx, dword [ebp + 0x54]
mov ebx, dword [ebp + 0x58]
add edx, eax
imul eax, eax, 3
add eax, dword [ebp + 0x54]
lea edx, [ebx + edx*2 + 4]
add edx, dword [ebp + 0x50]
mov ebx, dword [ebp - 0x28]
add edx, dword [ebp + 0x4c]
add edx, dword [ebp + 0x48]
sar edx, 3
mov byte [ebx + ecx], dl
mov edx, dword [ebp + 0x58]
lea eax, [eax + edx*2 + 4]
add eax, dword [ebp + 0x50]
add eax, dword [ebp + 0x4c]
sar eax, 3
jmp 0x4ffee5
mov al, byte [ebp + 0x3c]
mov edx, dword [ebp + 0x2c]
mov byte [edx], al
mov al, byte [ebp + 0x40]
mov edx, dword [ebp]
mov ebx, dword [ebp - 0x28]
mov byte [edx + ecx], al
mov al, byte [ebp + 0x44]
mov dl, byte [ebp + 0x48]
mov byte [ecx], al
mov eax, dword [ebp + 0x10]
mov byte [eax + ecx], dl
mov eax, dword [ebp - 4]
mov dl, byte [ebp + 0x4c]
mov byte [eax + ecx], dl
mov al, byte [ebp + 0x50]
mov edx, dword [ebp - 0x10]
mov byte [edx + ecx], al
mov al, byte [ebp + 0x54]
mov byte [ebx + ecx], al
mov al, byte [ebp + 0x58]
inc dword [ebp + 0x2c]
mov edx, dword [ebp - 0x20]
inc esi
mov byte [edx + ecx], al
inc ecx
dec dword [ebp - 0xc]
jne 0x4ffca4
mov eax, dword [ebp + 0x24]
cmp eax, dword [ebp + 0x7c]
je 0x500130
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0x28]
mov ecx, dword [ebp + 0x18]
mov dword [ebp + 0x2c], eax
mov eax, dword [ebp + 0x68]
mov eax, dword [eax + 0x140]
mov eax, dword [edx + eax]
mov eax, dword [eax*4 + 0x54ac58]
mov dword [ebp + 8], eax
imul eax, eax, 3
sar eax, 2
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], 8
movzx eax, byte [ecx]
mov dword [ebp + 0x38], eax
movzx eax, byte [ecx + 1]
mov dword [ebp + 0x3c], eax
movzx eax, byte [ecx + 2]
mov dword [ebp + 0x40], eax
movzx eax, byte [ecx + 3]
mov dword [ebp + 0x44], eax
movzx eax, byte [ecx + 4]
and dword [ebp + 0x78], 0
and dword [ebp + 0x30], 0
mov dword [ebp + 0x48], eax
movzx eax, byte [ecx + 5]
mov dword [ebp + 0x4c], eax
movzx eax, byte [ecx + 6]
mov dword [ebp + 0x50], eax
movzx eax, byte [ecx + 7]
mov dword [ebp + 0x54], eax
movzx eax, byte [ecx + 8]
mov dword [ebp + 0x58], eax
movzx eax, byte [ecx + 9]
mov dword [ebp + 0x5c], eax
mov dword [ebp + 0x34], 1
mov esi, dword [ebp + 0x34]
mov edx, dword [ebp - 0x2c]
shl esi, 2
mov eax, dword [ebp + esi + 0x38]
sub eax, dword [edx + esi]
cdq
xor eax, edx
sub eax, edx
add dword [ebp + 0x30], eax
mov eax, dword [ebp + esi + 0x48]
sub eax, dword [ebp + esi + 0x4c]
cdq
xor eax, edx
sub eax, edx
add dword [ebp + 0x78], eax
inc dword [ebp + 0x34]
cmp dword [ebp + 0x34], 4
jbe 0x4fff8b
mov eax, dword [ebp + 0x30]
mov edx, 0xff
cmp eax, edx
mov dword [ebp - 0xc], edx
jg 0x4fffce
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x68]
mov eax, dword [eax + 0x13c]
mov esi, dword [ebp + 0x28]
lea eax, [eax + esi - 4]
mov esi, dword [ebp - 0xc]
add dword [eax], esi
cmp dword [ebp + 0x78], edx
jg 0x4fffeb
mov edx, dword [ebp + 0x78]
mov eax, dword [ebp + 0x68]
mov eax, dword [eax + 0x13c]
mov esi, dword [ebp + 0x28]
add eax, esi
add dword [eax], edx
mov eax, dword [ebp - 0x1c]
cmp dword [ebp + 0x30], eax
jge 0x50011d
cmp dword [ebp + 0x78], eax
jge 0x50011d
mov eax, dword [ebp + 0x4c]
sub eax, dword [ebp + 0x48]
cmp eax, dword [ebp + 8]
jge 0x50011d
mov eax, dword [ebp + 0x48]
sub eax, dword [ebp + 0x4c]
cmp eax, dword [ebp + 8]
jge 0x50011d
mov eax, dword [ebp + 0x38]
mov edx, eax
mov esi, dword [ebp + 0x3c]
imul edx, edx, 3
add edx, dword [ebp + 0x48]
lea edx, [edx + esi*2 + 4]
add edx, dword [ebp + 0x44]
mov esi, dword [ebp + 0x2c]
add edx, dword [ebp + 0x40]
sar edx, 3
mov byte [esi], dl
mov edx, dword [ebp + 0x40]
add edx, eax
mov eax, dword [ebp + 0x4c]
lea eax, [eax + edx*2 + 4]
add eax, dword [ebp + 0x48]
mov edx, dword [ebp + 0x50]
add eax, dword [ebp + 0x44]
add eax, dword [ebp + 0x3c]
sar eax, 3
mov byte [esi + 1], al
mov eax, dword [ebp + 0x44]
lea eax, [edx + eax*2 + 4]
add eax, dword [ebp + 0x4c]
mov edx, dword [ebp + 0x54]
add eax, dword [ebp + 0x48]
add eax, dword [ebp + 0x40]
add eax, dword [ebp + 0x3c]
add eax, dword [ebp + 0x38]
sar eax, 3
mov byte [esi + 2], al
mov eax, dword [ebp + 0x48]
lea eax, [edx + eax*2 + 4]
add eax, dword [ebp + 0x50]
mov edx, dword [ebp + 0x58]
add eax, dword [ebp + 0x4c]
add eax, dword [ebp + 0x44]
add eax, dword [ebp + 0x40]
add eax, dword [ebp + 0x3c]
sar eax, 3
mov byte [esi + 3], al
mov eax, dword [ebp + 0x4c]
lea eax, [edx + eax*2 + 4]
add eax, dword [ebp + 0x54]
mov edx, dword [ebp + 0x5c]
add eax, dword [ebp + 0x50]
add eax, dword [ebp + 0x48]
add eax, dword [ebp + 0x44]
add eax, dword [ebp + 0x40]
sar eax, 3
mov byte [esi + 4], al
mov eax, dword [ebp + 0x50]
lea eax, [edx + eax*2 + 4]
add eax, dword [ebp + 0x58]
add eax, dword [ebp + 0x54]
add eax, dword [ebp + 0x4c]
add eax, dword [ebp + 0x48]
add eax, dword [ebp + 0x44]
sar eax, 3
mov byte [esi + 5], al
mov eax, edx
mov edx, dword [ebp + 0x54]
add eax, edx
mov edx, dword [ebp + 0x58]
lea eax, [edx + eax*2 + 4]
add eax, dword [ebp + 0x50]
add eax, dword [ebp + 0x4c]
add eax, dword [ebp + 0x48]
sar eax, 3
mov byte [esi + 6], al
mov eax, dword [ebp + 0x5c]
imul eax, eax, 3
add eax, dword [ebp + 0x54]
lea eax, [eax + edx*2 + 4]
add eax, dword [ebp + 0x50]
add eax, dword [ebp + 0x4c]
sar eax, 3
mov byte [esi + 7], al
jmp 0x500120
mov esi, dword [ebp + 0x2c]
add esi, edi
add ecx, edi
dec dword [ebp - 0x14]
mov dword [ebp + 0x2c], esi
jne 0x4fff37
inc dword [ebp + 0x24]
add dword [ebp + 0x28], 4
add dword [ebp + 0x20], 4
push 8
pop eax
add dword [ebp - 8], eax
add dword [ebp + 0x18], eax
add dword [ebp + 0x14], eax
add dword [ebp + 0x1c], eax
add dword [ebp + 0xc], eax
add dword [ebp + 4], eax
mov eax, dword [ebp + 0x24]
cmp eax, dword [ebp - 0x24]
jb 0x4ffc64
pop esi
pop ebx
pop edi
add ebp, 0x60
leave
ret