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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1b0
mov esi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov eax, dword [0x10443bf0]
xor eax, ebp
mov dword [ebp - 0x10], eax
add dword [edi], esi
adc dword [edi + 4], 0
mov eax, dword [edi + 8]
mov ecx, 0x40
sub ecx, eax
test eax, eax
je 0x101411db
cmp ecx, esi
jbe 0x101411db
add eax, edi
add eax, 0x20
push esi
push ebx
push eax
call fcn.1023e3e0
add esp, 0xc
add dword [edi + 8], esi
jmp 0x10141498
pcmpeqd xmm0, xmm0
movdqu xmmword [ebp - 0x160], xmm0
movdqu xmmword [ebp - 0x170], xmm0
movdqu xmmword [ebp - 0x180], xmm0
movdqu xmmword [ebp - 0x190], xmm0
cmp ecx, esi
ja 0x10141487
lea edx, [edi + 0x20]
mov dword [ebp - 0x1a0], edx
add eax, dword [ebp - 0x1a0]
push ecx
push ebx
push eax
call fcn.1023e3e0
add esp, 0xc
mov eax, dword [edi + 8]
mov ecx, 0x40
sub ecx, eax
mov dword [ebp - 0x1b4], ecx
neg eax
add ebx, eax
add ebx, 0x40
xor eax, eax
mov ecx, dword [edi + eax*4 + 0x20]
bswap ecx
mov dword [ebp + eax*4 - 0x190], ecx
inc eax
cmp eax, 0x10
jne 0x1014123a
mov dword [ebp - 0x1b8], ebx
mov dword [ebp - 0x1bc], esi
push 0x100
push 0xff
lea eax, [ebp - 0x110]
push eax
call fcn.1023e960
add esp, 0xc
movups xmm0, xmmword [ebp - 0x190]
movups xmm1, xmmword [ebp - 0x180]
movups xmmword [ebp - 0x150], xmm0
movups xmmword [ebp - 0x140], xmm1
movups xmm0, xmmword [ebp - 0x170]
movups xmmword [ebp - 0x130], xmm0
movdqu xmm0, xmmword [ebp - 0x160]
movdqu xmmword [ebp - 0x120], xmm0
mov eax, 0x10
mov ecx, dword [ebp + eax*4 - 0x170]
xor ecx, dword [ebp + eax*4 - 0x15c]
xor ecx, dword [ebp + eax*4 - 0x188]
xor ecx, dword [ebp + eax*4 - 0x190]
rol ecx, 1
mov dword [ebp + eax*4 - 0x150], ecx
inc eax
cmp eax, 0x50
jne 0x101412b1
mov ecx, dword [edi + 0xc]
mov esi, dword [edi + 0x10]
mov edx, dword [edi + 0x14]
mov eax, dword [edi + 0x18]
mov dword [ebp - 0x19c], eax
mov ebx, dword [edi + 0x1c]
xor eax, eax
mov dword [ebp - 0x1a4], ecx
mov dword [ebp - 0x1a8], esi
mov dword [ebp - 0x194], esi
mov dword [ebp - 0x1ac], edx
mov dword [ebp - 0x1b0], ebx
mov edi, dword [ebp - 0x19c]
mov esi, edi
mov dword [ebp - 0x198], edx
mov edx, dword [ebp - 0x194]
mov edi, dword [ebp - 0x198]
and edi, edx
add edi, ebx
mov dword [ebp - 0x194], ecx
rol ecx, 5
add edi, ecx
mov ecx, edx
not ecx
and ecx, esi
add ecx, edi
rol edx, 0x1e
mov edi, dword [ebp + eax*4 - 0x150]
add ecx, edi
add ecx, 0x5a827999
mov edi, dword [ebp - 0x198]
inc eax
mov ebx, esi
cmp eax, 0x14
jne 0x10141317
mov ebx, 0x14
mov eax, edi
mov edi, edx
mov edx, dword [ebp - 0x194]
mov dword [ebp - 0x194], ecx
rol ecx, 5
add ecx, esi
mov esi, edi
xor esi, edx
xor esi, eax
add ecx, dword [ebp + ebx*4 - 0x150]
rol edx, 0x1e
add ecx, esi
add ecx, 0x6ed9eba1
inc ebx
mov esi, eax
cmp ebx, 0x28
jne 0x10141367
mov ebx, 0x28
mov esi, edi
mov edi, edx
mov dword [ebp - 0x198], edx
mov edx, dword [ebp - 0x194]
mov dword [ebp - 0x194], ecx
rol ecx, 5
add ecx, eax
mov eax, esi
or eax, edi
and eax, edx
mov edi, esi
and edi, dword [ebp - 0x198]
or edi, eax
add ecx, dword [ebp + ebx*4 - 0x150]
rol edx, 0x1e
add ecx, edi
add ecx, 0x8f1bbcdc
mov edi, dword [ebp - 0x198]
inc ebx
mov eax, esi
cmp ebx, 0x3c
jne 0x101413a1
mov ebx, 0x3c
mov eax, edi
mov edi, edx
mov edx, dword [ebp - 0x194]
mov dword [ebp - 0x194], ecx
rol ecx, 5
add ecx, esi
mov esi, edi
xor esi, edx
xor esi, eax
add ecx, dword [ebp + ebx*4 - 0x150]
rol edx, 0x1e
add ecx, esi
add ecx, 0xca62c1d6
inc ebx
mov esi, eax
cmp ebx, 0x50
jne 0x101413f1
mov esi, dword [ebp - 0x1bc]
sub esi, dword [ebp - 0x1b4]
add ecx, dword [ebp - 0x1a4]
mov ebx, edi
mov edi, dword [ebp + 8]
mov dword [edi + 0xc], ecx
mov ecx, dword [ebp - 0x194]
add ecx, dword [ebp - 0x1a8]
mov dword [edi + 0x10], ecx
add edx, dword [ebp - 0x1ac]
mov dword [edi + 0x14], edx
add ebx, dword [ebp - 0x19c]
mov dword [edi + 0x18], ebx
add eax, dword [ebp - 0x1b0]
mov dword [edi + 0x1c], eax
mov dword [edi + 8], 0
xor eax, eax
mov ecx, 0x40
cmp esi, 0x40
mov ebx, dword [ebp - 0x1b8]
jae 0x10141210
lea eax, [edi + 0x20]
push esi
push ebx
push eax
call fcn.1023e3e0
add esp, 0xc
mov dword [edi + 8], esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1023b4d8
add esp, 0x1b0
pop esi
pop edi
pop ebx
pop ebp
ret