Function at 0x140066f50
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x138
mov qword [rsp + 0xe8], rcx
mov rax, qword [0x1402c6150]
mov ecx, dword [rax]
call fcn.14000eaf8
mov rcx, qword [rsp + 0xe8]
add rax, 0x60
mov qword [rsp + 0xf0], rax
mov qword [rsp + 0x128], 0
lea rax, [rsp + 0x128]
add rax, 8
mov qword [rsp + 0xf8], rax
mov qword [rsp + 0x130], 0
mov rcx, qword [rcx]
mov rax, rcx
shl rax, 1
mov qword [rsp + 0x100], rax
cvtsi2sd xmm0, rcx
movsd xmm1, qword [0x1402bdc20]
mulsd xmm0, xmm1
movsd qword [rsp + 0x108], xmm0
cvtsi2sd xmm1, rax
movsd qword [rsp + 0x110], xmm1
ucomisd xmm0, xmm1
jne 0x140066ffc
jp 0x140066ffc
jmp 0x14006705a
movsd xmm1, qword [rsp + 0x108]
movsd xmm0, qword [rsp + 0x110]
subsd xmm0, xmm1
call fcn.1402a7e80
movaps xmm1, xmm0
movsd xmm0, qword [rsp + 0x108]
movsd qword [rsp + 0xe0], xmm1
call fcn.1402a7e80
movsd xmm1, qword [rsp + 0xe0]
movsd xmm2, qword [0x1402bdc28]
mulsd xmm1, xmm2
ucomisd xmm0, xmm1
jae 0x14006705a
call fcn.14000ee80
jmp 0x1400676d7
mov rax, qword [rsp + 0x100]
movabs rcx, 0xedaeb760d20e2c1b
movabs rdx, 0xedaeb760d20e2c1b
xor rcx, rdx
cmp rax, rcx
jge 0x1400670a2
mov rcx, qword [rsp + 0x100]
xor eax, eax
mov edx, eax
movabs r8, 0x7fffffffffffffff
call fcn.140018506
jmp 0x1400676d7
mov rdx, qword [rsp + 0x100]
lea rcx, [rsp + 0x128]
call fcn.14002ca69
mov r8, qword [rsp + 0xe8]
mov rax, qword [rsp + 0xf8]
mov rdx, qword [r8]
mov qword [rsp + 0xc8], rdx
mov rcx, r8
add rcx, 8
mov qword [rsp + 0xd0], rcx
mov rcx, qword [r8 + 8]
mov r9, qword [rsp + 0x128]
mov qword [r8], r9
mov r9, qword [rsp + 0x130]
mov qword [r8 + 8], r9
mov qword [rsp + 0x128], rdx
mov qword [rax], rcx
xor eax, eax
mov qword [rsp + 0xd8], rax
mov rcx, qword [rsp + 0xc8]
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0xc0], rax
cmp rax, rcx
jge 0x1400676aa
mov rcx, qword [rsp + 0xc0]
test rcx, rcx
setns al
mov rdx, qword [rsp + 0x128]
mov qword [rsp + 0xb8], rdx
sub rcx, rdx
setl cl
and al, cl
test al, 1
jne 0x140067183
mov rcx, qword [rsp + 0xc0]
mov rdx, qword [rsp + 0xb8]
xor eax, eax
sub rax, 0xffffffffffffffff
sub rdx, rax
call fcn.140025e55
jmp 0x1400676d7
mov rax, qword [rsp + 0xf0]
mov rdx, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0xf8]
mov rcx, qword [rcx]
mov qword [rsp + 0xa0], rcx
lea rdx, [rdx + rdx*2]
mov rcx, qword [rcx + rdx*8 + 8]
mov qword [rsp + 0xa8], rcx
test rcx, rcx
sete cl
mov al, byte [rax]
test al, al
setne al
mov byte [rsp + 0xb7], al
or al, cl
test al, 1
jne 0x140067562
mov ecx, dword [0x1402aab00]
mov edx, dword [0x1402aab04]
mov eax, ecx
and eax, edx
xor ecx, edx
or eax, ecx
add eax, 0x2339c45f
mov ecx, 0x780e7841
xor ecx, 0x79852dc2
xor edx, edx
div ecx
mov ecx, eax
mov eax, ecx
or eax, eax
xor eax, 0xffffffff
mov edx, 0xce3a8baf
or edx, 0xce3a8baf
mov r8d, 0x38054fcf
xor r8d, 0xc7fab030
xor edx, r8d
or eax, edx
xor eax, 0xffffffff
or ecx, 0xce3a8baf
xor ecx, 0xffffffff
xor eax, 0xffffffff
xor ecx, 0xffffffff
and eax, ecx
cmp eax, 0xe25d91fd
je 0x14006780c
mov r8, qword [rsp + 0xa8]
mov rdx, qword [rsp + 0xe8]
mov eax, dword [0x1402aab08]
xor eax, 0x892843a
mov ecx, dword [0x1402aab0c]
and eax, ecx
add eax, 0x235a491f
mov ecx, eax
xor ecx, 0x8500c864
and eax, 0x7aff379b
add eax, eax
sub eax, ecx
add eax, 0x4f6bcc49
mov ecx, 0xe3cfa6ea
mov r9, qword [rdx]
mov qword [rsp + 0x80], r9
mov rdx, r9
dec rdx
mov qword [rsp + 0x88], rdx
xor r8, rdx
not r8
and r8, rdx
mov qword [rsp + 0x90], r8
setns dl
sub r8, r9
setl r8b
and dl, r8b
mov byte [rsp + 0x9f], dl
cmp eax, ecx
ja 0x14006780c
mov rax, qword [rsp + 0x90]
mov cl, byte [rsp + 0x9f]
test cl, 1
mov qword [rsp + 0x78], rax
jne 0x1400672ed
jmp 0x14006730f
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0xd0]
mov rcx, qword [rcx]
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x70], rax
jmp 0x140067326
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x78]
call fcn.140025e55
jmp 0x1400676d7
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x60], rax
mov eax, dword [0x1402aab10]
mov ecx, dword [0x1402aab14]
mov edx, 0x7520e3df
xor edx, 0x378a3ccc
xor ecx, edx
xor edx, edx
div ecx
mov ecx, 0xbe0abb43
xor ecx, 0x97ea0d6c
xor edx, edx
div ecx
mov r8d, 0xffffffff
xor r8d, 0x336b467a
mov edx, eax
and edx, r8d
mov ecx, eax
or ecx, r8d
xor ecx, 0xffffffff
imul ecx, edx
mov edx, eax
and edx, 0x336b467a
mov r8d, 0x406311b0
xor r8d, 0x730857ca
or eax, r8d
imul eax, edx
add eax, ecx
and eax, 0x43a86a3c
cmp eax, 0x9ac599b2
ja 0x140067815
mov r8, qword [rsp + 0x60]
mov eax, dword [0x1402aab18]
or eax, dword [0x1402aab1c]
mov ecx, 0xecd4088
xor edx, edx
div ecx
mov rdx, qword [rsp + 0x68]
xor ecx, ecx
sub ecx, eax
xor eax, eax
sub eax, 0x65959f9d
add ecx, eax
xor eax, eax
sub eax, ecx
add eax, 0x2e1dc6b5
mov ecx, 0xb716539d
xor ecx, 0x6f518537
add rdx, 8
imul r8, r8, 0x18
add rdx, r8
mov rdx, qword [rdx]
movabs r8, 0x4747288acc6080de
movabs r9, 0x4747288acc6080de
xor r8, r9
cmp rdx, r8
sete dl
mov byte [rsp + 0x5f], dl
cmp eax, ecx
ja 0x1400673a6
mov al, byte [rsp + 0x5f]
test al, 1
jne 0x140067478
jmp 0x14006742e
mov r8, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x88]
mov rax, qword [rsp + 0x60]
inc rax
xor rax, rcx
not rax
and rax, rcx
setns cl
mov rdx, rax
sub rdx, r8
setl dl
and cl, dl
test cl, 1
mov rcx, rax
mov qword [rsp + 0x78], rcx
mov qword [rsp + 0x70], rax
jne 0x140067326
jmp 0x14006730f
mov rax, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0xa0]
add rcx, 8
imul rax, rax, 0x18
add rcx, rax
add rcx, 8
mov eax, dword [rcx]
mov dword [rsp + 0x4c], eax
call fcn.14002ca93
mov rax, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0x128]
mov qword [rsp + 0x50], rcx
cmp rax, rcx
jl 0x1400674e9
mov rcx, qword [rsp + 0xc0]
mov rdx, qword [rsp + 0x50]
mov rax, rdx
and rax, 0xffffffffffffffff
shl rax, 1
xor rdx, 0xffffffffffffffff
add rdx, rax
call fcn.140025e55
jmp 0x1400676d7
mov rax, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0xf8]
mov rcx, qword [rcx]
add rcx, 8
imul rax, rax, 0x18
add rcx, rax
add rcx, 0x10
mov rax, qword [rcx]
mov qword [rsp + 0x40], rax
call fcn.1400c0531
mov rdx, qword [rsp + 0xe8]
mov r8d, dword [rsp + 0x4c]
mov r9, qword [rsp + 0x40]
mov r10, qword [rsp + 0xa8]
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x20], r10
mov qword [rsp + 0x28], rax
call fcn.140066e37
mov rax, qword [rsp + 0xf0]
mov al, byte [rax]
mov cl, 0xf7
xor cl, 0xf7
cmp al, cl
je 0x14006758a
jmp 0x1400676d7
mov rcx, qword [rsp + 0xc0]
mov dl, byte [rsp + 0xb7]
xor eax, eax
test dl, 1
mov qword [rsp + 0x30], rcx
mov byte [rsp + 0x3f], al
jne 0x14006768b
jmp 0x14006758a
mov rax, qword [rsp + 0xc0]
movabs rdx, 0x40d429d865c848f0
movabs rcx, 0x40d429d865c848f0
xor rdx, rcx
sub rdx, rax
xor ecx, ecx
sub rcx, 1
add rdx, rcx
xor ecx, ecx
sub rcx, rdx
mov r8, rax
or r8, r8
xor r8, 0xffffffffffffffff
movabs rdx, 0xa9a864381a98970b
movabs r9, 0x56579bc7e56768f4
xor rdx, r9
movabs r9, 0x187865c3ea15ac6b
movabs r10, 0xe7879a3c15ea5394
xor r9, r10
or rdx, r9
xor rdx, 0xffffffffffffffff
xor r8, 0xffffffffffffffff
movabs r9, 0x86d71ff98f1e9b6e
movabs r10, 0x7928e00670e16491
xor r9, r10
xor rdx, r9
and r8, rdx
or rax, 0xffffffffffffffff
movabs rdx, 0xd8fd58326e8312c9
movabs r9, 0x2702a7cd917ced36
xor rdx, r9
xor rax, rdx
xor r8, 0xffffffffffffffff
xor rax, 0xffffffffffffffff
and r8, rax
mov rax, rcx
xor rax, r8
xor rax, 0xffffffffffffffff
mov rdx, rcx
or rdx, r8
and rdx, rax
movabs r8, 0xd520990dba3eb33e
movabs rax, 0xd520990dba3eb33e
xor r8, rax
mov al, 1
cmp rdx, r8
mov qword [rsp + 0x30], rcx
mov byte [rsp + 0x3f], al
jge 0x14006768b
call fcn.14000ee80
jmp 0x1400676d7
mov rax, qword [rsp + 0x30]
mov cl, byte [rsp + 0x3f]
test cl, 1
mov qword [rsp + 0xd8], rax
jne 0x140067111
jmp 0x1400676d7
mov rax, qword [rsp + 0x128]
mov qword [rsp + 0x118], rax
mov rax, qword [rsp + 0x130]
mov qword [rsp + 0x120], rax
lea rcx, [rsp + 0x118]
call fcn.140065230
mov eax, dword [0x1402aab20]
mov edx, dword [0x1402aab24]
mov ecx, 0xb9f2f5e
xor ecx, 0x3dd5363e
xor edx, ecx
xor ecx, ecx
sub ecx, edx
add eax, ecx
mov r8d, 0xffffffff
xor r8d, 0xf4d9d1b1
mov edx, eax
and edx, r8d
mov ecx, eax
or ecx, r8d
mov r8d, 0xf791e24c
xor r8d, 0x86e1db3
xor ecx, r8d
imul ecx, edx
mov r8d, 0x933be50d
xor r8d, 0x67e234bc
mov edx, eax
and edx, r8d
or eax, 0xf4d9d1b1
imul eax, edx
add eax, ecx
add eax, 0xa5f668cc
mov ecx, 0x7935d327
xor ecx, 0x363c6d1f
xor edx, edx
div ecx
mov ecx, 0x47a220e4
xor ecx, 0x8ace1706
cmp eax, ecx
jae 0x14006781e
mov eax, dword [0x1402aab28]
xor eax, 0x4f48c521
xor edx, edx
div dword [0x1402aab2c]
mov ecx, eax
mov edx, 0x98db7a2b
xor edx, 0x30d75efa
mov eax, ecx
xor eax, edx
mov edx, 0xffffffff
xor edx, 0xa80c24d1
and ecx, edx
shl ecx, 1
sub ecx, eax
mov edx, 0x34ba832c
xor edx, 0x237ca53d
mov eax, ecx
xor eax, edx
xor eax, 0xffffffff
and eax, 0x17c62611
shl eax, 1
sub eax, 0x17c62611
sub ecx, eax
mov eax, ecx
or eax, eax
xor eax, 0xffffffff
mov edx, 0xffffffff
xor edx, 0x77df2603
mov r8d, 0xffffffff
xor r8d, 0x77df2603
and edx, r8d
or eax, edx
xor eax, 0xffffffff
or ecx, 0x77df2603
mov edx, 0x7cd380f2
xor edx, 0x832c7f0d
xor ecx, edx
or eax, ecx
xor eax, 0xffffffff
or eax, 0x31832c7f
ror dword [rcx], 1
enter 0xfffffffffffff083, 0xffffffffffffffff
cmp eax, 0xf842610f
je 0x14006781e
add rsp, 0x138
ret
add edi, dword [rbx]
jg 0x1400677a6
jmp 0x140067242
jmp 0x1400677ee
in al, dx
mov word [rcx], ds
pop rdx
jmp 0x140067763