Function at 0x4511e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov edx, dword [ebp + 8]
mov eax, ecx
push esi
mov esi, dword [ebp + 0xc]
sub esi, edx
mov dword [ebp - 0x18], eax
sar esi, 2
test esi, esi
je 0x4513b2
push ebx
mov ebx, dword [eax + 4]
sub ebx, dword [eax]
sar ebx, 2
mov dword [ebp - 0x24], ebx
cmp esi, 0x26f
jb 0x45121a
mov eax, 0xb
jmp 0x451243
cmp esi, 0x44
jb 0x451226
mov eax, 7
jmp 0x451243
cmp esi, 0x27
jb 0x451232
mov eax, 5
jmp 0x451243
cmp esi, 7
jb 0x45123e
mov eax, 3
jmp 0x451243
lea eax, [esi - 1]
shr eax, 1
mov ecx, esi
sub ecx, eax
shr ecx, 1
add eax, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], eax
cmp esi, ebx
ja 0x45125d
lea eax, [ebx + 1]
mov dword [ebp + 0xc], eax
jmp 0x451260
mov dword [ebp + 0xc], esi
push edi
mov eax, 0x8b8b8b8b
mov ecx, esi
mov edi, edx
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
test eax, eax
je 0x451321
nop dword [eax]
mov eax, dword [ebp - 0x10]
xor edx, edx
add eax, edi
mov ecx, dword [ebp + 8]
div esi
mov eax, dword [ecx + edx*4]
mov dword [ebp - 8], eax
mov eax, edi
lea edx, [ecx + edx*4]
mov dword [ebp - 0x20], edx
xor edx, edx
div esi
mov eax, edx
xor edx, edx
mov dword [ebp - 4], eax
lea eax, [ecx + eax*4]
mov dword [ebp - 0xc], eax
lea eax, [edi - 1]
div esi
mov eax, dword [ebp - 0xc]
mov ecx, dword [ecx + edx*4]
xor ecx, dword [ebp - 8]
xor ecx, dword [eax]
mov eax, ecx
shr eax, 0x1b
xor eax, ecx
imul ecx, eax, 0x19660d
mov dword [ebp - 0x1c], ecx
test edi, edi
jne 0x4512d3
mov eax, ebx
jmp 0x4512ee
cmp edi, ebx
ja 0x4512eb
xor edx, edx
lea eax, [edi - 1]
div ebx
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov eax, dword [eax + edx*4]
add eax, dword [ebp - 4]
jmp 0x4512ee
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x20]
add ecx, eax
mov eax, dword [ebp - 0x1c]
add eax, dword [ebp - 8]
mov ebx, dword [ebp + 8]
mov dword [edx], eax
xor edx, edx
mov eax, dword [ebp - 0x14]
add eax, edi
inc edi
div esi
add dword [ebx + edx*4], ecx
lea eax, [ebx + edx*4]
mov eax, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x24]
mov dword [eax], ecx
mov eax, dword [ebp + 0xc]
cmp edi, eax
jb 0x451280
add eax, esi
mov dword [ebp - 0x18], eax
cmp edi, eax
jae 0x4513b0
mov edx, dword [ebp - 0x10]
lea ecx, [edi - 1]
mov eax, dword [ebp - 0x14]
inc edx
mov ebx, dword [ebp + 8]
inc eax
mov dword [ebp + 0xc], ecx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x20], eax
lea eax, [edx + ecx]
xor edx, edx
div esi
lea eax, [ebx + edx*4]
xor edx, edx
mov ebx, dword [eax]
mov dword [ebp - 0x24], eax
lea eax, [ecx + 1]
mov dword [ebp - 0x1c], eax
div esi
mov eax, ecx
mov edi, edx
xor edx, edx
div esi
mov eax, dword [ebp + 8]
mov ecx, dword [eax + edx*4]
xor edx, edx
add ecx, dword [eax + edi*4]
add ecx, ebx
mov eax, ecx
shr eax, 0x1b
xor eax, ecx
imul eax, eax, 0x5d588b65
xor ebx, eax
mov ecx, eax
mov eax, dword [ebp - 0x24]
sub ecx, edi
mov dword [eax], ebx
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 0x20]
div esi
mov ebx, dword [ebp + 8]
xor dword [ebx + edx*4], ecx
lea eax, [ebx + edx*4]
mov edx, dword [ebp - 0x10]
mov dword [ebx + edi*4], ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp + 0xc], ecx
lea eax, [ecx + 1]
cmp eax, dword [ebp - 0x18]
jb 0x451345
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 8