Function at 0x140085580
Capabilities:
Encode data using xor

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0xc8
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x30], xmm9
movaps xmmword [rbp + 0x20], xmm8
movaps xmmword [rbp + 0x10], xmm7
movaps xmmword [rbp], xmm6
mov qword [rbp - 8], 0xfffffffffffffffe
mov r14, r8
mov rdi, rdx
mov rsi, rcx
lea rbx, [r8 + 0x28]
mov rcx, rbx
call fcn.140087c50
mov r12, rax
mov r15, rdx
test rdx, rdx
mov qword [rbp - 0x48], rdi
je 0x14008560c
mov rax, r15
shr rax, 0x3e
jne 0x140085943
lea r13, [r15 + r15]
movzx eax, byte [0x1401ed1c1]
mov edx, 2
mov rcx, r13
call fcn.140011190
test rax, rax
je 0x140085948
mov rdi, rax
jmp 0x140085614
mov edi, 2
xor r13d, r13d
mov rcx, rdi
mov rdx, r12
mov r8, r13
call sub.VCRUNTIME140.dll_memcpy
mov qword [rbp - 0x28], r15
mov qword [rbp - 0x20], rdi
mov qword [rbp - 0x18], r15
lea rcx, [rbp - 0x28]
call fcn.140081ba0
mov qword [rbp - 0x40], rdx
mov r8, rdx
sub r8, 1
mov qword [rbp - 0x10], rax
jb 0x14008592d
lea rcx, [rax + r8*2]
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], rcx
mov word [rbp - 0x50], 0
mov qword [rbp - 0x28], 0
mov qword [rbp - 0x20], 1
mov qword [rbp - 0x18], 0
mov rax, r8
shr rax, 1
and r8d, 1
add r8, rax
je 0x140085690
lea rcx, [rbp - 0x28]
xor edx, edx
call fcn.140140340
lea rcx, [rbp - 0x60]
lea rdx, [rbp - 0x28]
call fcn.1400852a0
mov rax, qword [rbp - 0x28]
mov qword [rbp - 0x38], rax
mov rax, qword [rbp - 0x20]
mov qword [rbp - 0x30], rax
mov rdi, qword [rbp - 0x18]
mov rdx, qword [rbp - 0x40]
add rdx, rdx
mov r8d, 2
mov rcx, qword [rbp - 0x10]
call fcn.1400111a0
movq xmm6, qword [r14 + 4]
movq xmm7, qword [r14 + 0xc]
mov r14d, dword [r14 + 0x24]
lea rcx, [rbp - 0x28]
mov rdx, rbx
call fcn.140086080
cmp dword [rbp - 0x28], 0
je 0x1400856f5
xorps xmm8, xmm8
xorps xmm9, xmm9
jne 0x140085703
jmp 0x14008570c
movss xmm8, dword [rbp - 0x24]
movss xmm9, dword [rbp - 0x20]
je 0x14008570c
lea rcx, [rbp - 0x20]
call fcn.140107a30
imul eax, edi, 0x27220a95
mov rcx, rdi
rol eax, 5
shr rcx, 0x20
xor eax, ecx
imul r15d, eax, 0x27220a95
cmp rdi, 4
jb 0x140085777
lea rcx, [rdi - 4]
mov eax, ecx
shr eax, 2
inc eax
and eax, 3
mov r8, qword [rbp - 0x30]
je 0x14008577d
shl rax, 2
xor edx, edx
nop word cs:[rax + rax]
rol r15d, 5
xor r15d, dword [r8 + rdx]
imul r15d, r15d, 0x27220a95
add rdx, 4
cmp rax, rdx
jne 0x140085750
lea rax, [r8 + rdx]
sub rdi, rdx
cmp rcx, 0xc
jae 0x140085790
jmp 0x1400857d1
mov rax, qword [rbp - 0x30]
jmp 0x1400857d1
mov rax, r8
cmp rcx, 0xc
jb 0x1400857d1
nop word cs:[rax + rax]
rol r15d, 5
xor r15d, dword [rax]
imul ecx, r15d, 0x27220a95
rol ecx, 5
xor ecx, dword [rax + 4]
imul ecx, ecx, 0x27220a95
rol ecx, 5
xor ecx, dword [rax + 8]
imul ecx, ecx, 0x27220a95
rol ecx, 5
xor ecx, dword [rax + 0xc]
imul r15d, ecx, 0x27220a95
add rax, 0x10
add rdi, 0xfffffffffffffff0
cmp rdi, 3
ja 0x140085790
test rdi, rdi
je 0x14008586e
mov rdx, rdi
mov rcx, rax
and rdx, 3
je 0x14008580a
nop word cs:[rax + rax]
movzx r8d, byte [rcx]
rol r15d, 5
inc rcx
xor r15d, r8d
imul r15d, r15d, 0x27220a95
dec rdx
jne 0x1400857f0
cmp rdi, 4
jb 0x14008586e
add rax, rdi
nop word cs:[rax + rax]
rol r15d, 5
movzx edx, byte [rcx]
xor r15d, edx
imul edx, r15d, 0x27220a95
movzx r8d, byte [rcx + 1]
rol edx, 5
xor edx, r8d
imul edx, edx, 0x27220a95
movzx r8d, byte [rcx + 2]
rol edx, 5
xor edx, r8d
imul edx, edx, 0x27220a95
movzx r8d, byte [rcx + 3]
rol edx, 5
xor edx, r8d
imul r15d, edx, 0x27220a95
add rcx, 4
cmp rcx, rax
jne 0x140085820
mov rcx, rbx
mov rdx, rbx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.gdi32.dll_CreateDCW]
mov qword [rbp - 0x10], rax
mov rcx, rax
mov edx, 8
call qword [sym.imp.gdi32.dll_GetDeviceCaps]
mov edi, eax
mov rcx, qword [rbp - 0x10]
mov edx, 0x76
call qword [sym.imp.gdi32.dll_GetDeviceCaps]
mov ebx, eax
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.gdi32.dll_DeleteDC]
cvtsi2ss xmm0, ebx
cvtsi2ss xmm1, edi
divss xmm0, xmm1
psubd xmm7, xmm6
cmp r14d, 1
mov dword [rsi + 8], r15d
mov rax, qword [rbp - 0x48]
mov qword [rsi], rax
punpcklqdq xmm6, xmm7
movdqu xmmword [rsi + 0xc], xmm6
movss dword [rsi + 0x1c], xmm8
movss dword [rsi + 0x20], xmm0
movss dword [rsi + 0x24], xmm9
sete byte [rsi + 0x28]
mov rdx, qword [rbp - 0x38]
test rdx, rdx
je 0x140085904
mov r8d, 1
mov rcx, qword [rbp - 0x30]
call fcn.1400111a0
mov rax, rsi
movaps xmm6, xmmword [rbp]
movaps xmm7, xmmword [rbp + 0x10]
movaps xmm8, xmmword [rbp + 0x20]
movaps xmm9, xmmword [rbp + 0x30]
add rsp, 0xc8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea rax, [0x140174f78]
mov rcx, r8
xor edx, edx
mov r8, rax
call fcn.1401494f0
ud2
call fcn.14012fc90
mov ecx, 2
mov rdx, r13
call fcn.140148da0
int3