Function at 0x4e358b
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x5c
mov eax, dword [esp + 0x60]
mov edx, dword [eax]
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, dword [eax + 4]
fild dword [esi + 0x188]
shr ecx, 1
imul ecx, ecx, 0x78
fstp dword [esp + 0x48]
fild dword [esi + 0x18c]
fstp dword [esp + 0x4c]
fild dword [esi + 0x190]
push edi
lea ebx, [ecx + edx - 0x78]
fstp dword [esp + 0x54]
fild dword [esi + 0x194]
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x30]
push ecx
fstp dword [esp + 0x60]
lea ecx, [ebx + 0x34]
mov dword [esp + 0x30], ebx
call fcn.0050f500
fild dword [ebx + 0x60]
fld dword [esp + 0x2c]
fcomp st(1)
fnstsw ax
test ah, 5
jp 0x4e35ef
fstp dword [esp + 0x2c]
jmp 0x4e35f1
fstp st(0)
fild dword [ebx + 0x64]
fld dword [esp + 0x30]
fcomp st(1)
fnstsw ax
test ah, 5
jnp 0x4e3607
fstp st(0)
fld dword [esp + 0x30]
fstp dword [esp + 0x30]
fild dword [ebx + 0x68]
fld dword [esp + 0x34]
fcomp st(1)
fnstsw ax
test ah, 0x41
je 0x4e3621
fstp st(0)
fld dword [esp + 0x34]
fstp dword [esp + 0x34]
fild dword [ebx + 0x6c]
fld dword [esp + 0x38]
fcomp st(1)
fnstsw ax
test ah, 0x41
je 0x4e363b
fstp st(0)
fld dword [esp + 0x38]
fstp dword [esp + 0x38]
or edx, 0xffffffff
fld dword [esp + 0x2c]
fcomp dword [esp + 0x34]
fnstsw ax
test ah, 1
je 0x4e3660
fld dword [esp + 0x30]
fcomp dword [esp + 0x38]
fnstsw ax
test ah, 1
jne 0x4e366c
mov dword [esp + 0x40], edx
mov edi, edx
mov dword [esp + 0x48], edx
jmp 0x4e36dc
fld dword [esp + 0x38]
fsub qword [0x65c2f8]
fstp dword [esp + 0x70]
fld dword [esp + 0x70]
fistp dword [esp + 0x20]
fld dword [esp + 0x34]
fsub qword [0x65c2f8]
fstp dword [esp + 0x70]
fld dword [esp + 0x70]
fistp dword [esp + 0x1c]
fld dword [esp + 0x30]
fadd qword [0x65c2f8]
fstp dword [esp + 0x70]
fld dword [esp + 0x70]
fistp dword [esp + 0x18]
fld dword [esp + 0x2c]
fadd qword [0x65c2f8]
fstp dword [esp + 0x70]
fld dword [esp + 0x70]
fistp dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x40], eax
mov dword [esp + 0x48], ecx
mov esi, dword [esi + 0x268]
mov eax, esi
shr eax, 8
and esi, 0xff00ff
mov ebp, eax
mov dword [esp + 0x3c], edx
mov dword [esp + 0x44], edi
mov ecx, dword [ebx + 0x5c]
imul esi, ecx
and ebp, 0xffff00ff
imul ebp, ecx
and eax, 0xff00ff
imul eax, ecx
shr esi, 8
and esi, 0xff00ff
and ebp, 0xff00ff
xor esi, ebp
xor esi, eax
cmp edx, edi
jge 0x4e3745
mov edx, dword [esp + 0x48]
cmp dword [esp + 0x40], edx
jge 0x4e3745
cmp esi, 0xffffff
jbe 0x4e3745
mov ecx, dword [ebx + 0x70]
push esi
lea eax, [esp + 0x40]
push eax
call fcn.0049c6d0
fild dword [esp + 0x3c]
mov dl, 1
fld dword [esp + 0x2c]
fcompp
fnstsw ax
test ah, 0x44
jnp 0x4e375c
mov cl, dl
jmp 0x4e375e
xor cl, cl
fild dword [esp + 0x44]
mov byte [esp + 0x70], dl
fcomp dword [esp + 0x34]
fnstsw ax
test ah, 0x44
jp 0x4e3776
mov byte [esp + 0x70], 0
fild dword [esp + 0x40]
mov byte [esp + 0x12], dl
fcomp dword [esp + 0x30]
fnstsw ax
test ah, 0x44
jp 0x4e378e
mov byte [esp + 0x12], 0
fild dword [esp + 0x48]
mov byte [esp + 0x13], dl
fcomp dword [esp + 0x38]
fnstsw ax
test ah, 0x44
jp 0x4e37a6
mov byte [esp + 0x13], 0
fld dword [esp + 0x2c]
fcomp dword [esp + 0x34]
fnstsw ax
test ah, 1
je 0x4e37c4
fld dword [esp + 0x30]
fcomp dword [esp + 0x38]
fnstsw ax
test ah, 1
jne 0x4e37d7
mov eax, 0xffffffff
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
jmp 0x4e384b
fld dword [esp + 0x38]
fadd qword [0x65c2f8]
fstp dword [esp + 0x20]
fld dword [esp + 0x20]
fistp dword [esp + 0x24]
fld dword [esp + 0x34]
fadd qword [0x65c2f8]
fstp dword [esp + 0x20]
fld dword [esp + 0x20]
fistp dword [esp + 0x14]
fld dword [esp + 0x30]
fsub qword [0x65c2f8]
fstp dword [esp + 0x20]
fld dword [esp + 0x20]
fistp dword [esp + 0x18]
fld dword [esp + 0x2c]
fsub qword [0x65c2f8]
fstp dword [esp + 0x20]
fld dword [esp + 0x20]
fistp dword [esp + 0x1c]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x5c], edx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x64], edx
test cl, cl
mov dword [esp + 0x68], eax
je 0x4e3972
fild dword [esp + 0x3c]
fsub dword [esp + 0x2c]
fmul dword [0x660254]
call fcn.00487bd0
mov ecx, esi
shr ecx, 0x18
imul ecx, eax
shr ecx, 8
mov edi, 0xff
sub edi, ecx
mov ecx, dword [esp + 0x14]
mov edx, ecx
and ecx, 0xff00ff
imul ecx, edi
mov ebp, esi
and ebp, 0xff00ff
imul ebp, eax
shr edx, 8
add ecx, ebp
mov ebp, edx
and edx, 0xff00ff
and ebp, 0xffff00ff
imul edx, edi
imul ebp, edi
shr ecx, 8
and ecx, 0xff00ff
and ebp, 0xff00ff
xor ecx, ebp
xor ecx, edx
mov edx, esi
shr edx, 8
and edx, 0xff00ff
imul edx, eax
mov eax, dword [esp + 0x60]
and edx, 0xff00ff00
add ecx, edx
mov edx, dword [esp + 0x68]
lea edi, [eax + 1]
lea eax, [edx - 1]
cmp edi, eax
mov dword [esp + 0x14], ecx
jge 0x4e3972
shr ecx, 0x18
mov eax, pe_nt_image_headers32
sub eax, ecx
mov dword [esp + 0x24], eax
mov eax, dword [ebx + 0x70]
fld dword [esp + 0x2c]
mov ebp, dword [eax + 4]
imul ebp, edi
call fcn.00487bd0
mov edx, dword [esp + 0x24]
add ebp, eax
mov eax, dword [ebx + 0x70]
mov eax, dword [eax + 0x10]
lea eax, [eax + ebp*4]
mov dword [esp + 0x20], eax
mov eax, dword [eax]
mov ecx, eax
and eax, 0xff00ff
shr ecx, 8
imul eax, edx
mov ebp, ecx
and ebp, 0xffff00ff
imul ebp, edx
and ecx, 0xff00ff
imul ecx, edx
mov edx, dword [esp + 0x68]
shr eax, 8
and eax, 0xff00ff
and ebp, 0xff00ff
xor eax, ebp
mov ebp, dword [esp + 0x14]
xor eax, ecx
mov ecx, dword [esp + 0x20]
add eax, ebp
mov dword [ecx], eax
inc edi
lea eax, [edx - 1]
cmp edi, eax
jl 0x4e3900
mov al, byte [esp + 0x70]
test al, al
je 0x4e3a9b
fild dword [esp + 0x44]
fsubr dword [esp + 0x34]
fmul dword [0x660254]
call fcn.00487bd0
mov ecx, esi
shr ecx, 0x18
imul ecx, eax
shr ecx, 8
mov edi, 0xff
sub edi, ecx
mov ecx, dword [esp + 0x70]
mov edx, ecx
and ecx, 0xff00ff
imul ecx, edi
mov ebp, esi
and ebp, 0xff00ff
imul ebp, eax
shr edx, 8
add ecx, ebp
mov ebp, edx
and edx, 0xff00ff
and ebp, 0xffff00ff
imul edx, edi
imul ebp, edi
shr ecx, 8
and ecx, 0xff00ff
and ebp, 0xff00ff
xor ecx, ebp
xor ecx, edx
mov edx, esi
shr edx, 8
and edx, 0xff00ff
imul edx, eax
mov eax, dword [esp + 0x60]
and edx, 0xff00ff00
add ecx, edx
mov edx, dword [esp + 0x68]
lea edi, [eax + 1]
lea eax, [edx - 1]
cmp edi, eax
mov dword [esp + 0x70], ecx
jge 0x4e3a9b
shr ecx, 0x18
mov ebp, pe_nt_image_headers32
sub ebp, ecx
mov ebx, dword [ebx + 0x70]
fld dword [esp + 0x2c]
mov eax, dword [ebx + 4]
imul eax, edi
mov dword [esp + 0x24], eax
call fcn.00487bd0
mov ecx, dword [esp + 0x24]
mov ebx, dword [esp + 0x28]
add ecx, eax
mov eax, dword [ebx + 0x70]
mov eax, dword [eax + 0x10]
lea eax, [eax + ecx*4]
mov dword [esp + 0x24], eax
mov eax, dword [eax]
mov ecx, eax
shr ecx, 8
and eax, 0xff00ff
imul eax, ebp
mov edx, ecx
and edx, 0xffff00ff
imul edx, ebp
and ecx, 0xff00ff
imul ecx, ebp
shr eax, 8
and eax, 0xff00ff
and edx, 0xff00ff
xor eax, edx
mov edx, dword [esp + 0x68]
xor eax, ecx
add eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x24]
mov dword [ecx], eax
inc edi
lea eax, [edx - 1]
cmp edi, eax
jl 0x4e3a23
mov al, byte [esp + 0x12]
test al, al
je 0x4e3ba6
fild dword [esp + 0x40]
fsub dword [esp + 0x30]
fmul dword [0x660254]
call fcn.00487bd0
mov ecx, esi
shr ecx, 0x18
imul ecx, eax
shr ecx, 8
mov edi, 0xff
sub edi, ecx
mov ecx, dword [esp + 0x70]
mov edx, ecx
and ecx, 0xff00ff
imul ecx, edi
mov ebp, esi
and ebp, 0xff00ff
imul ebp, eax
shr edx, 8
add ecx, ebp
mov ebp, edx
and edx, 0xff00ff
and ebp, 0xffff00ff
imul edx, edi
imul ebp, edi
shr ecx, 8
and ecx, 0xff00ff
and ebp, 0xff00ff
xor ecx, ebp
xor ecx, edx
mov edx, esi
shr edx, 8
and edx, 0xff00ff
imul edx, eax
mov eax, dword [esp + 0x5c]
and edx, 0xff00ff00
add ecx, edx
lea edx, [eax + 1]
mov eax, dword [esp + 0x64]
dec eax
cmp edx, eax
mov dword [esp + 0x70], ecx
jge 0x4e3ba6
shr ecx, 0x18
mov edi, pe_nt_image_headers32
sub edi, ecx
mov eax, dword [ebx + 0x70]
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 + 0x28], eax
mov eax, dword [eax]
mov ecx, eax
shr ecx, 8
and eax, 0xff00ff
imul eax, edi
mov ebp, ecx
and ebp, 0xffff00ff
imul ebp, edi
and ecx, 0xff00ff
imul ecx, edi
shr eax, 8
and eax, 0xff00ff
and ebp, 0xff00ff
xor eax, ebp
xor eax, ecx
add eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x28]
mov dword [ecx], eax
mov eax, dword [esp + 0x64]
inc edx
dec eax
cmp edx, eax
jl 0x4e3b46
mov al, byte [esp + 0x13]
test al, al
je 0x4e3caa
fild dword [esp + 0x48]
fsubr dword [esp + 0x38]
fmul dword [0x660254]
call fcn.00487bd0
mov ecx, esi
shr ecx, 0x18
imul ecx, eax
shr ecx, 8
mov edi, 0xff
sub edi, ecx
mov ecx, dword [esp + 0x70]
mov edx, ecx
and ecx, 0xff00ff
imul ecx, edi
mov ebp, esi
and ebp, 0xff00ff
imul ebp, eax
add ecx, ebp
shr edx, 8
mov ebp, edx
and ebp, 0xffff00ff
shr esi, 8
imul ebp, edi
and edx, 0xff00ff
and esi, 0xff00ff
imul edx, edi
imul esi, eax
mov eax, dword [esp + 0x64]
shr ecx, 8
and ecx, 0xff00ff
and ebp, 0xff00ff
xor ecx, ebp
xor ecx, edx
mov edx, dword [esp + 0x5c]
and esi, 0xff00ff00
add ecx, esi
inc edx
dec eax
cmp edx, eax
mov dword [esp + 0x70], ecx
mov dword [esp + 0x28], eax
jge 0x4e3caa
shr ecx, 0x18
mov esi, pe_nt_image_headers32
sub esi, ecx
mov eax, dword [ebx + 0x70]
mov ecx, dword [eax + 4]
imul ecx, dword [esp + 0x68]
mov eax, dword [eax + 0x10]
add ecx, edx
lea edi, [eax + ecx*4]
mov eax, dword [edi]
mov ecx, eax
and eax, 0xff00ff
shr ecx, 8
imul eax, esi
mov ebp, ecx
and ebp, 0xffff00ff
imul ebp, esi
and ecx, 0xff00ff
imul ecx, esi
shr eax, 8
and eax, 0xff00ff
and ebp, 0xff00ff
xor eax, ebp
mov ebp, dword [esp + 0x70]
xor eax, ecx
add eax, ebp
mov dword [edi], eax
mov eax, dword [esp + 0x28]
inc edx
cmp edx, eax
jl 0x4e3c51
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x5c
ret 4