Function at 0x465110
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.004e687d
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.004e7970
xor eax, eax
add esp, 0x10
xor edx, edx
cmp dword [esi + 0x14], eax
jbe 0x46518d
lea ebx, [ebx]
mov ecx, dword [esi + 0x18]
cmp byte [ecx + eax], 0
je 0x465177
lea esp, [esp]
inc eax
cmp byte [ecx + eax], 0
jne 0x465170
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 0x465160
xor edx, edx
mov dword [esp + 8], 0
mov dword [esp + 0xc], edx
cmp dword [esi + 0xc], edx
jbe 0x46533b
push ebp
push edi
mov eax, dword [esi + 0x18]
cmp byte [edx + eax], 0
je 0x4651eb
mov eax, dword [esi + 0x14]
cmp edx, dword [esi + 0xc]
jae 0x4651e7
xor ecx, ecx
test eax, eax
jbe 0x4651dd
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 0x4651c0
mov ecx, dword [esi + 0x18]
inc edx
cmp byte [edx + ecx], 0
jne 0x4651b2
mov dword [esp + 0x14], edx
cmp edx, dword [esi + 0xc]
je 0x465339
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 0x46522a
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 0x465281
mov ebp, ecx
sub ebp, eax
mov dword [esp + 0x18], ebp
jmp 0x465246
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 0x465242
xor eax, eax
mov dword [esp + 0x18], eax
cmp dword [esi + 0x14], eax
jbe 0x465327
mov edi, dword [esi + 0xc]
cmp eax, dword [esp + 0x10]
je 0x465319
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 0x465311
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 0x4652d3
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 0x465293
inc dword [esp + 0x10]
inc edx
mov dword [esp + 0x14], edx
cmp edx, dword [esi + 0xc]
jb 0x4651a6
pop edi
pop ebp
mov edx, dword [esi + 0xc]
imul edx, dword [esi + 0x14]
xor eax, eax
test edx, edx
jbe 0x465365
jmp 0x465350
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 0x465350
push ebx
call fcn.004e7a24
add esp, 4
pop esi
pop ebx
add esp, 0x20
ret