Function at 0x40bf92
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x38
mov ecx, dword [esp + 0x44]
xor edx, edx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x4c]
push edi
mov edi, dword [0x72452c]
mov dword [esp + 0x2c], esi
mov eax, dword [ecx + esi*4]
mov dword [esp + 0x40], eax
mov eax, esi
add eax, eax
mov ebp, dword [ecx + eax*8]
mov ecx, dword [esp + 0x58]
or ebp, dword [0x724560]
movzx eax, word [ecx + esi*2]
mov dword [esp + 0x28], eax
mov al, byte [edi + 0x590]
mov byte [esp + 0x13], al
imul eax, esi, 6
movzx ecx, word [eax + ecx]
mov eax, 0x82f
div ecx
inc esi
xor edx, edx
mov ebx, eax
mov dword [esp + 0x50], esi
movzx eax, byte [esp + 0x4c]
mov dword [esp + 0x3c], eax
sub eax, esi
mov esi, dword [0x724558]
mov dword [esp + 0x30], eax
mov eax, dword [0x724550]
xor eax, 0x131a
mov dword [esp + 0x44], eax
lea eax, [esi - 0xc9a]
mov dword [esp + 0x34], eax
mov eax, esi
add eax, eax
mov eax, dword [edi + eax*8]
mov edi, dword [esp + 0x50]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x5c]
movzx ecx, word [eax + edi*8]
mov eax, 0xb0a
div ecx
dec esi
mov edx, eax
mov dword [0x724558], esi
mov eax, dword [esp + 0x54]
mov dword [esp + 0x24], edx
xor edx, 0x1e5c
push edx
mov ecx, dword [eax + esi*4 + 0x10]
add ecx, dword [eax + 0x298c]
mov eax, dword [esp + 0x60]
mov esi, dword [esp + 0x50]
mov dword [esp + 0x1c], ecx
movzx ecx, word [eax + edi*8]
mov edi, 0x2eb
mov al, byte [0x724570]
sub edi, ecx
mov cl, byte [esp + 0x17]
sub al, 0x7b
mov byte [esp + 0x20], al
movzx eax, cl
inc cl
mov byte [esp + 0x17], cl
mov al, byte [esi + eax*2]
mov byte [esp + 0x24], al
mov eax, dword [0x724574]
inc eax
imul eax, eax, 6
movzx ecx, word [eax + ebx]
push ecx
push dword [esp + 0x28]
push dword [esp + 0x28]
call fcn.0040b34b
mov bl, byte [esp + 0x23]
movzx ecx, bl
mov edx, dword [esp + 0x3c]
inc bl
mov esi, dword [esp + 0x6c]
mov word [edx + ecx*2 + 4], ax
mov ecx, dword [esp + 0x6c]
movzx eax, bl
imul edx, eax, 0xc
movzx ecx, word [ecx + eax*2]
mov eax, dword [0x724558]
movzx eax, word [esi + eax*8]
xor ecx, eax
mov esi, dword [esp + 0x5c]
movzx eax, word [0x2294]
sub ecx, eax
mov eax, dword [esp + 0x64]
add dword [edx + eax], ecx
xor edx, edx
inc dword [0x724558]
mov eax, dword [0x724520]
mov ecx, dword [0x724550]
movzx eax, byte [eax + 0x89c]
div ebp
mov ebp, dword [esp + 0x60]
inc bl
mov byte [esp + 0x2c], al
mov eax, 0xd1a
mov byte [esp + 0x30], bl
movzx ebx, bl
mov dword [esp + 0x24], ebx
or ax, word [esi + ebx*2]
dec ecx
movzx edx, ax
mov dword [0x724550], ecx
movzx eax, word [ebp + ebx*2]
sub eax, ecx
push eax
push edx
push dword [esp + 0x38]
push dword [esp + 0x38]
call fcn.0040b34b
movzx eax, word [0x724530]
mov ecx, 0x1c8
mov edx, dword [esp + 0x7c]
add esp, 0x20
sub cx, word [edx + eax*2]
and word [edx + ebx*2], cx
mov esi, dword [0x72450c]
cmp edi, esi
jne 0x40c289
mov eax, dword [esp + 0x30]
mov ecx, 0x351f
imul ebx, edi, 6
lea eax, [eax + edi*8]
add ebx, dword [esp + 0x58]
add eax, 6
mov dword [esp + 0x20], eax
lea eax, [edx + 2]
lea eax, [eax + edi*2]
mov dword [esp + 0x1c], eax
mov al, byte [eax]
push dword [0x72454c]
movzx edx, word [ebx]
mov cl, byte [ecx]
mov byte [esp + 0x34], al
mov eax, edi
or eax, esi
movzx ecx, cl
movzx eax, ax
push eax
mov eax, edx
inc dword [0x724528]
xor edx, edx
div ecx
push dword [esp + 0x38]
push eax
call fcn.0040b34b
mov ecx, dword [0x724528]
mov edx, dword [esp + 0x64]
add ecx, ecx
mov dword [edx + ecx*8], eax
mov eax, edi
cdq
idiv ebp
movzx ecx, word [ebp + edi*8]
sub eax, ecx
mov ecx, edi
imul eax, dword [esp + 0x38]
xor ecx, dword [0x724528]
mov dword [0x724540], eax
mov eax, dword [esp + 0x44]
movzx esi, byte [eax + ebp]
mov eax, ebp
cdq
idiv edi
mov eax, edi
push edx
push ecx
cdq
mov ecx, 0x115e
idiv ecx
push eax
push esi
push 0x1a9f
call fcn.0040b89c
mov esi, dword [esp + 0x44]
add esp, 0x24
mov ecx, dword [esp + 0x24]
mov word [0x724518], ax
movzx eax, word [esi]
cmp ecx, eax
jne 0x40c25c
mov eax, 0x9f9
mov ebp, ecx
cdq
idiv edi
imul edx, eax, 0x8bb
mov ecx, dword [0x724524]
mov eax, edx
sub eax, dword [ecx + edi*4]
inc ebp
mov dword [ecx + edi*4], eax
movzx eax, word [esi]
cmp ebp, eax
je 0x40c242
mov ebp, dword [esp + 0x50]
mov eax, dword [esp + 0x1c]
add esi, 8
inc edi
mov dword [esp + 0x20], esi
mov esi, dword [0x72450c]
add eax, 2
add ebx, 6
mov dword [esp + 0x1c], eax
mov ecx, 0x351f
cmp edi, esi
je 0x40c196
mov edx, dword [esp + 0x5c]
mov edi, dword [esp + 0x4c]
mov eax, 0xffff
mov ecx, 0x699
add word [edi], ax
movzx eax, word [edi]
or cx, word [ebp + eax*2]
movzx eax, word [edx + 0x1b10]
xor edx, edx
div dword [esp + 0x14]
movzx esi, cx
mov ecx, dword [esp + 0x18]
mov bl, byte [ecx + ebp]
mov ecx, eax
mov eax, dword [esp + 0x3c]
cdq
idiv dword [esp + 0x24]
mov eax, 0x1632
inc dword [0x724560]
push edx
push ecx
movzx ecx, bl
xor edx, edx
div ecx
push dword [0x724574]
push eax
push esi
call fcn.0040b89c
mov edx, dword [0x724560]
add esp, 0x14
mov ecx, dword [0x724520]
mov edi, dword [esp + 0x58]
mov ebx, dword [esp + 0x54]
mov byte [ecx + edx], al
xor edx, edx
movzx ecx, word [edi + ebp*2 + 6]
mov esi, dword [0x724528]
mov eax, esi
div ecx
mov ecx, dword [0x72456c]
xor edx, edx
sub eax, dword [ecx + 0x2f3c]
div ebp
mov eax, dword [esp + 0x5c]
xor dword [ebx + esi*4], edx
xor edx, edx
mov esi, dword [0x724528]
movzx ecx, word [eax + ebp*2]
mov eax, dword [0x724568]
add eax, esi
div ecx
movzx ecx, word [0x724518]
mov eax, dword [0x724500]
or dword [0x724554], edx
sub eax, ecx
add dword [0x724508], eax
mov ecx, 0xffff
mov ax, word [0x724530]
add ax, cx
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x14]
mov word [0x724530], ax
add ecx, 2
movzx eax, ax
mov dword [esp + 0x50], ecx
movzx ecx, word [edi + 0x3e20]
or ecx, eax
mov eax, dword [0x724544]
mov dword [esp + 0x5c], ecx
imul ecx, dword [esp + 0x50], 0xc
mov edi, dword [esp + 0x5c]
add edi, dword [ecx + eax]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x5c], edi
mov edi, dword [esp + 0x4c]
movzx eax, byte [eax + 0x8cf]
imul eax, dword [0x724500]
mov dword [0x724500], eax
cmp edx, 0x1a56
jl 0x40c3f3
mov esi, dword [esp + 0x14]
mov ecx, dword [ebx + esi*4]
movzx eax, word [edi]
inc eax
imul eax, eax, 6
movzx eax, word [eax + edi]
imul eax, eax, 0x15f
xor ecx, eax
and ecx, 0x249
inc edx
mov dword [ebx + esi*4], ecx
cmp edx, 0x1a56
jge 0x40c3c8
mov esi, dword [0x724528]
mov eax, dword [esp + 0x28]
xor edx, edx
add eax, 0x1ae3
mov ebx, dword [esp + 0x5c]
div dword [0x724504]
mov eax, dword [esp + 0x18]
movzx eax, byte [esi + eax]
mov esi, dword [esp + 0x2c]
or dx, ax
mov eax, dword [esp + 0x50]
mov word [edi + eax*2], dx
mov eax, dword [0x724574]
movzx edx, word [0x724530]
mov ecx, dword [0x724524]
movzx eax, word [esi + eax*2]
xor eax, dword [0x724568]
xor eax, ebx
dec ebx
xor eax, ebp
and dword [ecx + edx*4 + 0x14], eax
inc dword [0x724574]
movzx eax, word [esi + ebp*8 + 6]
movzx ecx, word [0x724530]
xor eax, ecx
mov ecx, 0xe94
cdq
idiv ecx
mov ecx, dword [esp + 0x44]
add eax, ebx
add ebp, ebp
mov word [0x724564], ax
mov eax, dword [0x724504]
mov dword [ecx + ebp*8], eax
movzx eax, word [edi + 0x33b0]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret