Function at 0x10012855
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x178
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [0x102f47b4], 0x21a0
mov edx, ecx
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x138], ecx
mov eax, dword [ebp - 0x138]
mov ecx, dword [ebp - 0x134]
lea edx, section.CODE
imul esi, eax, 0x160
mov edi, edx
add edi, esi
add edi, 0xe0
mov esi, dword [edi]
imul edi, eax, 0x160
add edx, edi
add edx, 0xc8
movzx edx, word [edx]
xor edx, esi
add edx, ecx
add eax, 1
cmp eax, 0x1d7
mov ecx, edx
mov dword [ebp - 0x13c], edx
mov dword [ebp - 0x134], ecx
mov dword [ebp - 0x138], eax
jne 0x10012884
mov dword [0x102f47b4], 0x1287
xor eax, eax
mov dword [ebp - 0x140], eax
jmp 0x100128f1
mov eax, dword [ebp - 0x140]
mov cl, byte [eax + 0x102c8ab8]
mov dl, byte [eax + 0x102c8a89]
sub dl, cl
mov byte [ebp + eax - 0x12c], dl
add eax, 1
cmp eax, 0xe
mov dword [ebp - 0x140], eax
jne 0x100128f1
lea eax, [ebp - 0x12c]
mov dword [0x102f47b8], 0x1999
mov dword [0x102f47b4], 0xfffff3f6
mov dword [ebp - 0x144], eax
call fcn.10013ae5
mov dword [esp], eax
mov eax, dword [ebp - 0x144]
mov dword [esp + 4], eax
call fcn.10012410
mov dword [0x102f47d0], eax
mov ecx, dword [0x102f47b4]
mov dword [ebp - 0x148], eax
mov dword [ebp - 0x14c], ecx
mov eax, dword [ebp - 0x14c]
add eax, 0xfffff340
mov dword [0x102f47b4], eax
mov eax, dword [ebp - 0x148]
mov ecx, esp
mov edx, dword [ebp - 0x13c]
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 dword [0x102f47b8], 0xc1d
mov edx, ecx
mov dword [ebp - 0x150], eax
mov dword [ebp - 0x154], edx
mov dword [ebp - 0x158], ecx
mov eax, dword [ebp - 0x158]
mov ecx, dword [ebp - 0x154]
lea edx, section.CODE
imul esi, eax, 0x160
mov edi, edx
add edi, esi
mov esi, dword [ebp - 0x150]
add esi, ecx
imul ebx, eax, 0x160
mov dword [ebp - 0x15c], eax
mov eax, edx
add eax, ebx
add eax, 0xe0
mov ebx, dword [ebp - 0x15c]
add ebx, 1
mov dword [ebp - 0x160], eax
mov eax, dword [ebp - 0x15c]
imul eax, eax, 0x160
add edx, eax
add edx, 0xc8
mov eax, dword [ebp - 0x160]
mov eax, dword [eax]
mov edi, dword [edi]
movzx edx, word [edx]
xor edx, eax
mov dword [esp], esi
mov dword [esp + 4], edi
mov dword [esp + 8], edx
mov dword [ebp - 0x164], edx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 0x16c], ebx
call fcn.10013536
mov eax, dword [ebp - 0x164]
mov ecx, dword [ebp - 0x168]
add eax, ecx
mov edx, dword [ebp - 0x16c]
cmp edx, 0x1d7
mov dword [ebp - 0x158], edx
mov dword [ebp - 0x154], eax
jne 0x100129c8
lea eax, [0x102c8a97]
mov ecx, 0x20
lea edx, [ebp - 0x10c]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], 0x20
mov dword [ebp - 0x170], edx
mov dword [ebp - 0x174], ecx
call fcn.100126f0
mov eax, dword [ebp - 0x170]
mov dword [esp], eax
mov ecx, dword [ebp - 0x150]
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
mov edx, dword [ebp - 0x13c]
mov dword [esp + 0xc], edx
call fcn.1001307e
mov eax, dword [ebp - 0x150]
add eax, 0xb1e70
mov ecx, dword [ebp - 0x130]
mov dword [ecx], eax
mov dword [0x102f47b8], 0x1d14
mov dword [ecx + 4], 0x14b000
mov eax, dword [0x102f47b8]
add eax, 0xffffdf0e
mov dword [0x102f47b4], eax
mov eax, dword [ebp - 0x150]
add eax, 0x8ec60
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], 0x2000
mov eax, dword [0x102f47b4]
add eax, 0xffffe799
mov dword [0x102f47b8], eax
xor eax, eax
add esp, 0x178
pop esi
pop edi
pop ebx
pop ebp
ret