Function at 0x10108a90
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x1026e004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x48], eax
test edi, edi
je 0x10108c6e
mov ecx, dword [edi]
test ecx, ecx
je 0x10108c6e
mov ebx, dword [edi + 8]
mov dword [ebp - 0x54], ebx
test ebx, ebx
je 0x10108c6e
movzx eax, byte [ecx + 9]
push esi
mov esi, dword [ebp + 0x10]
cmp esi, eax
jbe 0x10108b2a
push edi
call fcn.10108e90
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x10108c4d
push esi
push dword [ebp - 0x48]
push edi
call fcn.10108f40
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x10108c4d
lea eax, [ebp - 0x44]
push eax
push edi
call fcn.10108690
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x10108c4d
mov ecx, dword [edi]
lea eax, [ebp - 0x44]
mov ebx, dword [edi + 8]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x54], ebx
movzx esi, byte [ecx + 8]
movzx eax, byte [ecx + 9]
push eax
push 0x36
push ebx
lea ecx, [eax + ebx]
mov dword [ebp - 0x4c], ecx
call fcn.100e19a0
mov eax, dword [edi]
movzx eax, byte [eax + 9]
push eax
push 0x5c
push dword [ebp - 0x4c]
call fcn.100e19a0
xor ecx, ecx
add esp, 0x18
mov dword [ebp - 0x50], ecx
test esi, esi
je 0x10108c29
mov edx, dword [ebp - 0x4c]
cmp esi, 0x10
jb 0x10108c02
lea eax, [edx - 1]
mov dword [ebp - 0x50], ecx
add eax, esi
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x48]
lea ebx, [eax - 1]
add ebx, esi
mov dword [ebp - 0x5c], ebx
cmp edx, ebx
mov ebx, dword [ebp - 0x54]
ja 0x10108b8c
cmp dword [ebp - 0x58], eax
jae 0x10108c05
lea ecx, [ebx - 1]
add ecx, esi
mov dword [ebp - 0x60], ecx
cmp edx, ecx
mov ecx, 0
ja 0x10108ba2
cmp dword [ebp - 0x58], ebx
jae 0x10108c05
cmp ebx, dword [ebp - 0x5c]
ja 0x10108bac
cmp dword [ebp - 0x60], eax
jae 0x10108c05
mov ecx, dword [ebp - 0x48]
mov eax, esi
sub ecx, ebx
and eax, 0xfffffff0
mov dword [ebp - 0x60], ecx
mov ecx, edx
mov edx, dword [ebp - 0x60]
sub ecx, ebx
mov dword [ebp - 0x5c], ecx
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x58], eax
mov eax, ebx
mov ebx, dword [ebp - 0x5c]
nop
movups xmm1, xmmword [edx + eax]
add ecx, 0x10
lea eax, [eax + 0x10]
movups xmm0, xmmword [eax - 0x10]
pxor xmm0, xmm1
movups xmmword [eax - 0x10], xmm0
movups xmm0, xmmword [ebx + eax - 0x10]
pxor xmm1, xmm0
movups xmmword [ebx + eax - 0x10], xmm1
cmp ecx, dword [ebp - 0x58]
jb 0x10108bd0
mov ebx, dword [ebp - 0x54]
mov edx, dword [ebp - 0x4c]
mov dword [ebp - 0x50], ecx
mov eax, dword [ebp - 0x48]
cmp ecx, esi
jae 0x10108c29
add ecx, eax
sub ebx, eax
sub edx, eax
sub esi, dword [ebp - 0x50]
movzx eax, byte [ecx]
lea ecx, [ecx + 1]
xor byte [ebx + ecx - 1], al
movzx eax, byte [ecx - 1]
xor byte [edx + ecx - 1], al
sub esi, 1
jne 0x10108c12
push edi
call fcn.10108e90
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x10108c4d
mov eax, dword [edi]
movzx eax, byte [eax + 9]
push eax
push dword [ebp - 0x54]
push edi
call fcn.10108f40
add esp, 0xc
mov ebx, eax
lea eax, [ebp - 0x44]
push 0x40
push eax
call fcn.101115e0
add esp, 8
mov eax, ebx
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100e04a9
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 0xffffaf00
pop edi
xor ecx, ebp
pop ebx
call fcn.100e04a9
mov esp, ebp
pop ebp
ret