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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x304
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 - 0x304], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x300], eax
push edi
cmp esi, 0x40
jle 0x10170e45
lea eax, [ebp - 0x2fc]
push eax
call fcn.10175d90
lea eax, [ebp - 0x2fc]
push eax
lea eax, [esi*8]
push eax
push ebx
call fcn.10175740
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x2fc]
push eax
call fcn.10175900
add esp, 0x18
lea ebx, [ebp - 0x104]
mov esi, 0x40
lea eax, [ebp - 0x1ac]
push eax
call fcn.10175d90
add esp, 4
xor edx, edx
test esi, esi
jle 0x10170ec8
cmp esi, 0x10
jb 0x10170eac
lea eax, [ebx - 1]
add eax, esi
lea edi, [ebp - 0x44]
lea ecx, [ebp + esi - 0x45]
cmp edi, eax
ja 0x10170e73
cmp ecx, ebx
jae 0x10170eac
mov eax, esi
and eax, 0x8000000f
jns 0x10170e81
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 [edi + eax - 0x10], xmm0
cmp edx, ecx
jl 0x10170e94
cmp edx, esi
jge 0x10170ec8
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 0x10170eb7
mov eax, 0x40
cmp esi, eax
jge 0x10170eed
mov ecx, eax
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 - 0x1ac]
push eax
lea eax, [ebp - 0x44]
push 0x200
push eax
call fcn.10175740
lea eax, [ebp - 0x1ac]
push eax
mov eax, dword [ebp + 0x14]
shl eax, 3
push eax
push dword [ebp - 0x304]
call fcn.10175740
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x1ac]
push eax
call fcn.10175900
lea eax, [ebp - 0x254]
push eax
call fcn.10175d90
add esp, 0x24
xor edx, edx
test esi, esi
jle 0x10170fb2
cmp esi, 0x10
jb 0x10170f98
lea eax, [ebx - 1]
add eax, esi
lea edi, [ebp - 0x44]
lea ecx, [ebp + esi - 0x45]
cmp edi, eax
ja 0x10170f5c
cmp ecx, ebx
jae 0x10170f98
mov eax, esi
and eax, 0x8000000f
jns 0x10170f6a
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
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 0x10170f80
cmp edx, esi
jge 0x10170fb2
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 0x10170fa1
mov ebx, 0x40
cmp esi, ebx
jge 0x10170fd7
mov ecx, ebx
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 - 0x254]
push eax
lea eax, [ebp - 0x44]
push 0x200
push eax
call fcn.10175740
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x84]
push 0x200
push eax
call fcn.10175740
lea eax, [ebp - 0xc4]
push eax
lea eax, [ebp - 0x254]
push eax
call fcn.10175900
mov eax, dword [ebp + 0x1c]
add esp, 0x20
cmp eax, 0x40
cmovg eax, ebx
pop edi
pop esi
pop ebx
test eax, eax
jle 0x10171040
push eax
lea eax, [ebp - 0xc4]
push eax
push dword [ebp - 0x300]
call fcn.10178c00
add esp, 0xc
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1017868e
mov esp, ebp
pop ebp
ret