Function at 0x1027ec3b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x16c
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, dword [0x1029ce40]
mov dword [0x1029ce44], 0x2230
add edx, 0xffffc357
mov dword [0x1029ce40], edx
mov edx, ecx
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x138], ecx
jmp 0x1027ed06
lea eax, [ebp - 0x12c]
mov dword [0x1029ce44], 0xca9
mov dword [0x1029ce40], 0xfffffc67
mov dword [ebp - 0x13c], eax
call fcn.1027e666
mov dword [esp], eax
mov eax, dword [ebp - 0x13c]
mov dword [esp + 4], eax
call fcn.1027e18d
mov dword [0x1029ce60], eax
mov dword [0x1029ce40], 0xdc9
mov ecx, esp
mov edx, dword [ebp - 0x140]
mov dword [ecx + 4], edx
mov dword [ecx + 0xc], 4
mov dword [ecx + 8], 0x1000
mov dword [ecx], 0
call eax
sub esp, 0x10
xor ecx, ecx
mov edx, ecx
mov dword [ebp - 0x144], eax
mov dword [ebp - 0x148], edx
mov dword [ebp - 0x14c], ecx
jmp 0x1027edaa
mov eax, dword [ebp - 0x138]
mov ecx, dword [ebp - 0x134]
lea edx, section..data
imul esi, eax, 0xfc
mov edi, edx
add edi, esi
add edi, 0x6c
mov esi, eax
add esi, 1
imul eax, eax, 0xfc
add edx, eax
add edx, 0xbc
mov eax, dword [edx]
movzx edx, word [edi]
xor edx, eax
add edx, ecx
cmp esi, 0x1b5
mov eax, edx
mov dword [ebp - 0x134], eax
mov dword [ebp - 0x140], edx
mov dword [ebp - 0x138], esi
jne 0x1027ed06
xor eax, eax
mov dword [0x1029ce40], 0x13
mov dword [ebp - 0x150], eax
mov eax, dword [ebp - 0x150]
mov cl, byte [eax + 0x1028168a]
mov dl, byte [eax + 0x1028165b]
sub dl, cl
mov byte [ebp + eax - 0x12c], dl
add eax, 1
cmp eax, 0xe
mov dword [ebp - 0x150], eax
je 0x1027ec81
jmp 0x1027ed75
mov eax, dword [ebp - 0x14c]
mov ecx, dword [ebp - 0x148]
lea edx, section..data
mov esi, dword [ebp - 0x144]
add esi, ecx
imul edi, eax, 0xfc
mov ebx, edx
add ebx, edi
add ebx, 0xbc
imul edi, eax, 0xfc
mov dword [ebp - 0x154], eax
mov eax, edx
add eax, edi
add eax, 0x24
mov edi, dword [ebp - 0x154]
imul edi, edi, 0xfc
add edx, edi
add edx, 0x6c
mov edi, dword [ebp - 0x154]
add edi, 1
mov ebx, dword [ebx]
mov eax, dword [eax]
movzx edx, word [edx]
xor edx, ebx
mov dword [esp], esi
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov dword [ebp - 0x158], edi
mov dword [ebp - 0x15c], ecx
mov dword [ebp - 0x160], edx
call fcn.1027f1f8
mov eax, dword [ebp - 0x160]
mov ecx, dword [ebp - 0x15c]
add eax, ecx
mov edx, dword [ebp - 0x158]
cmp edx, 0x1b5
mov dword [ebp - 0x14c], edx
mov dword [ebp - 0x148], eax
jne 0x1027edaa
lea eax, [0x10281669]
mov ecx, 0x20
lea edx, [ebp - 0x10c]
mov dword [0x1029ce40], 0x1202
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], 0x20
mov dword [ebp - 0x164], edx
mov dword [ebp - 0x168], ecx
call fcn.1027e734
mov dword [0x1029ce40], 0xb30
mov eax, dword [ebp - 0x164]
mov dword [esp], eax
mov ecx, dword [ebp - 0x144]
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
mov edx, dword [ebp - 0x140]
mov dword [esp + 0xc], edx
call fcn.1027f501
xor eax, eax
mov ecx, dword [ebp - 0x144]
add ecx, 0xde83a
mov edx, dword [ebp - 0x130]
mov dword [edx], ecx
mov dword [0x1029ce44], 0x21e8
mov dword [edx + 4], 0x13ee00
mov ecx, dword [ebp - 0x144]
add ecx, 0xdbef0
mov dword [edx + 8], ecx
mov dword [edx + 0xc], 0x20b0
mov ecx, dword [0x1029ce44]
add ecx, 0x1847
mov dword [0x1029ce40], ecx
add esp, 0x16c
pop esi
pop edi
pop ebx
pop ebp
ret