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

Disassembly:
push ebp
mov ebp, dword [esp + 0x14]
push esi
push edi
push 0x40
mov esi, eax
mov eax, dword [ebx + 0x148]
push 0
push eax
call fcn.100b2d30
push 0x40
lea edi, [ebx + 0xc4]
push 0x36
push edi
call fcn.100b2d30
push 0x40
lea eax, [ebx + 0x104]
push 0x5c
push eax
call fcn.100b2d30
add esp, 0x24
cmp esi, 0x40
jle 0x1005a2b5
mov ecx, dword [esp + 0x18]
xor eax, eax
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x18], eax
mov eax, esi
push ecx
mov esi, ebx
mov dword [ebx], 0x67452301
mov dword [ebx + 4], 0xefcdab89
mov dword [ebx + 8], 0x98badcfe
mov dword [ebx + 0xc], 0x10325476
mov dword [ebx + 0x10], 0xc3d2e1f0
call fcn.1005a040
mov ecx, ebx
call fcn.1005a0f0
mov edx, dword [ebx + 0x60]
mov eax, dword [ebx + 0x148]
mov dword [eax], edx
mov ecx, dword [ebx + 0x64]
mov dword [eax + 4], ecx
mov edx, dword [ebx + 0x68]
mov dword [eax + 8], edx
mov ecx, dword [ebx + 0x6c]
mov dword [eax + 0xc], ecx
mov edx, dword [ebx + 0x70]
mov dword [eax + 0x10], edx
jmp 0x1005a2ca
mov eax, dword [esp + 0x18]
mov ecx, dword [ebx + 0x148]
push esi
push eax
push ecx
call fcn.100b3c60
add esp, 0xc
mov ecx, 0xffffff3b
lea eax, [ebx + 0xc5]
sub ecx, ebx
jmp 0x1005a2e0
mov edx, dword [ebx + 0x148]
lea esi, [ecx + eax]
movzx edx, byte [esi + edx]
xor byte [eax - 1], dl
mov edx, dword [ebx + 0x148]
movzx edx, byte [esi + edx + 1]
xor byte [eax], dl
mov edx, dword [ebx + 0x148]
movzx edx, byte [esi + edx + 2]
xor byte [eax + 1], dl
mov edx, dword [ebx + 0x148]
movzx edx, byte [esi + edx + 3]
xor byte [eax + 2], dl
add eax, 4
lea edx, [ecx + eax]
cmp edx, 0x40
jb 0x1005a2e0
mov eax, dword [esp + 0x10]
mov esi, edi
mov edi, dword [ebx + 0x14c]
mov ecx, 0x10
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x14]
mov ecx, dword [ebx + 0x14c]
push esi
push eax
add ecx, 0x40
push ecx
call fcn.100b3c60
mov edx, dword [ebx + 0x14c]
xor eax, eax
add esp, 0xc
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x18], eax
lea eax, [esi + 0x40]
push edx
mov esi, ebx
mov dword [ebx], 0x67452301
mov dword [ebx + 4], 0xefcdab89
mov dword [ebx + 8], 0x98badcfe
mov dword [ebx + 0xc], 0x10325476
mov dword [ebx + 0x10], 0xc3d2e1f0
call fcn.1005a040
mov ecx, ebx
call fcn.1005a0f0
mov eax, dword [ebx + 0x144]
mov ecx, dword [ebx + 0x60]
mov dword [eax], ecx
mov edx, dword [ebx + 0x64]
mov dword [eax + 4], edx
mov ecx, dword [ebx + 0x68]
mov dword [eax + 8], ecx
mov edx, dword [ebx + 0x6c]
mov dword [eax + 0xc], edx
mov ecx, dword [ebx + 0x70]
mov edi, 0xfffffefb
mov dword [eax + 0x10], ecx
lea eax, [ebx + 0x105]
sub edi, ebx
mov edx, dword [ebx + 0x148]
lea esi, [edi + eax]
movzx ecx, byte [esi + edx]
xor byte [eax - 1], cl
mov edx, dword [ebx + 0x148]
movzx ecx, byte [esi + edx + 1]
xor byte [eax], cl
mov edx, dword [ebx + 0x148]
movzx ecx, byte [esi + edx + 2]
xor byte [eax + 1], cl
mov edx, dword [ebx + 0x148]
movzx ecx, byte [esi + edx + 3]
xor byte [eax + 2], cl
add eax, 4
lea edx, [edi + eax]
cmp edx, 0x40
jb 0x1005a3c1
mov edi, dword [ebx + 0x150]
mov ecx, 0x10
lea esi, [ebx + 0x104]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx + 0x144]
mov edx, dword [ecx]
mov eax, dword [ebx + 0x150]
mov dword [eax + 0x40], edx
mov edx, dword [ecx + 4]
mov dword [eax + 0x44], edx
mov edx, dword [ecx + 8]
add eax, 0x40
mov dword [eax + 8], edx
mov edx, dword [ecx + 0xc]
mov dword [eax + 0xc], edx
mov ecx, dword [ecx + 0x10]
mov dword [eax + 0x10], ecx
mov edx, dword [ebx + 0x150]
xor eax, eax
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x18], eax
push edx
mov eax, 0x54
mov esi, ebx
mov dword [ebx], 0x67452301
mov dword [ebx + 4], 0xefcdab89
mov dword [ebx + 8], 0x98badcfe
mov dword [ebx + 0xc], 0x10325476
mov dword [ebx + 0x10], 0xc3d2e1f0
call fcn.1005a040
mov ecx, ebx
call fcn.1005a0f0
mov eax, dword [ebx + 0x60]
mov dword [ebp], eax
mov ecx, dword [ebx + 0x64]
mov dword [ebp + 4], ecx
mov edx, dword [ebx + 0x68]
mov dword [ebp + 8], edx
mov eax, dword [ebx + 0x6c]
mov dword [ebp + 0xc], eax
mov ecx, dword [ebx + 0x70]
pop edi
pop esi
mov dword [ebp + 0x10], ecx
pop ebp
ret 0x10