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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30c
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 - 0x304], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x300], ebx
mov dword [ebp - 0x30c], eax
push edi
cmp esi, 0x40
jle 0x4bef7b
lea eax, [ebp - 0x2fc]
push eax
call fcn.004df070
lea eax, [ebp - 0x2fc]
push eax
lea eax, [esi*8]
push eax
push ebx
call fcn.004dea30
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x2fc]
push eax
call fcn.004debf0
lea ebx, [ebp - 0x104]
mov esi, 0x40
lea eax, [ebp - 0x2fc]
mov dword [ebp - 0x300], ebx
mov ecx, 0xa8
mov dword [ebp + 0xc], esi
add esp, 0x18
mov edi, ecx
mov edx, eax
mov byte [edx], 0
lea edx, [edx + 1]
sub edi, 1
jne 0x4bef63
nop
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x4bef70
lea eax, [ebp - 0x1ac]
push eax
call fcn.004df070
add esp, 4
xor edx, edx
test esi, esi
jle 0x4bf026
cmp esi, 0x20
jb 0x4bf00a
lea eax, [ebx - 1]
add eax, esi
lea edi, [ebp - 0x44]
lea ecx, [ebp + esi - 0x45]
cmp edi, eax
ja 0x4befad
cmp ecx, ebx
jae 0x4bf00a
mov eax, esi
and eax, 0x8000001f
jns 0x4befbb
dec eax
or eax, 0xffffffe0
inc eax
movaps xmm1, xmmword [str.6666666666666666S]
lea edi, [ebp - 0x44]
mov ecx, esi
sub edi, ebx
sub ecx, eax
lea esi, [ebp - 0x34]
sub esi, ebx
mov eax, ebx
mov dword [ebp - 0x308], esi
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp - 0x308]
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 0x4befe1
mov ebx, dword [ebp - 0x300]
cmp edx, esi
jge 0x4bf026
mov edi, ebx
lea eax, [ebp - 0x44]
sub edi, eax
lea ecx, [ebp - 0x44]
add ecx, edx
inc edx
mov al, byte [edi + ecx]
xor al, 0x36
mov byte [ecx], al
cmp edx, esi
jl 0x4bf015
mov eax, 0x40
cmp esi, eax
jge 0x4bf04b
mov ecx, eax
lea edi, [ebp - 0x44]
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 - 0x1ac]
push eax
lea eax, [ebp - 0x44]
push 0x200
push eax
call fcn.004dea30
lea eax, [ebp - 0x1ac]
push eax
mov eax, dword [ebp + 0x14]
shl eax, 3
push eax
push dword [ebp - 0x304]
call fcn.004dea30
lea eax, [ebp - 0xc4]
push eax
lea eax, [ebp - 0x1ac]
push eax
call fcn.004debf0
lea eax, [ebp - 0x254]
push eax
call fcn.004df070
add esp, 0x24
xor edx, edx
test esi, esi
jle 0x4bf135
cmp esi, 0x20
jb 0x4bf11b
lea eax, [ebx - 1]
add eax, esi
lea edi, [ebp - 0x44]
lea ecx, [ebp + esi - 0x45]
cmp edi, eax
ja 0x4bf0be
cmp ecx, ebx
jae 0x4bf11b
mov eax, esi
and eax, 0x8000001f
jns 0x4bf0cc
dec eax
or eax, 0xffffffe0
inc eax
movaps xmm1, xmmword [0x52d3b0]
lea edi, [ebp - 0x44]
mov ecx, esi
sub edi, ebx
sub ecx, eax
lea esi, [ebp - 0x34]
sub esi, ebx
mov eax, ebx
mov dword [ebp - 0x304], esi
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp - 0x304]
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 0x4bf0f2
mov ebx, dword [ebp - 0x300]
cmp edx, esi
jge 0x4bf135
lea eax, [ebp - 0x44]
sub ebx, eax
lea ecx, [ebp - 0x44]
add ecx, edx
inc edx
mov al, byte [ebx + ecx]
xor al, 0x5c
mov byte [ecx], al
cmp edx, esi
jl 0x4bf124
mov ebx, 0x40
cmp esi, ebx
jge 0x4bf15a
mov ecx, ebx
lea edi, [ebp - 0x44]
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 - 0x254]
push eax
lea eax, [ebp - 0x44]
push 0x200
push eax
call fcn.004dea30
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0xc4]
push 0x200
push eax
call fcn.004dea30
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x254]
push eax
call fcn.004debf0
mov eax, dword [ebp + 0x1c]
add esp, 0x20
cmp eax, 0x40
cmovg eax, ebx
test eax, eax
jle 0x4bf1c0
push eax
lea eax, [ebp - 0x84]
push eax
push dword [ebp - 0x30c]
call fcn.004e4130
add esp, 0xc
lea eax, [ebp - 0x1ac]
mov ecx, 0xa8
mov esi, ecx
mov edx, eax
nop
mov byte [edx], 0
lea edx, [edx + 1]
sub esi, 1
jne 0x4bf1d0
nop dword [eax + eax]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x4bf1e0
lea eax, [ebp - 0x254]
mov ecx, 0xa8
mov esi, ecx
mov edx, eax
nop word [eax + eax]
mov byte [edx], 0
lea edx, [edx + 1]
sub esi, 1
jne 0x4bf200
nop dword [eax + eax]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x4bf210
lea eax, [ebp - 0x84]
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 0x4bf230
nop dword [eax + eax]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x4bf240
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 0x4bf260
nop dword [eax + eax]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x4bf270
lea eax, [ebp - 0x44]
mov ecx, 0x40
mov esi, ecx
mov edx, eax
mov byte [edx], 0
lea edx, [edx + 1]
sub esi, 1
jne 0x4bf287
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x4bf292
lea eax, [ebp - 0x104]
mov ecx, 0x40
mov esi, ecx
mov edx, eax
nop dword [eax]
mov byte [edx], 0
lea edx, [edx + 1]
sub esi, 1
jne 0x4bf2b0
pop edi
pop esi
pop ebx
nop
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x4bf2c0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e1f40
mov esp, ebp
pop ebp
ret