Function at 0x1001bab0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x58
mov eax, dword [0x100b41b0]
xor eax, esp
mov dword [esp + 0x54], eax
movsd xmm3, qword [0x100b6fe0]
ucomisd xmm3, qword [0x10098a28]
push esi
mov esi, dword [esp + 0x60]
push edi
mov dword [esp + 8], esi
movsd xmm2, qword [0x100b7050]
movsd xmm1, qword [0x100b6fd8]
lahf
movsd qword [esp + 0x38], xmm2
movsd qword [esp + 0x30], xmm1
test ah, 0x44
jp 0x1001bb87
movsd xmm0, qword [0x100b6fe8]
call fcn.100512c0
movsd xmm1, qword [0x100989e8]
divsd xmm1, xmm0
movsd xmm0, qword [esp + 0x38]
mulsd xmm1, qword [esp + 0x38]
movsd qword [esp + 0xc], xmm1
call fcn.10051770
movsd xmm1, qword [esp + 0xc]
mulsd xmm1, xmm0
movsd xmm0, qword [0x100989f8]
subsd xmm0, xmm1
movsd qword [esp + 0xc], xmm0
movsd xmm0, qword [esp + 0x30]
call fcn.10052770
movsd xmm1, qword [0x10098a08]
divsd xmm1, xmm0
movsd xmm0, qword [esp + 0xc]
movsd xmm2, qword [esp + 0x38]
addsd xmm0, xmm1
movsd xmm1, qword [esp + 0x30]
movsd xmm3, qword [0x100b6fe0]
movsd qword [0x100b7010], xmm0
mov eax, dword [esi]
xor ecx, ecx
mov edi, dword [esi + 4]
xor edx, edx
movsd xmm4, qword [0x100ab600]
sub edi, eax
mov dword [esp + 0x18], eax
xor eax, eax
ucomisd xmm1, qword [0x10098a38]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x24], edx
lahf
test ah, 0x44
jp 0x1001be1b
movsd xmm0, qword [0x100b6ff0]
sub esp, 8
andps xmm0, xmm4
andps xmm2, xmm4
andps xmm1, xmm4
movsd qword [esp + 0x14], xmm0
movsd qword [esp + 0x40], xmm2
movsd qword [esp + 0x38], xmm1
movsd qword [esp], xmm3
call fcn.10050226
movsd xmm0, qword [esp + 0x14]
mulsd xmm0, qword [0x100989f0]
movsd qword [esp + 0x30], xmm0
fmul qword [esp + 0x30]
movsd xmm0, qword [0x100b7010]
fstp qword [esp + 0x30]
call fcn.100515b0
mulsd xmm0, qword [esp + 0x30]
fld qword [0x100b6fd8]
fstp qword [esp]
movsd qword [esp + 0x30], xmm0
call fcn.10052b00
movsd xmm0, qword [esp + 0x30]
add esp, 8
movsd xmm1, qword [0x10098a10]
fstp qword [esp + 0x40]
mulsd xmm0, qword [esp + 0x40]
mulsd xmm0, qword [esp + 0x38]
subsd xmm1, xmm0
movsd xmm0, qword [0x100b6fe8]
movsd qword [esp + 0x38], xmm1
call fcn.100515b0
mulsd xmm0, qword [0x100989d8]
fld qword [0x100b6fe8]
movsd qword [esp + 0x40], xmm0
call fcn.10050820
movsd xmm0, qword [esp + 0x40]
sub esp, 8
movsd xmm1, qword [esp + 0x40]
fstp qword [esp + 0x30]
mulsd xmm0, qword [esp + 0x30]
mulsd xmm0, qword [esp + 0x38]
subsd xmm1, xmm0
movsd xmm0, qword [0x100b7018]
movsd qword [esp], xmm0
movsd qword [esp + 0x40], xmm1
call fcn.10050323
fmul qword [0x10098a20]
movsd xmm1, qword [0x100b6fe8]
movaps xmm0, xmm1
fstp qword [esp + 0x48]
call fcn.10051a50
mulsd xmm0, qword [esp + 0x48]
movsd xmm1, qword [esp + 0x40]
subsd xmm1, xmm0
movsd xmm0, qword [0x100b6ff0]
movsd qword [esp + 0x40], xmm1
call fcn.10052770
movsd qword [esp + 0x30], xmm0
movsd xmm0, qword [0x100b6fd0]
call fcn.100512c0
mulsd xmm0, qword [esp + 0x30]
movsd qword [esp + 0x38], xmm0
movsd xmm0, qword [0x100b6fd8]
call fcn.10051770
movsd xmm1, qword [esp + 0x38]
mulsd xmm1, xmm0
movsd xmm0, qword [0x100b7018]
movsd qword [esp + 0x38], xmm1
call fcn.100515b0
mulsd xmm0, qword [esp + 0x38]
mulsd xmm0, qword [esp + 0x30]
call fcn.10050850
mulsd xmm0, qword [0x100b6fe0]
fld qword [0x100b7018]
fstp qword [esp]
movsd qword [esp + 0x38], xmm0
call fcn.10052b00
movsd xmm0, qword [esp + 0x38]
add esp, 8
fstp qword [esp + 0x40]
mulsd xmm0, qword [esp + 0x40]
fld qword [0x100b6fd0]
movsd qword [esp + 0x30], xmm0
call fcn.10050820
movsd xmm0, qword [esp + 0x30]
fstp qword [esp + 0x40]
mulsd xmm0, qword [esp + 0x40]
call fcn.100515b0
sub esp, 0x10
movsd qword [esp + 0x38], xmm0
movsd xmm0, qword [0x100b6ff0]
movsd qword [esp + 8], xmm0
movsd xmm0, qword [0x100b6fe0]
movsd qword [esp], xmm0
call fcn.100503f7
movsd xmm0, qword [0x100989c8]
add esp, 0x10
fstp qword [esp + 0x40]
divsd xmm0, qword [esp + 0x40]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
movsd xmm1, qword [esp + 0x38]
mulsd xmm0, qword [esp + 0xc]
mov dword [esp + 0x3c], eax
mulsd xmm0, qword [esp + 0x28]
subsd xmm1, xmm0
movsd qword [0x100b7010], xmm1
jmp 0x1001be1d
xor eax, eax
mov esi, dword [esp + 0x18]
sub edi, 0x10
sub eax, ecx
mov byte [esp + 0x4b], 0
movups xmm0, xmmword [esi]
mov esi, dword [esp + 8]
movups xmmword [esp + 0x4c], xmm0
cmp edi, eax
jae 0x1001be40
lea eax, [ecx + edi]
jmp 0x1001be7e
jbe 0x1001be82
sub edx, ecx
cmp edi, edx
jbe 0x1001be5d
lea eax, [esp + 0x4b]
push eax
push edi
lea ecx, [esp + 0x24]
call fcn.1001b8c0
mov ecx, dword [esp + 0x1c]
jmp 0x1001be82
mov esi, edi
sub esi, eax
push esi
push 0
push dword [esp + 0x44]
call fcn.100462c0
mov eax, dword [esp + 0x48]
add esp, 0xc
mov ecx, dword [esp + 0x1c]
add eax, esi
mov esi, dword [esp + 8]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x18]
push edi
add eax, 0x10
push eax
push ecx
call fcn.100457c0
mov edx, dword [esi + 4]
add esp, 0xc
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
sub ecx, edi
mov eax, dword [esi]
mov dword [esp + 0x18], edx
sub edx, eax
mov byte [esp + 0x4b], 0
cmp ecx, edx
jae 0x1001beb6
add eax, ecx
jmp 0x1001bef4
jbe 0x1001bef7
mov eax, dword [esi + 8]
sub eax, dword [esi]
cmp ecx, eax
jbe 0x1001bed4
lea eax, [esp + 0x4b]
push eax
push ecx
mov ecx, esi
call fcn.1000b460
mov edi, dword [esp + 0x1c]
jmp 0x1001bef7
mov edi, dword [esp + 0x18]
sub ecx, edx
push ecx
push 0
push edi
mov dword [esp + 0x48], ecx
call fcn.100462c0
mov eax, dword [esp + 0x48]
add esp, 0xc
add eax, edi
mov edi, dword [esp + 0x1c]
mov dword [esi + 4], eax
movsd xmm1, qword [0x100b6ff0]
ucomisd xmm1, qword [0x10098a30]
lahf
test ah, 0x44
jp 0x1001c0b7
movaps xmm0, xmm1
sub esp, 0x10
andps xmm0, xmmword [0x100ab600]
movsd qword [esp + 0x50], xmm0
movsd xmm0, qword [0x100b7050]
movsd qword [esp + 8], xmm0
movsd qword [esp], xmm1
call fcn.100507dc
movsd xmm0, qword [0x100b6fe0]
add esp, 0x10
fstp qword [esp + 0xc]
call fcn.10050850
mulsd xmm0, qword [0x100989e0]
mulsd xmm0, qword [esp + 0x40]
movsd qword [esp + 0x30], xmm0
movsd xmm0, qword [0x100b6ff0]
call fcn.10050850
movsd xmm1, qword [esp + 0x30]
fld qword [0x100b7018]
fld qword [0x100b7050]
mulsd xmm1, xmm0
movsd qword [esp + 0x30], xmm1
call fcn.10050830
movsd xmm0, qword [esp + 0x30]
sub esp, 8
fstp qword [esp + 0x48]
mulsd xmm0, qword [esp + 0x48]
movsd qword [esp + 0x48], xmm0
fld qword [esp + 0x48]
fmul qword [esp + 0x14]
movsd xmm0, qword [0x100b7010]
movsd qword [esp], xmm0
fstp qword [esp + 0x30]
call fcn.10050323
fstp qword [esp + 0x14]
fld qword [0x100b6fd0]
fstp qword [esp]
call fcn.10052b00
movsd xmm0, qword [0x10098a18]
add esp, 8
fstp qword [esp + 0x40]
divsd xmm0, qword [esp + 0x40]
movsd qword [esp + 0x40], xmm0
fld qword [esp + 0x40]
fmul qword [esp + 0xc]
fstp qword [esp + 0xc]
fld qword [0x100b6fd8]
call fcn.10050820
movsd xmm0, qword [0x100989d0]
fstp qword [esp + 0x40]
divsd xmm0, qword [esp + 0x40]
fld qword [0x100b7010]
movsd qword [esp + 0x14], xmm0
call fcn.10050800
movsd xmm0, qword [esp + 0x14]
fstp qword [esp + 0x40]
mulsd xmm0, qword [esp + 0x40]
movsd qword [esp + 0x14], xmm0
movsd xmm0, qword [0x100b6fe0]
call fcn.10050d70
movsd xmm1, qword [esp + 0x14]
mulsd xmm1, xmm0
movsd xmm0, qword [0x100b6fd0]
movsd qword [esp + 0x14], xmm1
call fcn.10050d70
movsd xmm1, qword [esp + 0x14]
mulsd xmm1, xmm0
movsd xmm0, qword [0x100b6ff0]
movsd qword [esp + 0x14], xmm1
call fcn.10052770
mulsd xmm0, qword [esp + 0xc]
mov edi, dword [esp + 0x1c]
movsd xmm1, qword [esp + 0x14]
addsd xmm0, qword [0x10098a00]
addsd xmm0, qword [esp + 0x28]
addsd xmm1, xmm0
movsd qword [0x100b6fd8], xmm1
mov esi, dword [esp + 0x20]
sub esi, edi
sub esi, 1
js 0x1001c0e6
mov al, byte [edi + esi]
mov edx, esi
and edx, 0xf
mov cl, byte [esp + edx + 0x4c]
xor al, cl
mov byte [esp + edx + 0x4c], al
mov eax, dword [esp + 8]
mov eax, dword [eax]
mov byte [esi + eax], cl
sub esi, 1
mov edi, dword [esp + 0x1c]
jns 0x1001c0c2
test edi, edi
je 0x1001c114
mov ecx, dword [esp + 0x24]
mov eax, edi
sub ecx, edi
cmp ecx, 0x1000
jb 0x1001c10a
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001c125
push ecx
push edi
call fcn.10023a46
add esp, 8
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
xor ecx, esp
call fcn.10023dde
add esp, 0x58
ret
call fcn.1004f94a
int3