Function at 0x1005a7f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x10098010]
xor eax, ebp
mov dword [ebp - 4], eax
movaps xmm0, xmmword [str.1FTPA_nWXCT]
push ebx
push esi
push edi
mov edi, 0xb
mov dword [ebp - 0x54], ecx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x40], edi
lea eax, [edi + 1]
movups xmmword [ebp - 0x3c], xmm0
call fcn.1007cdb0
xor ecx, ecx
lea ebx, [ebp - 0x3b]
mov esi, esp
sub ebx, esi
sub edi, ecx
lea edx, [ecx + esi]
mov cl, byte [ebp - 0x3c]
mov al, byte [ebx + edx]
lea edx, [edx + 1]
xor al, cl
mov byte [edx - 1], al
sub edi, 1
jne 0x1005a838
mov ebx, dword [ebp - 0x54]
mov edi, 0xb
mov byte [esi + edi], 0
mov edi, dword [ebp - 0x4c]
mov ecx, edi
mov eax, dword [edi]
call dword [eax + 4]
nop
mov cl, byte [eax]
cmp cl, byte [esi]
jne 0x1005a880
test cl, cl
je 0x1005a87c
mov cl, byte [eax + 1]
cmp cl, byte [esi + 1]
jne 0x1005a880
add eax, 2
add esi, 2
test cl, cl
jne 0x1005a860
xor eax, eax
jmp 0x1005a885
sbb eax, eax
or eax, 1
test eax, eax
jne 0x1005a896
push edi
mov ecx, ebx
call fcn.1005a6f0
jmp 0x1005ac3f
cmp dword [ebx + 0x24], 0
je 0x1005ac3f
mov eax, 8
mov dword [ebp - 0x28], 6
mov dword [ebp - 0x24], 0x23353346
mov dword [ebp - 0x20], 0x222f34
call fcn.1007cd80
mov edi, esp
lea esi, [ebp - 0x23]
mov ecx, edi
sub esi, edi
mov edx, 6
nop dword [eax]
mov al, byte [esi + ecx]
lea ecx, [ecx + 1]
xor al, 0x46
mov byte [ecx - 1], al
sub edx, 1
jne 0x1005a8d0
mov ecx, dword [ebp - 0x4c]
mov byte [edi + 6], dl
mov eax, dword [0x100e8994]
push edx
push edi
mov eax, dword [eax]
mov esi, dword [eax + 0x24]
mov eax, dword [ecx]
call dword [eax + 0x18]
mov ecx, dword [0x100e8994]
push eax
call esi
mov ecx, dword [0x100e8960]
push eax
mov edx, dword [ecx]
call dword [edx + 0xc]
test eax, eax
je 0x1005ac3f
mov ecx, dword [0x100e8ffc]
cmp eax, dword [ecx]
jne 0x1005ac3f
mov edi, 1
mov dword [ebp - 0x14], 0xb73
mov dword [ebp - 0x18], edi
lea eax, [edi + 1]
call fcn.1007cdb0
mov esi, esp
lea edi, [ebp - 0x13]
xor ecx, ecx
mov dword [ebp - 0x48], esi
sub edi, esi
lea edx, [ecx + esi]
mov esi, 1
sub esi, ecx
mov cl, byte [ebp - 0x14]
mov al, byte [edx + edi]
lea edx, [edx + 1]
xor al, cl
mov byte [edx - 1], al
sub esi, 1
jne 0x1005a952
mov edi, 1
mov dword [ebp - 0x14], 0x1168
mov eax, esp
mov dword [ebp - 0x18], edi
mov byte [eax + edi], 0
lea eax, [edi + 1]
call fcn.1007cdb0
mov esi, esp
lea edi, [ebp - 0x13]
xor ecx, ecx
mov dword [ebp - 0x50], esi
sub edi, esi
lea edx, [ecx + esi]
mov esi, 1
sub esi, ecx
mov cl, byte [ebp - 0x14]
mov al, byte [edx + edi]
lea edx, [edx + 1]
xor al, cl
mov byte [edx - 1], al
sub esi, 1
jne 0x1005a998
mov edi, 1
mov dword [ebp - 0x20], 0x4c36
mov esi, esp
mov dword [ebp - 0x24], edi
lea eax, [edi + 1]
mov byte [esi + edi], 0
call fcn.1007cdb0
mov esi, esp
lea edi, [ebp - 0x1f]
xor ecx, ecx
sub edi, esi
lea edx, [ecx + esi]
mov esi, 1
sub esi, ecx
mov cl, byte [ebp - 0x20]
nop dword [eax + eax]
mov al, byte [edx + edi]
lea edx, [edx + 1]
xor al, cl
mov byte [edx - 1], al
sub esi, 1
jne 0x1005a9e0
mov esi, esp
mov edi, 1
push ecx
mov dword [esp], 0
push esi
mov byte [esi + edi], 0
mov edi, dword [ebp - 0x4c]
mov ecx, edi
mov eax, dword [edi]
mov eax, dword [eax + 0x20]
mov dword [ebp - 0x14], eax
call dword [ebp - 0x14]
mov eax, dword [edi]
push ecx
mov dword [esp], 0
mov ecx, edi
push dword [ebp - 0x50]
mov eax, dword [eax + 0x20]
fstp dword [ebp - 0x4c]
mov dword [ebp - 0x14], eax
call dword [ebp - 0x14]
mov eax, dword [edi]
push ecx
mov dword [esp], 0
mov ecx, edi
push dword [ebp - 0x48]
mov eax, dword [eax + 0x20]
fstp dword [ebp - 0x44]
mov dword [ebp - 0x14], eax
call dword [ebp - 0x14]
movsd xmm0, qword [0x100eb3f0]
ucomisd xmm0, qword [0x1008d508]
movss xmm3, dword [ebp - 0x44]
movss xmm4, dword [ebp - 0x4c]
lahf
movss dword [ebp - 0xc], xmm3
movss dword [ebp - 8], xmm4
fstp dword [ebp - 0x10]
test ah, 0x44
jnp 0x1005aaee
mov ecx, dword [0x100e8970]
lea edx, [ebp - 0x28]
push ecx
mov dword [esp], 0x40800000
push 0x7f
mov eax, dword [ecx]
push 0x9b
push 0
push 0
push edx
lea edx, [ebp - 0x1c]
mov dword [ebp - 0x28], 0
push edx
lea edx, [ebp - 0x38]
mov dword [ebp - 0x24], 0
push edx
lea edx, [ebp - 0x10]
mov dword [ebp - 0x20], 0
push edx
mov dword [ebp - 0x1c], 0x40000000
mov dword [ebp - 0x18], 0x40000000
mov dword [ebp - 0x14], 0x40000000
mov dword [ebp - 0x38], 0xc0000000
mov dword [ebp - 0x34], 0xc0000000
mov dword [ebp - 0x30], 0xc0000000
call dword [eax + 4]
movss xmm4, dword [ebp - 8]
movss xmm3, dword [ebp - 0xc]
mov ecx, dword [ebx + 0x1c]
mov eax, dword [ebx + 0x18]
dec ecx
and ecx, dword [ebx + 0x20]
movss xmm1, dword [0x100ec624]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x100e8968]
movss xmm0, dword [eax + 0x10]
ucomiss xmm1, xmm0
lahf
test ah, 0x44
jp 0x1005ab1e
mov eax, dword [0x100ec5f4]
inc eax
jmp 0x1005ab2a
mov dword [0x100ec634], 0
xor eax, eax
ucomiss xmm1, xmm0
mov dword [0x100ec5f4], eax
lahf
test ah, 0x44
jp 0x1005ab99
movss xmm1, dword [ecx]
movss xmm2, dword [ecx + 4]
subss xmm1, dword [ebp - 0x10]
movss xmm0, dword [ecx + 8]
subss xmm2, xmm3
subss xmm0, xmm4
mov dword [ebp - 0x3c], 0
mulss xmm1, xmm1
mulss xmm2, xmm2
mulss xmm0, xmm0
addss xmm2, xmm1
addss xmm2, xmm0
movss dword [ebp - 0x14], xmm2
sqrtss xmm0, dword [ebp - 0x14]
movss dword [ebp - 0x3c], xmm0
movss xmm0, dword [0x100ec634]
comiss xmm0, dword [ebp - 0x3c]
jae 0x1005ac3f
movss xmm4, dword [ebp - 8]
movss xmm3, dword [ebp - 0xc]
movss xmm1, dword [ecx]
movss xmm2, dword [ecx + 4]
subss xmm1, dword [ebp - 0x10]
movss xmm0, dword [ecx + 8]
subss xmm2, xmm3
subss xmm0, xmm4
mov dword [ebp - 0x3c], 0
mulss xmm1, xmm1
mulss xmm2, xmm2
mulss xmm0, xmm0
addss xmm2, xmm1
addss xmm2, xmm0
movss dword [ebp - 0x14], xmm2
sqrtss xmm0, dword [ebp - 0x14]
movss dword [ebp - 0x3c], xmm0
cmp dword [0x100ec5f4], 0
movss xmm0, dword [ebp - 0x3c]
movss dword [0x100ec634], xmm0
je 0x1005ac06
add dword [ebx + 0x38], 0xffffffff
jne 0x1005ac03
mov dword [ebx + 0x34], 0
jmp 0x1005ac06
inc dword [ebx + 0x34]
movss xmm0, dword [ebp - 0x10]
movss dword [ecx + 0xc], xmm0
movss xmm0, dword [ebp - 0xc]
movss dword [ecx + 0x10], xmm0
movss xmm0, dword [ebp - 8]
movss dword [ecx + 0x14], xmm0
push ecx
lea ecx, [ebx + 0x28]
call fcn.1005c5c0
mov eax, dword [0x100e8968]
movss xmm0, dword [eax + 0x10]
movss dword [0x100ec624], xmm0
lea esp, [ebp - 0x60]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007ba06
mov esp, ebp
pop ebp
ret 4