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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x19c
mov eax, dword [0x1024bd20]
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 - 0x19c], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x198], eax
push edi
cmp esi, 0x40
jle 0x10170bc8
lea eax, [ebp - 0x194]
push eax
call fcn.101744c0
lea eax, [ebp - 0x194]
push eax
push esi
push ebx
call fcn.10175690
lea eax, [ebp - 0x194]
push eax
lea eax, [ebp - 0x6c]
push eax
call fcn.101755a0
add esp, 0x18
lea ebx, [ebp - 0x6c]
mov esi, 0x14
lea eax, [ebp - 0x138]
push eax
call fcn.101744c0
add esp, 4
xor edx, edx
test esi, esi
jle 0x10170c54
cmp esi, 0x10
jb 0x10170c38
lea eax, [ebx - 1]
add eax, esi
lea edi, [ebp - 0x44]
lea ecx, [ebp + esi - 0x45]
cmp edi, eax
ja 0x10170bf6
cmp ecx, ebx
jae 0x10170c38
mov eax, esi
and eax, 0x8000000f
jns 0x10170c04
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
jmp 0x10170c20
movdqu xmm0, xmmword [eax]
add edx, 0x10
lea eax, [eax + 0x10]
pxor xmm0, xmm1
movdqu xmmword [edi + eax - 0x10], xmm0
cmp edx, ecx
jl 0x10170c20
cmp edx, esi
jge 0x10170c54
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 0x10170c43
cmp esi, 0x40
jge 0x10170c78
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 - 0x138]
push eax
lea eax, [ebp - 0x44]
push 0x40
push eax
call fcn.10175690
lea eax, [ebp - 0x138]
push eax
push dword [ebp + 0x14]
push dword [ebp - 0x19c]
call fcn.10175690
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.101755a0
lea eax, [ebp - 0xdc]
push eax
call fcn.101744c0
add esp, 0x24
xor edx, edx
test esi, esi
jle 0x10170d32
cmp esi, 0x10
jb 0x10170d18
lea eax, [ebx - 1]
add eax, esi
lea edi, [ebp - 0x44]
lea ecx, [ebp + esi - 0x45]
cmp edi, eax
ja 0x10170cdd
cmp ecx, ebx
jae 0x10170d18
mov eax, esi
and eax, 0x8000000f
jns 0x10170ceb
dec eax
or eax, 0xfffffff0
inc eax
movdqa xmm1, xmmword [0x10203c30]
lea edi, [ebp - 0x44]
mov ecx, esi
sub ecx, eax
mov eax, ebx
sub edi, ebx
mov edi, edi
movdqu xmm0, xmmword [eax]
add edx, 0x10
lea eax, [eax + 0x10]
pxor xmm0, xmm1
movdqu xmmword [eax + edi - 0x10], xmm0
cmp edx, ecx
jl 0x10170d00
cmp edx, esi
jge 0x10170d32
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 0x10170d21
cmp esi, 0x40
jge 0x10170d56
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 - 0xdc]
push eax
lea eax, [ebp - 0x44]
push 0x40
push eax
call fcn.10175690
lea eax, [ebp - 0xdc]
push eax
lea eax, [ebp - 0x80]
push 0x14
push eax
call fcn.10175690
lea eax, [ebp - 0xdc]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.101755a0
mov eax, dword [ebp + 0x1c]
add esp, 0x20
mov ecx, 0x14
cmp eax, ecx
pop edi
cmovg eax, ecx
pop esi
pop ebx
test eax, eax
jle 0x10170db4
push eax
lea eax, [ebp - 0x58]
push eax
push dword [ebp - 0x198]
call fcn.10178c00
add esp, 0xc
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1017868e
mov esp, ebp
pop ebp
ret