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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x170
mov eax, dword [0x55e2f4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x16c], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x170], eax
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x168], edi
cmp esi, 0x40
jle 0x4be45c
lea eax, [ebp - 0x160]
push eax
call fcn.004da070
push esi
lea eax, [ebp - 0x160]
push edi
push eax
call fcn.004db230
lea eax, [ebp - 0x160]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004d9fb0
lea edi, [ebp - 0x18]
mov esi, 0x14
lea eax, [ebp - 0x160]
mov dword [ebp - 0x168], edi
mov ecx, 0x60
mov dword [ebp + 0xc], esi
add esp, 0x18
mov ebx, ecx
mov edx, eax
mov byte [edx], 0
lea edx, [edx + 1]
sub ebx, 1
jne 0x4be446
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x4be451
push 0x41
lea eax, [ebp - 0x5c]
push 0x36
push eax
call fcn.004e46b0
push 0x41
lea eax, [ebp - 0xa0]
push 0x5c
push eax
call fcn.004e46b0
add esp, 0x18
xor ecx, ecx
test esi, esi
jle 0x4be554
cmp esi, 0x10
jb 0x4be51f
lea eax, [edi - 1]
add eax, esi
lea ebx, [ebp - 0xa0]
lea edx, [ebp + esi - 0xa1]
cmp ebx, eax
ja 0x4be4a9
cmp edx, edi
jae 0x4be51f
lea ebx, [ebp - 0x5c]
lea edx, [ebp + esi - 0x5d]
cmp ebx, eax
ja 0x4be4b8
cmp edx, edi
jae 0x4be51f
mov eax, esi
and eax, 0x8000000f
jns 0x4be4c6
dec eax
or eax, 0xfffffff0
inc eax
mov edx, esi
lea ebx, [ebp - 0x5c]
sub edx, eax
lea esi, [ebp - 0xa0]
sub ebx, edi
mov eax, edi
sub esi, edi
mov dword [ebp - 0x164], esi
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp - 0x164]
nop dword [eax + eax]
movups xmm1, xmmword [eax]
add ecx, 0x10
lea eax, [eax + 0x10]
movups xmm0, xmmword [ebx + eax - 0x10]
pxor xmm0, xmm1
movups xmmword [ebx + eax - 0x10], xmm0
movups xmm0, xmmword [edi + eax - 0x10]
pxor xmm0, xmm1
movups xmmword [edi + eax - 0x10], xmm0
cmp ecx, edx
jl 0x4be4f0
mov edi, dword [ebp - 0x168]
cmp ecx, esi
jge 0x4be554
lea eax, [ebp - 0xa0]
sub eax, edi
lea ebx, [ebp - 0x5c]
sub ebx, edi
mov dword [ebp - 0x164], eax
lea edx, [edi + ecx]
sub esi, ecx
mov edi, eax
nop dword [eax]
mov cl, byte [edx]
lea eax, [edx + ebx]
xor byte [eax], cl
lea eax, [edx + edi]
xor byte [eax], cl
lea edx, [edx + 1]
sub esi, 1
jne 0x4be540
lea eax, [ebp - 0x100]
push eax
call fcn.004da070
push 0x40
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x100]
push eax
call fcn.004db230
push dword [ebp + 0x14]
lea eax, [ebp - 0x100]
push dword [ebp - 0x16c]
push eax
call fcn.004db230
mov ebx, dword [ebp - 0x170]
lea eax, [ebp - 0x100]
push eax
push ebx
call fcn.004d9fb0
lea eax, [ebp - 0x100]
push eax
call fcn.004da070
push 0x40
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0x100]
push eax
call fcn.004db230
push 0x14
lea eax, [ebp - 0x100]
push ebx
push eax
call fcn.004db230
add esp, 0x40
lea eax, [ebp - 0x100]
push eax
push ebx
call fcn.004d9fb0
lea eax, [ebp - 0x5c]
mov ecx, 0x41
add esp, 8
mov esi, ecx
mov edx, eax
nop dword [eax]
mov byte [edx], 0
lea edx, [edx + 1]
sub esi, 1
jne 0x4be5f0
nop dword [eax + eax]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x4be600
lea eax, [ebp - 0xa0]
mov ecx, 0x41
mov esi, ecx
mov edx, eax
nop word [eax + eax]
mov byte [edx], 0
lea edx, [edx + 1]
sub esi, 1
jne 0x4be620
nop dword [eax + eax]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x4be630
lea eax, [ebp - 0x18]
mov ecx, 0x14
mov esi, ecx
mov edx, eax
mov byte [edx], 0
lea edx, [edx + 1]
sub esi, 1
jne 0x4be647
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x4be652
lea eax, [ebp - 0x100]
mov ecx, 0x60
mov esi, ecx
mov edx, eax
nop dword [eax]
mov byte [edx], 0
lea edx, [edx + 1]
sub esi, 1
jne 0x4be670
pop edi
pop esi
pop ebx
nop
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x4be680
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e1f40
mov esp, ebp
pop ebp
ret