Function at 0x4ff923
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x18]
lea esi, [esi + eax - 1]
cmp eax, esi
mov dword [ebp + 0x1c], eax
mov dword [ebp - 0x28], esi
jae 0x4ffb8f
mov dword [ebp - 0xc], edx
sub dword [ebp - 0xc], ecx
lea eax, [ebp - 0x50]
sub eax, 4
add edx, 3
add ecx, 6
push ebx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], ecx
push edi
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x140]
mov edx, dword [ebp + 0x1c]
mov eax, dword [eax + edx*4 + 4]
mov eax, dword [eax*4 + 0x54ac58]
mov ecx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
imul eax, eax, 3
sar eax, 2
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], 8
movzx eax, byte [ecx]
mov dword [ebp - 0x50], eax
movzx eax, byte [ecx + 1]
mov dword [ebp - 0x4c], eax
movzx eax, byte [ecx + 2]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax + esi]
movzx edi, byte [ecx + 9]
and dword [ebp + 0x18], 0
and dword [ebp - 8], 0
mov dword [ebp - 0x44], eax
movzx eax, byte [ecx + 4]
mov dword [ebp - 0x40], eax
movzx eax, byte [ecx + 5]
mov dword [ebp - 0x3c], eax
movzx eax, byte [ecx + 6]
mov dword [ebp - 0x38], eax
movzx eax, byte [ecx + 7]
mov dword [ebp - 0x34], eax
movzx eax, byte [ecx + 8]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edi
mov dword [ebp - 4], 1
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 0x20]
shl ebx, 2
mov eax, dword [ebp + ebx - 0x50]
sub eax, dword [edx + ebx]
cdq
xor eax, edx
sub eax, edx
add dword [ebp - 8], eax
mov eax, dword [ebp + ebx - 0x40]
sub eax, dword [ebp + ebx - 0x3c]
cdq
xor eax, edx
sub eax, edx
add dword [ebp + 0x18], eax
inc dword [ebp - 4]
cmp dword [ebp - 4], 4
jbe 0x4ff9ec
mov eax, dword [ebp - 8]
mov edx, 0xff
cmp eax, edx
mov dword [ebp - 4], edx
jg 0x4ffa2f
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x13c]
mov ebx, dword [ebp + 0x1c]
lea eax, [eax + ebx*4]
mov ebx, dword [ebp - 4]
add dword [eax], ebx
cmp dword [ebp + 0x18], edx
jg 0x4ffa4b
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x13c]
mov ebx, dword [ebp + 0x1c]
lea eax, [eax + ebx*4 + 4]
add dword [eax], edx
mov eax, dword [ebp - 0x24]
cmp dword [ebp - 8], eax
jge 0x4ffb67
cmp dword [ebp + 0x18], eax
jge 0x4ffb67
mov eax, dword [ebp - 0x3c]
mov edx, eax
sub edx, dword [ebp - 0x40]
cmp edx, dword [ebp - 0x18]
jge 0x4ffb67
mov edx, dword [ebp - 0x40]
sub edx, eax
cmp edx, dword [ebp - 0x18]
jge 0x4ffb67
mov edx, dword [ebp - 0x50]
imul edx, edx, 3
add edx, dword [ebp - 0x40]
mov ebx, dword [ebp - 0x4c]
lea ebx, [edx + ebx*2 + 4]
add ebx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x48]
add ebx, edx
sar ebx, 3
mov byte [esi - 2], bl
mov ebx, dword [ebp - 0x50]
add edx, ebx
lea edx, [eax + edx*2 + 4]
add edx, dword [ebp - 0x40]
mov ebx, dword [ebp - 0x38]
add edx, dword [ebp - 0x44]
add edx, dword [ebp - 0x4c]
sar edx, 3
mov byte [esi - 1], dl
mov edx, dword [ebp - 0x44]
lea edx, [ebx + edx*2 + 4]
add edx, eax
add edx, dword [ebp - 0x40]
mov ebx, dword [ebp - 0x34]
add edx, dword [ebp - 0x48]
add edx, dword [ebp - 0x4c]
add edx, dword [ebp - 0x50]
sar edx, 3
mov byte [esi], dl
mov edx, dword [ebp - 0x40]
lea edx, [ebx + edx*2 + 4]
add edx, dword [ebp - 0x38]
add edx, eax
add edx, dword [ebp - 0x44]
add edx, dword [ebp - 0x48]
add edx, dword [ebp - 0x4c]
sar edx, 3
mov byte [esi + 1], dl
mov edx, dword [ebp - 0x30]
lea edx, [edx + eax*2 + 4]
add edx, ebx
add edx, dword [ebp - 0x38]
add edx, dword [ebp - 0x40]
add edx, dword [ebp - 0x44]
add edx, dword [ebp - 0x48]
sar edx, 3
mov byte [esi + 2], dl
mov edx, dword [ebp - 0x38]
lea edx, [edi + edx*2 + 4]
add edx, dword [ebp - 0x30]
add edx, ebx
add edx, eax
add edx, dword [ebp - 0x40]
add edx, dword [ebp - 0x44]
sar edx, 3
mov byte [esi + 3], dl
mov edx, ebx
mov ebx, dword [ebp - 0x30]
add edx, edi
imul edi, edi, 3
add edi, dword [ebp - 0x34]
lea edx, [ebx + edx*2 + 4]
add edx, dword [ebp - 0x38]
add edx, eax
add edx, dword [ebp - 0x40]
sar edx, 3
mov byte [esi + 4], dl
mov edx, ebx
lea edx, [edi + edx*2 + 4]
add edx, dword [ebp - 0x38]
add edx, eax
sar edx, 3
mov byte [esi + 5], dl
add ecx, dword [ebp + 0x14]
add esi, dword [ebp + 0x14]
dec dword [ebp - 0x1c]
jne 0x4ff995
inc dword [ebp + 0x1c]
mov eax, dword [ebp + 0x1c]
add dword [ebp - 0x10], 8
add dword [ebp - 0x14], 8
cmp eax, dword [ebp - 0x28]
jb 0x4ff965
pop edi
pop ebx
pop esi
leave
ret