Function at 0x14004fd40
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0xe8]
sub rsp, 0x1c0
movups xmm0, xmmword [str.s_vnd__RXOJfSSJL]
mov r15, qword [0x1413f5a70]
xor edi, edi
cmp byte [0x1401018a5], dil
mov r12d, dword [0x140110090]
movaps xmmword [rax - 0x38], xmm6
movaps xmmword [rax - 0x48], xmm7
movaps xmmword [rax - 0x58], xmm8
movaps xmmword [rax - 0x68], xmm10
mov eax, dword [0x1401018a0]
movdqa xmm10, xmmword [0x140103fe0]
mov dword [rbp - 0x28], eax
movzx eax, word [0x1401018a4]
movups xmmword [rbp - 0x40], xmm0
mov word [rbp - 0x24], ax
movsd xmm0, qword [0x140101898]
movsd qword [rbp - 0x30], xmm0
je 0x14004ff3f
mov ecx, edi
cmp r12d, 2
jl 0x14004ff00
movdqa xmm0, xmmword [0x140104000]
lea rdx, [rbp - 0x3c]
movdqa xmm4, xmmword [0x140103fa0]
movdqa xmm3, xmmword [0x140104360]
movdqa xmm5, xmmword [0x140103fc0]
movdqa xmmword [rbp - 0x20], xmm0
mov r8d, dword [rbp - 0x20]
nop dword [rax]
nop word [rax + rax]
movd xmm2, ecx
lea eax, [rcx + 4]
pshufd xmm2, xmm2, 0
lea rdx, [rdx + 8]
paddd xmm2, xmm4
add ecx, 8
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
movd xmm0, r8d
andps xmm2, xmm10
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rdx - 0xc]
xorps xmm2, xmm0
movd dword [rdx - 0xc], xmm2
movd xmm2, eax
pshufd xmm2, xmm2, 0
paddd xmm2, xmm4
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
movd xmm0, r8d
andps xmm2, xmm10
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rdx - 8]
xorps xmm2, xmm0
movd dword [rdx - 8], xmm2
cmp ecx, 0x18
jl 0x14004fe10
cmp ecx, 0x1e
jge 0x14004ff3f
movsxd rax, ecx
lea r8, [rbp - 0x40]
add r8, rax
nop word [rax + rax]
mov eax, 0xa0a0a0a1
lea r8, [r8 + 1]
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x33
movzx eax, cl
inc ecx
sub al, dl
add al, 0x30
xor byte [r8 - 1], al
cmp ecx, 0x1e
jl 0x14004ff10
movss xmm2, dword [0x140103dc0]
lea rdx, [rbp - 0x40]
mov rcx, qword [r15 + 0xa0]
call fcn.140028970
mov r13, qword [r15 + 0xa0]
xor eax, eax
xorps xmm0, xmm0
mov qword [rbp - 0x5c], rax
mov rax, qword [0x1413f5a70]
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x38], edi
mov byte [rsp + 0x3c], 1
mov qword [rsp + 0x40], rdi
mov dword [rsp + 0x48], 3
mov dword [rsp + 0x4c], 1
mov qword [rsp + 0x54], rdi
mov qword [rsp + 0x5c], rdi
mov qword [rsp + 0x68], rdi
mov dword [rsp + 0x70], edi
mov dword [rsp + 0x74], 0x7f7fffff
mov dword [rsp + 0x7c], edi
mov dword [rbp - 0x80], 0x3f800000
mov qword [rbp - 0x50], rdi
mov byte [rsp + 0x78], 1
mov byte [rsp + 0x50], 1
movups xmmword [rbp - 0x7c], xmm0
movups xmmword [rbp - 0x6c], xmm0
test rax, rax
je 0x14004ffd8
inc dword [rax + 0x3c8]
mov ecx, 0x6106c
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r14, rax
lea rbx, [0x1400c7aa0]
lea rax, [0x1400c7a90]
mov qword [0x14142bc50], r14
mov rcx, rbx
mov qword [0x14142bc40], rax
mov qword [0x14142bc58], r14
lea rsi, [r14 + 0x6106c]
mov qword [0x14142bc48], rsi
call fcn.14002be80
cmp rax, rbx
je 0x140050044
cmp qword [0x14142bc58], rsi
ja 0x14005003d
mov rcx, rax
mov rbx, rax
call fcn.14002be80
cmp rax, rbx
jne 0x140050024
lea rbx, [0x1400c7aa0]
movups xmm0, xmmword [rsp + 0x30]
lea rax, [0x140103bb0]
movups xmm2, xmmword [rsp + 0x40]
lea rdx, [rsp + 0x30]
movups xmm4, xmmword [rsp + 0x60]
mov rcx, r13
movups xmm3, xmmword [rsp + 0x50]
movups xmm5, xmmword [rsp + 0x70]
movups xmm6, xmmword [rbp - 0x80]
movups xmm7, xmmword [rbp - 0x70]
movups xmm8, xmmword [rbp - 0x60]
movsd xmm1, qword [rbp - 0x50]
movups xmmword [rbp - 0x10], xmm0
movups xmmword [rsp + 0x40], xmm2
movups xmmword [rsp + 0x60], xmm4
mov byte [rbp - 4], 1
movups xmm0, xmmword [rbp - 0x10]
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x38], 0x6106c
movups xmmword [rsp + 0x50], xmm3
movups xmmword [rsp + 0x70], xmm5
movups xmmword [rbp - 0x80], xmm6
movups xmmword [rbp - 0x70], xmm7
movups xmmword [rbp - 0x60], xmm8
movsd qword [rbp - 0x50], xmm1
mov dword [rsp + 0x44], 0x41600000
mov qword [rsp + 0x68], rax
call fcn.1400286f0
mov rax, qword [0x1413f5a70]
mov r13, qword [r15 + 0xa0]
test rax, rax
je 0x1400500ed
inc dword [rax + 0x3c8]
mov ecx, 0x6106c
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r14, rax
mov rcx, rbx
lea rax, [0x1400c7a90]
mov qword [0x14142bc50], r14
mov qword [0x14142bc40], rax
mov qword [0x14142bc58], r14
lea rsi, [r14 + 0x6106c]
mov qword [0x14142bc48], rsi
call fcn.14002be80
cmp rax, rbx
je 0x14005014b
cmp qword [0x14142bc58], rsi
ja 0x14005014b
mov rcx, rax
mov rbx, rax
call fcn.14002be80
cmp rax, rbx
jne 0x140050132
xorps xmm0, xmm0
mov qword [rsp + 0x5c], rdi
movups xmmword [rbp - 0x7c], xmm0
mov qword [rsp + 0x30], rdi
xor eax, eax
movups xmmword [rbp - 0x6c], xmm0
lea rdx, [rsp + 0x30]
mov qword [rbp - 0x5c], rax
movups xmm7, xmmword [rbp - 0x70]
lea rax, [0x140103bb0]
movups xmm8, xmmword [rbp - 0x60]
mov rcx, r13
mov dword [rsp + 0x38], edi
mov byte [rsp + 0x3c], 1
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rbp - 0x10], xmm0
mov qword [rsp + 0x40], rdi
mov dword [rsp + 0x48], 3
mov dword [rsp + 0x4c], 1
movups xmm2, xmmword [rsp + 0x40]
mov qword [rsp + 0x68], rdi
movups xmm4, xmmword [rsp + 0x60]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x54], rdi
movups xmm3, xmmword [rsp + 0x50]
mov dword [rsp + 0x70], edi
mov dword [rsp + 0x74], 0x7f7fffff
mov byte [rsp + 0x78], dil
mov dword [rsp + 0x7c], edi
movups xmm5, xmmword [rsp + 0x70]
mov dword [rbp - 0x80], 0x3f800000
movups xmm6, xmmword [rbp - 0x80]
mov qword [rbp - 0x50], rdi
movsd xmm1, qword [rbp - 0x50]
movups xmmword [rsp + 0x40], xmm2
movups xmmword [rsp + 0x60], xmm4
mov byte [rbp - 4], 1
movups xmm0, xmmword [rbp - 0x10]
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x38], 0x6106c
movups xmmword [rsp + 0x50], xmm3
movups xmmword [rsp + 0x70], xmm5
movups xmmword [rbp - 0x80], xmm6
movups xmmword [rbp - 0x70], xmm7
movups xmmword [rbp - 0x60], xmm8
movsd qword [rbp - 0x50], xmm1
mov dword [rsp + 0x44], 0x41980000
mov qword [rsp + 0x68], rax
call fcn.1400286f0
movss xmm3, dword [0x140103de0]
lea rax, [0x140100e74]
mov rcx, qword [r15 + 0xa0]
lea rdx, [0x14009ac20]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
call fcn.140028e00
movss xmm3, dword [0x140103dc8]
lea rdx, [0x1413e6ab0]
mov rcx, qword [r15 + 0xa0]
mov r8d, 0xe43c
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
call fcn.140028ca0
cmp byte [0x1401018a5], dil
movups xmm0, xmmword [str.s_vnd__RXOJfSSJL]
mov qword [0x1413f5c78], rax
mov eax, dword [0x1401018a0]
movups xmmword [rbp - 0x40], xmm0
mov dword [rbp - 0x28], eax
movsd xmm0, qword [0x140101898]
movzx eax, word [0x1401018a4]
movsd qword [rbp - 0x30], xmm0
mov word [rbp - 0x24], ax
je 0x140050440
cmp r12d, 2
jl 0x140050400
movdqa xmm0, xmmword [0x140104000]
lea rcx, [rbp - 0x3c]
movdqa xmm4, xmmword [0x140103fa0]
movdqa xmm3, xmmword [0x140104360]
movdqa xmm5, xmmword [0x140103fc0]
movdqa xmmword [rbp - 0x20], xmm0
mov edx, dword [rbp - 0x20]
movd xmm2, edi
lea eax, [rdi + 4]
pshufd xmm2, xmm2, 0
lea rcx, [rcx + 8]
paddd xmm2, xmm4
add edi, 8
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
movd xmm0, edx
andps xmm2, xmm10
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 0xc]
xorps xmm2, xmm0
movd dword [rcx - 0xc], xmm2
movd xmm2, eax
mov eax, edi
pshufd xmm2, xmm2, 0
paddd xmm2, xmm4
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
movd xmm0, edx
andps xmm2, xmm10
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
xorps xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp edi, 0x18
jl 0x140050310
cmp eax, 0x1e
jge 0x140050440
movsxd rax, edi
lea r8, [rbp - 0x40]
add r8, rax
nop word [rax + rax]
mov eax, 0xa0a0a0a1
lea r8, [r8 + 1]
imul edi
add edx, edi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x33
movzx eax, dil
inc edi
sub al, dl
add al, 0x30
xor byte [r8 - 1], al
cmp edi, 0x1e
jl 0x140050410
movss xmm2, dword [0x140103dc0]
lea rdx, [rbp - 0x40]
mov rcx, qword [r15 + 0xa0]
call fcn.140028970
lea r11, [rsp + 0x1c0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
movaps xmm10, xmmword [r11 - 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret