Function at 0x4ec45c
Capabilities:
Encode data using xor

Disassembly:
call fcn.004ec400
sub dword [eax + 0x55], 0xffffff8b
in al, dx
add esp, 0xffffffe0
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004366dc
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
call fcn.004366dc
push edx
push eax
mov eax, ebx
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
xor edx, edx
cmp edx, dword [esp + 4]
jne 0x4ec4a7
cmp eax, dword [esp]
pop edx
pop eax
jae 0x4ec4bb
jmp 0x4ec4ab
pop edx
pop eax
jge 0x4ec4bb
mov eax, dword [ebp - 4]
call fcn.004366dc
mov edx, dword [ebp - 4]
mov ebx, dword [edx + 8]
sub ebx, eax
xor eax, eax
mov dword [ebp - 0x1c], eax
push 0
push 0x10
mov eax, dword [ebp - 4]
call fcn.004366dc
push edx
push eax
mov eax, dword [ebp - 0x1c]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
call fcn.00408940
cmp edx, 0
jne 0x4ec4eb
cmp eax, 0
je 0x4ec4f0
inc dword [ebp - 0x1c]
jmp 0x4ec4c0
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x1c]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 4]
call fcn.004366fc
xor eax, eax
mov dword [ebp - 0x14], eax
push 0
push 0x10
mov eax, dword [ebp - 0x1c]
xor edx, edx
push edx
push eax
mov eax, ebx
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
push edx
push eax
mov eax, dword [ebp - 0x14]
xor edx, edx
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
call fcn.00408940
cmp edx, 0
jne 0x4ec53f
cmp eax, 0
je 0x4ec544
inc dword [ebp - 0x14]
jmp 0x4ec507
cmp dword [ebp - 0x1c], 0
jne 0x4ec5fd
cmp dword [ebp - 0x14], 0
jne 0x4ec5fd
mov eax, dword [ebp - 4]
call fcn.004366dc
add eax, 4
adc edx, 0
push edx
push eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x1c]
call fcn.004366fc
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x1c]
mov edx, dword [ebp - 8]
mov ecx, ebx
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
lea ecx, [eax + 0xc]
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
call fcn.004ec350
mov edx, 0x5d36d8
mov ecx, dword [ebp - 0xc]
test ecx, ecx
jns 0x4ec5aa
add ecx, 0xf
sar ecx, 4
dec ecx
test ecx, ecx
jl 0x4ec5d9
inc ecx
xor ebx, ebx
mov eax, dword [ebp - 8]
mov esi, ebx
shl esi, 4
add eax, esi
mov esi, dword [edx]
xor dword [eax], esi
mov esi, dword [edx + 4]
xor dword [eax + 4], esi
mov esi, dword [edx + 8]
xor dword [eax + 8], esi
mov esi, dword [edx + 0xc]
xor dword [eax + 0xc], esi
inc ebx
dec ecx
jne 0x4ec5b5
mov eax, dword [ebp - 0x10]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0xc]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
push edx
push eax
mov eax, dword [ebp - 4]
call fcn.004366fc
jmp 0x4ec738
mov dl, 1
mov eax, dword [0x42b964]
call fcn.00405104
mov dword [ebp - 0x20], eax
xor esi, esi
push ebp
push 0x4ec731
push dword fs:[esi]
mov dword fs:[esi], esp
mov eax, dword [ebp - 0x1c]
xor edx, edx
push edx
push eax
mov eax, ebx
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
push edx
push eax
mov eax, dword [ebp - 0x14]
xor edx, edx
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
push edx
push eax
mov eax, dword [ebp - 0x20]
call fcn.00436760
mov eax, dword [ebp - 4]
call fcn.004366dc
add eax, 4
adc edx, 0
push edx
push eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x1c]
call fcn.004366fc
mov eax, dword [ebp - 0x20]
mov edx, dword [eax]
call dword [edx]
push eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x1c]
mov edx, dword [ebp - 0x20]
mov edx, dword [edx + 4]
pop ecx
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
lea ecx, [eax + 0xc]
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 4]
mov edx, dword [ebp - 0x18]
call fcn.004ec350
mov edx, 0x5d36d8
mov ecx, dword [ebp - 0x18]
shr ecx, 4
dec ecx
test ecx, ecx
jl 0x4ec6d3
inc ecx
xor ebx, ebx
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 4]
mov esi, ebx
shl esi, 4
add eax, esi
mov esi, dword [edx]
xor dword [eax], esi
mov esi, dword [edx + 4]
xor dword [eax + 4], esi
mov esi, dword [edx + 8]
xor dword [eax + 8], esi
mov esi, dword [edx + 0xc]
xor dword [eax + 0xc], esi
inc ebx
dec ecx
jne 0x4ec6ac
mov eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
sub edx, eax
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
mov edx, eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 4]
add eax, dword [ebp - 0x1c]
call fcn.00404470
mov eax, dword [ebp - 0x10]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0xc]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
push edx
push eax
mov eax, dword [ebp - 4]
call fcn.004366fc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ec738
mov eax, dword [ebp - 0x20]
xor edx, edx
mov dword [ebp - 0x20], edx
call fcn.00405134
ret
mov eax, dword [ebp - 0xc]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret