Function at 0x4ca6a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x55e2f4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x240], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x23c], eax
mov eax, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x224], esi
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x22c], eax
mov dword [ebp - 0x228], ecx
mov ecx, dword [ebp + 0xc]
mov eax, ecx
and eax, 0xf
or eax, 0
je 0x4ca6f7
mov byte [0], 0
mov edx, dword [ebp + 0x10]
shrd ecx, edx, 4
shr edx, 4
mov dword [ebp - 0x234], ecx
mov dword [ebp - 0x238], edx
test edx, edx
jne 0x4ca719
test ecx, ecx
je 0x4ca90c
mov eax, dword [ebp + 0x18]
push ebx
push edi
nop
test edx, edx
ja 0x4ca735
jb 0x4ca72b
cmp ecx, 0x20
jae 0x4ca735
add eax, ecx
mov dword [ebp - 0x220], eax
jmp 0x4ca73f
mov dword [ebp - 0x220], 0x20
mov eax, dword [ebp - 0x228]
lea edi, [ebp - 0x14]
push dword [ebp - 0x23c]
mov dword [ebp - 0x14], eax
lea ebx, [ebp - 0x1c]
mov eax, dword [ebp - 0x22c]
xorps xmm0, xmm0
mov dword [ebp - 0x10], eax
mov eax, edi
push eax
push dword [ebp + 0x24]
movlpd qword [ebp - 0xc], xmm0
call fcn.004b7030
xor eax, eax
add esp, 0xc
mov dword [ebp - 0x230], eax
cmp dword [ebp - 0x220], eax
jbe 0x4ca834
mov esi, dword [ebp + 0x18]
nop word [eax + eax]
cmp eax, esi
jb 0x4ca7b1
mov eax, dword [edi]
mov dword [ebx], eax
mov eax, dword [edi + 4]
add edi, 8
mov dword [ebx + 4], eax
mov eax, dword [edi]
mov dword [ebx - 8], eax
mov eax, dword [edi + 4]
mov dword [ebx - 4], eax
sub ebx, 0x10
jmp 0x4ca7b4
add edi, 8
mov edx, dword [edi + 4]
xor eax, eax
mov ecx, edx
mov byte [ebp - 0x215], 0x87
and ecx, 0x80000000
or eax, ecx
jne 0x4ca7d3
mov byte [ebp - 0x215], 0
mov eax, dword [edi]
shld edx, eax, 1
add eax, eax
mov dword [edi + 4], edx
mov dword [edi], eax
sub edi, 8
xor eax, eax
mov ecx, dword [edi + 4]
mov edx, dword [edi]
and ecx, 0x80000000
or eax, ecx
je 0x4ca7fe
mov eax, dword [edi + 0xc]
or dword [edi + 8], 1
mov dword [edi + 0xc], eax
mov eax, dword [edi + 4]
shld eax, edx, 1
mov dword [edi + 4], eax
add edx, edx
mov al, byte [ebp - 0x215]
mov dword [edi], edx
xor byte [ebp - 0x14], al
mov eax, dword [ebp - 0x230]
inc eax
mov dword [ebp - 0x230], eax
cmp eax, dword [ebp - 0x220]
jb 0x4ca790
mov esi, dword [ebp - 0x224]
mov ebx, dword [ebp - 0x220]
lea ecx, [ebp - 0x1c]
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x21c], esi
cmp eax, ebx
jae 0x4ca875
mov edx, ebx
sub edx, eax
nop
mov eax, dword [ecx]
lea esi, [esi + 0x10]
xor dword [esi - 0x10], eax
lea ecx, [ecx - 0x10]
mov eax, dword [ecx + 0x14]
xor dword [esi - 0xc], eax
mov eax, dword [ecx + 8]
xor dword [esi - 8], eax
mov eax, dword [ecx + 0xc]
xor dword [esi - 4], eax
sub edx, 1
jne 0x4ca850
mov eax, dword [ebp + 0x18]
mov esi, dword [ebp - 0x21c]
mov edi, ebx
sub edi, eax
push edi
push dword [ebp - 0x240]
push esi
push dword [ebp + 0x24]
call fcn.004b70f0
add esp, 0x10
mov dword [ebp - 0x224], esi
lea ecx, [ebp - 0x1c]
cmp dword [ebp + 0x18], ebx
jae 0x4ca8c9
mov edx, edi
mov eax, dword [ecx]
lea ecx, [ecx - 0x10]
xor dword [esi], eax
mov eax, dword [ecx + 0x14]
xor dword [esi + 4], eax
mov eax, dword [ecx + 8]
xor dword [esi + 8], eax
mov eax, dword [ecx + 0xc]
xor dword [esi + 0xc], eax
add esi, 0x10
sub edx, 1
jne 0x4ca8a2
mov dword [ebp - 0x224], esi
mov ecx, dword [ebp - 0x234]
mov edx, dword [ebp - 0x238]
sub ecx, edi
mov dword [ebp - 0x234], ecx
sbb edx, 0
xor eax, eax
add dword [ebp - 0x228], 1
mov dword [ebp - 0x238], edx
adc dword [ebp - 0x22c], eax
mov dword [ebp + 0x18], eax
test edx, edx
ja 0x4ca735
jb 0x4ca90a
test ecx, ecx
jne 0x4ca720
pop edi
pop ebx
lea eax, [ebp - 0x14]
mov ecx, 2
pop esi
nop word [eax + eax]
mov dword [eax], 0
lea eax, [eax + 8]
mov dword [eax - 4], 0
sub ecx, 1
jne 0x4ca920
lea eax, [ebp - 0x214]
mov ecx, 0x40
mov dword [eax], 0
lea eax, [eax + 8]
mov dword [eax - 4], 0
sub ecx, 1
jne 0x4ca940
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e1f40
mov esp, ebp
pop ebp
ret