Function at 0x4ca8d0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x154
push ebx
push ebp
push esi
mov esi, dword [esp + 0x164]
push edi
lea edi, [esp + 0x26]
lea ebp, [esp + 0x2a]
lea ebx, [esp + 0x2e]
xor ecx, ecx
sub edi, edx
sub ebp, edx
sub ebx, edx
lea eax, [edx + 2]
mov dword [esp + 0x14], ebx
lea esp, [esp]
xor edx, edx
mov dh, byte [eax - 2]
movzx ebx, byte [eax]
add ecx, 4
add eax, 0x10
mov dl, byte [eax - 0x11]
shl edx, 8
or edx, ebx
movzx ebx, byte [eax - 0xf]
shl edx, 8
or edx, ebx
mov dword [esp + ecx*4 + 0x14], edx
xor edx, edx
mov dh, byte [eax - 0xe]
movzx ebx, byte [eax - 0xc]
mov dl, byte [eax - 0xd]
shl edx, 8
or edx, ebx
movzx ebx, byte [eax - 0xb]
shl edx, 8
or edx, ebx
movzx ebx, byte [eax - 8]
mov dword [edi + eax - 0x10], edx
xor edx, edx
mov dh, byte [eax - 0xa]
mov dl, byte [eax - 9]
shl edx, 8
or edx, ebx
movzx ebx, byte [eax - 7]
shl edx, 8
or edx, ebx
movzx ebx, byte [eax - 4]
mov dword [eax + ebp - 0x10], edx
xor edx, edx
mov dh, byte [eax - 6]
mov dl, byte [eax - 5]
shl edx, 8
or edx, ebx
movzx ebx, byte [eax - 3]
shl edx, 8
or edx, ebx
cmp ecx, 0x10
mov ebx, dword [esp + 0x14]
mov dword [ebx + eax - 0x10], edx
jb 0x4ca900
mov eax, dword [esi + 8]
mov ebp, dword [esi + 0xc]
mov ebx, dword [esi + 0x10]
mov edi, dword [esi + 0x14]
mov esi, dword [esi + 0x18]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x44]
mov dword [esp + 0x20], 0x10
lea esp, [esp]
mov ecx, dword [eax - 0x20]
xor ecx, dword [eax + 0x14]
mov edx, dword [eax - 0x18]
xor ecx, edx
xor ecx, dword [eax]
mov edx, dword [eax - 0x1c]
xor edx, dword [eax + 0x18]
rol ecx, 1
xor edx, dword [eax + 4]
mov dword [esp + 0x14], ecx
mov dword [eax + 0x20], ecx
mov ecx, dword [eax - 0x14]
xor edx, ecx
mov ecx, dword [eax + 0x1c]
xor ecx, dword [eax - 0x10]
rol edx, 1
xor ecx, dword [eax + 8]
mov dword [eax + 0x24], edx
mov edx, dword [eax - 0xc]
xor edx, dword [eax + 0xc]
xor ecx, dword [eax - 0x18]
xor edx, dword [esp + 0x14]
rol ecx, 1
xor edx, dword [eax - 0x14]
mov dword [eax + 0x28], ecx
rol edx, 1
mov dword [eax + 0x2c], edx
add eax, 0x10
sub dword [esp + 0x20], 1
jne 0x4ca9b0
xor ecx, ecx
mov dword [esp + 0x20], 4
mov eax, dword [esp + 0x10]
rol eax, 5
mov edx, edi
xor edx, ebx
and edx, ebp
xor edx, edi
add eax, edx
add eax, dword [esp + ecx*4 + 0x24]
add ecx, 1
ror ebp, 2
lea esi, [esi + eax + 0x5a827999]
mov eax, dword [esp + 0x10]
mov edx, ebx
xor edx, ebp
and edx, eax
xor edx, ebx
add ecx, 1
mov dword [esp + 0x14], esi
rol esi, 5
add esi, edx
add esi, dword [esp + ecx*4 + 0x20]
ror eax, 2
lea edi, [edi + esi + 0x5a827999]
mov esi, dword [esp + 0x14]
mov edx, ebp
xor edx, eax
and edx, esi
xor edx, ebp
mov dword [esp + 0x18], edi
rol edi, 5
add edi, edx
add edi, dword [esp + ecx*4 + 0x24]
add ecx, 1
ror esi, 2
lea ebx, [ebx + edi + 0x5a827999]
mov edi, dword [esp + 0x18]
mov edx, esi
xor edx, eax
and edx, edi
xor edx, eax
mov dword [esp + 0x1c], ebx
rol ebx, 5
add ebx, edx
add ebx, dword [esp + ecx*4 + 0x24]
add ecx, 1
mov dword [esp + 0x10], eax
ror edi, 2
lea ebp, [ebx + ebp + 0x5a827999]
mov ebx, dword [esp + 0x1c]
mov edx, esi
xor edx, edi
and edx, ebx
xor edx, esi
mov eax, ebp
rol eax, 5
add eax, edx
add eax, dword [esp + ecx*4 + 0x24]
mov edx, dword [esp + 0x10]
add ecx, 1
lea eax, [edx + eax + 0x5a827999]
ror ebx, 2
sub dword [esp + 0x20], 1
mov dword [esp + 0x10], eax
jne 0x4caa10
mov dword [esp + 0x1c], 4
mov dword [esp + 0x20], 0x28
nop
mov edx, dword [esp + 0x10]
rol edx, 5
add ecx, 1
mov eax, edi
xor eax, ebx
xor eax, ebp
add edx, eax
add edx, dword [esp + ecx*4 + 0x20]
ror ebp, 2
lea esi, [esi + edx + 0x6ed9eba1]
mov dword [esp + 0x18], ebp
mov eax, ebx
xor eax, ebp
mov ebp, eax
mov eax, dword [esp + 0x10]
xor ebp, eax
mov edx, esi
rol edx, 5
add edx, ebp
add edx, dword [esp + ecx*4 + 0x24]
add ecx, 1
lea edi, [edi + edx + 0x6ed9eba1]
ror eax, 2
mov ebp, esi
xor ebp, dword [esp + 0x18]
mov edx, edi
xor ebp, eax
rol edx, 5
add edx, ebp
add edx, dword [esp + ecx*4 + 0x24]
add ecx, 1
lea ebx, [ebx + edx + 0x6ed9eba1]
ror esi, 2
mov ebp, esi
xor ebp, edi
xor ebp, eax
mov edx, ebx
rol edx, 5
add edx, ebp
add edx, dword [esp + ecx*4 + 0x24]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x18]
lea ebp, [eax + edx + 0x6ed9eba1]
add ecx, 1
ror edi, 2
mov eax, esi
xor eax, edi
xor eax, ebx
mov edx, ebp
rol edx, 5
add edx, eax
add edx, dword [esp + ecx*4 + 0x24]
mov eax, dword [esp + 0x10]
add ecx, 1
lea edx, [eax + edx + 0x6ed9eba1]
ror ebx, 2
sub dword [esp + 0x1c], 1
mov dword [esp + 0x10], edx
jne 0x4caaf0
mov eax, dword [esp + 0x20]
cmp eax, 0x3c
mov dword [esp + 0x1c], ebx
jae 0x4cacd4
mov edx, 0x3b
sub edx, eax
mov eax, 0xcccccccd
mul edx
mov eax, dword [esp + 0x20]
shr edx, 2
add edx, 1
add eax, edx
mov dword [esp + 0x14], edx
lea edx, [eax + edx*4]
mov dword [esp + 0x20], edx
mov eax, dword [esp + 0x10]
mov edx, ebx
or edx, ebp
and edx, edi
and ebx, ebp
or edx, ebx
add edx, dword [esp + ecx*4 + 0x24]
rol eax, 5
add edx, esi
lea esi, [edx + eax - 0x70e44324]
add ecx, 1
ror ebp, 2
mov edx, ebp
or edx, dword [esp + 0x10]
mov ebx, ebp
and edx, dword [esp + 0x1c]
and ebx, dword [esp + 0x10]
add ecx, 1
or edx, ebx
add edx, dword [esp + ecx*4 + 0x20]
mov eax, esi
add edx, edi
rol eax, 5
lea edx, [edx + eax - 0x70e44324]
mov eax, dword [esp + 0x10]
ror eax, 2
mov edi, esi
or edi, eax
and edi, ebp
mov dword [esp + 0x18], edx
rol edx, 5
mov ebx, esi
and ebx, eax
or edi, ebx
add edi, dword [esp + ecx*4 + 0x24]
add ecx, 1
add edi, dword [esp + 0x1c]
ror esi, 2
lea edx, [edi + edx - 0x70e44324]
mov edi, dword [esp + 0x18]
mov dword [esp + 0x10], eax
mov ebx, esi
or ebx, edi
and ebx, eax
mov dword [esp + 0x1c], edx
rol edx, 5
mov eax, esi
and eax, edi
or ebx, eax
add ebx, dword [esp + ecx*4 + 0x24]
add ecx, 1
add ebx, ebp
lea eax, [ebx + edx - 0x70e44324]
mov ebx, dword [esp + 0x1c]
ror edi, 2
mov edx, edi
or edx, ebx
and edx, esi
mov ebp, edi
and ebp, ebx
or edx, ebp
add edx, dword [esp + ecx*4 + 0x24]
mov dword [esp + 0x18], eax
add edx, dword [esp + 0x10]
mov ebp, dword [esp + 0x18]
rol eax, 5
add ecx, 1
ror ebx, 2
sub dword [esp + 0x14], 1
lea eax, [edx + eax - 0x70e44324]
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], ebx
jne 0x4cabe5
mov eax, dword [esp + 0x20]
cmp eax, 0x50
jae 0x4cadc0
mov edx, 0x4f
sub edx, eax
mov eax, 0xcccccccd
mul edx
shr edx, 2
add edx, 1
lea ecx, [esp + ecx*4 + 0x24]
mov dword [esp + 0x14], edx
lea esp, [esp]
mov eax, dword [esp + 0x10]
rol eax, 5
add ecx, 4
mov edx, edi
xor edx, ebx
xor edx, ebp
add edx, dword [ecx - 4]
add ecx, 4
add edx, esi
ror ebp, 2
lea esi, [edx + eax - 0x359d3e2a]
mov dword [esp + 0x18], ebp
mov eax, ebx
xor eax, ebp
mov ebp, eax
mov eax, dword [esp + 0x10]
xor ebp, eax
add ebp, dword [ecx - 4]
mov edx, esi
add ebp, edi
rol edx, 5
lea edi, [edx + ebp - 0x359d3e2a]
ror eax, 2
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0x10]
mov ebp, esi
xor ebp, dword [esp + 0x18]
add ecx, 4
xor ebp, edx
add ebp, dword [ecx - 4]
mov eax, edi
add ebp, ebx
rol eax, 5
lea eax, [eax + ebp - 0x359d3e2a]
ror esi, 2
mov ebp, esi
xor ebp, edi
xor ebp, edx
add ebp, dword [ecx]
mov ebx, eax
add ebp, dword [esp + 0x18]
rol ebx, 5
lea ebp, [ebx + ebp - 0x359d3e2a]
add ecx, 4
ror edi, 2
mov ebx, esi
xor ebx, edi
xor ebx, eax
add ebx, dword [ecx]
mov edx, ebp
add ebx, dword [esp + 0x10]
rol edx, 5
mov dword [esp + 0x1c], eax
lea eax, [ebx + edx - 0x359d3e2a]
mov ebx, dword [esp + 0x1c]
add ecx, 4
ror ebx, 2
sub dword [esp + 0x14], 1
mov dword [esp + 0x10], eax
jne 0x4cad00
mov eax, dword [esp + 0x168]
mov ecx, dword [eax + 8]
mov edx, dword [esp + 0x10]
add ecx, edx
mov dword [eax + 8], ecx
mov ecx, dword [eax + 0xc]
add ecx, ebp
mov dword [eax + 0xc], ecx
mov ecx, dword [eax + 0x10]
add ecx, ebx
mov dword [eax + 0x10], ecx
mov ecx, dword [eax + 0x14]
add ecx, edi
mov dword [eax + 0x14], ecx
mov ecx, dword [eax + 0x18]
pop edi
add ecx, esi
pop esi
pop ebp
mov dword [eax + 0x18], ecx
xor eax, eax
pop ebx
add esp, 0x154
ret