Function at 0x415000
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x38
mov eax, dword [esp + 0x44]
xor edx, edx
mov ecx, dword [0x60e000]
push ebx
push ebp
push esi
movzx esi, ax
mov eax, dword [0x60e034]
xor eax, 0x6b7
mov ebx, dword [esp + 0x48]
mov dword [esp + 0x30], eax
mov eax, dword [0x60dfc0]
push edi
mov edi, dword [0x60e008]
mov dword [esp + 0x28], esi
mov eax, dword [ecx + eax*4 + 0xc]
mov dword [esp + 0x44], eax
mov eax, dword [ecx + 0x5eac]
div dword [ecx + 0x1bd0]
mov edx, dword [0x60dfac]
mov ecx, esi
mov dword [esp + 0x10], eax
movzx eax, word [ebx + esi*2 + 0x12]
sub ecx, eax
mov dword [esp + 0x3c], edi
mov eax, dword [esp + 0x60]
mov dword [esp + 0x14], ecx
mov ecx, dword [0x60dfe0]
mov dword [esp + 0x20], 0x591
mov eax, dword [eax + ecx*4 + 0x64]
xor eax, edx
inc ecx
dec edx
mov dword [0x60dfe0], ecx
mov dword [0x60dfac], edx
mov dword [esp + 0x18], edx
movzx ebp, word [ebx + ecx*2 + 6]
mov edx, dword [0x60dfec]
xor ebp, 0x15ff
inc ecx
mov dword [esp + 0x30], edx
mov edx, dword [0x60e024]
mov dword [0x60dfe0], ecx
inc ecx
mov dword [esp + 0x40], edx
movzx edx, word [ebx + esi*4]
mov ebx, dword [esp + 0x50]
mov dword [0x60dfe0], ecx
mov dword [esp + 0x2c], edx
mov edx, 0x8c3
mov dword [esp + 0x38], eax
movzx eax, word [eax + ebp*2 + 0x3a]
movzx ecx, word [ebx + ecx*2 + 0x40]
mov edx, dword [edx]
sub ecx, eax
add ecx, 0x1844
imul edi, ebp, 0xc
or dword [edx*4 + 0x85a], ecx
xor edx, edx
mov eax, dword [0x60dfcc]
inc eax
mov dword [0x60dfcc], eax
movzx ecx, word [ebx + eax*2]
imul eax, esi, 3
movzx esi, byte [eax]
mov eax, ecx
div esi
mov ecx, dword [esp + 0x58]
xor edx, edx
xor dword [edi + ecx], eax
mov esi, dword [0x60dfc0]
mov eax, dword [esp + 0x14]
dec esi
mov ecx, dword [esp + 0x50]
mov dword [0x60dfc0], esi
mov ebx, dword [0x60e020]
mov edi, dword [0x60e02c]
movzx ecx, word [ecx + eax*2]
mov eax, 0x1875
div ecx
mov edx, eax
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x14]
movzx eax, word [eax + esi*2]
add edx, eax
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 0x4c]
movzx ecx, word [eax + ecx*2]
mov eax, edx
cdq
idiv ecx
and dword [edi + ebx*4], eax
mov ebx, dword [esp + 0x60]
mov edi, dword [esp + 0x5c]
dec edi
mov dword [esp + 0x5c], edi
mov eax, dword [ebx]
movzx ecx, word [eax + eax + 0x1dc4]
mov eax, dword [0x60dfa0]
mov edx, dword [eax + 0x2b54]
mov eax, dword [esp + 0x58]
sub edx, ecx
sub edx, dword [eax + esi*4]
mov eax, dword [0x60dff8]
xor edx, dword [eax + edi*4]
mov eax, dword [esp + 0x10]
movzx edi, word [0x60dfe4]
dec eax
mov dword [0x60dfcc], edx
mov dword [esp + 0x10], eax
cmp edi, eax
je 0x4152b3
imul esi, edi, 0xc
lea eax, [ebx + edi*4]
mov dword [esp + 0x1c], eax
add esi, dword [esp + 0x30]
sub dword [esp + 0x18], ebx
mov ebx, dword [esp + 0x54]
mov dword [esp + 0x24], esi
mov ecx, dword [esp + 0x50]
mov eax, edi
push dword [esp + 0x5c]
and eax, 0x116
add ebx, 0xffff
sub eax, 0x6bc
xor dword [0x60e014], eax
mov ax, di
sub ax, word [edi*2 + 0xc99]
dec ebp
mov word [edi*2 + 0xc99], ax
movzx eax, bx
movzx eax, word [ecx + eax*2 + 0x34]
push eax
call fcn.00415420
mov dword [esp + 0x28], eax
mov eax, dword [0x60dfd0]
movzx ecx, byte [eax + 0x1bae]
mov eax, dword [0x60dfb8]
movzx edx, word [eax + edi*4]
mov eax, dword [esp + 0x68]
imul edx, ecx
mov ecx, dword [esp + 0x54]
mov eax, dword [eax]
or dx, word [esi]
mov word [ecx + eax*2 + 0xe], dx
mov eax, dword [0x60dfc0]
mov ecx, dword [esp + 0x60]
mov esi, dword [ecx + eax*4]
inc eax
mov ecx, dword [esp + 0x20]
mov dword [0x60dfc0], eax
mov eax, dword [esp + 0x24]
mov eax, dword [ecx + eax]
mov ecx, 0x7d8
cdq
idiv ecx
mov ecx, eax
mov al, byte [0x60e00c]
or al, 0xb3
mov byte [esp + 0x5c], al
push dword [esp + 0x5c]
push dword [esp + 0x1c]
push ecx
push esi
call fcn.00415528
mov ecx, dword [esp + 0x34]
add esp, 0x18
mov esi, dword [esp + 0x24]
inc edi
add esi, 0xc
mov dword [esp + 0x24], esi
mov dword [ecx], eax
add ecx, 4
mov eax, dword [esp + 0x10]
dec eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x10], eax
cmp edi, eax
jne 0x4151cf
mov esi, dword [esp + 0x28]
jmp 0x4152b7
mov ebx, dword [esp + 0x54]
mov eax, dword [0x60e020]
xor edx, edx
mov edi, dword [esp + 0x34]
mov ecx, dword [esp + 0x20]
mov word [edi + eax*8 + 0x50], cx
mov eax, dword [0x60dfc4]
mov ecx, dword [esp + 0x2c]
inc eax
mov dword [0x60dfc4], eax
movzx eax, word [eax + eax + 0x1dc4]
lea eax, [eax + ecx*2]
movzx ecx, byte [esi + ebp]
div ecx
mov byte [esi + ebp], dl
mov esi, dword [esp + 0x38]
mov ecx, dword [0x60dfe0]
mov ax, word [esi + ebp*2 + 2]
and ax, bx
add word [edi + ecx*2 + 0x10], ax
inc ebx
mov eax, dword [esp + 0x10]
sub eax, dword [esp + 0x14]
or dword [0x60e034], eax
mov eax, dword [esp + 0x58]
movzx edi, bx
lea ecx, [eax + edi*4]
mov eax, 0x572
cdq
idiv dword [ecx]
mov eax, dword [esp + 0x2c]
mov dword [ecx], edx
cmp eax, dword [esp + 0x5c]
je 0x4153da
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x58]
mov ecx, dword [0x60e008]
mov ebx, dword [esp + 0x3c]
mov eax, dword [eax + ebp*8 + 0x1c]
xor eax, dword [edx + ebp*8 + 8]
sub eax, dword [ebx + ecx*4]
mov dword [ebx + ecx*4], eax
mov eax, dword [esp + 0x20]
mov ebx, dword [esp + 0x4c]
mov dword [edx + eax*4], 0xf8d
xor edx, edx
mov al, byte [ebx + edi*2]
sub al, byte [0x60dfec]
xor byte [0x60dfbe], al
movzx ecx, word [esi + 0x387a]
imul eax, edi, 6
movzx eax, word [eax + esi + 0x10]
div ecx
mov esi, dword [0x60dfc0]
mov ecx, dword [esp + 0x40]
movzx ecx, word [ecx + esi*2]
imul eax, ecx
sub eax, dword [esp + 0x10]
inc esi
mov dword [0x60e034], eax
mov eax, dword [esp + 0x44]
mov dword [0x60dfc0], esi
movzx ecx, word [ebx + ebp*2 + 2]
mov eax, dword [eax + edi*8]
cdq
idiv ecx
mov eax, dword [0x60dfa4]
sub edx, dword [0x60dfb0]
sub edx, 0x12c7
inc esi
mov dword [0x60dfb0], edx
mov dword [0x60dfc0], esi
mov eax, dword [eax + esi*4]
jmp 0x415403
mov eax, dword [esp + 0x14]
mov ax, word [esi + eax*2 - 2]
sub ax, bx
mov word [edi*8 + 0x1dc4], ax
mov ecx, dword [0x60dfc0]
mov eax, dword [0x60dfa4]
inc ecx
mov dword [0x60dfc0], ecx
mov eax, dword [eax + ecx*4]
mov ecx, dword [0x60dfd8]
pop edi
pop esi
pop ebp
and eax, dword [ecx + 0x3a68]
pop ebx
add esp, 0x38
ret