Function at 0x4ebb70
Capabilities:
Encode data using xor
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1ac
mov eax, dword [0x9c48d0]
xor eax, esp
mov dword [esp + 0x1a8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, edx
cmp dword [edi + 0x20], 2
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x14], ecx
jne 0x4ebbec
mov edx, dword [ebp + 0x10]
lea ebx, [edi + 0xcc]
push ebx
push edx
mov ecx, esi
mov edx, edi
call fcn.004eb0f0
mov eax, dword [edi + 8]
cdq
and edx, 7
add eax, edx
sar eax, 3
push eax
push ebx
lea eax, [esp + 0x40]
call fcn.00534c10
mov edx, dword [esp + 0x24]
push 0x7b6f54
mov ecx, 0x20
call fcn.00534c70
add esp, 0x14
mov eax, dword [edi + 0x20]
cmp eax, 3
je 0x4ebbfd
cmp eax, 4
jne 0x4ebef1
mov eax, dword [edi + 8]
cdq
and edx, 7
lea ebx, [edx + eax]
lea eax, [edi + 0xcc]
push eax
mov eax, dword [ebp + 0x10]
sar ebx, 3
push eax
mov ecx, esi
mov edx, edi
mov dword [esp + 0x30], ebx
call fcn.004eb0f0
xor esi, esi
push 0x7b6f54
lea eax, [esi + 0x20]
lea ecx, [esp + 0x144]
mov dword [esp + 0x158], esi
mov dword [esp + 0x154], esi
mov dword [esp + 0x144], 0x67452301
mov dword [esp + 0x148], 0xefcdab89
mov dword [esp + 0x14c], 0x98badcfe
mov dword [esp + 0x150], 0x10325476
call fcn.004af110
mov eax, dword [edi]
add esp, 0xc
cmp eax, esi
je 0x4ebc9e
cmp byte [eax + 4], 0x72
jne 0x4ebc8a
push eax
call fcn.004c74c0
add esp, 4
cmp eax, esi
je 0x4ebc9e
cmp byte [eax + 4], 0x73
jne 0x4ebc9e
movzx ecx, word [eax + 0x10]
mov dword [esp + 0x10], ecx
jmp 0x4ebca2
mov dword [esp + 0x10], esi
mov eax, dword [edi]
cmp eax, esi
je 0x4ebcc6
cmp byte [eax + 4], 0x72
jne 0x4ebcb7
push eax
call fcn.004c74c0
add esp, 4
cmp eax, esi
je 0x4ebcc6
cmp byte [eax + 4], 0x73
jne 0x4ebcc6
add eax, 0x12
jmp 0x4ebccb
mov eax, 0x925010
push eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x13c]
call fcn.004af110
lea edx, [esp + 0x198]
add esp, 4
push edx
lea esi, [esp + 0x13c]
call fcn.004af1b0
add esp, 4
lea eax, [edi + 0xcc]
push ebx
push eax
lea eax, [esp + 0x38]
call fcn.00534c10
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x19c]
push eax
mov ecx, 0x10
lea eax, [esp + 0x3c]
call fcn.00534c70
mov ecx, 1
add esp, 0xc
mov dword [esp + 0x20], ecx
jmp 0x4ebd34
mov ebx, dword [esp + 0x28]
xor eax, eax
test ebx, ebx
jle 0x4ebd55
lea ebx, [ebx]
mov dl, byte [edi + eax + 0xcc]
xor dl, cl
mov byte [esp + eax + 0x194], dl
inc eax
cmp eax, ebx
jl 0x4ebd40
lea eax, [esp + 0x194]
push ebx
push eax
lea eax, [esp + 0x38]
call fcn.00534c10
mov eax, dword [esp + 0x1c]
add esp, 8
inc eax
mov dword [esp + 0x24], 4
mov ecx, dword [esp + 0x30]
mov esi, dword [esp + 0x34]
inc ecx
and ecx, 0xff
movzx edx, byte [esp + ecx + 0x38]
lea edi, [esp + ecx + 0x38]
add esi, edx
and esi, 0xff
lea ebx, [esp + esi + 0x38]
mov dword [esp + 0x10], ebx
movzx ebx, byte [ebx]
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x34], esi
mov byte [ecx], dl
mov byte [edi], bl
mov ecx, dword [esp + 0x30]
mov esi, dword [esp + 0x34]
add ebx, edx
and ebx, 0xff
movzx edx, byte [esp + ebx + 0x38]
xor byte [eax - 1], dl
inc ecx
and ecx, 0xff
movzx edx, byte [esp + ecx + 0x38]
lea edi, [esp + ecx + 0x38]
add esi, edx
and esi, 0xff
lea ebx, [esp + esi + 0x38]
mov dword [esp + 0x10], ebx
movzx ebx, byte [ebx]
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x34], esi
mov byte [ecx], dl
mov byte [edi], bl
mov ecx, dword [esp + 0x30]
mov esi, dword [esp + 0x34]
add ebx, edx
and ebx, 0xff
movzx edx, byte [esp + ebx + 0x38]
xor byte [eax], dl
inc ecx
and ecx, 0xff
movzx edx, byte [esp + ecx + 0x38]
lea edi, [esp + ecx + 0x38]
add esi, edx
and esi, 0xff
lea ebx, [esp + esi + 0x38]
mov dword [esp + 0x10], ebx
movzx ebx, byte [ebx]
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x34], esi
mov byte [ecx], dl
mov byte [edi], bl
mov ecx, dword [esp + 0x30]
mov esi, dword [esp + 0x34]
add ebx, edx
and ebx, 0xff
movzx edx, byte [esp + ebx + 0x38]
xor byte [eax + 1], dl
inc ecx
and ecx, 0xff
movzx edx, byte [esp + ecx + 0x38]
lea edi, [esp + ecx + 0x38]
add esi, edx
and esi, 0xff
lea ebx, [esp + esi + 0x38]
mov dword [esp + 0x10], ebx
movzx ebx, byte [ebx]
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x34], esi
mov byte [ecx], dl
mov byte [edi], bl
add ebx, edx
and ebx, 0xff
movzx edx, byte [esp + ebx + 0x38]
xor byte [eax + 2], dl
add eax, 4
dec dword [esp + 0x24]
jne 0x4ebd77
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
inc ecx
mov dword [esp + 0x20], ecx
cmp ecx, 0x13
jle 0x4ebd30
mov ecx, dword [0x7b6f54]
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x2c]
mov dword [eax + 0x10], ecx
mov edx, dword [0x7b6f58]
mov dword [eax + 0x14], edx
mov ecx, dword [0x7b6f5c]
mov dword [eax + 0x18], ecx
mov edx, dword [0x7b6f60]
mov dword [eax + 0x1c], edx
cmp dword [edi + 0x20], 5
jne 0x4ebf0f
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [ebp + 0x10]
push 0
push esi
push edi
push eax
call fcn.004eb310
add esp, 0x10
cmp dword [edi + 0x20], 6
jne 0x4ebf2d
mov edx, dword [esp + 0x14]
mov ecx, dword [ebp + 0x10]
mov ebx, dword [esp + 0x18]
push 0
push esi
mov esi, edi
call fcn.004eba60
add esp, 8
mov ecx, dword [esp + 0x1b4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0065865c
mov esp, ebp
pop ebp
ret