Function at 0x4ea5a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, ecx
mov dword [ebp - 0x14], 0
mov ecx, dword [edx + 4]
push ebx
push esi
mov dword [ebp - 0x20], eax
xor esi, esi
mov eax, dword [eax]
xor ebx, ebx
mov dword [ebp - 0x30], eax
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x2c], esi
mov esi, dword [edx]
mov dword [ebp - 0x10], eax
inc esi
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x20]
push edi
mov edi, dword [edx + 0x10]
push esi
push dword [eax + 0xc]
mov dword [ebp - 8], ecx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x64], edi
call fcn.00467ac0
mov ecx, dword [ebp - 0x20]
add esp, 8
mov dword [ebp - 0xc], eax
mov ecx, dword [ecx + 0xc]
push esi
push ecx
test eax, eax
jne 0x4ea613
call fcn.00467d40
sub eax, 5
add esp, 8
neg eax
sbb eax, eax
and eax, 7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00467650
mov ecx, dword [ebp - 0x30]
mov edx, eax
mov dword [ebp - 0x44], edx
mov ecx, dword [ecx + 0x24]
mov eax, dword [ecx]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x20]
push edx
push dword [ebp - 0xc]
mov edx, dword [eax + 0x14]
call fcn.004daea0
add esp, 0x14
test eax, eax
jne 0x4ea977
nop word [eax + eax]
lea eax, [ebp - 0x14]
mov dword [ebp - 0x40], 0xffffffff
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], 0
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x28], 0
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x58]
push eax
mov eax, dword [ebp - 0x3c]
push dword [ebp - 0x38]
mov eax, dword [eax + 0x14]
call eax
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x4ea94a
mov ecx, dword [ebp - 8]
cmp dword [ebp - 0x14], ecx
jl 0x4ea650
test ebx, ebx
jne 0x4ea87b
mov eax, dword [ebp - 0x44]
sub eax, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x4c], eax
mov eax, edi
or eax, ebx
je 0x4ea82a
mov eax, edi
mov dword [ebp - 0x24], esi
and eax, 1
or eax, esi
jne 0x4ea6f3
nop dword [eax]
inc esi
xor edx, edx
xor ecx, ecx
mov eax, esi
bts edx, eax
cmp eax, 0x20
cmovae ecx, edx
xor edx, ecx
cmp eax, 0x40
cmovae ecx, edx
and edx, edi
and ecx, ebx
or edx, ecx
je 0x4ea6d0
mov dword [ebp - 0x24], esi
mov edi, dword [ebp + 0x10]
xor edx, edx
dec edi
xor ecx, ecx
mov eax, edi
xor ebx, ebx
bts edx, eax
cmp eax, 0x20
cmovae ecx, edx
xor edx, ecx
cmp eax, 0x40
cmovae ecx, edx
and edx, dword [ebp - 0x1c]
and ecx, dword [ebp - 0x10]
or edx, ecx
jne 0x4ea745
mov esi, dword [ebp - 0x1c]
nop dword [eax]
dec edi
xor edx, edx
xor ecx, ecx
mov eax, edi
bts edx, eax
inc ebx
cmp eax, 0x20
cmovae ecx, edx
xor edx, ecx
cmp eax, 0x40
cmovae ecx, edx
and edx, esi
and ecx, dword [ebp - 0x10]
or edx, ecx
je 0x4ea720
mov esi, dword [ebp - 0x24]
sub esi, ebx
mov eax, esi
cdq
sub eax, edx
mov edi, eax
sar edi, 1
test edi, edi
jle 0x4ea82a
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x24], 0
mov ecx, dword [eax + 0x24]
mov eax, dword [ecx]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x50]
push eax
mov eax, dword [ebp - 0x20]
push dword [ebp - 0x48]
push dword [ebp - 0x4c]
mov edx, dword [eax + 0x14]
call fcn.004daea0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x4ea790
mov ecx, dword [ebp - 8]
jmp 0x4ea82f
add edi, dword [ebp + 0x10]
mov ebx, dword [ebp - 0x50]
cmp dword [ebp - 0x24], edi
jge 0x4ea7d6
lea eax, [ebp - 0x24]
mov dword [ebp - 0x54], 0
push eax
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x48], 0
push eax
lea eax, [ebp - 0x48]
mov dword [ebp - 0x4c], 0
push eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x5c]
push eax
mov eax, dword [ebp - 0x34]
push ebx
mov eax, dword [eax + 0x14]
call eax
mov esi, eax
add esp, 0x18
test esi, esi
je 0x4ea796
mov eax, dword [ebp - 0x34]
push ebx
mov eax, dword [eax + 0x10]
call eax
add esp, 4
test esi, esi
je 0x4ea7f0
cmp esi, 0x65
je 0x4ea7f0
mov ecx, dword [ebp - 8]
jmp 0x4ea82f
mov ecx, dword [ebp - 8]
xor eax, eax
cmp esi, 0x65
sete al
sub eax, dword [ebp + 0x10]
add eax, dword [ebp - 0x24]
test eax, eax
jle 0x4ea82d
movq xmm1, qword [ebp - 0x64]
add ecx, eax
movd xmm0, eax
psrlq xmm1, xmm0
mov dword [ebp - 8], ecx
movq qword [ebp - 0x64], xmm1
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x1c], eax
jmp 0x4ea82d
mov ecx, dword [ebp - 8]
xor esi, esi
mov ebx, 1
test esi, esi
jne 0x4ea967
test ecx, ecx
jg 0x4ea852
cmp dword [ebp + 8], esi
jg 0x4ea852
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x4ea86c
mov edx, dword [ebp - 0xc]
push ecx
jmp 0x4ea857
mov edx, dword [ebp + 0x1c]
push 0xffffffffffffffff
mov ecx, dword [ebp + 0x20]
call fcn.004ea360
mov esi, eax
add esp, 4
test esi, esi
jne 0x4ea967
mov ecx, dword [ebp - 8]
mov edi, dword [ebp - 0x1c]
cmp dword [ebp - 0x14], ecx
jl 0x4ea650
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp - 0x14]
add eax, ecx
cmp edx, eax
jge 0x4ea93f
sub edx, ecx
xor eax, eax
xor ecx, ecx
bts ecx, edx
cmp edx, 0x20
cmovae eax, ecx
xor ecx, eax
cmp edx, 0x40
cmovae eax, ecx
and ecx, edi
and eax, dword [ebp - 0x10]
or ecx, eax
je 0x4ea8b2
mov edi, 1
jmp 0x4ea8b4
xor edi, edi
mov ecx, dword [ebp - 8]
cmp dword [ebp - 0x14], ecx
jle 0x4ea8dc
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
sub eax, ecx
push eax
lea edx, [edx + ecx]
mov ecx, dword [ebp + 0x20]
call fcn.004ea360
mov esi, eax
add esp, 4
test esi, esi
jne 0x4ea92c
test edi, edi
je 0x4ea8f6
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x20]
push 0xffffffffffffffff
call fcn.004ea360
mov esi, eax
add esp, 4
test esi, esi
jne 0x4ea92c
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x28]
sub eax, ecx
push eax
lea edx, [ecx + edx]
mov ecx, dword [ebp + 0x20]
call fcn.004ea360
mov esi, eax
add esp, 4
test esi, esi
jne 0x4ea92c
test edi, edi
je 0x4ea92c
mov edx, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x20]
push 0xffffffffffffffff
call fcn.004ea360
add esp, 4
mov esi, eax
mov eax, dword [ebp - 0x28]
mov edi, dword [ebp - 0x1c]
mov dword [ebp - 0x2c], eax
test esi, esi
je 0x4ea650
jmp 0x4ea967
cmp dword [ebp + 0xc], 0
je 0x4ea967
mov edx, dword [ebp + 0x1c]
jmp 0x4ea958
cmp esi, 0x65
jne 0x4ea967
mov edx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x2c]
lea edx, [edx + esi]
mov ecx, dword [ebp + 0x20]
push 0xffffffffffffffff
call fcn.004ea360
mov esi, eax
add esp, 4
mov eax, dword [ebp - 0x3c]
push dword [ebp - 0x38]
mov eax, dword [eax + 0x10]
call eax
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret