Function at 0x4ec040
Capabilities:
Encode data using xor
Hash data with md5
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1dc
mov eax, dword [0x9c48d0]
xor eax, esp
mov dword [esp + 0x1d8], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x20]
mov ebx, edx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], edi
cmp eax, 5
jne 0x4ec108
push 1
push ecx
push edi
push ebx
lea ecx, [esp + 0x194]
mov edx, esi
call fcn.004eb310
add esp, 0x10
mov eax, 0x20
lea ecx, [edi + 0x24]
lea edx, [esp + 0x184]
mov edi, edi
mov esi, dword [edx]
cmp esi, dword [ecx]
jne 0x4ec0d4
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x4ec0a0
xor eax, eax
xor edx, edx
test eax, eax
sete dl
mov eax, edx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1d8]
xor ecx, esp
call fcn.0065865c
mov esp, ebp
pop ebp
ret
movzx esi, byte [ecx]
movzx eax, byte [edx]
sub eax, esi
jne 0x4ec100
movzx eax, byte [edx + 1]
movzx esi, byte [ecx + 1]
sub eax, esi
jne 0x4ec100
movzx eax, byte [edx + 2]
movzx esi, byte [ecx + 2]
sub eax, esi
jne 0x4ec100
movzx eax, byte [edx + 3]
movzx ecx, byte [ecx + 3]
sub eax, ecx
sar eax, 0x1f
or eax, 1
jmp 0x4ec0b6
cmp eax, 6
jne 0x4ec14b
push 1
push ecx
mov ecx, esi
lea edx, [esp + 0x18c]
mov esi, edi
call fcn.004eba60
add esp, 8
mov eax, 0x20
lea ecx, [edi + 0x24]
lea edx, [esp + 0x184]
mov esi, dword [edx]
cmp esi, dword [ecx]
jne 0x4ec0d4
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x4ec132
jmp 0x4ec0b4
mov eax, dword [edi + 8]
cdq
and edx, 7
lea ebx, [edx + eax]
sar ebx, 3
mov dword [esp + 0x18], ebx
cmp esi, 0x20
jle 0x4ec166
mov esi, 0x20
push esi
push ecx
lea eax, [esp + 0x18c]
push eax
call fcn.0065b3c0
add esp, 0xc
mov ecx, 0x20
sub ecx, esi
push ecx
lea edx, [esp + esi + 0x188]
push 0x7b6f54
push edx
call fcn.0065b3c0
xor eax, eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x190]
add esp, 0xc
push eax
mov eax, 0x20
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], 0x67452301
mov dword [esp + 0x28], 0xefcdab89
mov dword [esp + 0x2c], 0x98badcfe
mov dword [esp + 0x30], 0x10325476
call fcn.004af110
lea ecx, [esp + 0x188]
add esp, 4
push ecx
lea esi, [esp + 0x24]
call fcn.004af1b0
add esp, 4
cmp dword [edi + 0x20], 3
jl 0x4ec25d
mov dword [esp + 0xc], 0x32
lea ebx, [ebx]
xor eax, eax
lea edx, [esp + 0x184]
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], eax
push edx
mov eax, 0x10
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], 0x67452301
mov dword [esp + 0x28], 0xefcdab89
mov dword [esp + 0x2c], 0x98badcfe
mov dword [esp + 0x30], 0x10325476
call fcn.004af110
lea eax, [esp + 0x188]
add esp, 4
push eax
lea esi, [esp + 0x24]
call fcn.004af1b0
add esp, 4
dec dword [esp + 0xc]
jne 0x4ec200
cmp dword [edi + 0x20], 2
jne 0x4ec290
lea ecx, [esp + 0x184]
push ebx
push ecx
lea eax, [esp + 0x80]
call fcn.00534c10
lea edx, [edi + 0x24]
push edx
mov ecx, 0x20
lea edx, [esp + 0x1b0]
call fcn.00534c70
add esp, 0xc
cmp dword [edi + 0x20], 3
jl 0x4ec48a
lea esi, [edi + 0x24]
mov ecx, 8
lea edi, [esp + 0x1a4]
xor edx, edx
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x10], edx
jmp 0x4ec2b7
mov ebx, dword [esp + 0x18]
xor eax, eax
test ebx, ebx
jle 0x4ec2e5
mov cl, 0x13
sub cl, dl
jmp 0x4ec2d0
mov dl, byte [esp + eax + 0x184]
xor dl, cl
mov byte [esp + eax + 0x1c4], dl
inc eax
cmp eax, ebx
jl 0x4ec2d0
lea eax, [esp + 0x1c4]
push ebx
push eax
lea eax, [esp + 0x80]
call fcn.00534c10
add esp, 8
xor esi, esi
nop
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x7c]
inc eax
and eax, 0xff
movzx edx, byte [esp + eax + 0x80]
lea edi, [esp + eax + 0x80]
add ecx, edx
and ecx, 0xff
lea ebx, [esp + ecx + 0x80]
mov dword [esp + 0xc], ebx
movzx ebx, byte [ebx]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x7c], ecx
mov byte [eax], dl
mov byte [edi], bl
mov eax, dword [esp + 0x78]
add ebx, edx
and ebx, 0xff
movzx ecx, byte [esp + ebx + 0x80]
xor byte [esp + esi + 0x1a4], cl
mov ecx, dword [esp + 0x7c]
inc eax
and eax, 0xff
movzx edx, byte [esp + eax + 0x80]
lea edi, [esp + eax + 0x80]
add ecx, edx
and ecx, 0xff
lea ebx, [esp + ecx + 0x80]
mov dword [esp + 0xc], ebx
movzx ebx, byte [ebx]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x7c], ecx
mov byte [eax], dl
mov byte [edi], bl
mov eax, dword [esp + 0x78]
add ebx, edx
and ebx, 0xff
movzx ecx, byte [esp + ebx + 0x80]
xor byte [esp + esi + 0x1a5], cl
mov ecx, dword [esp + 0x7c]
inc eax
and eax, 0xff
movzx edx, byte [esp + eax + 0x80]
lea edi, [esp + eax + 0x80]
add ecx, edx
and ecx, 0xff
lea ebx, [esp + ecx + 0x80]
mov dword [esp + 0xc], ebx
movzx ebx, byte [ebx]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x7c], ecx
mov byte [eax], dl
mov byte [edi], bl
mov eax, dword [esp + 0x78]
add ebx, edx
and ebx, 0xff
movzx ecx, byte [esp + ebx + 0x80]
xor byte [esp + esi + 0x1a6], cl
mov ecx, dword [esp + 0x7c]
inc eax
and eax, 0xff
movzx edx, byte [esp + eax + 0x80]
lea edi, [esp + eax + 0x80]
add ecx, edx
and ecx, 0xff
lea ebx, [esp + ecx + 0x80]
mov dword [esp + 0xc], ebx
movzx ebx, byte [ebx]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x7c], ecx
mov byte [eax], dl
mov byte [edi], bl
add ebx, edx
and ebx, 0xff
movzx ecx, byte [esp + ebx + 0x80]
xor byte [esp + esi + 0x1a7], cl
add esi, 4
cmp esi, 0x20
jb 0x4ec300
mov edx, dword [esp + 0x10]
inc edx
mov dword [esp + 0x10], edx
cmp edx, 0x14
jl 0x4ec2b3
mov edi, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
push edi
push edx
mov edx, 0x20
lea ecx, [esp + 0x1ac]
call fcn.004ebf50
mov ecx, dword [esp + 0x1ec]
add esp, 8
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0065865c
mov esp, ebp
pop ebp
ret