Function at 0x1017890c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x170
mov eax, dword [ebp + 8]
mov ecx, dword [0x1020d6a4]
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x134], ecx
xor eax, eax
mov ecx, dword [ebp - 0x134]
add ecx, 0xfffff8c9
mov dword [0x1020d6a8], ecx
mov ecx, eax
mov dword [ebp - 0x138], ecx
mov dword [ebp - 0x13c], eax
jmp 0x10178a11
mov eax, dword [ebp - 0x140]
mov ecx, dword [ebp - 0x144]
lea edx, section..data
mov esi, ecx
add esi, 1
imul edi, ecx, 0x58
mov ebx, edx
add ebx, edi
add ebx, 0x10
imul edi, ecx, 0x58
mov dword [ebp - 0x148], eax
mov eax, edx
add eax, edi
add eax, 0x50
mov edi, dword [ebp - 0x14c]
mov dword [ebp - 0x150], eax
mov eax, dword [ebp - 0x148]
add edi, eax
imul ecx, ecx, 0x58
add edx, ecx
add edx, 0x54
mov ecx, dword [edx]
mov edx, dword [ebx]
mov ebx, dword [ebp - 0x150]
movzx eax, word [ebx]
xor eax, ecx
mov dword [esp], edi
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov dword [ebp - 0x154], eax
mov dword [ebp - 0x158], esi
call fcn.101793c0
mov eax, dword [ebp - 0x154]
mov ecx, dword [ebp - 0x148]
add eax, ecx
mov edx, dword [ebp - 0x158]
cmp edx, 0x3b6
mov dword [ebp - 0x144], edx
mov dword [ebp - 0x140], eax
je 0x10178b28
jmp 0x10178954
mov eax, dword [ebp - 0x13c]
mov ecx, dword [ebp - 0x138]
lea edx, section..data
imul esi, eax, 0x58
mov edi, edx
add edi, esi
add edi, 0x54
imul esi, eax, 0x58
add edx, esi
add edx, 0x50
add eax, 1
mov esi, dword [edi]
movzx edx, word [edx]
xor edx, esi
add edx, ecx
cmp eax, 0x3b6
mov ecx, edx
mov dword [ebp - 0x138], ecx
mov dword [ebp - 0x15c], edx
mov dword [ebp - 0x13c], eax
jne 0x10178a11
mov dword [0x1020d6a4], 0x197e
xor eax, eax
mov dword [ebp - 0x160], eax
jmp 0x10178a7e
mov eax, dword [ebp - 0x160]
mov cl, byte [eax + 0x1018223e]
mov dl, byte [eax + 0x1018220f]
sub dl, cl
mov byte [ebp + eax - 0x12c], dl
add eax, 1
cmp eax, 0xe
mov dword [ebp - 0x160], eax
jne 0x10178a7e
lea eax, [ebp - 0x12c]
mov dword [0x1020d6a8], 0x43d
mov dword [ebp - 0x164], eax
call fcn.10178f99
mov dword [esp], eax
mov eax, dword [ebp - 0x164]
mov dword [esp + 4], eax
call fcn.1017813c
mov dword [0x1020d6c4], eax
mov dword [0x1020d6a8], 0x15d1
mov ecx, esp
mov edx, dword [ebp - 0x15c]
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 - 0x14c], eax
mov dword [ebp - 0x144], edx
mov dword [ebp - 0x140], ecx
jmp 0x10178954
lea eax, [0x1018221d]
mov ecx, 0x20
lea edx, [ebp - 0x10c]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], 0x20
mov dword [ebp - 0x168], edx
mov dword [ebp - 0x16c], ecx
call fcn.101790e7
mov eax, dword [ebp - 0x168]
mov dword [esp], eax
mov ecx, dword [ebp - 0x14c]
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
mov edx, dword [ebp - 0x15c]
mov dword [esp + 0xc], edx
call fcn.10178d91
xor eax, eax
mov ecx, dword [ebp - 0x14c]
add ecx, 0xeb935
mov edx, dword [ebp - 0x130]
mov dword [edx], ecx
mov dword [edx + 4], 0x14de00
mov dword [0x1020d6a8], 0x309
mov ecx, dword [ebp - 0x14c]
add ecx, 0xa93ae
mov dword [edx + 8], ecx
mov dword [edx + 0xc], 0x1f70
mov dword [0x1020d6a4], 0xae8
add esp, 0x170
pop esi
pop edi
pop ebx
pop ebp
ret