Function at 0x140040620
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x68]
sub rsp, 0x130
movaps xmmword [rax - 0x48], xmm6
movaps xmmword [rax - 0x58], xmm7
movaps xmmword [rax - 0x68], xmm8
mov rax, qword [0x14024b028]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov r15, r8
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x50], rcx
xor r12d, r12d
call fcn.1400b0590
mov rsi, rax
test rax, rax
jne 0x1400406b2
mov byte [rsp + 0x40], r12b
mov qword [rdi], r12
xorps xmm0, xmm0
movups xmmword [rdi + 8], xmm0
mov qword [rdi + 0x18], r12
mov qword [rdi + 0x20], r12
lea rax, [rsp + 0x40]
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], r12b
jne 0x140040694
mov r8, rbx
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.14005f650
jmp 0x140040ce0
lea r8, [rbx + 8]
cmp qword [rbx + 0x20], 0x10
jb 0x1400406c0
mov r8, qword [r8]
mov edx, 0x2712
mov rcx, rsi
call fcn.1400b1b00
movups xmm0, xmmword [0x14022ef08]
movups xmmword [rbp - 0x78], xmm0
movzx eax, word [0x14022ef18]
mov word [rbp - 0x68], ax
movzx eax, byte [0x14022ef1a]
mov byte [rbp - 0x66], al
mov r8d, r12d
cmp dword [0x14024b008], 2
jl 0x14004084b
movdqa xmm5, xmmword [0x14022ffe0]
movdqa xmm4, xmmword [0x1402302d0]
mov eax, 5
movd xmm6, eax
movdqa xmm7, xmmword [0x140230000]
mov eax, 0x1f
movd xmm8, eax
movdqa xmm0, xmmword [0x140230170]
movdqa xmmword [rsp + 0x50], xmm0
lea rcx, [rbp - 0x74]
mov edx, dword [rsp + 0x50]
nop
movd xmm2, r8d
pshufd xmm2, xmm2, 0
paddd xmm2, xmm5
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x140230080]
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 4]
xorps xmm2, xmm0
movd dword [rcx - 4], xmm2
lea eax, [r8 + 4]
movd xmm3, eax
pshufd xmm3, xmm3, 0
paddd xmm3, xmm5
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x140230080]
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx]
xorps xmm2, xmm0
movd dword [rcx], xmm2
add r8d, 8
lea rcx, [rcx + 8]
cmp r8d, 0x10
jl 0x140040740
cmp r8d, 0x13
jge 0x140040895
movsxd rax, r8d
lea r9, [rbp - 0x78]
add r9, rax
nop word [rax + rax]
mov eax, 0x8fb823ef
imul r8d
add edx, r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 1
sub al, dl
movsx eax, al
imul ecx, eax, 0x39
add cl, r8b
xor byte [r9], cl
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0x13
jl 0x140040860
lea rax, [rbp - 0x78]
mov rbx, 0xffffffffffffffff
mov rcx, rbx
inc rcx
cmp byte [rax + rcx], r12b
jne 0x1400408a3
mov rdx, qword [r15 + 0x18]
movabs r14, 0x7fffffffffffffff
mov rax, r14
sub rax, rdx
cmp rax, rcx
jb 0x140040d1a
lea rax, [r15 + 8]
cmp qword [r15 + 0x20], 0x10
jb 0x1400408d7
mov rax, qword [rax]
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea r9, [rbp - 0x78]
lea rcx, [rbp - 0x38]
call fcn.140061880
lea rdx, [rbp - 0x30]
cmp qword [rbp - 0x18], 0x10
cmovae rdx, qword [rbp - 0x30]
xor ecx, ecx
call fcn.1400b18b0
mov r15, rax
lea rcx, [rbp - 0x38]
call fcn.14005b8a0
mov rcx, qword [rbp - 0x38]
mov qword [rbp - 0x38], r12
mov edx, 0x10
call fcn.140075fd0
mov r8, r15
mov edx, 0x2727
mov rcx, rsi
call fcn.1400b1b00
movsd xmm0, qword [0x14022f0c8]
movsd qword [rsp + 0x50], xmm0
movzx eax, word [0x14022f0d0]
mov word [rsp + 0x58], ax
cmp byte [0x14022f0d1], r12b
je 0x14004098b
mov byte [rsp + 0x50], 0x75
xor byte [rsp + 0x51], 0x3a
xor byte [rsp + 0x52], 0x3b
xor byte [rsp + 0x53], 0x3c
xor byte [rsp + 0x54], 0x3d
xor byte [rsp + 0x55], 0x3e
xor byte [rsp + 0x56], 0x3f
xor byte [rsp + 0x57], 0x40
xor byte [rsp + 0x58], 0x41
xor byte [rsp + 0x59], 0x42
lea rax, [rsp + 0x50]
mov rcx, rbx
inc rcx
cmp byte [rax + rcx], r12b
jne 0x140040993
mov rdx, qword [0x140346670]
sub r14, rdx
cmp r14, rcx
jb 0x140040d14
lea rax, [0x140346660]
cmp qword [0x140346678], 0x10
cmovae rax, qword [0x140346660]
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x50]
lea rcx, [rbp - 0x60]
call fcn.140061880
nop
lea r8, [rbp - 0x58]
cmp qword [rbp - 0x40], 0x10
cmovae r8, qword [rbp - 0x58]
mov edx, 0x271f
mov rcx, rsi
call fcn.1400b1b00
nop
mov qword [rsp + 0x60], r12
xorps xmm0, xmm0
movups xmmword [rsp + 0x68], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x78], xmm1
mov ecx, 0x10
call fcn.1400760c0
mov qword [rax + 8], r12
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x60]
mov qword [rax], rcx
movdqa xmm0, xmmword [0x14022ff60]
movdqu xmmword [rsp + 0x78], xmm0
mov byte [rsp + 0x68], 0
lea r8, [0x1400405f0]
mov edx, 0x4e2b
mov rcx, rsi
call fcn.1400b1b00
lea r8, [rsp + 0x60]
mov edx, 0x2711
mov rcx, rsi
call fcn.1400b1b00
mov rcx, rsi
call fcn.1400b0640
mov rcx, rsi
test eax, eax
je 0x140040b06
call fcn.1400b0670
mov rcx, r15
call fcn.1400b1920
mov byte [rsp + 0x40], 0
mov qword [rdi], r12
xorps xmm0, xmm0
movups xmmword [rdi + 8], xmm0
mov qword [rdi + 0x18], r12
mov qword [rdi + 0x20], r12
lea rax, [rsp + 0x40]
inc rbx
cmp byte [rax + rbx], 0
jne 0x140040aa6
mov r8, rbx
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.14005f650
nop
mov edx, 3
lea rcx, [rsp + 0x44]
call fcn.1400785c0
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140040afc
mov rax, qword [rcx + 8]
mov qword [rcx + 8], r12
test rax, rax
je 0x140040afc
nop word [rax + rax]
mov qword [rax], r12
mov rax, qword [rax + 8]
test rax, rax
jne 0x140040af0
lea rcx, [rsp + 0x44]
jmp 0x140040c14
call fcn.1400b0670
mov rcx, r15
call fcn.1400b1920
nop
mov qword [rdi], r12
xorps xmm0, xmm0
movups xmmword [rdi + 8], xmm0
mov qword [rdi + 0x18], r12
mov qword [rdi + 0x20], r12
mov ecx, 0x10
call fcn.1400760c0
mov qword [rax + 8], r12
mov qword [rdi], rax
mov qword [rax], rdi
mov edx, 3
cmp qword [rbp - 0x80], 0x10
jb 0x140040b81
lea rcx, [rsp + 0x44]
call fcn.1400785c0
mov rax, qword [rdi]
mov rcx, qword [rsp + 0x60]
mov qword [rdi], rcx
mov qword [rsp + 0x60], rax
test rcx, rcx
je 0x140040b6d
mov qword [rcx], rdi
mov rax, qword [rsp + 0x60]
test rax, rax
je 0x140040b7a
lea rcx, [rsp + 0x60]
mov qword [rax], rcx
lea rcx, [rsp + 0x44]
jmp 0x140040bb3
lea rcx, [rsp + 0x50]
call fcn.1400785c0
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140040bae
mov rax, qword [rcx + 8]
mov qword [rcx + 8], r12
test rax, rax
je 0x140040bae
mov qword [rax], r12
mov rax, qword [rax + 8]
test rax, rax
jne 0x140040ba2
lea rcx, [rsp + 0x50]
call fcn.1400786a0
movups xmm0, xmmword [rsp + 0x68]
movups xmmword [rdi + 8], xmm0
movups xmm1, xmmword [rsp + 0x78]
movups xmmword [rdi + 0x18], xmm1
movdqa xmm0, xmmword [0x14022ff60]
movdqu xmmword [rsp + 0x78], xmm0
mov byte [rsp + 0x68], 0
mov edx, 3
lea rcx, [rsp + 0x50]
call fcn.1400785c0
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140040c0f
mov rax, qword [rcx + 8]
mov qword [rcx + 8], r12
test rax, rax
je 0x140040c0f
mov qword [rax], r12
mov rax, qword [rax + 8]
test rax, rax
jne 0x140040c03
lea rcx, [rsp + 0x50]
call fcn.1400786a0
mov rax, qword [rbp - 0x80]
cmp rax, 0x10
jb 0x140040c9d
mov rsi, qword [rsp + 0x68]
test rsi, rsi
lea rbx, [rax + 1]
jne 0x140040c92
test rbx, rbx
je 0x140040c92
lea rax, [0x14022c188]
mov qword [rsp + 0x28], rax
lea rax, [0x14022b1ec]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 0x3c7
lea rdx, [0x14022b1f0]
lea ecx, [r9 + 2]
call fcn.1401885f0
cmp eax, 1
jne 0x140040c6d
int3
mov qword [rsp + 0x20], r12
mov r9d, 0x3c7
lea r8, [0x14022b260]
lea rdx, [0x14022b324]
lea rcx, [0x14022c1c0]
call fcn.140188f20
mov rdx, rbx
mov rcx, rsi
call fcn.140060010
movdqa xmm0, xmmword [0x14022ff60]
mov rcx, qword [rsp + 0x60]
movdqu xmmword [rsp + 0x78], xmm0
mov byte [rsp + 0x68], 0
mov qword [rsp + 0x60], r12
mov edx, 0x10
call fcn.140075fd0
nop
lea rcx, [rbp - 0x60]
call fcn.14005b8a0
mov rcx, qword [rbp - 0x60]
mov qword [rbp - 0x60], r12
mov edx, 0x10
call fcn.140075fd0
mov rax, rdi
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140075760
lea r11, [rsp + 0x130]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.140038890
int3
call fcn.140038890
int3