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

Disassembly:
sub esp, 0xfc
cmp dword [esp + 0x100], 0
je 0x5b770f
mov eax, dword [esp + 0x104]
cmp eax, 0x33
ja 0x5b7701
cmp eax, 1
jae 0x5b770f
mov eax, 3
add esp, 0xfc
ret 0x18
mov eax, dword [esp + 0x10c]
cmp eax, 0x40
push ebp
mov ebp, dword [esp + 0x114]
push esi
push edi
lea esi, [ebp + 0x10]
jbe 0x5b7750
mov edx, dword [esp + 0x114]
lea ecx, [esp + 0x78]
push ecx
push eax
push edx
call fcn.005b76a0
mov eax, 0x10
add esp, 0xc
lea ecx, [esp + 0x78]
mov dword [esp + 0x118], eax
jmp 0x5b7757
mov ecx, dword [esp + 0x114]
xor edx, edx
test eax, eax
push ebx
jbe 0x5b77a0
lea edi, [esp + 0x8c]
lea ebp, [esp + 0xcc]
sub edi, ecx
sub ebp, ecx
mov dword [esp + 0x10], eax
mov edx, eax
mov al, byte [ecx]
mov bl, al
xor bl, 0x36
xor al, 0x5c
mov byte [edi + ecx], bl
mov byte [ecx + ebp], al
add ecx, 1
sub dword [esp + 0x10], 1
jne 0x5b7776
cmp dword [esp + 0x11c], 0x40
mov ebp, dword [esp + 0x120]
jae 0x5b77ca
mov edi, 0x40
sub edi, edx
push edi
lea eax, [esp + edx + 0xd0]
push 0x5c
push eax
lea ebx, [esp + edx + 0x98]
call fcn.00466010
push edi
push 0x36
push ebx
call fcn.00466010
add esp, 0x18
lea eax, [esp + 0x14]
push eax
call fcn.005b6d10
push 0x40
lea ecx, [esp + 0x94]
push ecx
lea edx, [esp + 0x20]
push edx
call fcn.005b7480
add esp, 0x10
test ebp, ebp
pop ebx
je 0x5b789b
mov al, byte [esp + 0x18]
movzx ecx, byte [esp + 0x19]
movzx edx, byte [esp + 0x1a]
mov byte [ebp], al
mov byte [ebp + 1], cl
movzx ecx, byte [esp + 0x1b]
lea eax, [ebp + 1]
mov byte [eax + 1], dl
movzx edx, byte [esp + 0x1c]
add eax, 1
mov byte [eax + 1], cl
movzx ecx, byte [esp + 0x1d]
add eax, 1
mov byte [eax + 1], dl
movzx edx, byte [esp + 0x1e]
add eax, 1
mov byte [eax + 1], cl
movzx ecx, byte [esp + 0x1f]
add eax, 1
mov byte [eax + 1], dl
movzx edx, byte [esp + 0x20]
add eax, 1
mov byte [eax + 1], cl
movzx ecx, byte [esp + 0x21]
add eax, 1
mov byte [eax + 1], dl
movzx edx, byte [esp + 0x22]
add eax, 1
mov byte [eax + 1], cl
movzx ecx, byte [esp + 0x23]
add eax, 1
mov byte [eax + 1], dl
movzx edx, byte [esp + 0x24]
add eax, 1
mov byte [eax + 1], cl
movzx ecx, byte [esp + 0x25]
add eax, 1
mov byte [eax + 1], dl
movzx edx, byte [esp + 0x26]
add eax, 1
add eax, 1
mov byte [eax], cl
movzx ecx, byte [esp + 0x27]
add eax, 1
mov byte [eax], dl
mov byte [eax + 1], cl
mov edx, dword [esp + 0x110]
mov eax, dword [esp + 0x10c]
push edx
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.005b7480
mov edi, dword [esp + 0x12c]
lea edx, [esp + 0x1c]
push edx
push edi
call fcn.005b7590
lea eax, [esp + 0x24]
push eax
call fcn.005b6d10
push 0x40
lea ecx, [esp + 0xe4]
push ecx
lea edx, [esp + 0x30]
push edx
call fcn.005b7480
add esp, 0x24
test esi, esi
je 0x5b7997
movzx eax, byte [esp + 0x18]
movzx ecx, byte [esp + 0x19]
mov byte [esi], al
movzx edx, byte [esp + 0x1a]
movzx eax, byte [esp + 0x1b]
mov byte [esi + 1], cl
movzx ecx, byte [esp + 0x1c]
add esi, 1
mov byte [esi + 1], dl
movzx edx, byte [esp + 0x1d]
add esi, 1
mov byte [esi + 1], al
movzx eax, byte [esp + 0x1e]
add esi, 1
mov byte [esi + 1], cl
movzx ecx, byte [esp + 0x1f]
add esi, 1
mov byte [esi + 1], dl
movzx edx, byte [esp + 0x20]
add esi, 1
mov byte [esi + 1], al
movzx eax, byte [esp + 0x21]
add esi, 1
mov byte [esi + 1], cl
movzx ecx, byte [esp + 0x22]
add esi, 1
mov byte [esi + 1], dl
movzx edx, byte [esp + 0x23]
add esi, 1
mov byte [esi + 1], al
movzx eax, byte [esp + 0x24]
add esi, 1
mov byte [esi + 1], cl
movzx ecx, byte [esp + 0x25]
add esi, 1
mov byte [esi + 1], dl
movzx edx, byte [esp + 0x26]
add esi, 1
mov byte [esi + 1], al
movzx eax, byte [esp + 0x27]
add esi, 1
add esi, 1
mov byte [esi], cl
add esi, 1
mov byte [esi], dl
mov byte [esi + 1], al
push 0x10
lea ecx, [esp + 0x14]
push edi
push ecx
call fcn.005b7480
lea edx, [esp + 0x1c]
push edx
push edi
call fcn.005b7590
add esp, 0x14
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0xfc
ret 0x18