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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
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 + 8]
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x1c]
push esi
mov dword [ebp - 0x240], 0
mov byte [ebp - 0x23d], al
lea eax, [ebp - 0x128]
push ecx
push eax
mov dword [ebp - 0x248], ebx
mov dword [ebp - 0x244], edi
call fcn.10178c00
mov eax, dword [ebp - 0x240]
mov dword [ebp + esi - 0x128], eax
lea eax, [ebp - 0x18]
push 0x14
push eax
lea eax, [esi + 4]
push eax
lea eax, [ebp - 0x128]
push eax
push dword [ebp + 0xc]
push ebx
call fcn.10170b60
movdqu xmm0, xmmword [ebp - 0x18]
mov eax, dword [ebp - 8]
add esp, 0x24
movdqu xmmword [edi], xmm0
mov dword [edi + 0x10], eax
mov eax, dword [ebp + 0x18]
cmp eax, 1
jle 0x10170528
add edi, 0x13
dec eax
mov dword [ebp - 0x24c], edi
mov dword [ebp - 0x240], eax
mov edi, dword [ebp + 0xc]
mov esi, edi
cmp edi, 0x40
jle 0x101702de
lea eax, [ebp - 0x23c]
push eax
call fcn.101744c0
lea eax, [ebp - 0x23c]
push eax
push edi
push dword [ebp - 0x248]
call fcn.10175690
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0xa8]
push eax
call fcn.101755a0
add esp, 0x18
lea ebx, [ebp - 0xa8]
mov esi, 0x14
lea eax, [ebp - 0x184]
push eax
call fcn.101744c0
add esp, 4
xor edx, edx
test esi, esi
jle 0x10170364
cmp esi, 0x10
jb 0x10170348
lea eax, [ebx - 1]
add eax, esi
lea edi, [ebp - 0x6c]
lea ecx, [ebp + esi - 0x6d]
cmp edi, eax
ja 0x1017030c
cmp ecx, ebx
jae 0x10170348
mov eax, esi
and eax, 0x8000000f
jns 0x1017031a
dec eax
or eax, 0xfffffff0
inc eax
movdqa xmm1, xmmword [str.6666666666666666_]
lea edi, [ebp - 0x6c]
mov ecx, esi
sub ecx, eax
mov eax, ebx
sub edi, ebx
lea ecx, [ecx]
movdqu xmm0, xmmword [eax]
add edx, 0x10
lea eax, [eax + 0x10]
pxor xmm0, xmm1
movdqu xmmword [eax + edi - 0x10], xmm0
cmp edx, ecx
jl 0x10170330
cmp edx, esi
jge 0x10170364
mov edi, ebx
lea eax, [ebp - 0x6c]
sub edi, eax
lea ecx, [ebp - 0x6c]
add ecx, edx
inc edx
mov al, byte [edi + ecx]
xor al, 0x36
mov byte [ecx], al
cmp edx, esi
jl 0x10170353
cmp esi, 0x40
jge 0x10170388
mov ecx, 0x40
lea edi, [ebp - 0x6c]
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 - 0x184]
push eax
lea eax, [ebp - 0x6c]
push 0x40
push eax
call fcn.10175690
lea eax, [ebp - 0x184]
push eax
lea eax, [ebp - 0x18]
push 0x14
push eax
call fcn.10175690
lea eax, [ebp - 0x184]
push eax
lea eax, [ebp - 0x94]
push eax
call fcn.101755a0
lea eax, [ebp - 0x1e0]
push eax
call fcn.101744c0
add esp, 0x24
xor eax, eax
test esi, esi
jle 0x10170443
cmp esi, 0x10
jb 0x10170428
lea ecx, [ebx - 1]
add ecx, esi
lea edi, [ebp - 0x6c]
lea edx, [ebp + esi - 0x6d]
cmp edi, ecx
ja 0x101703ed
cmp edx, ebx
jae 0x10170428
mov ecx, esi
and ecx, 0x8000000f
jns 0x101703fc
dec ecx
or ecx, 0xfffffff0
inc ecx
movdqa xmm1, xmmword [0x10203c30]
lea edi, [ebp - 0x6c]
mov edx, esi
sub edx, ecx
mov ecx, ebx
sub edi, ebx
nop
movdqu xmm0, xmmword [ecx]
add eax, 0x10
lea ecx, [ecx + 0x10]
pxor xmm0, xmm1
movdqu xmmword [ecx + edi - 0x10], xmm0
cmp eax, edx
jl 0x10170410
cmp eax, esi
jge 0x10170443
lea ecx, [ebp - 0x6c]
sub ebx, ecx
lea edx, [ebp - 0x6c]
add edx, eax
inc eax
mov cl, byte [ebx + edx]
xor cl, 0x5c
mov byte [edx], cl
cmp eax, esi
jl 0x10170431
cmp esi, 0x40
jge 0x10170467
mov ecx, 0x40
lea edi, [ebp - 0x6c]
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 - 0x1e0]
push eax
lea eax, [ebp - 0x6c]
push 0x40
push eax
call fcn.10175690
lea eax, [ebp - 0x1e0]
push eax
lea eax, [ebp - 0x94]
push 0x14
push eax
call fcn.10175690
lea eax, [ebp - 0x1e0]
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.101755a0
mov eax, dword [ebp - 0x70]
lea ecx, [ebp - 0x2c]
movdqu xmm1, xmmword [ebp - 0x80]
mov edi, dword [ebp - 0x244]
add esp, 0x20
mov dword [ebp - 0x1c], eax
xor edx, edx
mov eax, dword [ebp - 0x24c]
movdqu xmmword [ebp - 0x2c], xmm1
cmp ecx, eax
ja 0x101704cd
lea ecx, [ebp - 0x19]
cmp ecx, edi
jae 0x101704f6
lea ecx, [ebp - 0x18]
cmp ecx, eax
ja 0x101704e0
lea eax, [ebp - 5]
cmp eax, edi
jae 0x101704f6
jmp 0x101704e0
movdqu xmm0, xmmword [edi]
mov edx, 0x10
movdqu xmmword [ebp - 0x18], xmm1
pxor xmm0, xmm1
movdqu xmmword [edi], xmm0
mov esi, edi
lea eax, [ebp - 0x2c]
sub esi, eax
lea ecx, [ecx]
lea eax, [ebp - 0x2c]
add eax, edx
lea ecx, [eax + esi]
mov al, byte [eax]
xor byte [ecx], al
mov byte [ebp + edx - 0x18], al
inc edx
cmp edx, 0x14
jl 0x10170500
dec dword [ebp - 0x240]
mov ebx, dword [ebp - 0x248]
jne 0x10170294
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1017868e
mov esp, ebp
pop ebp
ret