Function at 0x41f7c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
movss xmm0, dword [0x5ba6ec]
subss xmm0, dword [ebp + 0x20]
movss xmm1, dword [0x5baa74]
push ebx
push esi
mov ebx, edx
mov esi, ecx
comiss xmm1, xmm0
push edi
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], esi
ja 0x41f7fa
movaps xmm1, xmm0
mulss xmm1, dword [0x5ba63c]
lea edi, [ebx*4]
mov eax, edi
movss dword [ebp - 0x14], xmm1
call fcn.0047a3e0
mov ecx, dword [esi + 0x20]
mov dword [ebp - 0x1c], esp
movsx eax, word [ecx + ebx*2 - 2]
movsx esi, word [ecx + ebx*2]
mov ecx, dword [ebp + 0x1c]
sub esi, eax
shl esi, cl
shl esi, 2
mov eax, esi
call fcn.0047a3e0
mov eax, esi
mov dword [ebp - 0xc], esp
call fcn.0047a3e0
mov eax, edi
mov dword [ebp - 0x20], esp
call fcn.0047a3e0
mov eax, edi
mov dword [ebp - 0x2c], esp
call fcn.0047a3e0
mov edi, dword [ebp + 8]
xor ecx, ecx
mov esi, dword [ebp + 0x1c]
mov dword [ebp - 0x50], esp
mov dword [ebp - 0x10], ecx
test ebx, ebx
jle 0x41f9e3
mov eax, dword [ebp + 0x18]
imul eax, dword [ebp + 0x24]
mov dword [ebp + 0x18], eax
xor eax, eax
test edi, edi
cmovne eax, esi
mov dword [ebp - 0x38], eax
nop dword [eax]
mov eax, dword [ebp - 0x24]
xor ebx, ebx
mov eax, dword [eax + 0x20]
movsx edx, word [eax + ecx*2]
movsx eax, word [eax + ecx*2 + 2]
mov ecx, esi
sub eax, edx
shl edx, cl
add edx, dword [ebp + 0x18]
mov dword [ebp - 8], eax
shl eax, cl
mov dword [ebp - 0x18], eax
shl eax, 2
push eax
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x14]
lea eax, [eax + edx*4]
push eax
push dword [ebp - 0xc]
call fcn.00459900
movss xmm7, dword [ebp - 0x14]
push dword [ebp - 0x38]
mov ecx, dword [ebp - 0xc]
movaps xmm3, xmm7
mov edx, dword [ebp - 0x18]
call fcn.0041f6c0
mov eax, dword [ebp - 8]
add esp, 0x10
movaps xmm5, xmm0
movss dword [ebp - 0x30], xmm5
test edi, edi
je 0x41f937
cmp eax, 1
je 0x41f937
push dword [ebp - 0x34]
push dword [ebp - 0xc]
push dword [ebp - 0x20]
call fcn.00459900
mov edx, dword [ebp - 0x18]
mov ecx, esi
mov eax, 1
sar edx, cl
shl eax, cl
mov ecx, dword [ebp - 0x20]
push eax
call fcn.00430c40
movss xmm7, dword [ebp - 0x14]
lea eax, [esi + 1]
mov ecx, dword [ebp - 0x20]
movaps xmm3, xmm7
mov edx, dword [ebp - 0x18]
push eax
call fcn.0041f6c0
movss xmm5, dword [ebp - 0x30]
add esp, 0x14
comiss xmm5, xmm0
mov eax, dword [ebp - 8]
jbe 0x41f937
movaps xmm5, xmm0
or ebx, 0xffffffff
xor ecx, ecx
nop dword [eax]
movaps xmm6, xmm5
test edi, edi
jne 0x41f951
cmp eax, 1
je 0x41f951
lea eax, [edi + 1]
jmp 0x41f953
xor eax, eax
add eax, esi
cmp ecx, eax
jge 0x41f9ab
test edi, edi
je 0x41f965
sub esi, ecx
lea edi, [ecx + 1]
dec esi
jmp 0x41f96a
lea esi, [ecx + 1]
mov edi, esi
mov eax, 1
sar edx, cl
shl eax, cl
mov ecx, dword [ebp - 0xc]
push eax
call fcn.00430c40
mov ecx, dword [ebp - 0xc]
movaps xmm3, xmm7
mov edx, dword [ebp - 0x18]
push esi
call fcn.0041f6c0
add esp, 8
comiss xmm5, xmm0
jbe 0x41f996
movaps xmm5, xmm0
mov esi, dword [ebp + 0x1c]
mov ecx, edi
mov eax, dword [ebp - 8]
comiss xmm6, xmm0
cmovbe edi, ebx
mov ebx, edi
mov edi, dword [ebp + 8]
jmp 0x41f940
test edi, edi
jne 0x41f9b1
neg ebx
mov ecx, dword [ebp - 0x10]
add ebx, ebx
cmp dword [ebp - 8], 1
mov edx, dword [ebp - 0x1c]
mov dword [edx + ecx*4], ebx
jne 0x41f9d6
test ebx, ebx
je 0x41f9d0
mov eax, esi
neg eax
add eax, eax
cmp ebx, eax
jne 0x41f9d6
lea eax, [ebx - 1]
mov dword [edx + ecx*4], eax
inc ecx
mov dword [ebp - 0x10], ecx
cmp ecx, dword [ebp - 0x28]
jl 0x41f880
mov eax, dword [ebp + 0x28]
lea ecx, [esi*8 + 0x48c300]
xor ebx, ebx
mov dword [ebp - 0x24], ecx
xor ecx, ecx
mov dword [ebp - 0xc], 0
test edi, edi
mov dword [ebp - 0x34], ebx
mov eax, dword [eax]
lea edx, [edi*4]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x10]
cmovne eax, ecx
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x38], eax
lea eax, [edi + esi*2]
mov dword [ebp - 0x40], eax
mov edi, edx
lea eax, [eax*4 + 0x48c301]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], eax
nop dword [eax]
movsx ecx, byte [eax - 1]
mov eax, dword [ebp - 0x1c]
add ecx, ecx
mov eax, dword [eax]
sub eax, ecx
cdq
mov esi, eax
mov eax, dword [ebp - 0x10]
xor esi, edx
sub esi, edx
imul esi, dword [ebp - 0x20]
movsx ecx, byte [eax]
mov eax, dword [ebp - 0x1c]
add ecx, ecx
mov dword [ebp - 0x18], esi
mov eax, dword [eax]
sub eax, ecx
cdq
xor eax, edx
sub eax, edx
mov edx, dword [ebp - 0x28]
imul eax, dword [ebp - 0x20]
add eax, dword [ebp - 0x38]
mov dword [ebp - 0x48], eax
cmp edx, 1
jle 0x41fb09
mov edx, dword [ebp - 0x24]
movsx ecx, byte [edi + edx]
add ecx, ecx
mov dword [ebp - 0x54], ecx
movsx ecx, byte [edi + edx + 1]
mov edi, dword [ebp - 0x1c]
add ecx, ecx
mov dword [ebp - 0x58], ecx
mov ecx, dword [ebp + 0x28]
sub edi, ecx
mov dword [ebp - 0x3c], edi
lea edx, [ecx + 4]
mov ecx, dword [ebp - 0x28]
dec ecx
mov dword [ebp - 0x4c], edx
mov dword [ebp - 8], ecx
mov dword [ebp - 0x30], ecx
mov ebx, dword [ebp + 0x10]
lea ecx, [eax + ebx]
add ebx, esi
mov esi, dword [edi + edx]
mov eax, esi
sub eax, dword [ebp - 0x54]
mov edi, dword [edx]
cdq
xor eax, edx
sub eax, edx
mov edx, dword [ebp - 0x18]
imul eax, edi
cmp edx, ecx
cmovge edx, ecx
sub esi, dword [ebp - 0x58]
add edx, eax
mov eax, esi
mov dword [ebp - 0x18], edx
mov esi, dword [ebp - 0x18]
cdq
xor eax, edx
sub eax, edx
mov edx, dword [ebp - 0x4c]
imul eax, edi
cmp ebx, dword [ebp - 0x48]
mov edi, dword [ebp - 0x3c]
cmovge ebx, dword [ebp - 0x48]
add edx, 4
mov dword [ebp - 0x4c], edx
add eax, ebx
sub dword [ebp - 0x30], 1
mov dword [ebp - 0x48], eax
jne 0x41faa6
mov ecx, dword [ebp - 8]
mov ebx, dword [ebp - 0x34]
mov edi, dword [ebp - 0x14]
mov edx, dword [ebp - 0x28]
jmp 0x41fb0f
lea ecx, [edx - 1]
mov dword [ebp - 8], ecx
cmp esi, eax
cmovl eax, esi
add edi, 2
mov dword [ebp + ebx*4 - 0x60], eax
inc ebx
mov eax, dword [ebp - 0x10]
add eax, 2
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], edi
cmp ebx, 2
jl 0x41fa30
mov eax, dword [ebp - 0x5c]
cmp eax, dword [ebp - 0x60]
jge 0x41fb52
cmp dword [ebp + 8], 0
mov dword [ebp - 8], ecx
je 0x41fb52
lea eax, [edx - 1]
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x40]
lea esi, [eax + ecx*2]
mov eax, dword [ebp - 0x1c]
movsx ecx, byte [esi*2 + 0x48c300]
add ecx, ecx
mov edi, dword [eax]
mov eax, edi
sub eax, ecx
movsx ecx, byte [esi*2 + 0x48c301]
cdq
add ecx, ecx
mov ebx, eax
sub edi, ecx
mov ecx, dword [ebp - 0x28]
xor ebx, edx
sub ebx, edx
mov eax, edi
imul ebx, dword [ebp - 0x20]
cdq
xor eax, edx
sub eax, edx
imul eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], ebx
add eax, dword [ebp - 0x38]
mov dword [ebp - 0x10], eax
cmp ecx, 1
jle 0x41fc58
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x44]
lea ecx, [ecx + edx*2]
movsx edx, byte [ecx + esi]
movsx ecx, byte [ecx + esi + 1]
add edx, edx
add ecx, ecx
mov dword [ebp - 0x40], edx
mov edx, dword [ebp - 0x50]
sub dword [ebp - 0x1c], edx
mov dword [ebp - 0x3c], ecx
mov ecx, dword [ebp - 0x2c]
sub ecx, edx
lea esi, [edx + 4]
sub dword [ebp + 0x28], edx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x44], ecx
nop dword [eax + eax]
mov edi, dword [ebp + 0x10]
mov edx, dword [ebp - 0x14]
mov ebx, edx
lea ecx, [eax + edi]
cmp edx, ecx
cmovge ebx, ecx
xor eax, eax
cmp edx, ecx
mov ecx, dword [ebp - 0x44]
setge al
mov dword [ecx + esi], eax
lea ecx, [edx + edi]
mov edx, dword [ebp - 0x10]
cmp ecx, edx
mov edi, edx
cmovl edi, ecx
xor eax, eax
cmp ecx, edx
setge al
mov dword [esi], eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + esi]
mov eax, dword [ebp + 0x28]
mov esi, dword [eax + esi]
mov eax, ecx
sub eax, dword [ebp - 0x40]
sub ecx, dword [ebp - 0x3c]
cdq
xor eax, edx
sub eax, edx
imul eax, esi
add eax, ebx
mov dword [ebp - 0x14], eax
mov eax, ecx
cdq
xor eax, edx
sub eax, edx
imul eax, esi
mov esi, dword [ebp - 0x24]
add esi, 4
mov dword [ebp - 0x24], esi
add eax, edi
sub dword [ebp - 8], 1
mov dword [ebp - 0x10], eax
jne 0x41fbe0
mov ebx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
mov edi, dword [ebp + 0xc]
lea edx, [ecx - 2]
xor eax, eax
cmp ebx, dword [ebp - 0x10]
setge al
mov dword [edi + ecx*4 - 4], eax
test edx, edx
js 0x41fc9f
mov ebx, dword [ebp - 0x50]
mov esi, edi
mov ecx, dword [ebp - 0x2c]
sub esi, ebx
sub ecx, ebx
mov dword [ebp - 0x2c], ecx
lea eax, [ebx + 4]
lea eax, [eax + edx*4]
cmp dword [esi + eax], 1
jne 0x41fc8d
mov ecx, eax
jmp 0x41fc8f
add ecx, eax
mov ecx, dword [ecx]
sub eax, 4
mov dword [edi + edx*4], ecx
sub edx, 1
mov ecx, dword [ebp - 0x2c]
jns 0x41fc83
mov eax, dword [ebp - 0xc]
lea esp, [ebp - 0x6c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00457d6e
mov esp, ebp
pop ebp
ret