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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c4
mov eax, dword [0x55e2f4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x3bc], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x3b8], ebx
mov dword [ebp - 0x3c4], eax
push edi
cmp esi, 0x80
jle 0x4beb2b
lea eax, [ebp - 0x3b4]
push eax
call fcn.004dc5c0
lea eax, [ebp - 0x3b4]
push eax
push esi
push ebx
call fcn.004de780
lea eax, [ebp - 0x3b4]
push eax
lea eax, [ebp - 0x144]
push eax
call fcn.004de760
lea ebx, [ebp - 0x144]
mov esi, 0x40
lea eax, [ebp - 0x3b4]
mov dword [ebp - 0x3b8], ebx
mov ecx, 0xd0
mov dword [ebp + 0xc], esi
add esp, 0x18
mov edi, ecx
mov edx, eax
nop
mov byte [edx], 0
lea edx, [edx + 1]
sub edi, 1
jne 0x4beb10
nop dword [eax + eax]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x4beb20
lea eax, [ebp - 0x214]
push eax
call fcn.004dc5c0
add esp, 4
xor edx, edx
test esi, esi
jle 0x4bebeb
cmp esi, 0x20
jb 0x4bebc9
lea eax, [ebx - 1]
add eax, esi
lea edi, [ebp - 0x84]
lea ecx, [ebp + esi - 0x85]
cmp edi, eax
ja 0x4beb67
cmp ecx, ebx
jae 0x4bebc9
mov eax, esi
and eax, 0x8000001f
jns 0x4beb75
dec eax
or eax, 0xffffffe0
inc eax
movaps xmm1, xmmword [str.6666666666666666S]
lea edi, [ebp - 0x84]
mov ecx, esi
sub edi, ebx
sub ecx, eax
lea esi, [ebp - 0x74]
sub esi, ebx
mov eax, ebx
mov dword [ebp - 0x3c0], esi
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp - 0x3c0]
nop
movups xmm0, xmmword [eax]
add edx, 0x20
lea eax, [eax + 0x20]
pxor xmm0, xmm1
movups xmmword [edi + eax - 0x20], xmm0
movups xmm0, xmmword [eax - 0x10]
pxor xmm0, xmm1
movups xmmword [ebx + eax - 0x20], xmm0
cmp edx, ecx
jl 0x4beba0
mov ebx, dword [ebp - 0x3b8]
cmp edx, esi
jge 0x4bebeb
mov edi, ebx
lea eax, [ebp - 0x84]
sub edi, eax
lea ecx, [ebp - 0x84]
add ecx, edx
inc edx
mov al, byte [edi + ecx]
xor al, 0x36
mov byte [ecx], al
cmp edx, esi
jl 0x4bebd7
cmp esi, 0x80
jge 0x4bec15
mov ecx, 0x80
lea edi, [ebp - 0x84]
sub ecx, esi
add edi, esi
mov edx, ecx
mov eax, 0x36363636
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x84]
push 0x80
push eax
call fcn.004de780
lea eax, [ebp - 0x214]
push eax
push dword [ebp + 0x14]
push dword [ebp - 0x3bc]
call fcn.004de780
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0xc4]
push eax
call fcn.004de760
lea eax, [ebp - 0x2e4]
push eax
call fcn.004dc5c0
add esp, 0x24
xor edx, edx
test esi, esi
jle 0x4bed14
cmp esi, 0x20
jb 0x4beced
lea eax, [ebx - 1]
add eax, esi
lea edi, [ebp - 0x84]
lea ecx, [ebp + esi - 0x85]
cmp edi, eax
ja 0x4bec8d
cmp ecx, ebx
jae 0x4beced
mov eax, esi
and eax, 0x8000001f
jns 0x4bec9b
dec eax
or eax, 0xffffffe0
inc eax
movaps xmm1, xmmword [0x52d3b0]
lea edi, [ebp - 0x84]
mov ecx, esi
sub edi, ebx
sub ecx, eax
lea esi, [ebp - 0x74]
sub esi, ebx
mov eax, ebx
mov dword [ebp - 0x3bc], esi
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp - 0x3bc]
movups xmm0, xmmword [eax]
add edx, 0x20
lea eax, [eax + 0x20]
pxor xmm0, xmm1
movups xmmword [eax + edi - 0x20], xmm0
movups xmm0, xmmword [eax - 0x10]
pxor xmm0, xmm1
movups xmmword [eax + ebx - 0x20], xmm0
cmp edx, ecx
jl 0x4becc4
mov ebx, dword [ebp - 0x3b8]
cmp edx, esi
jge 0x4bed14
lea eax, [ebp - 0x84]
sub ebx, eax
nop dword [eax]
lea ecx, [ebp - 0x84]
add ecx, edx
inc edx
mov al, byte [ebx + ecx]
xor al, 0x5c
mov byte [ecx], al
cmp edx, esi
jl 0x4bed00
cmp esi, 0x80
jge 0x4bed3e
mov ecx, 0x80
lea edi, [ebp - 0x84]
sub ecx, esi
add edi, esi
mov edx, ecx
mov eax, 0x5c5c5c5c
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [ebp - 0x2e4]
push eax
lea eax, [ebp - 0x84]
push 0x80
push eax
call fcn.004de780
lea eax, [ebp - 0x2e4]
push eax
lea eax, [ebp - 0xc4]
push 0x40
push eax
call fcn.004de780
lea eax, [ebp - 0x2e4]
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.004de760
mov eax, dword [ebp + 0x1c]
mov ecx, 0x40
add esp, 0x20
cmp eax, ecx
cmovg eax, ecx
test eax, eax
jle 0x4beda8
push eax
lea eax, [ebp - 0x104]
push eax
push dword [ebp - 0x3c4]
call fcn.004e4130
add esp, 0xc
lea eax, [ebp - 0x214]
mov ecx, 0xd0
mov esi, ecx
mov edx, eax
mov byte [edx], 0
lea edx, [edx + 1]
sub esi, 1
jne 0x4bedb7
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x4bedc2
lea eax, [ebp - 0x2e4]
mov ecx, 0xd0
mov esi, ecx
mov edx, eax
nop dword [eax]
mov byte [edx], 0
lea edx, [edx + 1]
sub esi, 1
jne 0x4bede0
nop dword [eax + eax]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x4bedf0
lea eax, [ebp - 0xc4]
mov ecx, 0x40
mov esi, ecx
mov edx, eax
nop word [eax + eax]
mov byte [edx], 0
lea edx, [edx + 1]
sub esi, 1
jne 0x4bee10
nop dword [eax + eax]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x4bee20
lea eax, [ebp - 0x104]
mov ecx, 0x40
mov esi, ecx
mov edx, eax
nop word [eax + eax]
mov byte [edx], 0
lea edx, [edx + 1]
sub esi, 1
jne 0x4bee40
nop dword [eax + eax]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x4bee50
lea eax, [ebp - 0x84]
mov ecx, 0x80
mov esi, ecx
mov edx, eax
nop word [eax + eax]
mov byte [edx], 0
lea edx, [edx + 1]
sub esi, 1
jne 0x4bee70
nop dword [eax + eax]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x4bee80
lea eax, [ebp - 0x144]
mov ecx, 0x40
mov esi, ecx
mov edx, eax
nop word [eax + eax]
mov byte [edx], 0
lea edx, [edx + 1]
sub esi, 1
jne 0x4beea0
pop edi
pop esi
pop ebx
nop
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x4beeb0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e1f40
mov esp, ebp
pop ebp
ret