Function at 0x4b87a0
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.0052f903
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.00531c60
mov ecx, dword [esi + 0x14]
add esp, 0x10
xor edi, edi
xor edx, edx
test ecx, ecx
je 0x4b8820
lea esp, [esp]
mov eax, dword [esi + 0x18]
cmp byte [eax + edx], 0
je 0x4b8807
lea esp, [esp]
inc edx
cmp byte [eax + edx], 0
jne 0x4b8800
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 0x4b87f0
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 0x4b8a3b
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 0x4b88a2
mov edi, ebp
mov ecx, edx
cmp ebx, ebp
jae 0x4b889e
mov eax, dword [esp + 0x1c]
xor edx, edx
mov ecx, eax
test eax, eax
je 0x4b888c
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 0x4b8870
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 0x4b8851
mov dword [esp + 0x18], ebx
cmp ebx, edi
je 0x4b8a37
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 0x4b88dd
mov dword [esp + 0x1c], edx
jmp 0x4b88f5
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 0x4b8942
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 0x4b8903
mov ebx, dword [esp + 0x18]
mov ecx, dword [esi + 0x14]
xor ebp, ebp
mov dword [esp + 0x28], ebp
test ecx, ecx
je 0x4b8a19
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
jmp 0x4b8960
cmp ebp, eax
je 0x4b8a05
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 0x4b8a01
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 0x4b89b6
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 0x4b8960
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 0x4b8844
mov ebp, dword [esp + 0x14]
imul edi, ecx
xor edx, edx
pop ebx
test edi, edi
je 0x4b8a5b
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 0x4b8a45
push ebp
call fcn.0052f90c
add esp, 4
pop edi
pop esi
pop ebp
add esp, 0x30
ret