Function at 0x4ca700
Capabilities:
Encode data using xor
Hash data using sha1

Disassembly:
mov eax, 0x207c
call fcn.006ab750
mov eax, dword [esp + 0x2088]
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov ecx, 0xfc0
cmp dword [esp + 0x2094], ecx
jbe 0x4ca72c
mov dword [esp + 0x2094], ecx
xor ebx, ebx
cmp edi, 0x40
mov ebp, eax
jbe 0x4ca7eb
cmp edi, ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov word [esp + 0x6c], bx
mov dword [esp + 0x10], 0x67452301
mov dword [esp + 0x14], 0xefcdab89
mov dword [esp + 0x18], 0x98badcfe
mov dword [esp + 0x1c], 0x10325476
mov dword [esp + 0x20], 0xc3d2e1f0
mov byte [esp + 0x6e], bl
mov byte [esp + 0x6f], bl
je 0x4ca790
push edi
lea esi, [esp + 0x14]
call fcn.004ca170
cmp byte [esp + 0x6f], bl
jne 0x4ca7c7
cmp byte [esp + 0x6e], bl
jne 0x4ca799
lea esi, [esp + 0x10]
call fcn.004ca610
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x78], ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x7c], edx
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], ecx
xor eax, eax
lea esp, [esp]
mov edx, dword [esp + eax*4 + 0x74]
bswap edx
mov dword [esp + eax*4 + 0x74], edx
add eax, 1
cmp eax, 5
jb 0x4ca7d0
lea ebp, [esp + 0x74]
mov edi, 0x14
push 0x41
lea eax, [esp + 0x108c]
push 0x36363636
push eax
call fcn.006a1300
push 0x41
lea ecx, [esp + 0x98]
push 0x5c5c5c5c
push ecx
call fcn.006a1300
add esp, 0x18
cmp edi, ebx
jbe 0x4ca840
lea edx, [esp + 0x1088]
lea esi, [esp + 0x88]
sub edx, ebp
mov eax, ebp
sub esi, ebp
mov edi, edi
mov cl, byte [eax]
xor byte [edx + eax], cl
xor byte [esi + eax], cl
add eax, 1
sub edi, 1
jne 0x4ca830
mov esi, dword [esp + 0x2094]
mov edx, dword [esp + 0x2090]
push esi
push edx
lea eax, [esp + 0x10d0]
push eax
call fcn.006a4bd0
add esi, 0x40
add esp, 0xc
cmp esi, ebx
mov ebp, 0x10325476
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov word [esp + 0x6c], bx
mov dword [esp + 0x10], 0x67452301
mov dword [esp + 0x14], 0xefcdab89
mov dword [esp + 0x18], 0x98badcfe
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], 0xc3d2e1f0
mov byte [esp + 0x6e], bl
mov byte [esp + 0x6f], bl
je 0x4ca8ff
lea edi, [esp + 0x1088]
mov eax, 1
sub esi, eax
cmp byte [esp + 0x6f], bl
jne 0x4ca91e
movzx ecx, word [esp + 0x6c]
mov dl, byte [edi]
mov byte [esp + ecx + 0x2c], dl
add word [esp + 0x6c], ax
add dword [esp + 0x24], 8
jne 0x4ca8da
add dword [esp + 0x28], eax
jne 0x4ca8da
mov byte [esp + 0x6f], al
cmp word [esp + 0x6c], 0x40
jne 0x4ca8ec
lea eax, [esp + 0x10]
push eax
call fcn.004ca1e0
add edi, 1
cmp esi, ebx
jne 0x4ca8ac
cmp byte [esp + 0x6f], bl
jne 0x4ca91e
cmp byte [esp + 0x6e], bl
jne 0x4ca908
lea esi, [esp + 0x10]
call fcn.004ca610
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
jmp 0x4ca941
mov eax, dword [esp + 0xd8]
mov ecx, dword [esp + 0xd4]
mov edx, dword [esp + 0xd0]
mov esi, dword [esp + 0xcc]
mov edi, dword [esp + 0xc8]
bswap edi
bswap esi
bswap edx
bswap ecx
bswap eax
mov dword [esp + 0xc8], edi
mov dword [esp + 0xcc], esi
mov dword [esp + 0xd0], edx
mov dword [esp + 0xd4], ecx
mov dword [esp + 0xd8], eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov word [esp + 0x6c], bx
mov dword [esp + 0x10], 0x67452301
mov dword [esp + 0x14], 0xefcdab89
mov dword [esp + 0x18], 0x98badcfe
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], 0xc3d2e1f0
mov byte [esp + 0x6e], bl
mov byte [esp + 0x6f], bl
mov edi, 0x54
lea esi, [esp + 0x88]
mov ebp, 1
sub edi, ebp
cmp byte [esp + 0x6f], bl
jne 0x4ca9fa
movzx ecx, word [esp + 0x6c]
mov dl, byte [esi]
mov byte [esp + ecx + 0x2c], dl
add word [esp + 0x6c], bp
add dword [esp + 0x24], 8
jne 0x4ca9e2
add dword [esp + 0x28], ebp
jne 0x4ca9e2
mov byte [esp + 0x6f], 1
cmp word [esp + 0x6c], 0x40
jne 0x4ca9f4
lea eax, [esp + 0x10]
push eax
call fcn.004ca1e0
add esi, ebp
cmp edi, ebx
jne 0x4ca9b3
mov edi, dword [esp + 0x209c]
xor eax, eax
cmp byte [esp + 0x6f], bl
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], eax
mov byte [edi + 0x14], al
jne 0x4caa4b
cmp byte [esp + 0x6e], bl
jne 0x4caa29
lea esi, [esp + 0x10]
call fcn.004ca610
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov dword [edi], ecx
mov ecx, dword [esp + 0x1c]
mov dword [edi + 4], edx
mov edx, dword [esp + 0x20]
mov dword [edi + 8], eax
mov dword [edi + 0xc], ecx
mov dword [edi + 0x10], edx
mov eax, dword [edi]
bswap eax
mov dword [edi], eax
mov ecx, dword [edi + 4]
bswap ecx
mov dword [edi + 4], ecx
mov edx, dword [edi + 8]
bswap edx
mov dword [edi + 8], edx
mov eax, dword [edi + 0xc]
bswap eax
mov dword [edi + 0xc], eax
mov ecx, dword [edi + 0x10]
bswap ecx
mov dword [edi + 0x10], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x207c
ret 0x10