Function at 0x4ea110
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x6c
mov eax, dword [esp + 0x70]
mov eax, dword [eax + 4]
fld dword [eax]
push ebx
fld qword [0x572d98]
push ebp
fmul st(1), st(0)
push edi
fxch st(1)
fstp dword [esp + 0x60]
fld dword [esp + 0x60]
fld qword [0x572c30]
fadd st(1), st(0)
fxch st(1)
fstp qword [esp + 0x48]
fld dword [eax + 4]
fmul st(2)
fstp dword [esp + 0x60]
fld dword [esp + 0x60]
fadd st(1)
fstp qword [esp + 0x58]
fld dword [eax + 8]
mov edi, dword [esp + 0x58]
fadd dword [eax]
mov ecx, edi
sar ecx, 8
mov dword [esp + 0x20], ecx
fstp dword [esp + 0x60]
fld dword [esp + 0x60]
fmul st(2)
fstp dword [esp + 0x60]
fld dword [esp + 0x60]
fadd st(1)
fstp qword [esp + 0x50]
fld dword [eax + 0xc]
fadd dword [eax + 4]
fstp dword [esp + 0x60]
fld dword [esp + 0x60]
fmulp st(2)
fxch st(1)
fstp dword [esp + 0x60]
fadd dword [esp + 0x60]
fstp qword [esp + 0x60]
mov eax, dword [esp + 0x60]
mov edx, eax
sar edx, 8
cmp ecx, edx
jne 0x4ea1c4
sub eax, edi
mov dword [esp + 0x34], eax
lea eax, [ecx + 1]
xor ebp, ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x38], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x58], eax
jmp 0x4ea1ff
and edi, 0xff
mov ebp, 0
jne 0x4ea1d7
mov dword [esp + 0x34], ebp
jmp 0x4ea1e3
mov ebx, 0xff
sub ebx, edi
mov dword [esp + 0x34], ebx
inc ecx
mov dword [esp + 0x38], ecx
and eax, 0xff
mov ecx, ebp
setne cl
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], edx
add ecx, edx
mov dword [esp + 0x58], ecx
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x48]
mov edi, eax
mov ebx, ecx
sar ebx, 8
sar edi, 8
mov dword [esp + 0x3c], ebx
cmp ebx, edi
jne 0x4ea234
sub eax, ecx
mov dword [esp + 0x28], eax
lea eax, [ebx + 1]
mov dword [esp + 0x30], ebp
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x60], eax
jmp 0x4ea277
mov edx, ecx
and edx, 0xff
jne 0x4ea248
mov dword [esp + 0x28], ebp
mov dword [esp + 0x14], ebx
jmp 0x4ea25a
mov ecx, 0xff
sub ecx, edx
lea edx, [ebx + 1]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x14], edx
and eax, 0xff
mov ecx, 0
setne cl
mov dword [esp + 0x30], eax
mov eax, edi
mov dword [esp + 0x18], edi
add ecx, eax
mov dword [esp + 0x60], ecx
mov edx, dword [esp + 0x7c]
mov ecx, dword [edx]
lea eax, [esp + 0x6c]
call fcn.0048f0b0
mov ecx, eax
call fcn.0048f0c0
test al, al
je 0x4eaab3
mov eax, dword [esp + 0x6c]
mov ecx, dword [eax + 4]
mov ebp, dword [eax]
mov edi, dword [eax + 8]
mov eax, dword [eax + 0xc]
add eax, ecx
add edi, ebp
cmp dword [esp + 0x58], ecx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x40], eax
jle 0x4eaaa2
cmp dword [esp + 0x20], eax
jge 0x4eaaa2
cmp dword [esp + 0x60], ebp
jle 0x4eaaa2
cmp ebx, edi
jge 0x4eaaa2
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov eax, edx
sub eax, ecx
cmp eax, 1
mov eax, dword [esp + 0x28]
jne 0x4ea4fd
mov ecx, dword [esp + 0x30]
add ecx, eax
jne 0x4ea4f9
mov edi, dword [esp + 0x34]
test edi, edi
je 0x4ea3ae
mov ecx, dword [esp + 0x20]
cmp ecx, dword [esp + 0x48]
jl 0x4ea3ae
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov eax, dword [eax]
imul edx, ecx
lea ebp, [edx + eax]
lea edx, [edi + 1]
mov dword [esi + 4], ebp
mov eax, dword [esi + 8]
mov ecx, eax
mov edi, eax
and ecx, 0xff00ff
imul ecx, edx
shr eax, 8
shr edi, 8
and eax, 0xff00ff
imul eax, edx
and edi, 0xffff00ff
imul edi, edx
shr ecx, 8
xor ecx, edi
and ecx, 0xff00ff
xor ecx, eax
mov eax, dword [esp + 0x14]
mov eax, dword [ebp + eax*4]
mov edx, ecx
shr edx, 0x18
mov edi, pe_nt_image_headers32
sub edi, edx
mov edx, eax
shr edx, 8
and eax, 0xff00ff
mov dword [esp + 0x7c], ebp
imul eax, edi
mov ebp, edx
and ebp, 0xffff00ff
imul ebp, edi
and edx, 0xff00ff
imul edx, edi
shr eax, 8
xor eax, ebp
and eax, 0xff00ff
xor eax, edx
mov edx, dword [esp + 0x14]
add eax, ecx
mov ecx, dword [esp + 0x7c]
mov dword [ecx + edx*4], eax
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x24]
cmp eax, ecx
jge 0x4ea3c0
mov dword [esp + 0x7c], eax
jmp 0x4ea3c6
mov eax, ecx
mov dword [esp + 0x7c], ecx
mov ebp, dword [esp + 0x48]
cmp ebp, dword [esp + 0x38]
jge 0x4ea3d4
mov ebp, dword [esp + 0x38]
cmp ebp, eax
jge 0x4ea43e
mov ecx, dword [esp + 0x14]
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov eax, dword [eax]
imul edx, ebp
lea edi, [edx + eax]
mov eax, dword [esi + 8]
shr eax, 0x18
mov edx, pe_nt_image_headers32
sub edx, eax
mov dword [esi + 4], edi
mov eax, dword [edi + ecx*4]
mov ecx, eax
shr ecx, 8
and eax, 0xff00ff
imul eax, edx
mov ebx, ecx
and ebx, 0xffff00ff
imul ebx, edx
and ecx, 0xff00ff
imul ecx, edx
shr eax, 8
xor eax, ebx
and eax, 0xff00ff
xor eax, ecx
add eax, dword [esi + 8]
mov ecx, dword [esp + 0x14]
inc ebp
cmp ebp, dword [esp + 0x7c]
mov dword [edi + ecx*4], eax
jl 0x4ea3dc
mov ebx, dword [esp + 0x3c]
cmp dword [esp + 0x1c], 0
je 0x4eaaa2
mov ecx, dword [esp + 0x40]
cmp dword [esp + 0x24], ecx
jge 0x4eaaa2
mov eax, dword [esi]
mov edx, dword [eax + 8]
imul edx, dword [esp + 0x24]
mov eax, dword [eax]
lea ebp, [edx + eax]
mov edx, dword [esp + 0x1c]
mov dword [esi + 4], ebp
mov eax, dword [esi + 8]
mov ecx, eax
mov edi, eax
inc edx
and ecx, 0xff00ff
imul ecx, edx
shr eax, 8
shr edi, 8
and eax, 0xff00ff
imul eax, edx
and edi, 0xffff00ff
imul edi, edx
shr ecx, 8
xor ecx, edi
and ecx, 0xff00ff
xor ecx, eax
mov eax, dword [esp + 0x14]
mov eax, dword [ebp + eax*4]
mov edx, ecx
shr edx, 0x18
mov edi, pe_nt_image_headers32
sub edi, edx
mov edx, eax
shr edx, 8
and eax, 0xff00ff
mov dword [esp + 0x7c], ebp
imul eax, edi
mov ebp, edx
and ebp, 0xffff00ff
imul ebp, edi
and edx, 0xff00ff
imul edx, edi
shr eax, 8
xor eax, ebp
and eax, 0xff00ff
xor eax, edx
mov edx, dword [esp + 0x14]
add eax, ecx
mov ecx, dword [esp + 0x7c]
mov dword [ecx + edx*4], eax
jmp 0x4eaaa2
mov ecx, dword [esp + 0x14]
cmp ecx, ebp
mov dword [esp + 0x44], ebp
jl 0x4ea509
mov dword [esp + 0x44], ecx
cmp edi, edx
mov ecx, edi
jl 0x4ea511
mov ecx, edx
sub ecx, dword [esp + 0x44]
mov dword [esp + 0x2c], ecx
test eax, eax
je 0x4ea526
cmp ebx, ebp
mov byte [esp + 0x7c], 1
jge 0x4ea52b
mov byte [esp + 0x7c], 0
cmp dword [esp + 0x30], 0
je 0x4ea53b
cmp edx, edi
mov byte [esp + 0x13], 1
jl 0x4ea540
mov byte [esp + 0x13], 0
mov edi, dword [esp + 0x34]
test edi, edi
je 0x4ea71a
mov ecx, dword [esp + 0x20]
cmp ecx, dword [esp + 0x48]
jl 0x4ea71a
mov ecx, dword [esi]
mov ebp, dword [ecx + 8]
imul ebp, dword [esp + 0x20]
mov ecx, dword [ecx]
add ebp, ecx
cmp byte [esp + 0x7c], 0
mov dword [esp + 0x50], ebp
mov dword [esi + 4], ebp
je 0x4ea604
mov edx, dword [esi + 8]
imul eax, edi
mov ecx, edx
mov edi, edx
sar eax, 8
inc eax
and ecx, 0xff00ff
imul ecx, eax
shr edi, 8
shr edx, 8
and edi, 0xffff00ff
imul edi, eax
and edx, 0xff00ff
imul edx, eax
mov eax, dword [ebp + ebx*4]
shr ecx, 8
xor ecx, edi
and ecx, 0xff00ff
xor ecx, edx
mov edx, ecx
shr edx, 0x18
mov edi, pe_nt_image_headers32
sub edi, edx
mov edx, eax
shr edx, 8
and eax, 0xff00ff
imul eax, edi
mov ebp, edx
and ebp, 0xffff00ff
imul ebp, edi
and edx, 0xff00ff
imul edx, edi
mov edi, dword [esp + 0x34]
shr eax, 8
xor eax, ebp
and eax, 0xff00ff
xor eax, edx
mov edx, dword [esp + 0x18]
add eax, ecx
mov ecx, dword [esp + 0x50]
mov dword [ecx + ebx*4], eax
cmp dword [esp + 0x2c], 0
jle 0x4ea681
mov eax, dword [esi + 8]
mov ecx, eax
mov ebp, eax
and ecx, 0xff00ff
lea edx, [edi + 1]
imul ecx, edx
shr ebp, 8
and ebp, 0xffff00ff
imul ebp, edx
shr eax, 8
and eax, 0xff00ff
imul eax, edx
mov edx, dword [esi + 4]
shr ecx, 8
xor ecx, ebp
and ecx, 0xff00ff
xor ecx, eax
mov eax, dword [esp + 0x44]
lea ebp, [edx + eax*4]
mov edx, ecx
shr edx, 0x18
mov dword [esp + 0x50], ecx
cmp dl, 0xff
jb 0x4ea66c
mov edx, dword [esp + 0x2c]
mov eax, ebp
mov dword [eax], ecx
dec edx
add eax, 4
test edx, edx
jg 0x4ea660
jmp 0x4ea67d
mov eax, dword [esp + 0x2c]
push eax
lea ecx, [esp + 0x54]
push ecx
mov eax, ebp
call fcn.004f3c30
mov edx, dword [esp + 0x18]
cmp byte [esp + 0x13], 0
je 0x4ea71a
mov eax, dword [esi + 4]
lea ebp, [eax + edx*4]
mov eax, dword [esp + 0x30]
mov edx, dword [esi + 8]
imul eax, edi
mov ecx, edx
mov edi, edx
sar eax, 8
inc eax
and ecx, 0xff00ff
imul ecx, eax
shr edi, 8
shr edx, 8
and edi, 0xffff00ff
imul edi, eax
and edx, 0xff00ff
imul edx, eax
mov eax, dword [ebp]
shr ecx, 8
xor ecx, edi
and ecx, 0xff00ff
xor ecx, edx
mov edx, ecx
shr edx, 0x18
mov edi, pe_nt_image_headers32
sub edi, edx
mov edx, eax
shr edx, 8
and eax, 0xff00ff
mov dword [esp + 0x50], ebp
imul eax, edi
mov ebp, edx
and ebp, 0xffff00ff
imul ebp, edi
and edx, 0xff00ff
imul edx, edi
shr eax, 8
xor eax, ebp
and eax, 0xff00ff
xor eax, edx
add eax, ecx
mov ecx, dword [esp + 0x50]
mov dword [ecx], eax
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x24]
cmp eax, ecx
mov dword [esp + 0x50], eax
jl 0x4ea72e
mov dword [esp + 0x50], ecx
mov eax, dword [esp + 0x38]
mov edi, dword [esp + 0x48]
cmp edi, eax
jge 0x4ea742
mov edi, eax
mov dword [esp + 0x48], eax
jmp 0x4ea746
mov dword [esp + 0x48], edi
cmp edi, dword [esp + 0x50]
jge 0x4ea8ca
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov eax, dword [eax]
imul edx, edi
cmp byte [esp + 0x7c], 0
lea ebp, [edx + eax]
mov dword [esi + 4], ebp
je 0x4ea7ef
mov eax, dword [esi + 8]
mov edx, dword [esp + 0x28]
mov ecx, eax
mov edi, eax
inc edx
and ecx, 0xff00ff
imul ecx, edx
shr edi, 8
shr eax, 8
and edi, 0xffff00ff
imul edi, edx
and eax, 0xff00ff
imul eax, edx
shr ecx, 8
xor ecx, edi
and ecx, 0xff00ff
xor ecx, eax
mov eax, dword [ebp + ebx*4]
mov edx, ecx
shr edx, 0x18
mov edi, pe_nt_image_headers32
sub edi, edx
mov edx, eax
shr edx, 8
and eax, 0xff00ff
imul eax, edi
mov ebx, edx
and ebx, 0xffff00ff
imul ebx, edi
and edx, 0xff00ff
imul edx, edi
mov edi, dword [esp + 0x48]
shr eax, 8
xor eax, ebx
mov ebx, dword [esp + 0x3c]
and eax, 0xff00ff
xor eax, edx
add eax, ecx
mov dword [ebp + ebx*4], eax
mov ecx, dword [esp + 0x2c]
test ecx, ecx
jle 0x4ea824
cmp byte [esi + 0xb], 0xff
mov eax, dword [esi + 4]
mov edx, dword [esp + 0x44]
lea eax, [eax + edx*4]
jb 0x4ea816
mov edx, dword [esi + 8]
mov dword [eax], edx
dec ecx
add eax, 4
test ecx, ecx
jg 0x4ea807
jmp 0x4ea824
mov ecx, dword [esp + 0x2c]
push ecx
lea edx, [esi + 8]
push edx
call fcn.004f3c30
cmp byte [esp + 0x13], 0
je 0x4ea8bb
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x30]
lea ebp, [eax + ecx*4]
mov eax, dword [esi + 8]
mov ecx, eax
mov edi, eax
inc edx
and ecx, 0xff00ff
imul ecx, edx
shr edi, 8
shr eax, 8
and edi, 0xffff00ff
imul edi, edx
and eax, 0xff00ff
imul eax, edx
shr ecx, 8
xor ecx, edi
and ecx, 0xff00ff
xor ecx, eax
mov eax, dword [ebp]
mov edx, ecx
shr edx, 0x18
mov edi, pe_nt_image_headers32
sub edi, edx
mov edx, eax
shr edx, 8
and eax, 0xff00ff
imul eax, edi
mov ebx, edx
and ebx, 0xffff00ff
imul ebx, edi
and edx, 0xff00ff
imul edx, edi
mov edi, dword [esp + 0x48]
shr eax, 8
xor eax, ebx
mov ebx, dword [esp + 0x3c]
and eax, 0xff00ff
xor eax, edx
add eax, ecx
mov dword [ebp], eax
inc edi
cmp edi, dword [esp + 0x50]
mov dword [esp + 0x48], edi
jl 0x4ea750
cmp dword [esp + 0x1c], 0
je 0x4eaaa2
mov ecx, dword [esp + 0x24]
cmp ecx, dword [esp + 0x40]
jge 0x4eaaa2
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov eax, dword [eax]
imul edx, ecx
cmp byte [esp + 0x7c], 0
lea ebp, [edx + eax]
mov dword [esp + 0x50], ebp
mov dword [esi + 4], ebp
je 0x4ea98a
mov eax, dword [esp + 0x28]
imul eax, dword [esp + 0x1c]
mov edx, dword [esi + 8]
mov ecx, edx
mov edi, edx
sar eax, 8
inc eax
and ecx, 0xff00ff
imul ecx, eax
shr edi, 8
shr edx, 8
and edi, 0xffff00ff
imul edi, eax
and edx, 0xff00ff
imul edx, eax
mov eax, dword [ebp + ebx*4]
shr ecx, 8
xor ecx, edi
and ecx, 0xff00ff
xor ecx, edx
mov edx, ecx
shr edx, 0x18
mov edi, pe_nt_image_headers32
sub edi, edx
mov edx, eax
shr edx, 8
and eax, 0xff00ff
imul eax, edi
mov ebp, edx
and ebp, 0xffff00ff
imul ebp, edi
and edx, 0xff00ff
imul edx, edi
shr eax, 8
xor eax, ebp
and eax, 0xff00ff
xor eax, edx
add eax, ecx
mov ecx, dword [esp + 0x50]
mov dword [ecx + ebx*4], eax
mov ebp, dword [esp + 0x2c]
test ebp, ebp
jle 0x4eaa03
mov eax, dword [esi + 8]
mov edx, dword [esp + 0x1c]
inc edx
mov ecx, eax
mov edi, eax
and ecx, 0xff00ff
imul ecx, edx
shr edi, 8
and edi, 0xffff00ff
imul edi, edx
shr eax, 8
and eax, 0xff00ff
imul eax, edx
mov edx, dword [esi + 4]
shr ecx, 8
xor ecx, edi
and ecx, 0xff00ff
xor ecx, eax
mov eax, dword [esp + 0x44]
lea edi, [edx + eax*4]
mov edx, ecx
shr edx, 0x18
mov dword [esp + 0x7c], ecx
cmp dl, 0xff
jb 0x4ea9f3
mov edx, ebp
mov eax, edi
mov dword [eax], ecx
dec edx
add eax, 4
test edx, edx
jg 0x4ea9e7
jmp 0x4eaa03
push ebp
lea eax, [esp + 0x80]
push eax
mov eax, edi
call fcn.004f3c30
cmp byte [esp + 0x13], 0
je 0x4eaaa2
mov eax, dword [esp + 0x30]
imul eax, dword [esp + 0x1c]
mov ecx, dword [esi + 4]
mov edx, dword [esp + 0x18]
lea ebp, [ecx + edx*4]
mov edx, dword [esi + 8]
sar eax, 8
inc eax
mov ecx, edx
mov edi, edx
and ecx, 0xff00ff
imul ecx, eax
shr edi, 8
shr edx, 8
and edi, 0xffff00ff
imul edi, eax
and edx, 0xff00ff
imul edx, eax
shr ecx, 8
xor ecx, edi
and ecx, 0xff00ff
xor ecx, edx
mov eax, ecx
shr eax, 0x18
mov edi, pe_nt_image_headers32
sub edi, eax
mov eax, dword [ebp]
mov edx, eax
shr edx, 8
and eax, 0xff00ff
mov dword [esp + 0x7c], ebp
imul eax, edi
mov ebp, edx
and ebp, 0xffff00ff
imul ebp, edi
and edx, 0xff00ff
imul edx, edi
shr eax, 8
xor eax, ebp
and eax, 0xff00ff
xor eax, edx
add eax, ecx
mov ecx, dword [esp + 0x7c]
mov dword [ecx], eax
lea ecx, [esp + 0x6c]
call fcn.0048f0c0
test al, al
jne 0x4ea295
pop edi
pop ebp
pop ebx
add esp, 0x6c
ret 4