Function at 0x1400561c0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
movaps xmmword [rsp + 0x60], xmm6
mov rax, qword [0x1401f2308]
xor rax, rsp
mov qword [rbp - 0x18], rax
mov r14, rdx
mov rdi, rcx
mov rcx, rdx
call qword [sym.imp.sciter_x.dll_Sciter_UseElement]
xor r12d, r12d
mov ebx, r12d
test eax, eax
cmove rbx, r14
mov qword [rbp - 0x48], rbx
lea r8, str.progressbar
lea rdx, str.role
mov rcx, rbx
call qword [sym.imp.sciter_x.dll_SciterSetAttributeByName]
mov dword [rdi + 0x24], 0x12c
lea r15d, [r12 + 5]
mov dword [rdi + 0x2c], 0x20
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetDC]
mov rsi, rax
test rax, rax
je 0x140056261
lea edx, [r12 + 0xc]
mov rcx, rax
call qword [sym.imp.GDI32.dll_GetDeviceCaps]
mov dword [rdi + 0x2c], eax
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.USER32.dll_ReleaseDC]
mov qword [rbp - 0x50], r12
lea r8, [rbp - 0x50]
lea rdx, [0x1401aa3f8]
mov rcx, r14
call qword [sym.imp.sciter_x.dll_SciterGetAttributeByName]
test eax, eax
jne 0x14005628f
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x14005628f
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi]
mov dword [rdi + 0x24], eax
lea r8, [rbp - 0x50]
lea rdx, str.size
mov rcx, r14
call qword [sym.imp.sciter_x.dll_SciterGetAttributeByName]
test eax, eax
jne 0x1400562b9
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x1400562b9
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi]
mov r15d, eax
lea r8, [rbp - 0x50]
lea rdx, str.paused
mov rcx, r14
call qword [sym.imp.sciter_x.dll_SciterGetAttributeByName]
test eax, eax
jne 0x1400562d8
cmp qword [rbp - 0x50], 0
jne 0x140056308
mov qword [rbp - 0x40], r12
lea r8, [rbp - 0x40]
lea rdx, str._pause
mov rcx, rbx
call qword [sym.imp.sciter_x.dll_SciterGetStyleAttribute]
mov rcx, qword [rbp - 0x40]
mov qword [rbp - 0x50], rcx
test rcx, rcx
je 0x140056326
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtoi]
cmp eax, 1
jne 0x140056326
cmp byte [rdi + 0x28], 1
je 0x140056326
mov byte [rdi + 0x28], 1
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1000
mov rcx, r14
call qword [sym.imp.sciter_x.dll_SciterSetElementState]
movsxd rdx, r15d
mov r8, qword [rdi + 8]
mov rcx, qword [rdi + 0x10]
sub rcx, r8
sar rcx, 6
cmp rdx, rcx
jae 0x14005634a
shl rdx, 6
add rdx, r8
mov qword [rdi + 0x10], rdx
jmp 0x14005637e
jbe 0x14005637e
mov rax, qword [rdi + 0x18]
sub rax, r8
sar rax, 6
lfence
cmp rdx, rax
jbe 0x14005636a
lea rcx, [rdi + 8]
call fcn.140057230
jmp 0x14005637a
sub rdx, rcx
mov rcx, qword [rdi + 0x10]
call fcn.140057420
mov qword [rdi + 0x10], rax
mov rbx, qword [rbp - 0x48]
xorps xmm6, xmm6
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x28], xmm0
mov r8d, 1
lea rdx, [rbp - 0x28]
mov rcx, rbx
call qword [sym.imp.sciter_x.dll_SciterGetElementLocation]
mov rcx, qword [rdi + 0x10]
mov r8, qword [rdi + 8]
cmp r8, rcx
je 0x14005644c
movsd xmm2, qword [0x1401b4da0]
movsd qword [rbp - 0x40], xmm2
movaps xmm3, xmmword [0x1401b4f70]
lea rdx, [r8 + 0x38]
movabs r10, 0x4085e00000000000
lea r11, [0x140055d20]
movss xmm4, dword [0x1401b5020]
nop
mov eax, dword [rbp - 0x20]
sub eax, dword [rbp - 0x28]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
movsd qword [rbp - 0x30], xmm0
lea rax, [rbp - 0x40]
lea r9, [rbp - 0x30]
comisd xmm2, xmm0
cmovbe rax, r9
mov rax, qword [rax]
mov qword [rdx], rax
movsd xmm1, qword [rdx]
movhpd xmm1, qword [rdx]
mulpd xmm1, xmm3
movups xmmword [rdx - 0x20], xmm1
mov qword [rdx - 0x28], r10
mov qword [r8], r11
movaps xmm0, xmm6
xorps xmm0, xmm4
cvtss2sd xmm0, xmm0
movsd qword [rdx - 0x30], xmm0
mov byte [rdx - 8], 0
movd xmm1, dword [rdi + 0x24]
cvtdq2ps xmm1, xmm1
addss xmm6, xmm1
add r8, 0x40
add rdx, 0x40
cmp r8, rcx
jne 0x1400563e0
mov dword [rdi + 0x20], r12d
mov rax, qword [rdi]
xor r8d, r8d
mov rdx, r14
mov rcx, rdi
mov rax, qword [rax + 0x98]
call qword [case.0x1400309a4.0]
mov dword [rbp - 0x38], 9
lea r8, [rbp - 0x38]
mov edx, socket
mov rcx, r14
call qword [sym.imp.sciter_x.dll_SciterSetTimer]
nop
test rbx, rbx
je 0x140056491
mov rcx, rbx
call qword [sym.imp.sciter_x.dll_Sciter_UnuseElement]
mov qword [rbp - 0x48], r12
mov rcx, qword [rbp - 0x18]
xor rcx, rsp
call fcn.140160900
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
movaps xmm6, xmmword [rsp + 0x60]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret