Function at 0x4650d0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x20
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0xc]
imul eax, dword [esi + 0x14]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004e68bd
mov ebx, eax
mov eax, dword [esi + 0xc]
imul eax, dword [esi + 0x14]
add eax, eax
add eax, eax
push eax
push 0
push ebx
mov dword [esp + 0x2c], ebx
call fcn.004e7df0
xor eax, eax
add esp, 0x10
xor edx, edx
cmp dword [esi + 0x14], eax
jbe 0x46514d
lea ebx, [ebx]
mov ecx, dword [esi + 0x18]
cmp byte [ecx + eax], 0
je 0x465137
lea esp, [esp]
inc eax
cmp byte [ecx + eax], 0
jne 0x465130
mov ecx, dword [esi + 0xc]
imul ecx, edx
add ecx, eax
inc edx
mov dword [ebx + ecx*4], 1
inc eax
cmp edx, dword [esi + 0x14]
jb 0x465120
xor edx, edx
mov dword [esp + 8], 0
mov dword [esp + 0xc], edx
cmp dword [esi + 0xc], edx
jbe 0x4652fb
push ebp
push edi
mov eax, dword [esi + 0x18]
cmp byte [edx + eax], 0
je 0x4651ab
mov eax, dword [esi + 0x14]
cmp edx, dword [esi + 0xc]
jae 0x4651a7
xor ecx, ecx
test eax, eax
jbe 0x46519d
lea ecx, [ecx]
mov eax, dword [esi + 0xc]
mov edi, dword [esi + 0x1c]
imul eax, ecx
add eax, edx
add eax, eax
add eax, eax
mov edi, dword [eax + edi]
xor dword [eax + ebx], edi
mov eax, dword [esi + 0x14]
inc ecx
cmp ecx, eax
jb 0x465180
mov ecx, dword [esi + 0x18]
inc edx
cmp byte [edx + ecx], 0
jne 0x465172
mov dword [esp + 0x14], edx
cmp edx, dword [esi + 0xc]
je 0x4652f9
mov eax, dword [esi + 0xc]
imul eax, dword [esp + 0x10]
mov ecx, dword [esi + 0x1c]
add eax, eax
add eax, eax
add ecx, eax
mov edi, dword [ecx + edx*4]
add eax, ebx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x20], eax
test edi, edi
je 0x4651ea
mov eax, dword [esi + 4]
mov ebp, 0xffff
sub ebp, dword [eax + edi*4]
mov eax, dword [esi]
mov edi, dword [eax + ebp*4]
mov eax, dword [esp + 0x20]
cmp dword [esi + 0xc], 0
mov dword [esp + 0x1c], 0
jbe 0x465241
mov ebp, ecx
sub ebp, eax
mov dword [esp + 0x18], ebp
jmp 0x465206
mov ebp, dword [esp + 0x18]
mov ebp, dword [eax + ebp]
mov ecx, dword [esi + 4]
mov ebp, dword [ecx + ebp*4]
add ebp, dword [ecx + edi*4]
mov ecx, dword [esi]
mov ecx, dword [ecx + ebp*4]
mov ebp, dword [esp + 0x18]
mov dword [eax + ebp], ecx
mov ecx, dword [esi + 4]
mov ebp, dword [eax]
mov ebp, dword [ecx + ebp*4]
add ebp, dword [ecx + edi*4]
mov ecx, dword [esi]
mov ecx, dword [ecx + ebp*4]
mov dword [eax], ecx
mov ecx, dword [esp + 0x1c]
inc ecx
add eax, 4
mov dword [esp + 0x1c], ecx
cmp ecx, dword [esi + 0xc]
jb 0x465202
xor eax, eax
mov dword [esp + 0x18], eax
cmp dword [esi + 0x14], eax
jbe 0x4652e7
mov edi, dword [esi + 0xc]
cmp eax, dword [esp + 0x10]
je 0x4652d9
mov ecx, dword [esi + 0xc]
imul ecx, eax
mov eax, dword [esi + 0x1c]
add ecx, ecx
add ecx, ecx
add eax, ecx
mov ebp, dword [eax + edx*4]
add ecx, ebx
xor ebx, ebx
test edi, edi
jbe 0x4652d1
mov edx, dword [esp + 0x28]
mov edi, eax
neg edi
add edx, edi
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x20]
add edi, edx
mov edx, ecx
mov dword [esp + 0x2c], edi
sub edx, eax
mov ecx, dword [esi + 4]
mov edi, dword [esp + 0x1c]
mov edi, dword [edi + eax]
mov edi, dword [ecx + edi*4]
add edi, dword [ecx + ebp*4]
mov ecx, dword [esi]
mov ecx, dword [ecx + edi*4]
xor dword [eax], ecx
mov ecx, dword [esi + 4]
mov edi, dword [esp + 0x2c]
mov edi, dword [edi + eax]
mov edi, dword [ecx + edi*4]
add edi, dword [ecx + ebp*4]
mov ecx, dword [esi]
mov ecx, dword [ecx + edi*4]
xor dword [edx + eax], ecx
mov edi, dword [esi + 0xc]
inc ebx
add eax, 4
cmp ebx, edi
jb 0x465293
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x24]
inc eax
mov dword [esp + 0x18], eax
cmp eax, dword [esi + 0x14]
jb 0x465253
inc dword [esp + 0x10]
inc edx
mov dword [esp + 0x14], edx
cmp edx, dword [esi + 0xc]
jb 0x465166
pop edi
pop ebp
mov edx, dword [esi + 0xc]
imul edx, dword [esi + 0x14]
xor eax, eax
test edx, edx
jbe 0x465325
jmp 0x465310
mov ecx, dword [esi + 0x1c]
mov edx, dword [ebx + eax*4]
mov dword [ecx + eax*4], edx
mov ecx, dword [esi + 0xc]
imul ecx, dword [esi + 0x14]
inc eax
cmp eax, ecx
jb 0x465310
push ebx
call fcn.004e6904
add esp, 4
pop esi
pop ebx
add esp, 0x20
ret