Function at 0xec2299
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xf4ca18
call fcn.00f49c28
sub esp, 0xb0
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
lea esi, [ebx + 4]
mov dword [ebp - 0x10], esp
mov dword [ebx], 0xf69d40
call fcn.00ec20a2
xor esi, esi
mov dword [ebp - 4], esi
xor eax, eax
mov dword [ebx + 0x20], 7
mov dword [ebx + 0x1c], esi
mov word [ebx + 0xc], ax
mov dword [ebx + 0x28], esi
mov dword [ebx + 0x2c], esi
mov dword [ebx + 0x30], esi
mov dword [ebx + 0x4c], 0xf
mov dword [ebx + 0x48], esi
mov byte [ebx + 0x38], al
lea eax, [ebp - 0x4c]
push 8
push eax
mov byte [ebp - 4], 3
call fcn.00eec312
pop ecx
pop ecx
push eax
mov byte [ebp - 4], 4
call fcn.00ec2597
push eax
lea eax, [ebp - 0xa0]
call fcn.00ec5483
pop ecx
pop ecx
mov byte [ebp - 4], 5
test byte [0xf82e1c], 1
jne 0xec2356
or dword [0xf82e1c], 1
mov ecx, 0x7914
mov word [0xf7c9e4], cx
add ecx, 0x3a
mov edx, ecx
mov ecx, 0x793a
mov word [0xf7c9e6], dx
mov dword [0xf7c9e8], 0x794e7942
mov word [0xf7c9ec], cx
mov ecx, 0x793a
xor cx, word [esi + 0xf7c9e4]
add esi, 2
mov word [esi + 0xf7d08e], cx
cmp esi, 0xa
jb 0xec2356
push 0xf7d090
push eax
lea eax, [ebp - 0x2c]
call fcn.00ec54b9
pop ecx
pop ecx
push eax
lea eax, [ebx + 0xc]
mov byte [ebp - 4], 6
call fcn.00ec4d33
push 1
xor edi, edi
lea esi, [ebp - 0x2c]
call fcn.00ec4e2d
push 1
lea esi, [ebp - 0xa0]
call fcn.00ec4e2d
push 1
lea esi, [ebp - 0x4c]
mov byte [ebp - 4], 3
call fcn.00ec4e2d
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebx + 0xc]
call fcn.00eebe2e
pop ecx
push eax
lea eax, [ebx + 0xc]
mov byte [ebp - 4], 7
call fcn.00ec4d33
push 1
lea esi, [ebp - 0x4c]
call fcn.00ec4e2d
and dword [ebp - 0x74], edi
xor eax, eax
mov dword [ebp - 0x70], 7
mov word [ebp - 0x84], ax
lea eax, [ebp - 0x4c]
push eax
mov byte [ebp - 4], 9
call fcn.00eeae78
pop ecx
push eax
lea eax, [ebp - 0x84]
mov byte [ebp - 4], 0xa
call fcn.00ec4d33
push 1
lea esi, [ebp - 0x4c]
mov byte [ebp - 4], 9
call fcn.00ec4e2d
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x84]
call fcn.00eeab41
pop ecx
mov esi, eax
lea edi, [ebx + 0x38]
mov byte [ebp - 4], 0xb
call fcn.00ec4c0f
push 0
push 1
lea ecx, [ebp - 0x4c]
call fcn.00ec4cef
mov dword [ebp - 4], 8
jmp 0xec246c
lea eax, [ebp - 0xbc]
push eax
lea edi, [ebp - 0x84]
call fcn.00ec54f0
pop ecx
mov esi, eax
mov byte [ebp - 4], 0xd
call fcn.00ec2689
push eax
push esi
lea eax, [ebp - 0xa0]
call fcn.00ec54b9
lea ecx, [ebx + 0xc]
push ecx
lea ecx, [ebp - 0x4c]
push ecx
mov ecx, eax
mov byte [ebp - 4], 0xe
call fcn.00ec554d
push 0xf69ce0
push eax
lea eax, [ebp - 0x68]
mov byte [ebp - 4], 0xf
call fcn.00ec54b9
add esp, 0x18
push 1
xor edi, edi
lea esi, [ebp - 0x4c]
call fcn.00ec4e2d
push 1
lea esi, [ebp - 0xa0]
call fcn.00ec4e2d
push 1
lea esi, [ebp - 0xbc]
mov byte [ebp - 4], 0x13
call fcn.00ec4e2d
cmp dword [ebp - 0x54], 8
mov eax, dword [ebp - 0x68]
jae 0xec24f5
lea eax, [ebp - 0x68]
cmp dword [ebp - 0x54], 8
mov ecx, dword [ebp - 0x58]
lea eax, [eax + ecx*2]
mov ecx, dword [ebp - 0x68]
jae 0xec2507
lea ecx, [ebp - 0x68]
push dword [ebp + 8]
xor esi, esi
push eax
push ecx
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
call fcn.00ec59a4
lea edi, [ebx + 0x28]
lea eax, [ebp - 0x20]
cmp edi, eax
je 0xec2551
mov eax, dword [edi]
cmp eax, esi
je 0xec2537
push eax
call fcn.00f24273
pop ecx
mov eax, dword [ebp - 0x20]
mov dword [edi], eax
mov eax, dword [ebp - 0x1c]
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x18]
mov dword [edi + 8], eax
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
lea esi, [ebp - 0x20]
mov byte [ebp - 4], 0x13
call fcn.00ecac09
and dword [ebp - 0x30], 0
lea eax, [ebp - 0x30]
mov esi, edi
call fcn.00edcbaf
push 1
xor edi, edi
lea esi, [ebp - 0x68]
call fcn.00ec4e2d
push 1
lea esi, [ebp - 0x84]
call fcn.00ec4e2d
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, ebx
mov dword fs:[0], ecx
pop ebx
leave
ret 4