Function at 0x416980
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
mov eax, dword [ebp + 8]
mov edx, dword [eax]
push ebx
push esi
mov esi, ecx
mov ecx, dword [eax + 4]
fild dword [esi + 0xa4]
shr ecx, 1
imul ecx, ecx, 0x6c
fstp dword [esp + 0x74]
fild dword [esi + 0xa8]
fstp dword [esp + 0x78]
fild dword [esi + 0xac]
lea ebx, [ecx + edx - 0x6c]
fstp dword [esp + 0x7c]
push edi
fild dword [esi + 0xb0]
lea eax, [ebx + 0x2c]
push eax
lea ecx, [esp + 0x7c]
lea edx, [esp + 0x48]
fstp dword [esp + 0x88]
call fcn.00411670
lea edx, [ebx + 0x58]
lea ecx, [esp + 0x44]
call fcn.004165a0
lea ecx, [esp + 0x68]
lea edx, [esp + 0x44]
call fcn.004164f0
mov edi, dword [ebx + 0x54]
lea ecx, [esp + 0x34]
push ecx
mov ecx, dword [esi + 0x16c]
mov dword [esp + 0x38], 0
call fcn.00416730
mov edx, dword [esp + 0x6c]
mov esi, dword [esp + 0x38]
add esp, 4
cmp edx, dword [esp + 0x70]
jge 0x416a40
mov eax, dword [esp + 0x6c]
cmp eax, dword [esp + 0x74]
jge 0x416a40
cmp esi, 0xffffff
jbe 0x416a40
push esi
lea ecx, [esp + 0x6c]
push ecx
mov ecx, dword [ebx + 0x68]
call fcn.004108a0
fild dword [esp + 0x68]
mov byte [esp + 0x14], 1
fstp dword [esp + 0x30]
fld dword [esp + 0x44]
fld dword [esp + 0x30]
fucompp
fnstsw ax
test ah, 0x44
jp 0x416a63
mov byte [esp + 0x14], 0
fild dword [esp + 0x70]
mov byte [esp + 0x12], 1
fstp dword [esp + 0x64]
fld dword [esp + 0x4c]
fld dword [esp + 0x64]
fucompp
fnstsw ax
test ah, 0x44
jp 0x416a86
mov byte [esp + 0x12], 0
fild dword [esp + 0x6c]
mov byte [esp + 0x20], 1
fstp dword [esp + 0x28]
fld dword [esp + 0x48]
fld dword [esp + 0x28]
fucompp
fnstsw ax
test ah, 0x44
jp 0x416aa9
mov byte [esp + 0x20], 0
fild dword [esp + 0x74]
mov byte [esp + 0x22], 1
fstp dword [esp + 0x2c]
fld dword [esp + 0x50]
fld dword [esp + 0x2c]
fucompp
fnstsw ax
test ah, 0x44
jp 0x416acc
mov byte [esp + 0x22], 0
lea ecx, [esp + 0x54]
lea edx, [esp + 0x44]
call fcn.00416440
fld qword [0x490168]
cmp byte [esp + 0x14], 0
je 0x416bd4
fld dword [esp + 0x30]
lea edx, [esp + 0x30]
fld dword [esp + 0x44]
push edx
fld st(0)
mov ecx, esi
fnstcw word [esp + 0x18]
movzx eax, word [esp + 0x18]
fsubp st(2)
fxch st(1)
or eax, 0xc00
mov dword [esp + 0x28], eax
fmul st(2)
fldcw word [esp + 0x28]
fistp qword [esp + 0x1c]
mov edi, dword [esp + 0x1c]
fldcw word [esp + 0x18]
call fcn.00416730
mov edi, dword [esp + 0x5c]
mov eax, dword [esp + 0x64]
dec eax
inc edi
add esp, 4
cmp edi, eax
mov dword [esp + 0x18], eax
jge 0x416bd2
fnstcw word [esp + 0x14]
mov edx, pe_nt_image_headers32
movzx eax, word [esp + 0x14]
or eax, 0xc00
mov dword [esp + 0x24], eax
fldcw word [esp + 0x24]
fistp qword [esp + 0x38]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x30]
shr ecx, 0x18
fldcw word [esp + 0x14]
sub edx, ecx
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x68]
mov ecx, dword [eax + 4]
mov eax, dword [eax + 0x10]
imul ecx, edi
add ecx, dword [esp + 0x14]
inc edi
lea eax, [eax + ecx*4]
mov dword [esp + 0x38], eax
mov eax, dword [eax]
mov ecx, eax
shr ecx, 8
and eax, 0xff00ff
imul eax, edx
mov esi, ecx
and esi, 0xffff00ff
imul esi, edx
and ecx, 0xff00ff
imul ecx, edx
shr eax, 8
xor eax, esi
and eax, 0xff00ff
xor eax, ecx
add eax, dword [esp + 0x30]
cmp edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x38]
mov dword [ecx], eax
jl 0x416b75
mov esi, dword [esp + 0x34]
jmp 0x416bd4
fstp st(0)
cmp byte [esp + 0x12], 0
je 0x416cc3
fld dword [esp + 0x4c]
lea edx, [esp + 0x24]
fsub dword [esp + 0x64]
push edx
fnstcw word [esp + 0x16]
mov ecx, esi
movzx eax, word [esp + 0x16]
fmul st(1)
or eax, 0xc00
mov dword [esp + 0x1c], eax
fldcw word [esp + 0x1c]
fistp qword [esp + 0x1c]
mov edi, dword [esp + 0x1c]
fldcw word [esp + 0x16]
call fcn.00416730
mov edi, dword [esp + 0x5c]
mov eax, dword [esp + 0x64]
dec eax
inc edi
add esp, 4
cmp edi, eax
mov dword [esp + 0x38], eax
jge 0x416cc3
fld dword [esp + 0x44]
mov edx, pe_nt_image_headers32
fnstcw word [esp + 0x12]
movzx eax, word [esp + 0x12]
or eax, 0xc00
mov dword [esp + 0x18], eax
fldcw word [esp + 0x18]
fistp qword [esp + 0x18]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
shr ecx, 0x18
fldcw word [esp + 0x12]
mov dword [esp + 0x14], eax
sub edx, ecx
mov eax, dword [ebx + 0x68]
mov ecx, dword [eax + 4]
mov eax, dword [eax + 0x10]
imul ecx, edi
add ecx, dword [esp + 0x14]
inc edi
lea eax, [eax + ecx*4]
mov dword [esp + 0x18], eax
mov eax, dword [eax]
mov ecx, eax
shr ecx, 8
and eax, 0xff00ff
imul eax, edx
mov esi, ecx
and esi, 0xffff00ff
imul esi, edx
and ecx, 0xff00ff
imul ecx, edx
shr eax, 8
xor eax, esi
and eax, 0xff00ff
xor eax, ecx
add eax, dword [esp + 0x24]
cmp edi, dword [esp + 0x38]
mov ecx, dword [esp + 0x18]
mov dword [ecx], eax
jl 0x416c68
mov esi, dword [esp + 0x34]
cmp byte [esp + 0x20], 0
je 0x416de8
fld dword [esp + 0x28]
mov ecx, esi
fsub dword [esp + 0x48]
shr ecx, 0x18
fnstcw word [esp + 0x20]
mov edx, 0xff
movzx eax, word [esp + 0x20]
fmul st(1)
or eax, 0xc00
mov dword [esp + 0x18], eax
mov edi, esi
and edi, 0xff00ff
fldcw word [esp + 0x18]
fistp qword [esp + 0x18]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x28], eax
imul edi, dword [esp + 0x28]
imul ecx, eax
fldcw word [esp + 0x20]
mov eax, dword [esp + 0x24]
shr ecx, 8
sub edx, ecx
mov ecx, eax
and eax, 0xff00ff
imul eax, edx
add eax, edi
shr ecx, 8
mov edi, ecx
and ecx, 0xff00ff
imul ecx, edx
and edi, 0xffff00ff
imul edi, edx
mov edx, esi
shr edx, 8
and edx, 0xff00ff
imul edx, dword [esp + 0x28]
shr eax, 8
xor eax, edi
and eax, 0xff00ff
xor eax, ecx
mov ecx, dword [esp + 0x5c]
and edx, 0xff00ff00
add eax, edx
mov edx, dword [esp + 0x54]
inc edx
dec ecx
cmp edx, ecx
mov dword [esp + 0x24], eax
jge 0x416de8
shr eax, 0x18
mov edi, pe_nt_image_headers32
sub edi, eax
mov dword [esp + 0x28], edi
mov eax, dword [ebx + 0x68]
mov ecx, dword [eax + 4]
imul ecx, dword [esp + 0x58]
mov eax, dword [eax + 0x10]
add ecx, edx
lea eax, [eax + ecx*4]
mov dword [esp + 0x18], eax
mov eax, dword [eax]
mov ecx, eax
and eax, 0xff00ff
imul eax, edi
shr ecx, 8
mov edi, ecx
and edi, 0xffff00ff
imul edi, dword [esp + 0x28]
shr eax, 8
xor eax, edi
mov edi, dword [esp + 0x28]
and ecx, 0xff00ff
imul ecx, edi
and eax, 0xff00ff
xor eax, ecx
add eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
mov dword [ecx], eax
mov eax, dword [esp + 0x5c]
inc edx
dec eax
cmp edx, eax
jl 0x416d88
cmp byte [esp + 0x22], 0
je 0x416f0d
fld dword [esp + 0x50]
mov ecx, esi
fsub dword [esp + 0x2c]
shr ecx, 0x18
fnstcw word [esp + 0x22]
mov edi, esi
movzx eax, word [esp + 0x22]
fmulp st(1)
or eax, 0xc00
mov dword [esp + 0x18], eax
mov edx, 0xff
and edi, 0xff00ff
fldcw word [esp + 0x18]
shr esi, 8
and esi, 0xff00ff
fistp qword [esp + 0x18]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x2c], eax
imul edi, dword [esp + 0x2c]
imul ecx, eax
imul esi, dword [esp + 0x2c]
fldcw word [esp + 0x22]
mov eax, dword [esp + 0x2c]
shr ecx, 8
sub edx, ecx
mov ecx, eax
and eax, 0xff00ff
imul eax, edx
add eax, edi
shr ecx, 8
mov edi, ecx
and edi, 0xffff00ff
imul edi, edx
and ecx, 0xff00ff
imul ecx, edx
mov edx, dword [esp + 0x54]
shr eax, 8
xor eax, edi
and eax, 0xff00ff
xor eax, ecx
mov ecx, dword [esp + 0x5c]
and esi, 0xff00ff00
dec ecx
add eax, esi
inc edx
cmp edx, ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x38], ecx
jge 0x416f0f
shr eax, 0x18
mov esi, pe_nt_image_headers32
sub esi, eax
mov eax, dword [ebx + 0x68]
mov ecx, dword [eax + 4]
imul ecx, dword [esp + 0x60]
mov eax, dword [eax + 0x10]
add ecx, edx
lea eax, [eax + ecx*4]
mov dword [esp + 0x18], eax
mov eax, dword [eax]
mov ecx, eax
shr ecx, 8
and eax, 0xff00ff
imul eax, esi
mov edi, ecx
and edi, 0xffff00ff
imul edi, esi
and ecx, 0xff00ff
imul ecx, esi
shr eax, 8
xor eax, edi
and eax, 0xff00ff
xor eax, ecx
add eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x18]
inc edx
cmp edx, dword [esp + 0x38]
mov dword [ecx], eax
jl 0x416eab
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
fstp st(0)
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4