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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
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 - 0x400], 0
mov byte [ebp - 0x3fd], al
lea eax, [ebp - 0x204]
push ecx
push eax
mov dword [ebp - 0x408], ebx
mov dword [ebp - 0x404], edi
call fcn.10178c00
mov eax, dword [ebp - 0x400]
mov dword [ebp + esi - 0x204], eax
lea eax, [ebp - 0x84]
push 0x40
push eax
lea eax, [esi + 4]
push eax
lea eax, [ebp - 0x204]
push eax
push dword [ebp + 0xc]
push ebx
call fcn.10170dd0
movdqu xmm0, xmmword [ebp - 0x84]
mov eax, dword [ebp + 0x18]
add esp, 0x24
movdqu xmmword [edi], xmm0
movdqu xmm0, xmmword [ebp - 0x74]
movdqu xmmword [edi + 0x10], xmm0
movdqu xmm0, xmmword [ebp - 0x64]
movdqu xmmword [edi + 0x20], xmm0
movdqu xmm0, xmmword [ebp - 0x54]
movdqu xmmword [edi + 0x30], xmm0
cmp eax, 1
jle 0x101708f2
add edi, 0x3f
dec eax
mov dword [ebp - 0x40c], edi
mov dword [ebp - 0x400], eax
mov edi, dword [ebp + 0xc]
mov esi, edi
cmp edi, 0x40
jle 0x10170653
lea eax, [ebp - 0x3fc]
push eax
call fcn.10175d90
lea eax, [ebp - 0x3fc]
push eax
lea eax, [edi*8]
push eax
push dword [ebp - 0x408]
call fcn.10175740
lea eax, [ebp - 0x144]
push eax
lea eax, [ebp - 0x3fc]
push eax
call fcn.10175900
add esp, 0x18
lea ebx, [ebp - 0x144]
mov esi, 0x40
lea eax, [ebp - 0x354]
push eax
call fcn.10175d90
add esp, 4
xor edx, edx
test esi, esi
jle 0x101706d6
cmp esi, 0x10
jb 0x101706ba
lea eax, [ebx - 1]
add eax, esi
lea edi, [ebp - 0x44]
lea ecx, [ebp + esi - 0x45]
cmp edi, eax
ja 0x10170681
cmp ecx, ebx
jae 0x101706ba
mov eax, esi
and eax, 0x8000000f
jns 0x1017068f
dec eax
or eax, 0xfffffff0
inc eax
movdqa xmm1, xmmword [str.6666666666666666_]
lea edi, [ebp - 0x44]
mov ecx, esi
sub ecx, eax
mov eax, ebx
sub edi, ebx
movdqu xmm0, xmmword [eax]
add edx, 0x10
lea eax, [eax + 0x10]
pxor xmm0, xmm1
movdqu xmmword [eax + edi - 0x10], xmm0
cmp edx, ecx
jl 0x101706a2
cmp edx, esi
jge 0x101706d6
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 0x101706c5
cmp esi, 0x40
jge 0x101706fa
mov ecx, 0x40
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 - 0x354]
push eax
lea eax, [ebp - 0x44]
push 0x200
push eax
call fcn.10175740
lea eax, [ebp - 0x354]
push eax
lea eax, [ebp - 0x84]
push 0x200
push eax
call fcn.10175740
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x354]
push eax
call fcn.10175900
lea eax, [ebp - 0x2ac]
push eax
call fcn.10175d90
add esp, 0x24
xor eax, eax
test esi, esi
jle 0x101707c3
cmp esi, 0x10
jb 0x101707a8
lea ecx, [ebx - 1]
add ecx, esi
lea edi, [ebp - 0x44]
lea edx, [ebp + esi - 0x45]
cmp edi, ecx
ja 0x10170768
cmp edx, ebx
jae 0x101707a8
mov ecx, esi
and ecx, 0x8000000f
jns 0x10170777
dec ecx
or ecx, 0xfffffff0
inc ecx
movdqa xmm1, xmmword [0x10203c30]
lea edi, [ebp - 0x44]
mov edx, esi
sub edx, ecx
mov ecx, ebx
sub edi, ebx
lea ebx, [ebx]
movdqu xmm0, xmmword [ecx]
add eax, 0x10
lea ecx, [ecx + 0x10]
pxor xmm0, xmm1
movdqu xmmword [ecx + edi - 0x10], xmm0
cmp eax, edx
jl 0x10170790
cmp eax, esi
jge 0x101707c3
lea ecx, [ebp - 0x44]
sub ebx, ecx
lea edx, [ebp - 0x44]
add edx, eax
inc eax
mov cl, byte [ebx + edx]
xor cl, 0x5c
mov byte [edx], cl
cmp eax, esi
jl 0x101707b1
cmp esi, 0x40
jge 0x101707e7
mov ecx, 0x40
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 - 0x2ac]
push eax
lea eax, [ebp - 0x44]
push 0x200
push eax
call fcn.10175740
lea eax, [ebp - 0x2ac]
push eax
lea eax, [ebp - 0x104]
push 0x200
push eax
call fcn.10175740
lea eax, [ebp - 0x184]
push eax
lea eax, [ebp - 0x2ac]
push eax
call fcn.10175900
push 0x40
lea eax, [ebp - 0x184]
push eax
lea eax, [ebp - 0xc4]
push eax
call fcn.10178c00
mov eax, dword [ebp - 0x40c]
lea ecx, [ebp - 0xc4]
mov edi, dword [ebp - 0x404]
add esp, 0x2c
xor edx, edx
cmp ecx, eax
ja 0x10170861
lea ecx, [ebp - 0x85]
cmp ecx, edi
jae 0x10170872
lea ecx, [ebp - 0x84]
cmp ecx, eax
ja 0x1017089e
lea eax, [ebp - 0x45]
cmp eax, edi
jb 0x1017089e
mov esi, edi
lea eax, [ebp - 0xc4]
sub esi, eax
lea esp, [esp]
lea eax, [ebp - 0xc4]
add eax, edx
lea ecx, [eax + esi]
mov al, byte [eax]
xor byte [ecx], al
mov byte [ebp + edx - 0x84], al
inc edx
cmp edx, 0x40
jl 0x10170880
jmp 0x101708e0
lea edx, [ebp - 0x84]
mov eax, edi
lea esi, [ebp - 0xc4]
sub edx, edi
sub esi, edi
mov ecx, 4
jmp 0x101708c0
lea eax, [eax + 0x10]
movdqu xmm1, xmmword [esi + eax - 0x10]
movdqu xmm0, xmmword [eax - 0x10]
movdqu xmmword [edx + eax - 0x10], xmm1
pxor xmm0, xmm1
movdqu xmmword [eax - 0x10], xmm0
dec ecx
jne 0x101708c0
dec dword [ebp - 0x400]
mov ebx, dword [ebp - 0x408]
jne 0x10170602
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1017868e
mov esp, ebp
pop ebp
ret