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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x7c0ab4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, edx
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x10]
push ebx
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x14]
push esi
mov dword [ebp - 0x30], eax
xor eax, eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x20], eax
push edi
mov edi, dword [ebp + 0xc]
test ecx, ecx
je 0x4d75c2
push ecx
call fcn.006e5360
add esp, 4
mov dword [ebp - 0x20], eax
push edi
call fcn.006e5360
add esp, 4
mov ebx, eax
mov dword [ebp - 0x1c], ebx
push 0xd4
call fcn.006d77d0
mov esi, eax
add esp, 4
test esi, esi
je 0x4d77cb
mov dword [esi], fcn.005d8a40
lea ecx, [esi + 0xc]
mov dword [esi + 4], ecx
lea eax, [ecx + 0x5c]
mov dword [esi + 8], eax
cmp ebx, 0x40
jbe 0x4d7631
push ecx
call fcn.005d8a40
add esp, 4
push ebx
push edi
push dword [esi + 4]
call fcn.005d8aa0
mov edi, dword [esi + 8]
add esp, 0xc
add edi, 0x5c
push dword [esi + 4]
push edi
call fcn.005d8920
mov ecx, dword [esi + 4]
mov ebx, 0x10
add esp, 8
mov dword [ebp - 0x1c], ebx
push ecx
call fcn.005d8a40
add esp, 4
push dword [esi + 8]
call fcn.005d8a40
add esp, 4
xor eax, eax
test ebx, ebx
je 0x4d7694
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x24], eax
movzx eax, byte [edi]
xor al, 0x36
mov byte [ebp - 0x15], al
lea eax, [ebp - 0x15]
push 1
push eax
push dword [esi + 4]
call fcn.005d8aa0
movzx eax, byte [edi]
lea edi, [edi + 1]
add esp, 0xc
xor al, 0x5c
mov byte [ebp - 0x15], al
lea eax, [ebp - 0x15]
push 1
push eax
push dword [esi + 8]
call fcn.005d8aa0
add esp, 0xc
sub ebx, 1
jne 0x4d7651
cmp dword [ebp - 0x1c], 0x40
jae 0x4d76c9
mov eax, dword [ebp - 0x24]
mov edi, 0x40
sub edi, eax
nop dword [eax + eax]
push 1
push str.6234679234679
push dword [esi + 4]
call fcn.005d8aa0
add esp, 0xc
push 1
push str._abcdefghijklmnopqrstuvwxyz
push dword [esi + 8]
call fcn.005d8aa0
add esp, 0xc
sub edi, 1
jne 0x4d76a0
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x4d76e9
mov edi, dword [esi]
push eax
push dword [ebp - 0x28]
mov edi, dword [edi + 4]
mov ecx, edi
push dword [esi + 4]
call dword [0x70d440]
call edi
add esp, 0xc
mov ebx, dword [esi]
lea eax, [ebp - 0x14]
push dword [esi + 4]
push eax
mov edi, dword [ebx + 8]
mov ecx, edi
call dword [0x70d440]
call edi
mov edi, dword [ebx + 4]
lea eax, [ebp - 0x14]
add esp, 8
mov ecx, edi
push dword [ebx + 0x14]
push eax
push dword [esi + 8]
call dword [0x70d440]
call edi
mov edi, dword [ebx + 8]
lea eax, [ebp - 0x14]
add esp, 0xc
mov ecx, edi
push dword [esi + 8]
push eax
call dword [0x70d440]
call edi
push esi
call fcn.006d6340
movzx eax, byte [ebp - 5]
add esp, 0xc
push eax
movzx eax, byte [ebp - 6]
push eax
movzx eax, byte [ebp - 7]
push eax
movzx eax, byte [ebp - 8]
push eax
movzx eax, byte [ebp - 9]
push eax
movzx eax, byte [ebp - 0xa]
push eax
movzx eax, byte [ebp - 0xb]
push eax
movzx eax, byte [ebp - 0xc]
push eax
movzx eax, byte [ebp - 0xd]
push eax
movzx eax, byte [ebp - 0xe]
push eax
movzx eax, byte [ebp - 0xf]
push eax
movzx eax, byte [ebp - 0x10]
push eax
movzx eax, byte [ebp - 0x11]
push eax
movzx eax, byte [ebp - 0x12]
push eax
movzx eax, byte [ebp - 0x13]
push eax
movzx eax, byte [ebp - 0x14]
push eax
push dword [ebp - 0x2c]
push str._s__02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x
call fcn.004ba780
mov edi, eax
add esp, 0x48
test edi, edi
je 0x4d77cb
push dword [ebp - 0x30]
push dword [ebp - 0x34]
push 0
push edi
call fcn.004d16e0
push edi
mov esi, eax
call fcn.006d6340
add esp, 0x14
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006d0856
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 0x1b
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.006d0856
mov esp, ebp
pop ebp
ret