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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
push ebx
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
mov dword [ebp - 0x10], ebx
test edi, edi
je 0x46cf35
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x46cf35
push esi
nop word [eax + eax]
mov edx, dword [ebx + 0x24]
test edx, edx
jne 0x46cedc
cmp ecx, 0x40
jb 0x46cedc
movups xmm0, xmmword [edi]
xor esi, esi
lea eax, [ebx + 0x29]
movups xmmword [ebx + 0x28], xmm0
movups xmm0, xmmword [edi + 0x10]
movups xmmword [ebx + 0x38], xmm0
movups xmm0, xmmword [edi + 0x20]
movups xmmword [ebx + 0x48], xmm0
movups xmm0, xmmword [edi + 0x30]
movups xmmword [ebx + 0x58], xmm0
nop dword [eax + eax]
movzx edx, byte [eax - 1]
lea eax, [eax + 4]
movzx ecx, byte [eax - 4]
shl edx, 8
or edx, ecx
movzx ecx, byte [eax - 3]
shl edx, 8
or edx, ecx
movzx ecx, byte [eax - 2]
shl edx, 8
or edx, ecx
mov dword [ebp + esi*4 - 0x154], edx
inc esi
cmp esi, 0x10
jb 0x46caa0
mov edx, dword [ebx + 0x14]
lea ecx, [ebp - 0x14c]
mov eax, dword [ebx + 0x10]
mov esi, dword [ebx + 0x18]
mov edi, dword [ebx + 0x1c]
mov ebx, dword [ebx + 0x20]
mov dword [ebp - 0xc], edx
mov edx, 0x40
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], eax
mov eax, dword [ecx + 0x2c]
lea ecx, [ecx + 4]
xor eax, dword [ecx + 0x14]
xor eax, dword [ecx - 0xc]
xor eax, dword [ecx - 4]
rol eax, 1
mov dword [ecx + 0x34], eax
sub edx, 1
jne 0x46caf2
mov eax, dword [ebp - 4]
mov dword [ebp - 8], edx
mov edx, dword [ebp - 0xc]
mov ecx, eax
mov eax, edi
xor eax, esi
rol ecx, 5
and eax, edx
rol edx, 0x1e
xor eax, edi
add ecx, eax
mov eax, dword [ebp - 8]
add ecx, 0x5a827999
add ecx, dword [ebp + eax*4 - 0x154]
mov eax, esi
add ebx, ecx
xor eax, edx
and eax, dword [ebp - 4]
mov ecx, ebx
rol dword [ebp - 4], 0x1e
xor eax, esi
rol ecx, 5
add ecx, eax
mov eax, dword [ebp - 8]
add ecx, 0x5a827999
add ecx, dword [ebp + eax*4 - 0x150]
mov eax, edx
xor eax, dword [ebp - 4]
add edi, ecx
and eax, ebx
mov ecx, edi
xor eax, edx
rol ecx, 5
add ecx, eax
rol ebx, 0x1e
mov eax, dword [ebp - 8]
add ecx, 0x5a827999
add ecx, dword [ebp + eax*4 - 0x14c]
mov eax, ebx
xor eax, dword [ebp - 4]
add esi, ecx
and eax, edi
mov ecx, esi
xor eax, dword [ebp - 4]
rol ecx, 5
add ecx, eax
rol edi, 0x1e
mov eax, dword [ebp - 8]
add ecx, 0x5a827999
add ecx, dword [ebp + eax*4 - 0x148]
mov eax, ebx
add edx, ecx
xor eax, edi
and eax, esi
mov ecx, edx
xor eax, ebx
rol ecx, 5
add ecx, eax
rol esi, 0x1e
mov eax, dword [ebp - 8]
add ecx, dword [ebp + eax*4 - 0x144]
mov eax, dword [ebp - 4]
add eax, 0x5a827999
add eax, ecx
mov ecx, dword [ebp - 8]
add ecx, 5
mov dword [ebp - 4], eax
mov dword [ebp - 8], ecx
cmp ecx, 0x14
jb 0x46cb14
mov dword [ebp - 0xc], edx
cmp ecx, 0x28
jae 0x46ccb8
mov ecx, eax
mov eax, edi
xor eax, esi
rol ecx, 5
xor eax, edx
rol edx, 0x1e
add ecx, eax
mov eax, dword [ebp - 8]
add ecx, 0x6ed9eba1
add ecx, dword [ebp + eax*4 - 0x154]
mov eax, esi
add ebx, ecx
xor eax, edx
xor eax, dword [ebp - 4]
mov ecx, ebx
rol dword [ebp - 4], 0x1e
rol ecx, 5
add ecx, eax
mov eax, dword [ebp - 8]
add ecx, 0x6ed9eba1
add ecx, dword [ebp + eax*4 - 0x150]
mov eax, ebx
add edi, ecx
rol ebx, 0x1e
xor eax, edx
mov ecx, edi
xor eax, dword [ebp - 4]
rol ecx, 5
add ecx, eax
mov eax, dword [ebp - 8]
add ecx, 0x6ed9eba1
add ecx, dword [ebp + eax*4 - 0x14c]
mov eax, ebx
add esi, ecx
xor eax, edi
xor eax, dword [ebp - 4]
mov ecx, esi
rol ecx, 5
add ecx, eax
rol edi, 0x1e
mov eax, dword [ebp - 8]
add ecx, 0x6ed9eba1
add ecx, dword [ebp + eax*4 - 0x148]
mov eax, ebx
add edx, ecx
xor eax, edi
xor eax, esi
mov ecx, edx
rol ecx, 5
add ecx, eax
rol esi, 0x1e
mov eax, dword [ebp - 8]
add ecx, dword [ebp + eax*4 - 0x144]
mov eax, dword [ebp - 4]
add eax, 0x6ed9eba1
add eax, ecx
mov ecx, dword [ebp - 8]
add ecx, 5
mov dword [ebp - 4], eax
mov dword [ebp - 8], ecx
cmp ecx, 0x28
jb 0x46cbf0
mov dword [ebp - 0xc], edx
cmp ecx, 0x3c
jae 0x46cdb7
mov edx, eax
mov ecx, esi
or ecx, dword [ebp - 0xc]
mov eax, esi
and eax, dword [ebp - 0xc]
and ecx, edi
or ecx, eax
rol edx, 5
mov eax, dword [ebp - 8]
add ecx, dword [ebp + eax*4 - 0x154]
mov eax, dword [ebp - 0xc]
add ecx, ebx
rol eax, 0x1e
lea ebx, [edx - 0x70e44324]
add ebx, ecx
mov dword [ebp - 0xc], eax
mov ecx, eax
mov edx, ebx
or ecx, dword [ebp - 4]
and eax, dword [ebp - 4]
and ecx, esi
or ecx, eax
rol edx, 5
mov eax, dword [ebp - 8]
add edx, 0x8f1bbcdc
add ecx, dword [ebp + eax*4 - 0x150]
mov eax, dword [ebp - 4]
add edi, ecx
rol eax, 0x1e
mov ecx, ebx
or ecx, eax
mov dword [ebp - 4], eax
and ecx, dword [ebp - 0xc]
mov eax, ebx
and eax, dword [ebp - 4]
add edi, edx
or ecx, eax
rol ebx, 0x1e
mov eax, dword [ebp - 8]
mov edx, edi
rol edx, 5
add edx, 0x8f1bbcdc
add ecx, dword [ebp + eax*4 - 0x14c]
mov eax, ebx
add esi, ecx
and eax, edi
mov ecx, ebx
add esi, edx
or ecx, edi
mov edx, esi
and ecx, dword [ebp - 4]
or ecx, eax
rol edx, 5
mov eax, dword [ebp - 8]
rol edi, 0x1e
add ecx, dword [ebp + eax*4 - 0x148]
add ecx, dword [ebp - 0xc]
lea eax, [ecx - 0x70e44324]
mov ecx, edi
add eax, edx
or ecx, esi
mov edx, eax
mov dword [ebp - 0xc], eax
and ecx, ebx
rol edx, 5
mov eax, edi
and eax, esi
rol esi, 0x1e
or ecx, eax
mov eax, dword [ebp - 8]
add ecx, dword [ebp + eax*4 - 0x144]
add ecx, dword [ebp - 4]
lea eax, [ecx - 0x70e44324]
mov ecx, dword [ebp - 8]
add ecx, 5
add eax, edx
mov dword [ebp - 4], eax
mov dword [ebp - 8], ecx
cmp ecx, 0x3c
jb 0x46ccc1
mov edx, dword [ebp - 0xc]
cmp ecx, 0x50
jae 0x46cea1
mov ecx, eax
mov eax, edi
xor eax, esi
rol ecx, 5
xor eax, edx
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 8]
rol edx, 0x1e
add eax, dword [ebp + ecx*4 - 0x154]
add eax, ebx
mov ebx, dword [ebp - 0xc]
add ebx, 0xca62c1d6
add ebx, eax
mov eax, esi
xor eax, edx
mov ecx, ebx
xor eax, dword [ebp - 4]
rol ecx, 5
rol dword [ebp - 4], 0x1e
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 8]
add eax, dword [ebp + ecx*4 - 0x150]
add eax, edi
mov edi, dword [ebp - 0xc]
add edi, 0xca62c1d6
add edi, eax
mov eax, ebx
xor eax, edx
rol ebx, 0x1e
xor eax, dword [ebp - 4]
mov ecx, edi
rol ecx, 5
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 8]
add eax, dword [ebp + ecx*4 - 0x14c]
add eax, esi
mov esi, dword [ebp - 0xc]
add esi, 0xca62c1d6
add esi, eax
mov eax, ebx
xor eax, edi
mov ecx, esi
xor eax, dword [ebp - 4]
rol ecx, 5
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 8]
rol edi, 0x1e
add eax, dword [ebp + ecx*4 - 0x148]
add eax, edx
mov edx, dword [ebp - 0xc]
add edx, 0xca62c1d6
add edx, eax
mov eax, ebx
mov ecx, edx
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 8]
xor eax, edi
xor eax, esi
rol ecx, 5
add ecx, 0xca62c1d6
rol esi, 0x1e
add eax, dword [ebp + edx*4 - 0x144]
add eax, dword [ebp - 4]
add eax, ecx
mov ecx, edx
mov edx, dword [ebp - 0xc]
add ecx, 5
mov dword [ebp - 4], eax
mov dword [ebp - 8], ecx
cmp ecx, 0x50
jb 0x46cdc0
mov ecx, dword [ebp - 0x10]
add eax, dword [ebp - 0x14]
add dword [ecx + 0x1c], edi
add dword [ecx + 0x14], edx
add dword [ecx + 0x18], esi
mov edi, dword [ebp + 8]
mov dword [ecx + 0x10], eax
mov eax, dword [ecx + 0x20]
add eax, ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebx + 0x20], eax
add dword [ebx + 8], 0x200
adc dword [ebx + 0xc], 0
add edi, 0x40
sub ecx, 0x40
mov dword [ebp + 8], edi
mov dword [ebp + 0xc], ecx
jmp 0x46cf2c
mov eax, 0x40
mov esi, ecx
sub eax, edx
cmp ecx, eax
cmovae esi, eax
lea eax, [edx + 0x28]
push esi
add eax, ebx
push edi
push eax
call fcn.004a8910
mov ecx, dword [ebp + 0xc]
add edi, esi
add dword [ebx + 0x24], esi
sub ecx, esi
add esp, 0xc
mov dword [ebp + 8], edi
cmp dword [ebx + 0x24], 0x40
mov dword [ebp + 0xc], ecx
jne 0x46cf2c
mov ecx, ebx
call fcn.0046c220
add dword [ebx + 8], 0x200
mov ecx, dword [ebp + 0xc]
adc dword [ebx + 0xc], 0
mov dword [ebx + 0x24], 0
test ecx, ecx
jne 0x46ca60
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8