Function at 0x409f61
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x24
mov ecx, dword [esp + 0x28]
mov edx, dword [0x724574]
push ebx
mov ebx, dword [esp + 0x3c]
movzx eax, byte [ecx + 0xb6]
or eax, edx
mov dword [esp + 0x24], edx
mov dword [esp + 0xc], eax
xor edx, edx
movzx eax, word [0x724564]
push ebp
mov ebp, dword [esp + 0x34]
push esi
push edi
mov edi, dword [ebx + 0xaf0]
mov esi, dword [ebp]
mov dword [esp + 0x10], 0x1c3
imul eax, dword [ebp + esi*4]
movzx ecx, byte [esi + ecx]
mov dword [esp + 0x20], eax
mov eax, dword [0x724540]
mov dword [esp + 0x28], eax
mov eax, dword [ebx + esi*4]
div ecx
mov eax, dword [esp + 0x40]
mov dword [esp + 0x24], edx
mov edx, dword [ebp + 0x6e68]
mov dword [esp + 0x1c], edx
mov eax, dword [eax + 0x50d0]
sub eax, 0x77c
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 0x1778]
xor eax, 0x11db
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x3b08]
and eax, 0x8d8
mov dword [esp + 0x48], eax
mov eax, dword [0x724548]
mov eax, dword [eax + esi*4]
and dword [0x724528], eax
mov eax, 0xf5e
add word [0x724530], ax
dec dword [ebp]
imul eax, dword [ebp], 0xc
imul ecx, dword [ebp], 3
mov esi, dword [esp + 0x18]
mov al, byte [eax + ebx]
and byte [ecx + edx], al
mov eax, dword [esp + 0x14]
imul edx, dword [ebp], 0xc
movzx ecx, byte [eax + 0x1c3]
mov eax, dword [0x724524]
add ecx, dword [eax + 0x70c]
add ecx, dword [0x724568]
imul ecx, dword [edi + 0x70c]
mov eax, dword [esp + 0x38]
imul ecx, dword [edx + ebx]
mov dword [edx + ebx], ecx
movzx eax, byte [eax + 0x1869]
mov edi, dword [0x72454c]
cmp edi, eax
ja 0x40a080
movzx eax, byte [0x2017]
cmp eax, dword [esi + 0x70c]
jl 0x40a09c
imul ecx, dword [0x724558], 6
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x30]
movzx eax, byte [eax + 0x825]
cmp word [ecx + edx], ax
jb 0x40a0af
movzx eax, byte [0x724513]
movzx ecx, word [esp + 0x44]
and eax, ecx
jmp 0x40a3ef
movzx eax, word [0x724570]
cmp dword [0x724534], eax
jle 0x40a0e0
dec dword [ebp]
mov edx, 0x1c4
mov eax, dword [ebp]
mov dword [esp + 0x10], edx
mov eax, dword [ebx + eax*4]
cmp dword [esi + 0x718], eax
jb 0x40a0f5
mov edi, dword [0x72454c]
jmp 0x40a0e5
mov edx, 0x1c3
mov eax, dword [esp + 0x20]
movzx eax, byte [edx + eax]
cmp eax, edi
je 0x40a2be
mov ecx, dword [ebp]
mov eax, dword [0x724528]
add ecx, ecx
mov edi, dword [esp + 0x28]
movzx eax, byte [eax + edi]
cmp eax, dword [ebx + ecx*8 + 0x18]
jae 0x40a2be
mov ecx, dword [0x724558]
mov eax, dword [0x724544]
add ecx, ecx
imul esi, dword [esp + 0x48], 0xc
movzx edx, word [esp + 0x44]
mov ebp, dword [esp + 0x40]
mov eax, dword [eax + ecx*8]
mov ecx, dword [0x724548]
imul eax, dword [ecx + 0x7330]
mov ecx, dword [esp + 0x40]
add eax, edx
xor edx, edx
div dword [esi + ebx]
mov dword [esi + ebx], eax
movzx edi, word [0x724510]
mov esi, dword [esp + 0x10]
movzx eax, word [0x724518]
and eax, edi
sub eax, dword [ecx + esi*4]
mov ecx, dword [0x724558]
cdq
idiv dword [ebp + ecx*4]
mov ebp, dword [esp + 0x3c]
mov word [0x72455c], dx
cmp edi, 0x1c5a
ja 0x40a2b1
mov edx, dword [esp + 0x48]
lea eax, [edi*4 + 0xc]
mov dword [esp + 0x3c], eax
lea eax, [edi + 2]
imul eax, eax, 0xc
add eax, dword [esp + 0x40]
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x1c]
mov eax, edi
or eax, 0x14d8
movzx ecx, byte [edi + ecx]
and ecx, eax
mov eax, dword [0x724548]
xor ecx, dword [eax + esi*4 + 4]
imul ecx, dword [ebx + esi*4]
mov dword [ebx + esi*4], ecx
imul eax, dword [0x724504], 0x17d3
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
add dword [esp + 0x18], 0xc
sub eax, dword [0x72454c]
sub eax, edi
add eax, dword [ecx]
mov ecx, dword [esp + 0x3c]
mov dword [0x72454c], eax
mov eax, dword [0x724544]
mov cl, byte [ecx + eax - 0xc]
mov eax, dword [0x724528]
sub cl, 0x57
inc edx
mov dword [esp + 0x48], edx
mov byte [eax + esi], cl
mov cl, dl
mov eax, dword [0x724528]
mov esi, 0x15d1
mov edx, dword [esp + 0x2c]
inc eax
mov dword [0x724528], eax
imul eax, eax, 0xc
sub cl, byte [eax + edx]
mov eax, dword [ebp]
mov edx, dword [esp + 0x38]
mov byte [edx + eax*4], cl
xor edx, edx
mov eax, dword [ebp + 0x35b4]
add eax, edi
mov ecx, dword [0x724528]
div esi
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x3c]
sub dl, byte [eax + ecx + 7]
mov byte [eax + ecx + 7], dl
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x48]
mov eax, dword [0x724528]
add eax, eax
add esi, dword [0x724548]
movzx ecx, byte [ecx + edx]
mov edx, dword [esp + 0x40]
mov eax, dword [edx + eax*8]
cdq
idiv ecx
mov ecx, dword [ebp]
lea ebp, [ebp - 4]
mov edx, dword [esp + 0x40]
sub eax, dword [edx + ecx*4]
xor edx, edx
div dword [esi]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x48]
add ecx, 4
mov dword [esi], eax
dec edx
mov al, byte [0x724513]
mov esi, dword [esp + 0x10]
and al, 0x77
inc edi
mov byte [0x724513], al
mov dword [esp + 0x3c], ecx
cmp ecx, 0x7174
jle 0x40a1a0
jmp 0x40a2b6
mov al, byte [0x724513]
movzx eax, al
jmp 0x40a0a3
mov ecx, dword [ebp]
mov edi, edx
movzx eax, word [0x724530]
movzx ebx, word [esp + 0x44]
xor eax, ebx
mov dword [esp + 0x44], 0x1a3b
xor dword [ebp + ecx*4 + 0x68], eax
mov ecx, dword [esp + 0x20]
imul eax, edx, 3
xor edx, edx
movzx ecx, byte [eax + ecx + 5]
mov eax, dword [esp + 0x24]
movzx eax, byte [eax + 0x1a04]
div dword [esp + 0x44]
lea eax, [edx + ecx]
xor edx, edx
sub eax, dword [0x72454c]
div dword [esi + edi*4]
mov dword [esi + edi*4], edx
mov ecx, dword [0x724538]
mov eax, dword [ebp + edi*4 + 4]
mov edx, dword [esp + 0x24]
mov esi, dword [0x724520]
xor eax, dword [ecx + 0x442c]
mov ecx, dword [ebp]
movzx ecx, byte [edx + ecx*4]
xor edx, edx
imul eax, ecx
mov ecx, dword [esp + 0x40]
div dword [ecx + edi*4]
movzx ecx, byte [esi + edi*4]
xor edx, edx
div ecx
mov ecx, dword [esp + 0x40]
xor edx, edx
mov byte [esi + edi*4], al
mov eax, dword [ebp]
mov edi, dword [ecx + eax*4 + 0x18]
mov ecx, dword [esp + 0x1c]
or edi, 0x1ecc
movzx esi, byte [eax + ecx]
mov eax, dword [0x72456c]
movzx ecx, word [0x724564]
mov eax, dword [eax + 0x37c8]
div ecx
push eax
push 0x42
push esi
push edi
call fcn.0040bdb0
mov ecx, dword [0x724568]
mov edx, dword [esp + 0x50]
mov esi, dword [esp + 0x20]
mov dword [edx + ecx*4], eax
imul ecx, dword [ebp], 0xc
mov eax, dword [0x724544]
mov dl, byte [0x72450c]
xor dl, byte [0x724560]
or dl, byte [ecx + eax + 4]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x58]
add dl, cl
xor byte [esi + eax - 1], dl
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x48]
mov ecx, dword [edx + ecx*4 + 0xc]
movzx eax, byte [eax + 0x375]
sub ecx, eax
movzx eax, word [0x724518]
push eax
push 0x39
push ecx
mov ecx, dword [esp + 0x64]
push ecx
call fcn.0040bdb0
mov dword [0x72450c], eax
add esp, 0x20
movzx eax, byte [0x724513]
and eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret