Function at 0x140004fc0
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f]
sub rsp, 0x98
mov rax, qword [0x140037008]
xor rax, rsp
mov qword [rbp + 7], rax
mov r12, r9
mov rsi, r8
mov r13, rdx
mov rdi, rcx
xorps xmm0, xmm0
cmp r9, 0xc
jne 0x14000509f
movups xmmword [rbp - 0x49], xmm0
xor r14d, r14d
mov r8d, r14d
mov r9d, r14d
nop dword [rax]
mov rdx, qword [rbp - 0x41]
shl rdx, 8
mov rcx, qword [rbp - 0x49]
mov rax, rcx
shr rax, 0x38
or rdx, rax
mov qword [rbp - 0x41], rdx
shl rcx, 8
mov qword [rbp - 0x49], rcx
mov dword [rbp - 0x3d], r14d
movzx eax, byte [rsi + r9]
mov qword [rbp - 0x39], rax
xor eax, eax
mov qword [rbp - 0x31], rax
movdqu xmm1, xmmword [rbp - 0x49]
movdqu xmm0, xmmword [rbp - 0x39]
por xmm1, xmm0
movdqu xmmword [rbp - 0x49], xmm1
inc r8d
mov r9d, r8d
cmp r9, 0xc
jb 0x140005010
mov dword [rbp - 0x39], 1
mov dword [rbp - 0x55], eax
lea r8, [rbp - 0x55]
lea rdx, [rbp - 0x49]
lea rcx, [rbp - 0x29]
call fcn.140014200
lea r8, [rbp - 0x39]
mov rdx, rax
lea rcx, [rbp - 0x11]
call fcn.140014540
mov rdx, rax
mov rcx, rdi
call fcn.140004950
jmp 0x14000531f
lea r15, [r9*8]
test r15, r15
js 0x1400050b3
cvtsi2sd xmm0, r15
jmp 0x1400050cb
mov rcx, r15
shr rcx, 1
mov rax, r15
and eax, 1
or rcx, rax
cvtsi2sd xmm0, rcx
addsd xmm0, xmm0
mulsd xmm0, qword [0x14002f4a8]
call sub.api_ms_win_crt_math_l1_1_0.dll_ceil
addsd xmm0, qword [0x14002f4b0]
cvttsd2si rbx, xmm0
shl ebx, 7
sub rbx, r15
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x29], xmm1
xor r14d, r14d
mov qword [rbp - 0x19], r14
xor edx, edx
mov r9, r12
mov r8, rsi
lea rcx, [rbp - 0x29]
call fcn.14001a230
xorps xmm0, xmm0
lea rsi, [rbx + 0x40]
shr rsi, 3
movdqu xmmword [rbp - 0x11], xmm0
mov qword [rbp - 1], r14
test rsi, rsi
je 0x140005148
mov rdx, rsi
lea rcx, [rbp - 0x11]
call fcn.140016960
mov rcx, qword [rbp - 0x11]
lea rbx, [rcx + rsi]
mov r8, rsi
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov qword [rbp - 9], rbx
jmp 0x14000514c
mov rbx, qword [rbp - 9]
mov r8, qword [rbp - 0x11]
sub rbx, r8
mov r9, rbx
mov rdx, qword [rbp - 0x21]
lea rcx, [rbp - 0x29]
call fcn.14001a230
nop
mov rcx, qword [rbp - 0x11]
test rcx, rcx
je 0x1400051a1
mov rdx, qword [rbp - 1]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000519c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000519c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140027bb4
mov rsi, r14
mov rbx, qword [rbp - 0x21]
nop dword [rax + rax]
mov rax, r15
mov qword [rbp - 0x39], rax
mov ecx, 7
sub rcx, rsi
shl rcx, 3
mov rdx, rcx
shr rdx, 6
test rdx, rdx
je 0x1400051d2
mov rax, r14
and ecx, 0x3f
je 0x1400051e0
shr rax, cl
nop word [rax + rax]
movzx ecx, al
mov byte [rbp - 0x59], cl
cmp rbx, qword [rbp - 0x19]
je 0x1400051fb
mov byte [rbx], cl
mov rbx, qword [rbp - 0x21]
inc rbx
mov qword [rbp - 0x21], rbx
jmp 0x14000520f
lea r8, [rbp - 0x59]
mov rdx, rbx
lea rcx, [rbp - 0x29]
call fcn.14001b1e0
mov rbx, qword [rbp - 0x21]
inc rsi
cmp rsi, 8
jb 0x1400051b0
mov rcx, qword [rbp - 0x29]
sub rbx, rcx
shr rbx, 4
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
test rbx, rbx
je 0x1400052e6
lea r15, [rdi + 0xf]
mov rsi, r14
nop dword [rax]
movups xmm1, xmmword [rsi + rcx]
movdqu xmmword [rbp - 0x39], xmm1
xorps xmm0, xmm0
movups xmmword [rbp - 0x49], xmm0
mov rdx, r14
lea rax, [rbp - 0x49]
cmp rax, r15
ja 0x140005265
lea rax, [rbp - 0x3a]
cmp rax, rdi
jae 0x140005277
lea rax, [rbp - 0x39]
cmp rax, r15
ja 0x14000529e
lea rax, [rbp - 0x2a]
cmp rax, rdi
jb 0x14000529e
lea rax, [rbp - 0x39]
mov r8, rdi
sub r8, rax
lea rax, [rbp - 0x39]
add rax, rdx
movzx ecx, byte [r8 + rax]
xor cl, byte [rax]
mov byte [rbp + rdx - 0x49], cl
inc rdx
cmp rdx, 0x10
jl 0x140005281
jmp 0x1400052ab
movdqu xmm0, xmmword [rdi]
pxor xmm0, xmm1
movdqa xmmword [rbp - 0x49], xmm0
movups xmm0, xmmword [r13]
movaps xmmword [rbp - 0x39], xmm0
movaps xmm1, xmmword [rbp - 0x49]
movdqa xmmword [rbp - 0x49], xmm1
lea r8, [rbp - 0x39]
lea rdx, [rbp - 0x49]
lea rcx, [rbp - 0x11]
call fcn.140004ab0
movups xmm0, xmmword [rax]
movups xmmword [rdi], xmm0
add rsi, 0x10
sub rbx, 1
mov rcx, qword [rbp - 0x29]
jne 0x140005240
test rcx, rcx
je 0x14000531f
mov rdx, qword [rbp - 0x19]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000531a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000531a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140027bb4
mov rax, rdi
mov rcx, qword [rbp + 7]
xor rcx, rsp
call fcn.140027a80
add rsp, 0x98
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret