Function at 0x1011f8d7
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]
mov ecx, dword [0x1012d3c4]
mov dword [0x1012d3c8], 0x2230
add ecx, 0xffffc357
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x134], ecx
xor eax, eax
mov ecx, dword [ebp - 0x134]
mov dword [0x1012d3c4], ecx
mov edx, eax
mov dword [ebp - 0x138], edx
mov dword [ebp - 0x13c], eax
mov eax, dword [ebp - 0x13c]
mov ecx, dword [ebp - 0x138]
lea edx, section..data
imul esi, eax, 0x48
mov edi, edx
add edi, esi
add edi, 0x44
mov esi, dword [edi]
imul edi, eax, 0x48
add edx, edi
add edx, 0x30
movzx edx, word [edx]
xor edx, esi
add edx, ecx
add eax, 1
cmp eax, 0x246
mov ecx, edx
mov dword [ebp - 0x140], edx
mov dword [ebp - 0x138], ecx
mov dword [ebp - 0x13c], eax
jne 0x1011f924
xor eax, eax
mov dword [0x1012d3c4], 0x13
mov dword [ebp - 0x144], eax
mov eax, dword [ebp - 0x144]
mov ecx, eax
add ecx, 1
mov dl, byte [eax + 0x10122312]
mov dh, byte [eax + 0x101222e3]
sub dh, dl
mov byte [ebp + eax - 0x12c], dh
cmp ecx, 0xe
mov dword [ebp - 0x144], ecx
jne 0x1011f98f
lea eax, [ebp - 0x12c]
mov dword [0x1012d3c8], 0xca9
mov dword [0x1012d3c4], 0xfffffc67
mov dword [ebp - 0x148], eax
call fcn.1011f5b7
mov dword [esp], eax
mov eax, dword [ebp - 0x148]
mov dword [esp + 4], eax
call fcn.1011f6c4
mov dword [0x1012d3e4], eax
mov dword [0x1012d3c4], 0xdc9
mov dword [ebp - 0x14c], eax
mov eax, esp
mov ecx, dword [ebp - 0x140]
mov dword [eax + 4], ecx
mov dword [eax + 0xc], 4
mov dword [eax + 8], 0x1000
mov dword [eax], 0
mov eax, dword [ebp - 0x14c]
call eax
sub esp, 0x10
xor ecx, ecx
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..data
imul esi, eax, 0x48
mov edi, edx
add edi, esi
add edi, 0x44
mov esi, dword [edi]
imul edi, eax, 0x48
mov ebx, edx
add ebx, edi
mov edi, dword [ebx]
imul ebx, eax, 0x48
add edx, ebx
add edx, 0x30
movzx edx, word [edx]
xor edx, esi
mov esi, dword [ebp - 0x150]
add esi, ecx
mov dword [esp], esi
mov dword [esp + 4], edi
mov dword [esp + 8], edx
mov dword [ebp - 0x15c], eax
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x164], edx
call fcn.1011fc58
mov eax, dword [ebp - 0x164]
mov ecx, dword [ebp - 0x160]
add eax, ecx
mov edx, dword [ebp - 0x15c]
add edx, 1
cmp edx, 0x246
mov dword [ebp - 0x154], eax
mov dword [ebp - 0x158], edx
jne 0x1011fa4e
lea eax, [0x101222f1]
mov ecx, 0x20
lea edx, [ebp - 0x10c]
mov esi, dword [ebp - 0x150]
add esi, 0x77f97
mov edi, dword [ebp - 0x150]
add edi, 0x739ea
mov dword [0x1012d3c4], 0x1202
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], 0x20
mov dword [ebp - 0x168], edi
mov dword [ebp - 0x16c], ecx
mov dword [ebp - 0x170], edx
mov dword [ebp - 0x174], esi
call fcn.1011f123
mov dword [0x1012d3c4], 0xb30
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 - 0x140]
mov dword [esp + 0xc], edx
call fcn.1011ff61
xor eax, eax
mov ecx, dword [ebp - 0x130]
mov edx, dword [ebp - 0x174]
mov dword [ecx], edx
mov dword [0x1012d3c8], 0x21e8
mov dword [ecx + 4], 0x12b800
mov edx, dword [ebp - 0x168]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], 0x20b0
mov edx, dword [0x1012d3c8]
add edx, 0x1847
mov dword [0x1012d3c4], edx
add esp, 0x178
pop esi
pop edi
pop ebx
pop ebp
ret