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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x100f529c]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x110], ebx
mov dword [ebp - 0x108], ecx
test edi, edi
jne 0x10051395
mov edi, dword [ebx]
mov eax, edi
jmp 0x10051397
mov eax, dword [ebx]
cmp edi, eax
jne 0x100513a3
test ecx, ecx
je 0x10051644
mov esi, dword [edi + 0x18]
mov eax, dword [ebp + 0x10]
cmp esi, eax
jae 0x10051445
mov ecx, dword [ebx + 4]
lea eax, [ebx + 4]
cmp ecx, edi
je 0x100513eb
push dword [edi + 0x1c]
call fcn.1006c4c0
add esp, 4
mov dword [ebp - 0x10c], eax
test eax, eax
je 0x10051432
push dword [ebx + 8]
call fcn.1006c350
mov ecx, dword [ebp - 0x10c]
lea eax, [ebx + 4]
mov dword [eax + 4], ecx
add esp, 4
mov dword [eax], edi
mov ecx, edi
push eax
mov eax, dword [ecx + 0xc]
call eax
mov ecx, dword [ebp + 0x10]
lea edx, [ebx + 4]
mov eax, dword [edx]
push ecx
push dword [ebp - 0x108]
mov eax, dword [eax + 0x10]
push edx
call eax
mov eax, dword [ebx + 4]
lea ecx, [ebx + 4]
lea edx, [ebp - 0x84]
push edx
push ecx
mov eax, dword [eax + 0x14]
call eax
mov eax, dword [ebx + 4]
push dword [eax + 0x1c]
mov ecx, dword [eax + 4]
push dword [ebx + 8]
mov dword [ebp + 0x10], ecx
call fcn.1006c330
add esp, 0x20
jmp 0x1005145a
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100a69cd
mov esp, ebp
pop ebp
ret
test eax, eax
je 0x1005145a
push eax
push ecx
lea eax, [ebp - 0x84]
push eax
call fcn.100a7910
add esp, 0xc
mov eax, dword [ebp + 0x10]
mov ecx, esi
sub ecx, eax
je 0x10051477
push ecx
lea ecx, [ebp - 0x84]
add eax, ecx
push 0
push eax
call fcn.100a7e90
add esp, 0xc
xor ecx, ecx
test esi, esi
je 0x10051505
cmp esi, 0x40
jb 0x100514f0
movaps xmm1, xmmword [str.6666666666666666_]
mov eax, esi
and eax, 0xffffffc0
movups xmm0, xmmword [ebp + ecx - 0x84]
pxor xmm0, xmm1
movups xmmword [ebp + ecx - 0x104], xmm0
movups xmm0, xmmword [ebp + ecx - 0x74]
pxor xmm0, xmm1
movups xmmword [ebp + ecx - 0xf4], xmm0
movups xmm0, xmmword [ebp + ecx - 0x64]
pxor xmm0, xmm1
movups xmmword [ebp + ecx - 0xe4], xmm0
movups xmm0, xmmword [ebp + ecx - 0x54]
pxor xmm0, xmm1
movups xmmword [ebp + ecx - 0xd4], xmm0
add ecx, 0x40
cmp ecx, eax
jb 0x10051492
cmp ecx, esi
jae 0x10051505
nop dword [eax]
nop dword [eax + eax]
mov al, byte [ebp + ecx - 0x84]
xor al, 0x36
mov byte [ebp + ecx - 0x104], al
inc ecx
cmp ecx, esi
jb 0x100514f0
mov ecx, dword [ebx + 0x14]
lea eax, [ebx + 0x14]
cmp ecx, edi
je 0x10051543
push dword [edi + 0x1c]
call fcn.1006c4c0
add esp, 4
mov dword [ebp - 0x108], eax
test eax, eax
je 0x10051432
push dword [ebx + 0x18]
call fcn.1006c350
mov ecx, dword [ebp - 0x108]
lea eax, [ebx + 0x14]
mov dword [eax + 4], ecx
add esp, 4
mov dword [eax], edi
mov ecx, edi
push eax
mov eax, dword [ecx + 0xc]
call eax
mov eax, dword [ebx + 0x14]
lea ecx, [ebx + 0x14]
push esi
lea edx, [ebp - 0x104]
push edx
mov eax, dword [eax + 0x10]
push ecx
call eax
add esp, 0x10
xor eax, eax
test esi, esi
je 0x100515e8
cmp esi, 0x40
jb 0x100515d2
movaps xmm1, xmmword [0x100c8730]
mov ecx, esi
and ecx, 0xffffffc0
nop dword [eax + eax]
movups xmm0, xmmword [ebp + eax - 0x84]
pxor xmm0, xmm1
movups xmmword [ebp + eax - 0x104], xmm0
movups xmm0, xmmword [ebp + eax - 0x74]
pxor xmm0, xmm1
movups xmmword [ebp + eax - 0xf4], xmm0
movups xmm0, xmmword [ebp + eax - 0x64]
pxor xmm0, xmm1
movups xmmword [ebp + eax - 0xe4], xmm0
movups xmm0, xmmword [ebp + eax - 0x54]
pxor xmm0, xmm1
movups xmmword [ebp + eax - 0xd4], xmm0
add eax, 0x40
cmp eax, ecx
jb 0x10051580
cmp eax, esi
jae 0x100515e8
mov cl, byte [ebp + eax - 0x84]
xor cl, 0x5c
mov byte [ebp + eax - 0x104], cl
inc eax
cmp eax, esi
jb 0x100515d2
mov eax, dword [ebx + 0x24]
add ebx, 0x24
cmp eax, edi
je 0x10051623
push dword [edi + 0x1c]
call fcn.1006c4c0
add esp, 4
mov dword [ebp - 0x108], eax
test eax, eax
je 0x10051432
push dword [ebx + 4]
call fcn.1006c350
mov eax, dword [ebp - 0x108]
add esp, 4
mov dword [ebx + 4], eax
mov eax, edi
mov dword [ebx], edi
mov eax, dword [eax + 0xc]
push ebx
call eax
mov eax, dword [ebx]
lea ecx, [ebp - 0x104]
push esi
push ecx
push ebx
mov eax, dword [eax + 0x10]
call eax
mov ebx, dword [ebp - 0x110]
add esp, 0x10
mov dword [ebx], edi
lea eax, [ebx + 0x14]
push eax
lea eax, [ebx + 4]
push eax
call fcn.100502c0
add esp, 8
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100a69cd
mov esp, ebp
pop ebp
ret