Function at 0x140061530
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x58]
sub rsp, 0x120
movaps xmmword [rax - 0x48], xmm6
movaps xmmword [rax - 0x58], xmm7
movaps xmmword [rax - 0x68], xmm8
movaps xmmword [rax - 0x78], xmm9
movaps xmmword [rax - 0x88], xmm10
movaps xmmword [rax - 0x98], xmm11
mov rax, qword [0x140138040]
xor rax, rsp
mov qword [rbp - 0x50], rax
mov rdi, rdx
mov rsi, rcx
mov rbx, qword [0x1401765d0]
mov rax, qword [rbx + 0x40c8]
mov byte [rax + 0xcc], 1
mov r13, qword [rbx + 0x40c8]
movsxd r8, dword [r13 + 0x108]
mov rax, qword [r13 + 0x110]
mov r8d, dword [rax + r8*4 - 4]
xor edx, edx
call fcn.140006560
mov r14d, eax
movss xmm5, dword [rbx + 0x3968]
addss xmm5, xmm5
addss xmm5, dword [rbx + 0x3dd0]
movss xmm8, dword [r13 + 0x11c]
movaps xmm7, xmm8
addss xmm7, xmm5
movss xmm9, dword [r13 + 0x118]
movaps xmm6, xmm9
addss xmm6, dword [0x14012124c]
movss dword [rbp - 0x80], xmm9
movss dword [rbp - 0x7c], xmm8
movss dword [rbp - 0x78], xmm6
movss dword [rbp - 0x74], xmm7
movaps xmm4, xmm5
subss xmm4, dword [0x140121148]
addss xmm4, xmm8
movaps xmm3, xmm9
movss xmm2, dword [0x140121248]
addss xmm3, xmm2
movaps xmm1, xmm8
addss xmm1, dword [0x140121148]
subss xmm2, xmm5
addss xmm2, dword [0x140121178]
addss xmm2, xmm9
movss dword [rsp + 0x70], xmm2
movss dword [rsp + 0x74], xmm1
movss dword [rsp + 0x78], xmm3
movss dword [rsp + 0x7c], xmm4
subss xmm7, xmm8
subss xmm6, xmm9
movss dword [rsp + 0x50], xmm6
movss dword [rsp + 0x54], xmm7
movss xmm11, dword [0x1401212c0]
movaps xmm1, xmm11
lea rcx, [rsp + 0x50]
call fcn.140019460
mov r15, qword [r13 + 0x2b0]
mov rax, qword [0x1401765d0]
movss xmm6, dword [rax + 0x3968]
movss xmm2, dword [rax + 0x3dd0]
addss xmm6, xmm6
addss xmm6, xmm2
mov rbx, 0xffffffffffffffff
xorps xmm10, xmm10
xor r12d, r12d
movss xmm7, dword [0x140121104]
test rsi, rsi
je 0x140061788
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], rsi
movss dword [rsp + 0x20], xmm11
movss xmm3, dword [0x140121298]
lea rdx, [rsp + 0x58]
mov rcx, qword [rax + 0x3dc8]
call fcn.14002b510
movss xmm0, dword [rsp + 0x5c]
movss dword [rsp + 0x50], xmm9
mulss xmm6, xmm7
addss xmm6, xmm8
mulss xmm0, xmm7
subss xmm6, xmm0
movss dword [rsp + 0x54], xmm6
cmp byte [rsi], r12b
je 0x140061788
mov rcx, rbx
nop
inc rcx
cmp byte [rsi + rcx], r12b
jne 0x140061730
add rcx, rsi
mov rax, qword [r15 + 0x38]
movups xmm0, xmmword [r15 + 0x60]
movups xmmword [rsp + 0x58], xmm0
mov byte [rsp + 0x48], r12b
movss dword [rsp + 0x40], xmm10
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], rsi
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0xffffffff
lea r9, [rsp + 0x50]
movss xmm2, dword [rax + 0x10]
mov rdx, r15
mov rcx, qword [rax + 8]
call fcn.14002b770
xor r9d, r9d
lea r8, [rsp + 0x70]
mov edx, r14d
lea rcx, [rbp - 0x80]
call fcn.140019210
test al, al
je 0x140061ec4
mov ecx, r14d
call fcn.140016810
lea edx, [r14 + 1]
mov dword [rsp + 0x20], r12d
lea r9, [rsp + 0x68]
lea r8, [rsp + 0x69]
lea rcx, [rsp + 0x70]
call fcn.140034d60
mov r15d, dword [0x140138098]
test al, al
jne 0x1400617df
cmp byte [rsp + 0x68], r12b
je 0x1400619cc
mov rax, qword [0x14011edf0]
mov qword [rsp + 0x50], rax
cmp byte [0x14011edf7], r12b
je 0x140061920
cmp r15d, 2
jl 0x1400618e2
movdqa xmm4, xmmword [0x1401217c0]
movdqa xmm2, xmmword [0x140121360]
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1401213b0]
psubd xmm2, xmm0
andps xmm2, xmmword [0x140121430]
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x140121490]
movd xmm0, dword [rsp + 0x50]
xorps xmm2, xmm0
movd dword [rsp + 0x50], xmm2
movdqa xmm2, xmmword [0x140121380]
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1401213b0]
psubd xmm2, xmm0
andps xmm2, xmmword [0x140121430]
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x140121490]
movd xmm0, dword [rsp + 0x54]
xorps xmm2, xmm0
movd dword [rsp + 0x54], xmm2
jmp 0x140061920
lea r9, [rsp + 0x50]
mov r8d, r12d
nop word [rax + rax]
mov eax, 0x4d4873ed
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x35
movzx eax, r8b
sub al, cl
add al, 0x30
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 8
jl 0x1400618f0
xorps xmm0, xmm0
movups xmmword [rbp - 0x80], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x70], xmm1
lea rax, [rsp + 0x50]
mov r8, rbx
inc r8
cmp byte [rax + r8], r12b
jne 0x140061937
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x80]
call fcn.140001450
nop
lea rcx, [rbp - 0x80]
mov rsi, qword [rbp - 0x80]
mov r14, qword [rbp - 0x68]
cmp r14, 0xf
cmova rcx, rsi
mov rax, qword [0x1401765d0]
mov rax, qword [rax + 0x40c8]
movsxd r8, dword [rax + 0x108]
mov rax, qword [rax + 0x110]
mov r8d, dword [rax + r8*4 - 4]
xor edx, edx
call fcn.140006560
xor edx, edx
mov ecx, eax
call fcn.14001a770
nop
cmp r14, 0xf
jbe 0x1400619cc
lea rdx, [r14 + 1]
mov rax, rsi
cmp rdx, 0x1000
jb 0x1400619c4
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140061bed
mov rcx, rsi
call fcn.1400f6564
movups xmm0, xmmword [rdi]
movups xmmword [rbp - 0x60], xmm0
mov rax, qword [0x14011edf0]
mov qword [rsp + 0x50], rax
cmp byte [0x14011edf7], 0
je 0x140061b20
cmp r15d, 2
jl 0x140061adc
movdqa xmm5, xmmword [0x1401217c0]
movdqa xmm3, xmmword [0x140121360]
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm5
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm5
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1401213b0]
psubd xmm3, xmm0
andps xmm3, xmmword [0x140121430]
packuswb xmm3, xmm3
packuswb xmm3, xmm3
mov eax, dword [0x140121490]
movd xmm0, eax
paddb xmm3, xmm0
movd xmm1, dword [rsp + 0x50]
xorps xmm3, xmm1
movd dword [rsp + 0x50], xmm3
movdqa xmm2, xmmword [0x140121380]
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm5
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm5
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1401213b0]
psubd xmm2, xmm0
andps xmm2, xmmword [0x140121430]
packuswb xmm2, xmm2
packuswb xmm2, xmm2
movd xmm0, eax
paddb xmm2, xmm0
movd xmm1, dword [rsp + 0x54]
xorps xmm2, xmm1
movd dword [rsp + 0x54], xmm2
jmp 0x140061b20
lea r9, [rsp + 0x50]
mov r8d, r12d
nop dword [rax]
nop dword [rax + rax]
mov eax, 0x4d4873ed
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x35
movzx eax, r8b
sub al, cl
add al, 0x30
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 8
jl 0x140061af0
xorps xmm0, xmm0
movups xmmword [rbp - 0x80], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x70], xmm1
lea rax, [rsp + 0x50]
mov r8, rbx
nop word [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140061b40
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x80]
call fcn.140001450
nop
lea r9, [rbp - 0x80]
mov rsi, qword [rbp - 0x80]
mov r14, qword [rbp - 0x68]
cmp r14, 0xf
cmova r9, rsi
mov rcx, qword [0x1401765d0]
mov eax, dword [rcx + 0x4bd0]
cmp dword [rcx + 0x4bc0], eax
jg 0x140061b8e
mov dword [rcx + 0x4ae8], r12d
xor r15b, r15b
jmp 0x140061bc2
mov rax, qword [rcx + 0x40c8]
movsxd r8, dword [rax + 0x108]
mov rax, qword [rax + 0x110]
mov r8d, dword [rax + r8*4 - 4]
xor edx, edx
mov rcx, r9
call fcn.140006560
mov edx, 0x141
mov ecx, eax
call fcn.14001ac80
movzx r15d, al
cmp r14, 0xf
jbe 0x140061bfc
lea rdx, [r14 + 1]
mov rax, rsi
cmp rdx, 0x1000
jb 0x140061bf4
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140061bf4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rsi
call fcn.1400f6564
test r15b, r15b
je 0x140061d49
movsd xmm0, qword [0x14011edd0]
movsd qword [rsp + 0x58], xmm0
movzx eax, byte [0x14011edd8]
mov byte [rsp + 0x58], 0x23
xor byte [rsp + 0x59], 0x31
xor byte [rsp + 0x5a], 0x32
xor byte [rsp + 0x5b], 0x33
xor byte [rsp + 0x5c], 0x34
xor byte [rsp + 0x5d], 0x35
xor byte [rsp + 0x5e], 0x36
xor byte [rsp + 0x5f], 0x37
xor al, 0x38
mov byte [rsp + 0x60], al
xorps xmm0, xmm0
movups xmmword [rbp - 0x80], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x70], xmm1
lea rax, [rsp + 0x58]
nop dword [rax]
inc rbx
cmp byte [rax + rbx], 0
jne 0x140061c60
mov r8, rbx
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x80]
call fcn.140001450
nop
lea rcx, [rbp - 0x80]
cmp qword [rbp - 0x68], 0xf
cmova rcx, qword [rbp - 0x80]
xor r9d, r9d
mov r8d, 0x450100
lea rdx, [rbp - 0x60]
call fcn.140040d60
nop
mov rdx, qword [rbp - 0x68]
cmp rdx, 0xf
jbe 0x140061cda
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140061cd5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140061cd5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400f6564
movdqa xmm0, xmmword [0x140121320]
movdqu xmmword [rbp - 0x70], xmm0
mov byte [rbp - 0x80], 0
movups xmm0, xmmword [rbp - 0x60]
movups xmmword [rdi], xmm0
mov rbx, qword [0x1401765d0]
mov rcx, qword [rbx + 0x40c8]
cmp qword [rbx + 0x4c00], rcx
jne 0x140061d2d
cmp byte [rbx + 0x4c99], 0
je 0x140061d2d
cmp dword [rbx + 0x4c10], 0
jne 0x140061d2d
mov eax, dword [rbx + 0x4c9c]
and eax, 0xfffffff2
or eax, 2
mov dword [rbx + 0x4c9c], eax
test dword [rcx + 0x14], 0x1000000
je 0x140061d3d
mov byte [rbx + 0x401e], 1
call fcn.140015330
mov byte [rbx + 0x401e], 0
mov rax, qword [0x1401765d0]
mov rcx, qword [rax + 0x40c8]
dec dword [rcx + 0x108]
mov rax, qword [0x140175558]
movss xmm0, dword [rax + 0x4e0]
movss xmm1, dword [0x14012120c]
mulss xmm0, xmm1
cvttss2si ebx, xmm0
or ebx, 0xff00
shl ebx, 8
movss xmm0, dword [rax + 0x4dc]
mulss xmm0, xmm1
cvttss2si ecx, xmm0
or ebx, ecx
shl ebx, 8
movss xmm0, dword [rax + 0x4d8]
mulss xmm0, xmm1
cvttss2si eax, xmm0
or ebx, eax
mov rsi, qword [r13 + 0x2b0]
movss xmm0, dword [rsp + 0x78]
mov dword [rsp + 0x20], r12d
movaps xmm3, xmm10
mov rcx, rsi
test byte [rsi + 0x30], 1
je 0x140061e11
subss xmm0, xmm7
movss dword [rsp + 0x50], xmm0
movss xmm1, dword [rsp + 0x7c]
subss xmm1, xmm7
movss dword [rsp + 0x54], xmm1
movss xmm0, dword [rsp + 0x70]
addss xmm0, xmm7
movss dword [rsp + 0x58], xmm0
movss xmm1, dword [rsp + 0x74]
addss xmm1, xmm7
movss dword [rsp + 0x5c], xmm1
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x58]
jmp 0x140061e5d
subss xmm0, dword [0x140121100]
movss dword [rsp + 0x58], xmm0
movss xmm0, dword [rsp + 0x7c]
subss xmm0, dword [0x140121100]
movss dword [rsp + 0x5c], xmm0
movss xmm1, dword [rsp + 0x70]
addss xmm1, xmm7
movss dword [rsp + 0x50], xmm1
movss xmm0, dword [rsp + 0x74]
addss xmm0, xmm7
movss dword [rsp + 0x54], xmm0
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x50]
call fcn.1400259c0
movss xmm0, dword [0x140121158]
movss dword [rsp + 0x28], xmm0
mov dword [rsp + 0x20], 1
mov r9d, ebx
mov r8d, dword [rsi + 0x50]
mov rdx, qword [rsi + 0x58]
mov rcx, rsi
call fcn.140023d20
mov dword [rsi + 0x50], r12d
movups xmm0, xmmword [rdi]
movups xmmword [rbp - 0x80], xmm0
lea rcx, [rbp - 0x80]
call fcn.1400069b0
mov r9d, eax
mov dword [rsp + 0x28], r12d
movss dword [rsp + 0x20], xmm10
lea r8, [rsp + 0x78]
lea rdx, [rsp + 0x70]
mov rcx, qword [r13 + 0x2b0]
call fcn.140025e90
mov rcx, qword [rbp - 0x50]
xor rcx, rsp
call fcn.1400f62c0
lea r11, [rsp + 0x120]
mov rbx, qword [r11 + 0x50]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
movaps xmm9, xmmword [r11 - 0x40]
movaps xmm10, xmmword [r11 - 0x50]
movaps xmm11, xmmword [r11 - 0x60]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret