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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x6480b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x48], eax
push edi
test ebx, ebx
je 0x59b4ab
mov ecx, dword [ebx]
test ecx, ecx
je 0x59b4ab
mov edi, dword [ebx + 8]
mov dword [ebp - 0x4c], edi
test edi, edi
je 0x59b4ab
push esi
mov esi, dword [ebp + 0x10]
cmp esi, dword [ecx + 0xc]
jbe 0x59b372
push dword [ebx + 4]
mov eax, dword [ecx + 0x10]
call eax
mov eax, dword [ebx]
push esi
push dword [ebp - 0x48]
push dword [ebx + 4]
mov eax, dword [eax + 0x14]
call eax
mov eax, dword [ebx]
lea ecx, [ebp - 0x44]
push ecx
push dword [ebx + 4]
mov eax, dword [eax + 0x18]
call eax
mov ecx, dword [ebx]
lea eax, [ebp - 0x44]
mov edi, dword [ebx + 8]
add esp, 0x18
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x4c], edi
mov esi, dword [ecx + 8]
mov dword [ebp + 0x10], esi
mov eax, dword [ecx + 0xc]
push eax
push 0x36
push edi
lea ebx, [eax + edi]
mov dword [ebp - 0x5c], ebx
call fcn.005c9220
mov eax, dword [ebp - 0x50]
mov eax, dword [eax]
push dword [eax + 0xc]
push 0x5c
push ebx
call fcn.005c9220
add esp, 0x18
xor edx, edx
test esi, esi
je 0x59b467
mov eax, dword [ebp - 0x48]
cmp esi, 0x10
jb 0x59b437
lea edi, [eax - 1]
lea ecx, [ebx - 1]
add edi, esi
add ecx, esi
cmp ebx, edi
mov edi, dword [ebp - 0x4c]
ja 0x59b3c2
cmp ecx, eax
jae 0x59b437
lea eax, [edi - 1]
add eax, esi
cmp ebx, eax
mov eax, dword [ebp - 0x48]
ja 0x59b3d2
cmp ecx, edi
jae 0x59b437
lea ecx, [eax - 1]
add ecx, esi
cmp edi, ecx
ja 0x59b3e4
lea ecx, [edi - 1]
add ecx, esi
cmp ecx, eax
jae 0x59b437
mov ecx, esi
mov eax, edi
mov esi, dword [ebp - 0x48]
and ecx, 0xfffffff0
sub esi, edi
mov dword [ebp - 0x54], esi
mov esi, ebx
mov ebx, dword [ebp - 0x54]
sub esi, edi
mov dword [ebp - 0x58], esi
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp - 0x58]
movups xmm2, xmmword [ebx + eax]
add edx, 0x10
lea eax, [eax + 0x10]
movups xmm0, xmmword [eax - 0x10]
movaps xmm1, xmm2
pxor xmm1, xmm0
movups xmm0, xmmword [edi + eax - 0x10]
movups xmmword [eax - 0x10], xmm1
pxor xmm2, xmm0
movups xmmword [edi + eax - 0x10], xmm2
cmp edx, ecx
jb 0x59b403
mov edi, dword [ebp - 0x4c]
mov ebx, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x48]
cmp edx, esi
jae 0x59b467
mov dword [ebp - 0x4c], edi
lea ecx, [eax + edx]
sub dword [ebp - 0x4c], eax
sub ebx, eax
sub esi, edx
mov edx, dword [ebp - 0x4c]
nop dword [eax + eax]
movzx eax, byte [ecx]
lea ecx, [ecx + 1]
xor byte [edx + ecx - 1], al
movzx eax, byte [ecx - 1]
xor byte [ebx + ecx - 1], al
sub esi, 1
jne 0x59b450
mov eax, 0x40
lea ecx, [ebp - 0x44]
pop esi
mov byte [ecx], 0
lea ecx, [ecx + 1]
sub eax, 1
jne 0x59b470
mov ebx, dword [ebp - 0x50]
mov eax, dword [ebx]
push dword [ebx + 4]
mov eax, dword [eax + 0x10]
call eax
mov eax, dword [ebx]
push dword [eax + 0xc]
mov eax, dword [eax + 0x14]
push edi
push dword [ebx + 4]
call eax
add esp, 0x10
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0058bb64
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 0xffffaf00
pop edi
xor ecx, ebp
pop ebx
call fcn.0058bb64
mov esp, ebp
pop ebp
ret