Function at 0x40ae2b
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x40
push ebx
push ebp
push esi
push edi
mov ebx, dword [esp + 0x54]
mov eax, 0xa48
cdq
idiv ebx
mov ecx, dword [0x724528]
xor edx, edx
mov dword [esp + 0x24], eax
mov eax, 0x8cb
mov dword [esp + 0x38], ecx
inc ecx
mov dword [0x724528], ecx
movzx ecx, word [0x724564]
div ecx
mov eax, dword [0x724534]
dec eax
mov dword [esp + 0x2c], edx
mov dword [0x724534], eax
xor edx, edx
or eax, 0x1646
mov ecx, dword [0x72450c]
mov dword [esp + 0x30], eax
mov al, 0x15
sub al, bl
mov ebp, dword [esp + 0x58]
mov byte [esp + 0x13], al
movzx esi, bx
mov eax, dword [ebp + 0x78d4]
div ebx
mov edx, dword [0x72453c]
dec ebx
dec ecx
mov dword [esp + 0x18], esi
mov esi, dword [0x72454c]
mov edi, eax
mov dword [0x72450c], ecx
mov eax, dword [0x724560]
or eax, ecx
mov dword [esp + 0x20], esi
movzx ecx, word [ebp + ebx*4]
mov dword [esp + 0x4c], eax
imul eax, dword [0x724554], 0x1931
mov dword [esp + 0x34], edi
mov dword [esp + 0x54], ebx
mov dword [esp + 0x28], edx
mov dword [esp + 0x3c], eax
movzx eax, bx
imul ecx, eax
movzx eax, cx
mov ecx, dword [0x724558]
mov dword [esp + 0x1c], eax
movzx eax, word [edi + 0x32c0]
mov dword [esp + 0x14], ecx
cmp ecx, eax
je 0x40b003
mov eax, dword [esp + 0x24]
mov ebp, dword [esp + 0x54]
lea ebx, [eax + ebx*8]
mov dword [esp + 0x40], ebx
jmp 0x40af1d
mov esi, dword [esp + 0x20]
movzx edx, word [esi]
movzx eax, word [edi + edx*8]
movzx ecx, word [esi + edx*2]
imul ecx, eax
mov word [edi + edx*8], cx
mov eax, dword [0x724530]
mov edi, dword [esp + 0x58]
add eax, 0xfffffeac
xor eax, dword [0x724550]
sub ax, word [ebx]
mov word [ebx], ax
mov bl, byte [0x724513]
mov eax, dword [esp + 0x14]
inc bl
mov edx, dword [0x724548]
mov byte [0x724513], bl
lea esi, [edi + eax*4]
mov eax, dword [esi]
or eax, ebp
imul ecx, eax, 0xe57
movzx eax, bl
mov ebx, dword [esp + 0x14]
xor ecx, eax
mov eax, dword [esp + 0x18]
sub ecx, dword [edx + ebx*4]
inc eax
mov dword [edx + ebx*4], ecx
xor edx, edx
movzx ecx, word [ebx + ebx + 0x976]
mov dword [esp + 0x18], eax
movzx eax, ax
div ecx
xor edx, edx
mov ecx, dword [esp + 0x24]
imul eax, dword [edi + ebx*4 + 0xc]
div dword [esi]
mov eax, dword [esp + 0x20]
mov dword [esi], edx
mov esi, dword [0x724568]
mov edi, esi
xor edi, dword [esp + 0x38]
movzx edx, word [eax + ebx*8]
mov eax, dword [esp + 0x2c]
mov ebx, edx
push esi
mov eax, dword [eax]
movzx ecx, word [ecx + eax*2]
or ecx, edx
push ecx
push edi
push ebx
mov ebx, dword [esp + 0x24]
push ebx
call fcn.0040b89c
mov edi, dword [esp + 0x48]
add esp, 0x14
inc ebx
mov dword [esp + 0x30], eax
mov dword [esp + 0x14], ebx
movzx ecx, word [edi + 0x32c0]
cmp ebx, ecx
mov ebx, dword [esp + 0x40]
jne 0x40af19
mov ebx, dword [esp + 0x54]
mov ebp, dword [esp + 0x58]
mov edx, dword [esp + 0x28]
movzx eax, word [ebx + ebx + 0x976]
mov edi, ebx
mov ebx, dword [esp + 0x28]
xor eax, 0x1eab
add edi, edi
add dword [edx + edi*8], eax
xor edx, edx
mov eax, dword [esp + 0x1c]
movzx eax, ax
mov esi, dword [0x724558]
mov ecx, dword [0x724544]
add esi, esi
mov eax, dword [ebp + eax*8 + 8]
div dword [ebx + 0x1acc]
lea ebx, [edi*8]
add dword [ecx + esi*8], edx
add ebx, ebp
mov eax, dword [0x72453c]
movzx esi, byte [0x724513]
mov ecx, dword [esp + 0x1c]
or esi, eax
inc eax
mov dword [esp + 0x14], ebx
mov dword [0x72453c], eax
mov eax, dword [esp + 0x18]
movzx edx, ax
xor edx, 0x1487
inc eax
mov dword [esp + 0x18], eax
movzx eax, cx
mov ecx, dword [esp + 0x24]
mov al, byte [ebp + eax*4]
mov byte [esp + 0x40], al
mov eax, dword [0x724558]
movzx ecx, word [ecx + eax*2]
mov eax, dword [esp + 0x34]
movzx eax, word [eax + 0x2e36]
or ecx, eax
push ecx
push dword [esp + 0x44]
push edx
push esi
call fcn.0040bdb0
mov ecx, dword [esp + 0x2c]
add esp, 0x10
mov edi, dword [esp + 0x30]
mov dword [ebx], eax
mov ebx, dword [esp + 0x54]
movzx eax, cx
mov ecx, dword [esp + 0x2c]
add eax, eax
mov eax, dword [ecx + eax*8]
mov dword [esp + 0x28], eax
cmp eax, 0xc24
jl 0x40b217
movzx ecx, byte [esp + 0x13]
mov dword [esp + 0x48], ecx
add ecx, 0xfffff7d2
mov dword [esp + 0x40], ecx
imul ecx, eax, 0xc
imul edx, eax, 6
mov eax, ebp
imul esi, ebx, 6
add ecx, dword [esp + 0x3c]
add edx, 0x976
mov dword [esp + 0x54], ecx
add esi, dword [esp + 0x24]
sub eax, dword [esp + 0x3c]
mov dword [esp + 0x38], edx
mov dword [esp + 0x44], eax
movzx eax, word [edx]
sub esi, 6
or eax, dword [esp + 0x40]
xor edx, edx
mov ebp, dword [esp + 0x44]
mov dword [esp + 0x24], esi
mov esi, dword [esp + 0x54]
mov ecx, dword [0x724520]
sub dword [esp + 0x14], 0x10
sub dword [esp + 0x24], 6
div dword [esi + ebp]
xor edx, edx
sub dword [esp + 0x14], 0x10
sub al, byte [ecx + ebx - 1]
mov byte [ecx + ebx - 1], al
sub ebx, 2
mov eax, dword [0x72453c]
and eax, dword [0x724500]
mov ecx, dword [esp + 0x54]
movzx esi, ax
mov eax, dword [esp + 0x20]
movzx eax, word [eax + 0x1682]
div dword [ecx]
movzx ecx, byte [0x724513]
mov eax, edi
or eax, ebx
movzx edx, dx
push eax
push dword [esp + 0x4c]
push ecx
push edx
push esi
call fcn.0040b89c
mov esi, dword [esp + 0x38]
add esp, 0x14
mov ebp, dword [esp + 0x58]
mov edx, dword [esp + 0x28]
add dword [esp + 0x54], 0xc
mov word [esi], ax
sub esi, 6
mov ecx, dword [0x724528]
imul eax, ecx, 0xc
mov eax, dword [eax + ebp]
and eax, edx
add eax, edx
and eax, edx
xor edx, edx
div edi
mov eax, dword [esp + 0x14]
inc ecx
sub eax, 0x10
mov dword [0x724528], ecx
mov ecx, dword [0x724514]
dec ebx
mov dword [esp + 0x14], eax
mov edi, edx
mov eax, dword [eax]
mov dword [0x724550], eax
mov ax, word [0x724530]
inc ax
movzx edx, ax
mov word [0x724530], ax
mov al, byte [esp + 0x1c]
xor al, byte [esp + 0x28]
xor al, 0x35
movzx eax, al
imul eax, eax, 0x4c
add byte [edx + ecx], al
mov edx, dword [esp + 0x38]
inc dword [esp + 0x28]
add edx, 6
mov dword [esp + 0x38], edx
cmp edx, 0x524e
jge 0x40b10f
mov eax, dword [esp + 0x2c]
dec ebx
mov edx, dword [eax + ebx*4 + 0x10]
mov eax, dword [0x72453c]
mov ecx, eax
inc eax
mov dword [0x72453c], eax
cmp edx, ecx
jb 0x40b23c
movzx eax, byte [0x724512]
cmp edi, eax
jne 0x40b29d
mov ecx, dword [esp + 0x3c]
mov esi, dword [esp + 0x18]
movzx eax, si
cmp eax, dword [ecx + ebx*4]
jne 0x40b2a1
mov edx, dword [0x724528]
mov edi, dword [esp + 0x34]
movzx eax, si
movzx ecx, word [edi + edx*2]
imul ecx, eax
mov word [edi + edx*2], cx
mov ecx, dword [esp + 0x4c]
movzx eax, byte [0x724512]
mov word [ecx + ebx*2], ax
mov ecx, 0xffff
mov eax, dword [esp + 0x20]
add word [eax], cx
mov ax, word [eax]
movzx ecx, ax
mov eax, dword [0x72450c]
or dword [ebp + ecx*4], eax
mov eax, dword [0x724550]
mov edi, eax
dec eax
mov dword [0x724550], eax
jmp 0x40b2a1
mov esi, dword [esp + 0x18]
xor edx, edx
mov dword [esp + 0x54], ebx
lea ecx, [ebx*4 - 4]
mov eax, edi
div dword [ecx + ebp]
mov edi, dword [esp + 0x2c]
mov dword [ecx + ebp], edx
mov edx, dword [esp + 0x1c]
movzx eax, dx
xor edx, edx
mov eax, dword [edi + eax*4]
xor eax, 0x1e44
mov dword [ecx + ebp], eax
mov bl, byte [0x724512]
inc bl
movzx eax, si
mov byte [0x724512], bl
div dword [ebp + 0x2ecc]
mov ecx, dword [0x724528]
xor edx, edx
inc ecx
imul esi, dword [esp + 0x54], 0xc
imul ecx, ecx, 0xc
div dword [ecx + ebp]
mov edx, dword [esp + 0x1c]
movzx ecx, bl
sub eax, ecx
mov ecx, dword [0x724540]
mov dword [ebp + ecx*4 + 0x10], eax
dec dword [0x724540]
mov eax, dword [esp + 0x20]
dec dword [0x724528]
movzx ecx, word [eax]
movzx eax, dx
imul edx, eax, 0xc
mov eax, dword [0x724548]
mov eax, dword [eax + ecx*4 + 0x1c]
mov ecx, dword [esp + 0x58]
add eax, dword [edx + edi]
pop edi
or dword [esi + ecx], eax
movzx eax, byte [esp + 0xf]
pop esi
pop ebp
imul eax, eax, 0x57c
pop ebx
add esp, 0x40
ret