Function at 0x4a01a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcc
push ebx
push esi
push edi
mov ecx, dword [ebp + 0x18]
mov esi, dword [ebp + 0x10]
movzx eax, byte [ecx]
mov dword [ebp - 0x88], eax
movzx eax, byte [ecx + 1]
mov dword [ebp - 0x84], eax
movzx eax, byte [ecx + 2]
mov dword [ebp - 0x80], eax
movzx eax, byte [ecx + 3]
and eax, 0xf
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x7c], eax
movzx eax, byte [ecx + 4]
and eax, 0xfc
mov dword [ebp - 0x78], eax
movzx eax, byte [ecx + 5]
mov dword [ebp - 0x74], eax
movzx eax, byte [ecx + 6]
mov dword [ebp - 0x70], eax
movzx eax, byte [ecx + 7]
and eax, 0xf
mov dword [ebp - 0x6c], eax
movzx eax, byte [ecx + 8]
and eax, 0xfc
mov dword [ebp - 0x68], eax
movzx eax, byte [ecx + 9]
mov dword [ebp - 0x64], eax
movzx eax, byte [ecx + 0xa]
mov dword [ebp - 0x60], eax
movzx eax, byte [ecx + 0xb]
and eax, 0xf
mov dword [ebp - 0x5c], eax
movzx eax, byte [ecx + 0xc]
and eax, 0xfc
mov dword [ebp - 0x58], eax
movzx eax, byte [ecx + 0xd]
mov dword [ebp - 0x54], eax
movzx eax, byte [ecx + 0xe]
mov dword [ebp - 0x50], eax
movzx eax, byte [ecx + 0xf]
and eax, 0xf
mov dword [ebp - 0x4c], eax
xor eax, eax
mov edi, dword [ebp + 0x14]
mov ecx, eax
mov dword [ebp - 0x44], eax
mov edx, eax
mov dword [ebp - 0x40], ecx
mov ebx, eax
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
test edi, edi
jne 0x4a0293
test esi, esi
je 0x4a0390
mov ebx, dword [ebp + 0xc]
jmp 0x4a02a0
xor eax, eax
mov dword [ebp - 0xcc], eax
mov dword [ebp - 0xc8], eax
mov dword [ebp - 0xc4], eax
mov dword [ebp - 0xc0], eax
mov dword [ebp - 0xbc], eax
mov dword [ebp - 0xb8], eax
mov dword [ebp - 0xb4], eax
mov dword [ebp - 0xb0], eax
mov dword [ebp - 0xac], eax
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x8c], eax
xor ecx, ecx
cmp ecx, edi
ja 0x4a0325
jb 0x4a0314
cmp eax, esi
jae 0x4a0325
movzx ecx, byte [eax + ebx]
mov dword [ebp + eax*4 - 0xcc], ecx
inc eax
cmp eax, 0x10
jb 0x4a0308
add ebx, eax
mov dword [ebp + eax*4 - 0xcc], 1
sub esi, eax
sbb edi, 0
xor ecx, ecx
xor edx, edx
jmp 0x4a0340
mov eax, dword [ebp + edx - 0xcc]
add eax, dword [ebp + edx - 0x44]
add ecx, eax
movzx eax, cl
mov dword [ebp + edx - 0x44], eax
add edx, 4
shr ecx, 8
cmp edx, 0x44
jb 0x4a0340
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.0049ffe0
add esp, 8
test edi, edi
ja 0x4a02a0
jb 0x4a0384
test esi, esi
jne 0x4a02a0
mov ebx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x84], ecx
xor ecx, ecx
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x80], edx
xor edx, edx
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x48], eax
mov eax, dword [edx + 0x4fcb90]
add eax, dword [ebp + edx - 0x44]
add ecx, eax
movzx eax, cl
mov dword [ebp + edx - 0x44], eax
add edx, 4
shr ecx, 8
cmp edx, 0x44
jb 0x4a03f4
mov esi, dword [ebp - 4]
shr esi, 7
neg esi
xor edx, edx
lea esp, [esp]
mov eax, dword [ebp + edx - 0x44]
mov ecx, dword [ebp + edx - 0x88]
xor ecx, eax
and ecx, esi
xor ecx, eax
mov dword [ebp + edx - 0x44], ecx
add edx, 4
cmp edx, 0x44
jb 0x4a0420
mov edx, dword [ebp + 0x18]
xor ecx, ecx
pop edi
pop esi
pop ebx
jmp 0x4a0450
movzx eax, byte [edx + ecx + 0x10]
mov dword [ebp + ecx*4 - 0xcc], eax
inc ecx
cmp ecx, 0x10
jb 0x4a0450
xor ecx, ecx
mov dword [ebp - 0x8c], 0
xor edx, edx
mov eax, dword [ebp + edx - 0xcc]
add eax, dword [ebp + edx - 0x44]
add ecx, eax
movzx eax, cl
mov dword [ebp + edx - 0x44], eax
add edx, 4
shr ecx, 8
cmp edx, 0x44
jb 0x4a0470
mov edx, dword [ebp + 8]
xor ecx, ecx
mov al, byte [ebp + ecx*4 - 0x44]
mov byte [ecx + edx], al
inc ecx
cmp ecx, 0x10
jb 0x4a0494
xor eax, eax
mov esp, ebp
pop ebp
ret