Function at 0x452430
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x30
push ebp
push esi
mov esi, ecx
mov edx, 4
xor ecx, ecx
push edi
mov eax, dword [esi + 0xc]
imul eax, dword [esi + 0x14]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004669e3
mov ecx, dword [esi + 0xc]
mov ebp, eax
imul ecx, dword [esi + 0x14]
mov dword [esp + 0x14], ebp
shl ecx, 2
push ecx
push 0
push ebp
call fcn.00468da0
mov ecx, dword [esi + 0x14]
add esp, 0x10
xor edi, edi
xor edx, edx
test ecx, ecx
je 0x4524b0
lea esp, [esp]
mov eax, dword [esi + 0x18]
cmp byte [eax + edx], 0
je 0x452497
lea esp, [esp]
inc edx
cmp byte [eax + edx], 0
jne 0x452490
mov eax, dword [esi + 0xc]
imul eax, edi
inc edi
add eax, edx
inc edx
mov dword [ebp + eax*4], 1
mov ecx, dword [esi + 0x14]
cmp edi, ecx
jb 0x452480
mov edi, dword [esi + 0xc]
mov eax, esi
push ebx
xor ebx, ebx
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], ebx
test edi, edi
je 0x4526cb
mov edx, ecx
mov ebp, edi
mov dword [esp + 0x1c], edx
mov eax, dword [eax + 0x18]
mov edi, ebp
mov ecx, edx
cmp byte [ebx + eax], 0
je 0x452532
mov edi, ebp
mov ecx, edx
cmp ebx, ebp
jae 0x45252e
mov eax, dword [esp + 0x1c]
xor edx, edx
mov ecx, eax
test eax, eax
je 0x45251c
mov edi, dword [esp + 0x14]
lea esp, [esp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x1c]
imul ecx, edx
inc edx
add ecx, ebx
mov eax, dword [eax + ecx*4]
xor dword [edi + ecx*4], eax
mov ecx, dword [esi + 0x14]
cmp edx, ecx
jb 0x452500
mov edi, dword [esi + 0xc]
mov eax, dword [esi + 0x18]
inc ebx
mov edx, ecx
mov ebp, edi
mov dword [esp + 0x1c], edx
cmp byte [ebx + eax], 0
jne 0x4524e1
mov dword [esp + 0x18], ebx
cmp ebx, edi
je 0x4526c7
mov edx, dword [esi + 0x1c]
lea ecx, [ebx*4]
mov eax, edi
mov dword [esp + 0x2c], ecx
imul eax, dword [esp + 0x10]
shl eax, 2
add edx, eax
add eax, dword [esp + 0x14]
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], eax
mov edx, dword [ecx + edx]
test edx, edx
jne 0x45256d
mov dword [esp + 0x1c], edx
jmp 0x452585
mov eax, dword [esi + 4]
mov ecx, 0xffff
sub ecx, dword [eax + edx*4]
mov eax, dword [esi]
mov eax, dword [eax + ecx*4]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x24]
xor ebp, ebp
test edi, edi
je 0x4525d2
mov ebx, dword [esp + 0x20]
mov edi, eax
sub ebx, eax
mov ecx, dword [esi + 4]
lea edi, [edi + 4]
mov eax, dword [ebx + edi - 4]
inc ebp
mov edx, dword [ecx + eax*4]
mov eax, dword [esp + 0x1c]
add edx, dword [ecx + eax*4]
mov eax, dword [esi]
mov eax, dword [eax + edx*4]
mov dword [ebx + edi - 4], eax
mov eax, dword [edi - 4]
mov ecx, dword [esi + 4]
mov edx, dword [ecx + eax*4]
mov eax, dword [esp + 0x1c]
add edx, dword [ecx + eax*4]
mov eax, dword [esi]
mov eax, dword [eax + edx*4]
mov dword [edi - 4], eax
cmp ebp, dword [esi + 0xc]
jb 0x452593
mov ebx, dword [esp + 0x18]
mov ecx, dword [esi + 0x14]
xor ebp, ebp
mov dword [esp + 0x28], ebp
test ecx, ecx
je 0x4526a9
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
jmp 0x4525f0
cmp ebp, eax
je 0x452695
mov edx, dword [esi + 0xc]
mov ecx, edx
mov edi, dword [esi + 0x1c]
imul ecx, ebp
mov dword [esp + 0x34], 0
shl ecx, 2
add edi, ecx
lea eax, [ecx + ebx]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + edi]
mov dword [esp + 0x1c], eax
test edx, edx
je 0x452691
mov edx, dword [esp + 0x20]
mov eax, edi
mov ebp, dword [esp + 0x30]
neg eax
mov ebx, dword [esp + 0x34]
add edx, eax
add eax, dword [esp + 0x24]
sub ebp, edi
mov dword [esp + 0x3c], edx
mov dword [esp + 0x38], eax
mov eax, dword [edx + edi]
lea edi, [edi + 4]
mov ecx, dword [esi + 4]
inc ebx
mov edx, dword [ecx + eax*4]
mov eax, dword [esp + 0x1c]
add edx, dword [ecx + eax*4]
mov eax, dword [esi]
mov eax, dword [eax + edx*4]
xor dword [edi - 4], eax
mov eax, dword [esp + 0x38]
mov edx, dword [esi + 4]
mov eax, dword [eax + edi - 4]
mov ecx, dword [edx + eax*4]
mov eax, dword [esp + 0x1c]
add ecx, dword [edx + eax*4]
mov eax, dword [esi]
mov edx, dword [esp + 0x3c]
mov eax, dword [eax + ecx*4]
xor dword [edi + ebp - 4], eax
cmp ebx, dword [esi + 0xc]
jb 0x452646
mov ebp, dword [esp + 0x28]
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0x14]
inc ebp
mov dword [esp + 0x28], ebp
cmp ebp, ecx
jb 0x4525f0
mov ebx, dword [esp + 0x18]
mov edi, dword [esi + 0xc]
inc ebx
inc dword [esp + 0x10]
mov ebp, edi
mov dword [esp + 0x18], ebx
mov edx, ecx
mov dword [esp + 0x1c], ecx
mov eax, esi
cmp ebx, edi
jb 0x4524d4
mov ebp, dword [esp + 0x14]
imul edi, ecx
xor edx, edx
pop ebx
test edi, edi
je 0x4526eb
mov ecx, dword [esi + 0x1c]
mov eax, dword [ebp + edx*4]
mov dword [ecx + edx*4], eax
inc edx
mov eax, dword [esi + 0xc]
imul eax, dword [esi + 0x14]
cmp edx, eax
jb 0x4526d5
push ebp
call fcn.004669ec
add esp, 4
pop edi
pop esi
pop ebp
add esp, 0x30
ret