Function at 0x41ac22
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x30]
mov ecx, 0xde0
mov ebp, dword [esp + 0x34]
mov eax, edi
cdq
idiv ecx
movzx ecx, byte [0x646663]
mov eax, dword [0x6466c4]
mov esi, dword [esp + 0x38]
mov dword [esp + 0x1c], edx
mov edx, dword [0x646668]
mov ebx, dword [eax + ecx*4 + 0xa0]
movzx eax, byte [0x646662]
or ebx, 0x50a
mov dword [esp + 0x24], edi
mov eax, dword [ebp + eax*4]
or eax, 0x424
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x2c]
movzx ecx, word [eax + edi*4 + 0x5c]
movzx eax, word [0x6466a0]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + edi*4]
add eax, 0x4d3
inc dword [0x64665c]
mov dword [esp + 0x18], eax
mov eax, dword [0x64667c]
mov eax, dword [eax + edi*4]
inc edi
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x30], edi
movzx edi, word [eax + edi*4]
inc dword [0x6466d4]
inc byte [edx]
inc ecx
mov al, byte [edx]
movzx edx, cx
mov dword [esp + 0x34], ecx
movzx ecx, al
mov eax, dword [0x6466c4]
mov eax, dword [eax + ecx*4 + 0x14]
xor dword [esi + edx*4 + 1], eax
mov al, byte [0x646662]
mov edx, dword [esp + 0x1c]
dec al
mov ecx, dword [esp + 0x30]
mov byte [0x646662], al
movzx eax, al
mov ecx, dword [edx + ecx*4 + 0xc]
sub ecx, eax
mov eax, ecx
mov ecx, 0x5de
cdq
idiv ecx
add dword [ebx + 0x5784], eax
lea eax, [edi + 1]
movzx esi, ax
mov dword [esp + 0x38], esi
cmp esi, dword [esp + 0x18]
jge 0x41ae37
mov ecx, dword [0x646688]
mov eax, dword [0x6466a4]
dec ecx
mov bl, byte [0x646682]
xor eax, ecx
xor eax, esi
mov dword [0x646688], ecx
mov dword [0x6466d4], eax
mov eax, dword [0x6466c4]
movzx ecx, bl
mov edx, dword [eax + ecx*4 + 8]
mov ecx, dword [0x646650]
and edx, 0x1dae
mov eax, dword [0x646658]
or edx, dword [eax + ecx*4 + 8]
sub edx, dword [0x64665c]
dec bl
mov eax, dword [0x646698]
mov dword [0x64665c], edx
xor edx, edx
mov byte [0x646682], bl
movzx ecx, word [eax + 0x279c]
movzx eax, word [0x64668c]
add eax, 0xd32
and ecx, eax
mov eax, dword [esp + 0x14]
movzx eax, byte [eax + 0xa67]
add ecx, eax
mov eax, dword [esp + 0x10]
imul ecx, dword [ebp + esi*4]
movzx ebx, ax
mov eax, ebx
mov dword [ebp + esi*4], ecx
mov edi, dword [0x6466a4]
div edi
mov edx, dword [esp + 0x34]
mov esi, eax
add edx, 0xffff
mov eax, dword [esp + 0x14]
mov dword [0x6466bc], esi
mov dword [esp + 0x34], edx
movzx ecx, byte [eax + 0x61e]
movzx eax, byte [0x646682]
or cx, dx
add cx, ax
xor edx, edx
add word [0x646664], cx
mov ax, word [0x646694]
inc ax
mov ecx, dword [esp + 0x34]
mov word [0x646694], ax
movzx eax, ax
imul eax, dword [esp + 0x30]
and eax, dword [ebp + ebx*4]
div esi
mov esi, dword [esp + 0x38]
and dword [ebp + edi*4 + 0x20], edx
mov edx, dword [esp + 0x2c]
movzx eax, cx
mov eax, dword [edx + eax*4]
xor dword [edx + ebx*4], eax
inc dword [esp + 0x10]
inc esi
mov dword [esp + 0x38], esi
cmp esi, dword [esp + 0x18]
jl 0x41ad1d
jmp 0x41ae3f
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x2c]
cmp dword [0x6466d4], 0xe5
je 0x41ae6b
mov eax, dword [0x6466bc]
movzx ecx, cx
cmp dword [ebp + eax*4], ecx
jb 0x41ae6b
movzx eax, byte [0x646663]
mov eax, dword [edx + eax*4]
cmp eax, dword [0x6466ac]
jne 0x41aeae
mov ebx, dword [esp + 0x14]
movzx eax, byte [ebx + 0x10be]
cmp dword [0x6466c8], eax
jae 0x41aeae
mov eax, dword [0x6466b0]
movzx esi, word [0x646690]
mov eax, dword [eax + 0x10700]
movzx ecx, byte [esi + ebx]
cdq
idiv ecx
mov byte [esi + ebx], al
mov eax, dword [esp + 0x30]
inc word [0x646690]
mov eax, dword [ebp + eax*4]
mov dword [0x6466c8], eax
mov esi, dword [0x646678]
xor edx, edx
mov eax, dword [esp + 0x20]
inc esi
mov dword [0x646678], esi
pop edi
movzx ecx, byte [eax + 0x12b5]
movzx eax, word [0x646660]
div ecx
mov ecx, dword [esp + 0x18]
xor dword [ebp + esi*4], edx
xor edx, edx
mov eax, dword [ebp + 0x1cf0]
pop esi
div dword [ecx + 0x5784]
pop ebp
mov dword [ecx + 0x5784], eax
mov ecx, dword [esp + 0x18]
movzx eax, byte [0x646682]
pop ebx
mov eax, dword [ecx + eax*4]
mov ecx, 0x459
cdq
idiv ecx
mov eax, dword [esp + 0x20]
mov dword [0x6466d4], edx
add esp, 0x18
ret