Function at 0x10012860
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 dword [0x102f4654], 0x21a0
mov edx, ecx
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x138], ecx
jmp 0x10012938
mov eax, dword [ebp - 0x13c]
mov ecx, dword [ebp - 0x140]
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
mov ebx, edx
add ebx, edi
mov edi, dword [ebx]
imul ebx, eax, 0x160
add edx, ebx
add edx, 0xc8
movzx edx, word [edx]
xor edx, esi
mov esi, dword [ebp - 0x144]
add esi, ecx
mov dword [esp], esi
mov dword [esp + 4], edi
mov dword [esp + 8], edx
mov dword [ebp - 0x148], eax
mov dword [ebp - 0x14c], ecx
mov dword [ebp - 0x150], edx
call fcn.10013563
mov eax, dword [ebp - 0x150]
mov ecx, dword [ebp - 0x14c]
add eax, ecx
mov edx, dword [ebp - 0x148]
add edx, 1
cmp edx, 0x1d6
mov dword [ebp - 0x140], eax
mov dword [ebp - 0x13c], edx
je 0x10012a7f
jmp 0x10012894
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, 0xc8
mov esi, eax
add esi, 1
imul eax, eax, 0x160
add edx, eax
add edx, 0xe0
mov eax, dword [edx]
movzx edx, word [edi]
xor edx, eax
add edx, ecx
cmp esi, 0x1d6
mov eax, edx
mov dword [ebp - 0x134], eax
mov dword [ebp - 0x154], edx
mov dword [ebp - 0x138], esi
jne 0x10012938
mov dword [0x102f4654], 0x1287
xor eax, eax
mov dword [ebp - 0x158], eax
jmp 0x100129a9
mov eax, dword [ebp - 0x158]
mov ecx, eax
add ecx, 1
mov dl, byte [eax + 0x102c898e]
mov dh, byte [eax + 0x102c895f]
sub dh, dl
mov byte [ebp + eax - 0x12c], dh
cmp ecx, 0xe
mov dword [ebp - 0x158], ecx
jne 0x100129a9
lea eax, [ebp - 0x12c]
mov dword [0x102f4658], 0x1999
mov dword [0x102f4654], 0xfffff3f6
mov dword [ebp - 0x15c], eax
call fcn.10013abd
mov dword [ebp - 0x160], eax
mov eax, dword [ebp - 0x160]
mov dword [esp], eax
mov ecx, dword [ebp - 0x15c]
mov dword [esp + 4], ecx
call fcn.100123ff
mov dword [0x102f4670], eax
mov ecx, dword [0x102f4654]
add ecx, 0xfffff340
mov dword [0x102f4654], ecx
mov ecx, esp
mov edx, dword [ebp - 0x154]
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 [0x102f4658], 0xc1d
mov edx, ecx
mov dword [ebp - 0x144], eax
mov dword [ebp - 0x140], edx
mov dword [ebp - 0x13c], ecx
jmp 0x10012894
lea eax, [0x102c896d]
mov ecx, 0x20
lea edx, [ebp - 0x10c]
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.100126f0
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 - 0x154]
mov dword [esp + 0xc], edx
call fcn.1001308a
xor eax, eax
mov ecx, dword [ebp - 0x144]
add ecx, 0x143a28
mov edx, dword [ebp - 0x130]
mov dword [edx], ecx
mov dword [0x102f4658], 0x1d14
mov dword [edx + 4], 0x159000
mov ecx, dword [0x102f4658]
add ecx, 0xffffdf0e
mov dword [0x102f4654], ecx
mov ecx, dword [ebp - 0x144]
add ecx, 0x13ebc3
mov dword [edx + 8], ecx
mov dword [edx + 0xc], 0x2000
mov ecx, dword [0x102f4654]
add ecx, 0xffffe799
mov dword [0x102f4658], ecx
add esp, 0x16c
pop esi
pop edi
pop ebx
pop ebp
ret