Function at 0x460f10
Capabilities:
Encode data using xor

Disassembly:
push edi
push esi
push ebp
push ebx
sub esp, 0x98
mov ecx, dword [esp + 0xac]
mov dword [esp + 0x34], ecx
mov eax, dword [esp + 0xb4]
mov dword [esp + 0x80], eax
mov edx, dword [esp + 0xb8]
mov dword [esp + 0x7c], edx
mov eax, dword [esp + 0xbc]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0xc0]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0xcc]
mov dword [esp + 0x58], eax
mov ecx, dword [esp + 0xd0]
mov eax, dword [esp + 0xd4]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0xd8]
mov dword [esp + 0x68], eax
movsx eax, byte [0x59b7dc]
mov dword [esp + 0x10], eax
test eax, eax
je 0x4610fc
mov eax, 0x3fa00000
mov dword [0x872af4], eax
mov dword [0x872af8], eax
movsx edx, byte [0x872afc]
test edx, edx
jne 0x4610fc
mov byte [0x872afc], 1
xor ebx, ebx
fld qword [0x579d60]
fld qword [0x579d58]
mov edx, 1
mov dword [esp + 0x50], ecx
mov dword [esp + 0x40], ebx
fild dword [esp + 0x40]
fsub st(1)
fld qword [0x579d60]
fmul st(1)
fadd st(2)
fnstcw word [esp]
movzx eax, word [esp]
or eax, 0xc00
mov dword [esp + 8], eax
fldcw word [esp + 8]
fistp dword [esp + 0x38]
fldcw word [esp]
mov eax, dword [esp + 0x38]
xor esi, esi
test eax, eax
jge 0x461006
mov eax, esi
mov ebp, 0xff
cmp eax, 0xff
jle 0x461014
mov eax, ebp
mov byte [ebx + 0x8220c0], al
fmul st(2)
fadd st(1)
fnstcw word [esp]
movzx eax, word [esp]
or eax, 0xc00
mov dword [esp + 8], eax
fldcw word [esp + 8]
fistp dword [esp + 0x38]
fldcw word [esp]
mov eax, dword [esp + 0x38]
test eax, eax
mov edi, 0
jge 0x461048
mov eax, edi
cmp eax, 0xff
jle 0x461051
mov eax, ebp
mov byte [ebx + 0x8221c0], al
mov dword [esp + 0x40], edx
fild dword [esp + 0x40]
fsub st(1)
fld qword [0x579d60]
fmul st(1)
fadd st(2)
fnstcw word [esp]
movzx eax, word [esp]
or eax, 0xc00
mov dword [esp + 8], eax
fldcw word [esp + 8]
fistp dword [esp + 0x38]
fldcw word [esp]
mov ecx, dword [esp + 0x38]
test ecx, ecx
mov eax, 0
jge 0x461095
mov ecx, eax
cmp ecx, 0xff
jle 0x46109f
mov ecx, ebp
mov byte [ebx + 0x8220c1], cl
fmul st(2)
fadd st(1)
fnstcw word [esp]
movzx eax, word [esp]
or eax, 0xc00
mov dword [esp + 8], eax
fldcw word [esp + 8]
fistp dword [esp + 0x38]
fldcw word [esp]
mov eax, dword [esp + 0x38]
test eax, eax
mov ecx, 0
jge 0x4610d3
mov eax, ecx
cmp eax, 0xff
jle 0x4610dc
mov eax, ebp
mov byte [ebx + 0x8221c1], al
add edx, 2
add ebx, 2
cmp ebx, 0x100
jl 0x460fcb
fstp st(0)
fstp st(0)
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x50], ecx
mov eax, 0x51eb851f
mov ebp, dword [esp + 0x80]
imul ebp
sar edx, 5
mov eax, ebp
sar eax, 0x1f
sub edx, eax
mov dword [esp + 0x5c], edx
lea eax, [edx + edx]
add eax, eax
sub eax, edx
lea edi, [edx + eax*8]
add edi, edi
add edi, edi
neg edi
add edi, ebp
mov eax, 0x51eb851f
mov ebx, dword [esp + 0x7c]
imul ebx
sar edx, 5
mov eax, ebx
sar eax, 0x1f
sub edx, eax
mov dword [esp + 0x64], edx
lea eax, [edx + edx]
add eax, eax
sub eax, edx
lea esi, [edx + eax*8]
add esi, esi
add esi, esi
neg esi
add esi, ebx
mov eax, 0x51eb851f
mov ecx, dword [esp + 0x74]
imul ecx
sar edx, 5
mov eax, ecx
sar eax, 0x1f
sub edx, eax
mov dword [esp + 0x84], edx
mov eax, 0x51eb851f
mov edx, dword [esp + 0x68]
imul edx
mov ebx, edx
sar ebx, 5
mov eax, dword [esp + 0x68]
sar eax, 0x1f
sub ebx, eax
shl edi, 8
mov eax, 0x51eb851f
imul edi
sar edx, 5
sar edi, 0x1f
sub edx, edi
mov dword [esp + 0x54], edx
shl esi, 8
mov eax, 0x51eb851f
imul esi
sar edx, 5
sar esi, 0x1f
sub edx, esi
mov dword [esp + 0x70], edx
mov edi, dword [esp + 0x54]
mov dword [esp + 0x48], edx
mov eax, dword [esp + 0x78]
sub eax, ebp
mov dword [esp + 0x78], eax
cmp ecx, eax
mov esi, dword [esp + 0x64]
mov ecx, dword [esp + 0x50]
jge 0x4611de
xor eax, eax
mov dword [esp + 0x54], eax
mov ebp, dword [esp + 0x78]
mov eax, dword [esp + 0x74]
cmp eax, ebp
jl 0x4611ec
xor edi, edi
mov ebp, dword [esp + 0x6c]
sub ebp, dword [esp + 0x7c]
mov dword [esp + 0x6c], ebp
mov eax, dword [esp + 0x68]
cmp eax, ebp
jge 0x461206
xor eax, eax
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x68]
cmp eax, ebp
jl 0x461214
xor eax, eax
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x58]
lea ebp, [eax + eax]
add ebp, ebp
mov dword [esp + 0x1c], ebp
add dword [esp + 0x68], 0xffffff9c
mov eax, dword [esp + 0x74]
add eax, 0xffffff9c
mov dword [esp + 0x74], eax
jne 0x46123c
mov eax, 0x64
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x68]
test eax, eax
jne 0x46124d
mov eax, 0x64
mov dword [esp + 0x68], eax
mov eax, 0x10001
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
test ebx, ebx
jle 0x46141c
cmp ebx, 6
jl 0x461add
xor ebp, ebp
mov eax, dword [esp + 0x68]
cdq
mov dword [esp + 0xc], edx
lea eax, [ebx - 6]
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x90], eax
lea edx, [eax + 0x100]
mov dword [esp + 0x88], edx
lea edx, [eax + 0x200]
mov dword [esp + 0x8c], edx
lea edx, [eax + 0x300]
mov dword [esp + 0x7c], edx
lea eax, [eax + 0x400]
mov edx, dword [esp + 0xc]
mov dword [esp + 0x80], eax
mov dword [esp + 0x4c], edi
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], esi
mov dword [esp + 0x50], ecx
mov edi, edx
mov ebx, dword [esp + 0x68]
mov esi, dword [esp + 0x70]
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x90]
imul ecx
push edi
push ebx
push edx
push eax
call fcn.00470bf0
add eax, esi
mov dword [ebp*4 + 0x7e1cc0], eax
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x88]
imul ecx
push edi
push ebx
push edx
push eax
call fcn.00470bf0
add eax, esi
mov dword [ebp*4 + 0x7e1cc4], eax
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x8c]
imul ecx
push edi
push ebx
push edx
push eax
call fcn.00470bf0
add eax, esi
mov dword [ebp*4 + 0x7e1cc8], eax
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x7c]
imul ecx
push edi
push ebx
push edx
push eax
call fcn.00470bf0
add eax, esi
mov dword [ebp*4 + 0x7e1ccc], eax
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x80]
imul ecx
push edi
push ebx
push edx
push eax
call fcn.00470bf0
add eax, esi
mov dword [ebp*4 + 0x7e1cd0], eax
add dword [esp + 0x90], 0x500
add dword [esp + 0x88], 0x500
add dword [esp + 0x8c], 0x500
add dword [esp + 0x7c], 0x500
add dword [esp + 0x80], 0x500
add ebp, 5
mov ecx, dword [esp + 0x94]
cmp ebp, ecx
jle 0x4612da
mov edx, edi
mov edi, dword [esp + 0x4c]
mov ebx, dword [esp + 0x60]
mov esi, dword [esp + 0x64]
mov ecx, dword [esp + 0x50]
mov eax, ebp
shl eax, 8
add eax, dword [esp + 0x48]
mov dword [esp + 0x4c], edi
mov dword [esp + 0x64], esi
mov dword [esp + 0x50], ecx
mov esi, ebp
mov ebp, eax
mov edi, edx
mov eax, dword [esp + 0x6c]
imul ebp
push edi
mov ecx, dword [esp + 0x6c]
push ecx
push edx
push eax
call fcn.00470bf0
mov ecx, dword [esp + 0x70]
add eax, ecx
mov dword [esi*4 + 0x7e1cc0], eax
add ebp, 0x100
inc esi
cmp esi, ebx
jl 0x4613e5
mov edi, dword [esp + 0x4c]
mov esi, dword [esp + 0x64]
mov ecx, dword [esp + 0x50]
mov eax, dword [esp + 0x84]
test eax, eax
jle 0x4615e3
cmp eax, 6
jl 0x461ad1
xor ebp, ebp
mov eax, dword [esp + 0x74]
cdq
mov eax, dword [esp + 0x84]
lea eax, [eax - 6]
mov dword [esp + 0x94], eax
mov dword [esp + 0x90], edi
lea eax, [edi + 0x100]
mov dword [esp + 0x88], eax
lea eax, [edi + 0x200]
mov dword [esp + 0x8c], eax
lea eax, [edi + 0x300]
mov dword [esp + 0x7c], eax
lea eax, [edi + 0x400]
mov dword [esp + 0x80], eax
mov dword [esp + 0x4c], edi
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], esi
mov dword [esp + 0x50], ecx
mov esi, edx
mov ebx, dword [esp + 0x74]
mov edi, dword [esp + 0x54]
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x90]
imul ecx
push esi
push ebx
push edx
push eax
call fcn.00470bf0
add eax, edi
mov dword [ebp*4 + 0x7f1dc0], eax
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x88]
imul ecx
push esi
push ebx
push edx
push eax
call fcn.00470bf0
add eax, edi
mov dword [ebp*4 + 0x7f1dc4], eax
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x8c]
imul ecx
push esi
push ebx
push edx
push eax
call fcn.00470bf0
add eax, edi
mov dword [ebp*4 + 0x7f1dc8], eax
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x7c]
imul ecx
push esi
push ebx
push edx
push eax
call fcn.00470bf0
add eax, edi
mov dword [ebp*4 + 0x7f1dcc], eax
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x80]
imul ecx
push esi
push ebx
push edx
push eax
call fcn.00470bf0
add eax, edi
mov dword [ebp*4 + 0x7f1dd0], eax
add dword [esp + 0x90], 0x500
add dword [esp + 0x88], 0x500
add dword [esp + 0x8c], 0x500
add dword [esp + 0x7c], 0x500
add dword [esp + 0x80], 0x500
add ebp, 5
mov ecx, dword [esp + 0x94]
cmp ebp, ecx
jle 0x46149e
mov edx, esi
mov edi, dword [esp + 0x4c]
mov ebx, dword [esp + 0x60]
mov esi, dword [esp + 0x64]
mov ecx, dword [esp + 0x50]
mov eax, ebp
shl eax, 8
add eax, edi
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], esi
mov dword [esp + 0x50], ecx
mov ebx, eax
mov esi, edx
mov edi, dword [esp + 0x54]
mov eax, dword [esp + 0x78]
imul ebx
push esi
mov ecx, dword [esp + 0x78]
push ecx
push edx
push eax
call fcn.00470bf0
add eax, edi
mov dword [ebp*4 + 0x7f1dc0], eax
add ebx, 0x100
inc ebp
mov ecx, dword [esp + 0x84]
cmp ebp, ecx
jl 0x4615a9
mov ebx, dword [esp + 0x60]
mov esi, dword [esp + 0x64]
mov ecx, dword [esp + 0x50]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4617b0
mov eax, dword [esp + 0x84]
test eax, eax
jle 0x4616d6
cmp eax, 5
jl 0x461a94
xor ebp, ebp
lea eax, [eax - 5]
mov edi, dword [ebp*4 + 0x7f1dc0]
mov edx, edi
and edx, 0xff
and edi, 0xffffff00
movzx edx, byte [edx + 0x8220c0]
or edi, edx
mov dword [ebp*4 + 0x7f1dc0], edi
mov edi, dword [ebp*4 + 0x7f1dc4]
mov edx, edi
and edx, 0xff
and edi, 0xffffff00
movzx edx, byte [edx + 0x8220c0]
or edi, edx
mov dword [ebp*4 + 0x7f1dc4], edi
mov edi, dword [ebp*4 + 0x7f1dc8]
mov edx, edi
and edx, 0xff
and edi, 0xffffff00
movzx edx, byte [edx + 0x8220c0]
or edi, edx
mov dword [ebp*4 + 0x7f1dc8], edi
mov edi, dword [ebp*4 + 0x7f1dcc]
mov edx, edi
and edx, 0xff
and edi, 0xffffff00
movzx edx, byte [edx + 0x8220c0]
or edi, edx
mov dword [ebp*4 + 0x7f1dcc], edi
add ebp, 4
cmp ebp, eax
jle 0x46160c
mov edi, dword [esp + 0x84]
mov eax, dword [ebp*4 + 0x7f1dc0]
movzx edx, al
and eax, 0xffffff00
movzx edx, byte [edx + 0x8220c0]
or eax, edx
mov dword [ebp*4 + 0x7f1dc0], eax
inc ebp
cmp ebp, edi
jl 0x4616b2
test ebx, ebx
jle 0x4617b0
cmp ebx, 5
jl 0x461a8d
xor ebp, ebp
lea eax, [ebx - 5]
mov edi, dword [ebp*4 + 0x7e1cc0]
mov edx, edi
and edx, 0xff
and edi, 0xffffff00
movzx edx, byte [edx + 0x8221c0]
or edi, edx
mov dword [ebp*4 + 0x7e1cc0], edi
mov edi, dword [ebp*4 + 0x7e1cc4]
mov edx, edi
and edx, 0xff
and edi, 0xffffff00
movzx edx, byte [edx + 0x8221c0]
or edi, edx
mov dword [ebp*4 + 0x7e1cc4], edi
mov edi, dword [ebp*4 + 0x7e1cc8]
mov edx, edi
and edx, 0xff
and edi, 0xffffff00
movzx edx, byte [edx + 0x8221c0]
or edi, edx
mov dword [ebp*4 + 0x7e1cc8], edi
mov edi, dword [ebp*4 + 0x7e1ccc]
mov edx, edi
and edx, 0xff
and edi, 0xffffff00
movzx edx, byte [edx + 0x8221c0]
or edi, edx
mov dword [ebp*4 + 0x7e1ccc], edi
add ebp, 4
cmp ebp, eax
jle 0x4616ec
mov edx, dword [ebp*4 + 0x7e1cc0]
movzx eax, dl
and edx, 0xffffff00
movzx edi, byte [eax + 0x8221c0]
or edx, edi
mov dword [ebp*4 + 0x7e1cc0], edx
inc ebp
cmp ebp, ebx
jl 0x46178b
mov dword [esp + 0x54], ebx
test ebx, ebx
jle 0x461aca
xor edi, edi
xor eax, eax
mov ebp, dword [eax*4 + 0x7e1cc0]
sar ebp, 8
add ebp, esi
test ebp, ebp
jge 0x4617d3
lea edi, [eax + 1]
cmp ebp, ecx
jge 0x461ac1
inc eax
cmp eax, ebx
jl 0x4617c0
xor ecx, ecx
mov eax, dword [esp + 0x84]
test eax, eax
jle 0x461ab0
xor eax, eax
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], esi
mov ebx, dword [esp + 0x5c]
mov esi, dword [esp + 0x84]
mov ebp, dword [esp + 0x58]
mov edx, dword [eax*4 + 0x7f1dc0]
sar edx, 8
add edx, ebx
test edx, edx
jge 0x46181d
lea ecx, [eax + 1]
cmp edx, ebp
jge 0x461a9b
inc eax
cmp eax, esi
jl 0x46180a
mov ebx, dword [esp + 0x60]
mov esi, dword [esp + 0x64]
mov eax, dword [esp + 0x84]
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], ecx
mov eax, dword [esp + 0x84]
lea ecx, [eax + eax]
add ecx, ecx
mov dword [esp + 0x94], ecx
mov ebp, edi
imul ebp, ecx
push ebp
mov eax, dword [esp + 0x38]
push eax
call dword [0x5b8560]
add esp, 8
mov eax, dword [esp + 0x54]
mov ebp, eax
mov ecx, dword [esp + 0x94]
imul ebp, ecx
add ebp, dword [esp + 0x34]
imul ebx, ecx
neg eax
imul eax, ecx
add ebx, eax
push ebx
push ebp
call dword [0x5b8560]
add esp, 8
mov eax, dword [esp + 0x54]
cmp edi, eax
jge 0x461a82
mov eax, dword [esp + 0x68]
cdq
mov ebp, dword [esp + 0x5c]
add ebp, ebp
add ebp, ebp
mov dword [esp + 0x5c], ebp
mov eax, edi
mov ecx, dword [esp + 0x94]
imul eax, ecx
mov ebp, edi
imul ebp, ecx
add ebp, dword [esp + 0x34]
mov ecx, edi
shl ecx, 8
add ecx, dword [esp + 0x48]
mov dword [esp + 0x88], ecx
mov dword [esp + 0x60], eax
mov dword [esp + 0x90], edx
mov dword [esp + 0x8c], edi
mov dword [esp + 0x64], esi
mov eax, dword [esp + 0x2c]
add eax, eax
add eax, eax
push eax
push ebp
call dword [0x5b8560]
add esp, 8
mov eax, dword [esp + 0x30]
lea edx, [eax + eax]
add edx, edx
add edx, dword [esp + 0x34]
add edx, dword [esp + 0x60]
neg eax
add eax, dword [esp + 0x84]
add eax, eax
add eax, eax
push eax
push edx
call dword [0x5b8560]
add esp, 8
mov eax, dword [esp + 0x2c]
cmp eax, dword [esp + 0x30]
jge 0x461a4f
add eax, eax
add eax, eax
add eax, dword [esp + 0x34]
add eax, dword [esp + 0x60]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x88]
imul ecx
mov ebx, dword [esp + 0x90]
push ebx
mov esi, dword [esp + 0x6c]
push esi
push edx
push eax
call fcn.00470bf0
mov edx, dword [esp + 0x70]
add eax, edx
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x64]
imul ecx, esi
mov ebx, eax
shr ebx, 8
imul esi, ebx
add ecx, esi
add ecx, dword [esp + 0x5c]
mov dword [esp + 0x20], ecx
movzx eax, al
mov edi, eax
shl edi, 0x10
add edi, eax
mov dword [esp + 0x24], edi
mov edi, dword [esp + 0x28]
mov esi, dword [esp + 0xb0]
lea ebx, [0x7f1dc0]
mov eax, 0xff00ff
movd mm4, eax
punpckldq mm4, mm4
pxor mm7, mm7
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x24]
movd mm6, eax
punpckldq mm6, mm6
mov eax, dword [ebx + ecx*4]
mov edx, dword [esp + 0x20]
movd mm5, eax
shr eax, 8
punpcklbw mm5, mm7
punpcklwd mm5, mm5
punpckldq mm5, mm5
shl eax, 2
add edx, eax
movd mm0, dword [esi + edx]
movd mm2, dword [esi + edx + 4]
add edx, dword [esp + 0x1c]
movd mm1, dword [esi + edx]
movd mm3, dword [esi + edx + 4]
punpcklbw mm2, mm7
pmullw mm2, mm5
punpcklbw mm3, mm7
pmullw mm3, mm5
pxor mm5, mm4
paddusw mm5, qword [esp + 0x14]
punpcklbw mm1, mm7
pmullw mm1, mm5
punpcklbw mm0, mm7
pmullw mm0, mm5
paddusw mm1, mm3
psrlw mm1, 8
pmullw mm1, mm6
paddusw mm0, mm2
psrlw mm0, 8
movq mm5, mm4
psubw mm5, mm6
paddusw mm5, qword [esp + 0x14]
pmullw mm0, mm5
paddusw mm0, mm1
psrlw mm0, 8
packuswb mm0, mm7
movd dword [edi], mm0
add edi, 4
inc ecx
cmp ecx, dword [esp + 0x30]
jne 0x4619c2
emms
mov eax, dword [esp + 0x94]
add dword [esp + 0x60], eax
add ebp, eax
add dword [esp + 0x88], 0x100
mov edx, dword [esp + 0x8c]
inc edx
mov dword [esp + 0x8c], edx
mov ecx, dword [esp + 0x54]
cmp edx, ecx
jl 0x4618e9
add esp, 0x98
pop ebx
pop ebp
pop esi
pop edi
ret
xor ebp, ebp
jmp 0x46178b
xor ebp, ebp
jmp 0x4616ab
mov ebx, dword [esp + 0x60]
mov esi, dword [esp + 0x64]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], eax
jmp 0x461841
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], 0
jmp 0x461841
mov dword [esp + 0x54], eax
jmp 0x4617e0
xor edi, edi
jmp 0x4617e0
xor ebp, ebp
mov eax, dword [esp + 0x74]
cdq
jmp 0x46158e
xor ebp, ebp
mov eax, dword [esp + 0x68]
cdq
jmp 0x4613ca