Function at 0x1000579d
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]
xor ecx, ecx
mov dword [0x1002806c], 0xec4
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..data
mov esi, ecx
add esi, 1
imul edi, ecx, 0xe8
mov ebx, edx
add ebx, edi
add ebx, 0x68
imul ecx, ecx, 0xe8
add edx, ecx
add edx, 0x94
mov ecx, dword [edx]
movzx edx, word [ebx]
xor edx, ecx
add edx, eax
cmp esi, 0x247
mov eax, edx
mov dword [ebp - 0x13c], edx
mov dword [ebp - 0x134], esi
mov dword [ebp - 0x138], eax
jne 0x100057cc
mov dword [0x10028070], 0x1562
xor eax, eax
mov dword [ebp - 0x140], eax
jmp 0x1000583d
mov eax, dword [ebp - 0x140]
mov cl, byte [eax + 0x10006390]
mov dl, byte [eax + 0x10006361]
sub dl, cl
mov byte [ebp + eax - 0x12c], dl
add eax, 1
cmp eax, 0xe
mov dword [ebp - 0x140], eax
jne 0x1000583d
lea eax, [ebp - 0x12c]
mov dword [0x1002806c], 0xdb0
mov dword [0x10028070], 0xffffeaa5
mov dword [ebp - 0x144], eax
call fcn.1000537b
mov dword [esp], eax
mov eax, dword [ebp - 0x144]
mov dword [esp + 4], eax
call fcn.1000548c
mov ecx, eax
mov dword [0x10028084], eax
mov eax, esp
mov edx, dword [ebp - 0x13c]
mov dword [eax + 4], edx
mov dword [eax + 0xc], 4
mov dword [eax + 8], 0x1000
mov dword [eax], 0
call ecx
sub esp, 0x10
xor ecx, ecx
mov edx, dword [0x1002806c]
add edx, 0x1adc
mov dword [0x10028070], edx
mov edx, ecx
mov dword [ebp - 0x148], eax
mov dword [ebp - 0x14c], edx
mov dword [ebp - 0x150], ecx
mov eax, dword [ebp - 0x150]
mov ecx, dword [ebp - 0x14c]
lea edx, section..data
mov esi, dword [ebp - 0x148]
add esi, ecx
imul edi, eax, 0xe8
mov ebx, edx
add ebx, edi
add ebx, 0x94
imul edi, eax, 0xe8
mov dword [ebp - 0x154], eax
mov eax, edx
add eax, edi
add eax, 0x30
mov edi, dword [ebp - 0x154]
add edi, 1
mov dword [ebp - 0x158], eax
mov eax, dword [ebp - 0x154]
imul eax, eax, 0xe8
add edx, eax
add edx, 0x68
mov eax, dword [ebx]
mov ebx, dword [ebp - 0x158]
mov ebx, dword [ebx]
movzx edx, word [edx]
xor edx, eax
mov dword [esp], esi
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
mov dword [ebp - 0x15c], edx
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x164], edi
call fcn.10004ba7
mov eax, dword [ebp - 0x15c]
mov ecx, dword [ebp - 0x160]
add eax, ecx
mov edx, dword [ebp - 0x164]
cmp edx, 0x247
mov dword [ebp - 0x150], edx
mov dword [ebp - 0x14c], eax
jne 0x100058f6
lea eax, [0x1000636f]
mov ecx, 0x20
lea edx, [ebp - 0x10c]
mov dword [0x1002806c], 0x1f64
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.10004c6a
mov eax, dword [ebp - 0x168]
mov dword [esp], eax
mov ecx, dword [ebp - 0x148]
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
mov edx, dword [ebp - 0x13c]
mov dword [esp + 0xc], edx
call fcn.10004de6
xor eax, eax
mov ecx, dword [ebp - 0x148]
add ecx, 0x8ac05
mov edx, dword [ebp - 0x130]
mov dword [edx], ecx
mov dword [edx + 4], 0x11ba00
mov ecx, dword [ebp - 0x148]
add ecx, 0x7fcbb
mov dword [edx + 8], ecx
mov dword [edx + 0xc], 0x1fe0
add esp, 0x170
pop esi
pop edi
pop ebx
pop ebp
ret