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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x102bff3c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0x1c]
push esi
mov esi, dword [ebp + 0x14]
push edi
mov dword [ebp - 0x244], eax
mov al, byte [ebp + 0x20]
push esi
mov dword [ebp - 0x240], 0
mov byte [ebp - 0x23d], al
lea eax, [ebp - 0x128]
push ecx
push eax
call fcn.101d11a0
mov eax, dword [ebp - 0x240]
mov edi, dword [ebp + 0xc]
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 edi
push dword [ebp - 0x244]
call fcn.101b03b0
mov eax, dword [ebp - 0x18]
add esp, 0x24
mov dword [ebx], eax
mov eax, dword [ebp - 0x14]
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0xc]
mov dword [ebx + 0xc], eax
mov eax, dword [ebp - 8]
mov dword [ebx + 0x10], eax
mov eax, dword [ebp + 0x18]
cmp eax, 1
jle 0x101aff6b
lea ecx, [ebp - 0x2c]
sub ebx, ecx
dec eax
mov dword [ebp - 0x248], ebx
mov dword [ebp - 0x240], eax
mov ebx, dword [ebp - 0x244]
mov esi, edi
cmp edi, 0x40
jle 0x101afe0c
lea eax, [ebp - 0x23c]
push eax
call fcn.101b3a10
lea eax, [ebp - 0x23c]
push eax
push edi
push ebx
call fcn.101b4bf0
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x94]
push eax
call fcn.101b4af0
add esp, 0x18
lea ebx, [ebp - 0x94]
mov esi, 0x14
lea eax, [ebp - 0x184]
push eax
call fcn.101b3a10
add esp, 4
xor edx, edx
test esi, esi
jle 0x101afe39
mov edi, ebx
lea eax, [ebp - 0x80]
sub edi, eax
lea ecx, [ebp - 0x80]
add ecx, edx
inc edx
mov al, byte [edi + ecx]
xor al, 0x36
mov byte [ecx], al
cmp edx, esi
jl 0x101afe28
cmp esi, 0x40
jge 0x101afe5d
mov ecx, 0x40
lea edi, [ebp - 0x80]
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 - 0x80]
push 0x40
push eax
call fcn.101b4bf0
lea eax, [ebp - 0x184]
push eax
lea eax, [ebp - 0x18]
push 0x14
push eax
call fcn.101b4bf0
lea eax, [ebp - 0x184]
push eax
lea eax, [ebp - 0xa8]
push eax
call fcn.101b4af0
lea eax, [ebp - 0x1e0]
push eax
call fcn.101b3a10
add esp, 0x24
xor edx, edx
test esi, esi
jle 0x101afec1
lea eax, [ebp - 0x80]
sub ebx, eax
mov edi, edi
lea ecx, [ebp - 0x80]
add ecx, edx
inc edx
mov al, byte [ebx + ecx]
xor al, 0x5c
mov byte [ecx], al
cmp edx, esi
jl 0x101afeb0
cmp esi, 0x40
jge 0x101afee5
mov ecx, 0x40
lea edi, [ebp - 0x80]
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 - 0x80]
push 0x40
push eax
call fcn.101b4bf0
lea eax, [ebp - 0x1e0]
push eax
lea eax, [ebp - 0xa8]
push 0x14
push eax
call fcn.101b4bf0
lea eax, [ebp - 0x1e0]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.101b4af0
mov eax, dword [ebp - 0x40]
add esp, 0x20
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x1c], eax
xor eax, eax
nop
mov edx, dword [ebp - 0x248]
lea ecx, [ebp - 0x2c]
add ecx, eax
add edx, ecx
mov cl, byte [ecx]
xor byte [edx], cl
mov byte [ebp + eax - 0x18], cl
inc eax
cmp eax, 0x14
jl 0x101aff40
sub dword [ebp - 0x240], 1
mov edi, dword [ebp + 0xc]
jne 0x101afdc4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101b70aa
mov esp, ebp
pop ebp
ret