Function at 0x40b4b5
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x2c
mov ax, word [0x724564]
mov ecx, 0xffff
add ax, cx
mov edx, dword [esp + 0x48]
mov word [0x724564], ax
movzx eax, ax
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x10], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x5c]
push edi
mov edi, dword [0x724508]
movzx eax, word [esi + 0xd7c]
movzx ebx, word [esi + 0x3be6]
mov dword [esp + 0x10], eax
mov eax, dword [edx]
sub edx, 4
mov dword [esp + 0x58], edx
xor edx, edx
add ebx, dword [ecx + eax*4 + 0x1c]
mov ax, word [0x724530]
inc ax
mov ecx, dword [0x724550]
mov word [0x724530], ax
movzx eax, ax
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x30], ebx
movzx ebx, byte [0x724513]
movzx ebp, word [eax + 0x1b14]
movzx eax, di
mov dword [esp + 0x1c], eax
mov eax, dword [0x724520]
mov dword [esp + 0x18], ebp
movzx eax, byte [eax + 0x1ba]
mov dword [esp + 0x38], eax
mov eax, ecx
div dword [0x724500]
mov eax, dword [0x724534]
dec ecx
mov dword [esp + 0x60], eax
mov dword [0x724550], ecx
mov ecx, dword [0x724528]
imul eax, ecx, 6
mov dword [esp + 0x34], edx
movzx edx, word [eax + esi + 2]
movzx eax, byte [0x724512]
mov esi, dword [0x72456c]
add edx, eax
mov eax, dword [0x724558]
dec ecx
mov dword [0x724528], ecx
mov ecx, dword [0x724538]
mov dword [esp + 0x14], edx
xor edx, edx
mov eax, dword [ecx + eax*4 + 0x84]
mov ecx, dword [0x72453c]
div dword [esi + ecx*4]
mov ecx, dword [esp + 0x40]
xor eax, 0x10c6
mov esi, dword [0x724574]
mov ecx, dword [ecx]
movzx ecx, byte [ecx + 0x7b2]
or eax, ecx
add edi, eax
mov eax, dword [0x72452c]
mov dword [0x724508], edi
mov edi, dword [esp + 0x60]
mov eax, dword [eax + edi*4 + 0x18]
cdq
idiv dword [0x72451c]
mov eax, dword [esp + 0x10]
movzx ecx, word [eax + esi*2]
mov eax, edx
cdq
idiv ecx
movzx ecx, byte [ebp + esi*4]
mov eax, edx
cdq
idiv ecx
mov esi, dword [esp + 0x58]
mov eax, dword [esp + 0x44]
imul ecx, dword [esi], 0xc
mov dword [ecx + eax + 0x7c], edx
inc dword [0x72451c]
dec dword [esi]
mov esi, dword [esi]
imul eax, edi, 3
movzx ecx, byte [eax + 0x7b1]
mov eax, dword [esp + 0x54]
mov eax, dword [eax + esi*4 + 0x14]
cdq
idiv ecx
movzx ecx, byte [ebx + esi*2 + 8]
movzx eax, al
imul eax, ecx
mov byte [esi*4 + 0x7b1], al
mov eax, dword [0x72456c]
mov ebx, dword [0x724534]
cmp ebx, dword [eax + edi*4 + 0x98]
je 0x40b7bf
mov eax, dword [esp + 0x54]
lea ecx, [ebx + 2]
lea edi, [ebx + 1]
lea eax, [eax + ebx*4]
add eax, 0x18
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x10]
lea ecx, [eax + ecx*2]
mov dword [esp + 0x44], ecx
mov al, byte [ecx]
push dword [0x724574]
mov esi, dword [esp + 0x58]
movzx ecx, word [0x724510]
movzx edx, byte [0x724513]
or ecx, ebx
mov byte [esp + 0x14], al
mov eax, dword [0x724540]
add eax, 2
imul eax, eax, 0xc
push dword [eax + esi]
push ecx
push edx
push dword [esp + 0x20]
call fcn.0040bf92
movzx ecx, byte [ebp]
add esp, 0x14
mov edx, dword [esp + 0x20]
mov word [edx + ecx*2], ax
inc byte [ebp]
movzx eax, byte [ebp]
imul ecx, eax, 3
mov al, bl
sub al, byte [ecx + ebp + 5]
mov byte [ecx + ebp + 5], al
mov esi, dword [0x724560]
mov ecx, dword [0x724528]
inc esi
mov dword [0x724560], esi
movzx eax, word [esi*8 + 0x164f]
imul eax, dword [0x724504]
mov dword [0x724504], eax
movzx eax, word [edx + ecx*2]
mov edx, dword [esp + 0x50]
cmp dword [edx + esi*4], eax
jle 0x40b722
mov ebp, dword [esp + 0x58]
mov edx, dword [esp + 0x60]
mov eax, dword [0x724558]
cmp eax, dword [ebp + edx*4]
mov ebp, dword [esp + 0x18]
je 0x40b795
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x4c]
mov eax, dword [eax]
movzx eax, byte [eax + edx]
cmp eax, ebx
jne 0x40b795
mov eax, edi
xor ecx, 0x135f
imul eax, ebx
push ecx
cdq
idiv dword [0x724568]
mov dword [0x724568], edx
movzx eax, byte [ebp]
mov edx, dword [esp + 0x18]
mov al, byte [edx + eax*2]
sub al, 0x2e
mov byte [esp + 0x2c], al
mov al, byte [0x72451c]
mov byte [esp + 0x28], al
mov eax, dword [esp + 0x60]
movzx eax, word [eax]
push eax
push dword [esp + 0x2c]
push dword [esp + 0x34]
call fcn.0040b34b
mov edx, dword [0x724558]
add esp, 0x10
mov ecx, dword [0x724524]
mov dword [ecx + edx*4 + 0x7c], eax
mov esi, dword [0x724560]
mov ecx, dword [esp + 0x44]
inc ebx
mov eax, dword [0x72456c]
add ecx, 2
mov edx, dword [esp + 0x60]
add dword [esp + 0x5c], 4
inc edi
mov dword [esp + 0x44], ecx
cmp ebx, dword [eax + edx*4 + 0x98]
jne 0x40b67b
jmp 0x40b7c5
mov esi, dword [0x724560]
mov eax, dword [esp + 0x1c]
movzx edi, word [0x724570]
movzx eax, ax
cmp edi, eax
jge 0x40b87e
mov ebx, dword [esp + 0x40]
mov eax, dword [0x724558]
mov ecx, dword [esp + 0x48]
movzx eax, byte [eax + ecx]
mov ecx, dword [esp + 0x2c]
sub eax, dword [ecx + 0x2620]
or dword [0x72450c], eax
movzx edx, byte [ebp + 0xd04]
mov ecx, dword [0x72451c]
or edx, edi
mov eax, dword [esp + 0x14]
inc ecx
mov ebp, dword [esp + 0x58]
mov dword [0x72451c], ecx
xor ecx, dword [esp + 0x60]
movzx eax, word [eax]
add eax, eax
mov eax, dword [ebp + eax*8 + 0x14]
xor eax, esi
inc dword [ebx]
push eax
push ecx
push edx
mov eax, edi
xor eax, dword [esp + 0x3c]
push eax
push 0
call fcn.0040bf92
mov ecx, dword [ebx]
add esp, 0x14
mov edx, dword [esp + 0x34]
mov ebp, dword [esp + 0x18]
mov word [edx + ecx*2], ax
mov eax, dword [0x724558]
mov ecx, dword [esp + 0x38]
mov al, byte [ebp + eax*2 + 0x15]
sub al, byte [edi + ebp]
sub al, byte [ecx + 0x1898]
mov ecx, dword [esp + 0x1c]
sub al, 0x66
mov byte [edi + ebp], al
inc edi
mov esi, dword [0x724560]
movzx eax, cx
cmp edi, eax
jl 0x40b7df
mov ecx, dword [0x72453c]
mov eax, dword [esp + 0x54]
inc ecx
pop edi
mov dword [0x72453c], ecx
mov eax, dword [eax + esi*4]
pop esi
pop ebp
xor eax, ecx
pop ebx
add esp, 0x2c
ret