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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x5c1334]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
mov eax, edx
mov edx, dword [ebp + 0x10]
push ebx
xor ebx, ebx
mov dword [ebp - 0x30], ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x34], edx
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x20], ebx
push esi
push edi
test eax, eax
je 0x4cf6fc
mov ebx, eax
lea edx, [ebx + 1]
nop
mov al, byte [ebx]
inc ebx
test al, al
jne 0x4cf6f0
sub ebx, edx
mov dword [ebp - 0x20], ebx
mov esi, ecx
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4cf701
sub esi, ecx
push 0x2c
mov dword [ebp - 0x24], esi
call dword [0x5c1c74]
mov edi, eax
add esp, 4
test edi, edi
je 0x4cfa83
mov dword [edi], fcn.004d0bc0
lea ecx, [edi + 0xc]
mov dword [edi + 4], ecx
lea eax, [ecx + 8]
mov dword [edi + 8], eax
cmp esi, 0x40
jbe 0x4cf771
push ecx
call fcn.004d0bc0
add esp, 4
push esi
push dword [ebp - 0x1c]
push dword [edi + 4]
call fcn.004d0c00
mov eax, dword [edi + 8]
add esp, 0xc
add eax, 8
mov dword [ebp - 0x1c], eax
push dword [edi + 4]
push eax
call fcn.004d0c20
mov ecx, dword [edi + 4]
mov esi, 0x10
add esp, 8
mov dword [ebp - 0x24], esi
push ecx
call fcn.004d0bc0
add esp, 4
push dword [edi + 8]
call fcn.004d0bc0
add esp, 4
xor eax, eax
test esi, esi
je 0x4cf7da
mov ebx, dword [ebp - 0x1c]
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x28], esi
movzx eax, byte [ebx]
xor al, 0x36
mov byte [ebp - 0x15], al
lea eax, [ebp - 0x15]
push 1
push eax
push dword [edi + 4]
call fcn.004d0c00
movzx eax, byte [ebx]
lea ebx, [ebx + 1]
add esp, 0xc
xor al, 0x5c
mov byte [ebp - 0x15], al
lea eax, [ebp - 0x15]
push 1
push eax
push dword [edi + 8]
call fcn.004d0c00
add esp, 0xc
sub esi, 1
jne 0x4cf794
cmp dword [ebp - 0x24], 0x40
mov ebx, dword [ebp - 0x20]
jae 0x4cf80a
mov eax, dword [ebp - 0x28]
mov esi, 0x40
sub esi, eax
push 1
push 0x593c79
push dword [edi + 4]
call fcn.004d0c00
add esp, 0xc
push 1
push str._XY
push dword [edi + 8]
call fcn.004d0c00
add esp, 0xc
sub esi, 1
jne 0x4cf7e1
test ebx, ebx
je 0x4cf81f
mov eax, dword [edi]
push ebx
push dword [ebp - 0x2c]
push dword [edi + 4]
mov eax, dword [eax + 4]
call eax
add esp, 0xc
mov esi, dword [edi]
lea eax, [ebp - 0x14]
push dword [edi + 4]
push eax
mov eax, dword [esi + 8]
call eax
push dword [esi + 0x14]
lea eax, [ebp - 0x14]
push eax
push dword [edi + 8]
mov eax, dword [esi + 4]
call eax
add esp, 0x14
lea eax, [ebp - 0x14]
push dword [edi + 8]
push eax
mov eax, dword [esi + 8]
call eax
push edi
call dword [0x5c1c7c]
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 - 0x30]
push str._s__02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x
call fcn.004a4250
mov edi, eax
add esp, 0x48
mov dword [ebp - 0x28], edi
test edi, edi
je 0x4cfa83
mov eax, dword [ebp - 0x34]
mov esi, edi
mov ebx, edi
mov dword [eax], 0
lea ecx, [esi + 1]
mov eax, dword [ebp - 0x38]
mov dword [eax], 0
nop dword [eax + eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x4cf8e0
sub esi, ecx
mov eax, 0xaaaaaaab
lea ecx, [esi*4]
mul ecx
shr edx, 1
add edx, 4
push edx
call dword [0x5c1c74]
add esp, 4
mov dword [ebp - 0x1c], eax
mov ecx, eax
mov dword [ebp - 0x2c], ecx
test eax, eax
jne 0x4cf932
push edi
lea esi, [eax + 0x1b]
call dword [0x5c1c7c]
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00528802
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x4cfa4b
nop word [eax + eax]
xor edi, edi
xor eax, eax
test esi, esi
je 0x4cf94f
mov cl, byte [ebx]
inc edi
inc ebx
dec esi
jmp 0x4cf95a
cmp eax, 3
jae 0x4cfa99
xor cl, cl
mov byte [ebp + eax - 0x20], cl
inc eax
cmp eax, 3
jl 0x4cf944
mov cl, byte [ebp - 0x1e]
mov ch, byte [ebp - 0x1f]
mov al, cl
shr al, 6
and ch, 0xf
and cl, 0x3f
shl ch, 2
or ch, al
mov byte [ebp - 0x15], cl
mov cl, byte [ebp - 0x20]
mov al, cl
and al, 3
shl al, 4
movzx eax, al
mov dword [ebp - 0x30], eax
movzx eax, byte [ebp - 0x1f]
mov edx, dword [ebp - 0x30]
shr eax, 4
or edx, eax
movzx eax, cl
shr eax, 2
add edx, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
add eax, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
mov dword [ebp - 0x24], eax
sub edi, 1
je 0x4cfa17
sub edi, 1
je 0x4cf9ed
movzx eax, byte [ebp - 0x15]
movsx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
push eax
movzx eax, ch
movsx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
push eax
movsx eax, byte [edx]
push eax
mov eax, dword [ebp - 0x24]
movsx eax, byte [eax]
push eax
push str._c_c_c_c
push 5
push dword [ebp - 0x1c]
call fcn.004a4150
add esp, 0x1c
jmp 0x4cfa34
movzx eax, ch
movsx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
push eax
movsx eax, byte [edx]
push eax
mov eax, dword [ebp - 0x24]
movsx eax, byte [eax]
push eax
push str._c_c_c
push 5
push dword [ebp - 0x1c]
call fcn.004a4150
add esp, 0x18
jmp 0x4cfa34
movsx eax, byte [edx]
push eax
mov eax, dword [ebp - 0x24]
movsx eax, byte [eax]
push eax
push str._c_c
push 5
push dword [ebp - 0x1c]
call fcn.004a4150
add esp, 0x14
mov eax, dword [ebp - 0x1c]
add eax, 4
mov dword [ebp - 0x1c], eax
test esi, esi
jne 0x4cf940
mov ecx, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x28]
mov byte [eax], 0
lea edx, [ecx + 1]
mov eax, dword [ebp - 0x34]
mov dword [eax], ecx
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4cfa56
mov eax, dword [ebp - 0x38]
sub ecx, edx
push edi
xor esi, esi
mov dword [eax], ecx
call dword [0x5c1c7c]
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00528802
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.00528802
mov esp, ebp
pop ebp
ret
call fcn.00529285
int3