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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x1024bd20]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0x1c]
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 8]
push esi
mov dword [ebp - 0x20c], 0
mov byte [ebp - 0x209], al
lea eax, [ebp - 0x148]
push ecx
push eax
mov dword [ebp - 0x214], edi
mov dword [ebp - 0x210], ebx
call fcn.10178c00
mov eax, dword [ebp - 0x20c]
mov dword [ebp + esi - 0x148], eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [esi + 4]
mov esi, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x148]
push eax
push esi
push edi
call fcn.10170950
movdqu xmm0, xmmword [ebp - 0x2c]
mov eax, dword [ebp - 0x1c]
add esp, 0x20
movdqu xmmword [ebx], xmm0
mov dword [ebx + 0x10], eax
mov eax, dword [ebp + 0x18]
cmp eax, 1
jle 0x101701dd
dec eax
mov dword [ebp - 0x21c], eax
lea ebx, [ebx]
cmp dword [ebp + 0xc], 0x40
mov dword [ebp - 0x20c], esi
mov dword [ebp - 0x218], edi
jle 0x1016ff9a
lea eax, [ebp - 0x208]
push eax
call fcn.101715c0
push dword [ebp + 0xc]
lea eax, [ebp - 0x208]
push dword [ebp - 0x214]
push eax
call fcn.101732c0
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.10171450
lea edi, [ebp - 0x40]
mov esi, 0x14
add esp, 0x18
mov dword [ebp - 0x218], edi
mov dword [ebp - 0x20c], esi
push 0x41
lea eax, [ebp - 0xc8]
push 0x36
push eax
call fcn.10179250
push 0x41
lea eax, [ebp - 0x84]
push 0x5c
push eax
call fcn.10179250
add esp, 0x18
xor ecx, ecx
test esi, esi
jle 0x101700d8
cmp esi, 0x10
jb 0x1017009f
lea eax, [edi - 1]
lea ebx, [ebp - 0x84]
add eax, esi
cmp ebx, eax
lea edx, [ebp + esi - 0x85]
mov ebx, dword [ebp - 0x210]
ja 0x1016fff4
cmp edx, edi
jae 0x1017009f
lea ebx, [ebp - 0xc8]
cmp ebx, eax
lea edx, [ebp + esi - 0xc9]
mov ebx, dword [ebp - 0x210]
ja 0x10170013
cmp edx, edi
jae 0x1017009f
mov eax, esi
and eax, 0x8000000f
jns 0x10170021
dec eax
or eax, 0xfffffff0
inc eax
mov edx, esi
lea ebx, [ebp - 0xc8]
sub edx, eax
mov eax, edi
neg eax
mov dword [ebp - 0x228], edx
add ebx, eax
mov edx, edi
mov dword [ebp - 0x224], ebx
lea ebx, [ebp - 0x84]
mov edi, dword [ebp - 0x224]
add eax, ebx
mov ebx, dword [ebp - 0x210]
mov dword [ebp - 0x220], eax
mov eax, dword [ebp - 0x228]
mov esi, dword [ebp - 0x220]
movdqu xmm1, xmmword [edx]
add ecx, 0x10
lea edx, [edx + 0x10]
movdqu xmm0, xmmword [edi + edx - 0x10]
pxor xmm0, xmm1
movdqu xmmword [edi + edx - 0x10], xmm0
movdqu xmm0, xmmword [esi + edx - 0x10]
pxor xmm0, xmm1
movdqu xmmword [esi + edx - 0x10], xmm0
cmp ecx, eax
jl 0x10170065
mov esi, dword [ebp - 0x20c]
mov edi, dword [ebp - 0x218]
cmp ecx, esi
jge 0x101700d8
lea edx, [ecx + edi]
neg edi
lea ebx, [ebp - 0xc8]
add ebx, edi
sub esi, ecx
lea edi, [ebp + edi - 0x84]
lea esp, [esp]
mov cl, byte [edx]
lea eax, [ebx + edx]
xor byte [eax], cl
lea eax, [edi + edx]
xor byte [eax], cl
lea edx, [edx + 1]
dec esi
jne 0x101700c0
mov ebx, dword [ebp - 0x210]
lea eax, [ebp - 0x1a8]
push eax
call fcn.101715c0
push 0x40
lea eax, [ebp - 0xc8]
push eax
lea eax, [ebp - 0x1a8]
push eax
call fcn.101732c0
push 0x14
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1a8]
push eax
call fcn.101732c0
lea eax, [ebp - 0x1a8]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.10171450
lea eax, [ebp - 0x1a8]
push eax
call fcn.101715c0
push 0x40
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x1a8]
push eax
call fcn.101732c0
push 0x14
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1a8]
push eax
call fcn.101732c0
add esp, 0x40
lea eax, [ebp - 0x1a8]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.10171450
lea edx, [ebp - 0x2c]
add esp, 8
lea ecx, [ebx + 0x13]
xor eax, eax
cmp edx, ecx
ja 0x10170177
lea edx, [ebp - 0x19]
cmp edx, ebx
jae 0x101701ab
lea edx, [ebp - 5]
cmp ebx, edx
ja 0x10170190
lea edx, [ebp - 0x18]
cmp ecx, edx
jae 0x101701ab
jmp 0x10170190
movdqu xmm1, xmmword [ebp - 0x18]
mov eax, 0x10
movdqu xmm0, xmmword [ebx]
movdqu xmmword [ebp - 0x2c], xmm1
pxor xmm0, xmm1
movdqu xmmword [ebx], xmm0
mov esi, ebx
lea ecx, [ebp - 0x18]
sub esi, ecx
lea ecx, [ebp - 0x18]
add ecx, eax
lea edx, [esi + ecx]
mov cl, byte [ecx]
xor byte [edx], cl
mov byte [ebp + eax - 0x2c], cl
inc eax
cmp eax, 0x14
jl 0x101701b2
dec dword [ebp - 0x21c]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp - 0x214]
jne 0x1016ff40
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1017868e
mov esp, ebp
pop ebp
ret