Function at 0x140004d90
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rsi
push r12
push r13
push r14
mov rbp, rsp
sub rsp, 0x60
mov rax, qword [0x14006c080]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rax, qword [rbp + 0x68]
mov r13, rcx
mov r14, qword [rbp + 0x58]
mov r12d, dword [rbp + 0x60]
mov qword [rbp - 0x40], rax
test rax, rax
jne 0x140004dcc
cmp r12d, 0x30
jmp 0x140004dd0
cmp r12d, 0x20
jae 0x140004ddc
mov esi, 3
jmp 0x14000507c
mov qword [rsp + 0x98], rbx
lea rcx, [rbp - 0x38]
xorps xmm0, xmm0
mov qword [rsp + 0xa0], rdi
xor eax, eax
mov qword [rsp + 0xa8], r15
movups xmmword [rbp - 0x38], xmm0
mov qword [rbp - 0x28], rax
call fcn.140004620
mov r8, r14
lea rcx, [rbp - 0x38]
mov rdx, r13
call fcn.140004a60
lea rcx, [0x1400658ef]
xor esi, esi
lea rax, [r14 + 0xf]
mov r15d, 0x10
cmp r14, rcx
ja 0x140004e63
lea r8, [0x1400658e0]
cmp rax, r8
jb 0x140004e63
sub r8, r14
lea rax, [rsi + r14]
mov edx, r15d
sub rdx, rsi
nop word [rax + rax]
movzx ecx, byte [rax + r8]
xor byte [rax], cl
lea rax, [rax + 1]
sub rdx, 1
jne 0x140004e50
jmp 0x140004e80
movdqu xmm1, xmmword [r14]
movdqu xmm0, xmmword [0x1400658e0]
xorps xmm1, xmm0
movdqu xmmword [r14], xmm1
nop dword [rax + rax]
lea r8, [r14 + 0x10]
lea rdx, [r13 + 0x10]
lea rcx, [rbp - 0x38]
call fcn.140004a60
movzx eax, byte [r13]
lea rdx, [r13 + 0x20]
xor byte [r14 + 0x10], al
lea r8, [rbp - 0x20]
movzx eax, byte [r13 + 1]
lea rcx, [rbp - 0x38]
xor byte [r14 + 0x11], al
xorps xmm0, xmm0
movzx eax, byte [r13 + 2]
xor byte [r14 + 0x12], al
movzx eax, byte [r13 + 3]
xor byte [r14 + 0x13], al
movzx eax, byte [r13 + 4]
xor byte [r14 + 0x14], al
movzx eax, byte [r13 + 5]
xor byte [r14 + 0x15], al
movzx eax, byte [r13 + 6]
xor byte [r14 + 0x16], al
movzx eax, byte [r13 + 7]
xor byte [r14 + 0x17], al
movzx eax, byte [r13 + 8]
xor byte [r14 + 0x18], al
movzx eax, byte [r13 + 9]
xor byte [r14 + 0x19], al
movzx eax, byte [r13 + 0xa]
xor byte [r14 + 0x1a], al
movzx eax, byte [r13 + 0xb]
xor byte [r14 + 0x1b], al
movzx eax, byte [r13 + 0xc]
xor byte [r14 + 0x1c], al
movzx eax, byte [r13 + 0xd]
xor byte [r14 + 0x1d], al
movzx eax, byte [r13 + 0xe]
xor byte [r14 + 0x1e], al
movzx eax, byte [r13 + 0xf]
xor byte [r14 + 0x1f], al
movups xmmword [rbp - 0x20], xmm0
call fcn.140004a60
movzx eax, byte [r13 + 0x10]
xor byte [rbp - 0x20], al
movzx eax, byte [r13 + 0x11]
xor byte [rbp - 0x1f], al
movzx eax, byte [r13 + 0x12]
xor byte [rbp - 0x1e], al
movzx eax, byte [r13 + 0x13]
xor byte [rbp - 0x1d], al
movzx eax, byte [r13 + 0x14]
xor byte [rbp - 0x1c], al
movzx eax, byte [r13 + 0x15]
xor byte [rbp - 0x1b], al
movzx eax, byte [r13 + 0x16]
xor byte [rbp - 0x1a], al
movzx eax, byte [r13 + 0x17]
xor byte [rbp - 0x19], al
movzx eax, byte [r13 + 0x18]
xor byte [rbp - 0x18], al
movzx eax, byte [r13 + 0x19]
xor byte [rbp - 0x17], al
movzx eax, byte [r13 + 0x1a]
xor byte [rbp - 0x16], al
movzx eax, byte [r13 + 0x1b]
xor byte [rbp - 0x15], al
movzx eax, byte [r13 + 0x1c]
xor byte [rbp - 0x14], al
movzx eax, byte [r13 + 0x1d]
xor byte [rbp - 0x13], al
movzx eax, byte [r13 + 0x1e]
xor byte [rbp - 0x12], al
movzx eax, byte [r13 + 0x1f]
xor byte [rbp - 0x11], al
mov rax, qword [rbp - 0x40]
mov rdi, qword [rsp + 0xa0]
mov rbx, qword [rsp + 0x98]
test rax, rax
je 0x140005031
mov r8, qword [rbp - 0x18]
shr r8, 0x38
sub r15d, r8d
mov dword [rax], r8d
cmp r8d, 0x10
ja 0x14000502a
mov edx, esi
test r8d, r8d
je 0x140005008
nop dword [rax]
mov eax, 0xf
sub eax, edx
movzx ecx, byte [rbp + rax - 0x20]
cmp ecx, r8d
jne 0x14000502a
inc edx
cmp edx, r8d
jb 0x140004ff0
lea eax, [r15 + 0x20]
cmp r12d, eax
jb 0x140005023
mov r8d, r15d
lea rcx, [r14 + 0x20]
lea rdx, [rbp - 0x20]
call fcn.1400359a0
jmp 0x14000503a
mov esi, 3
jmp 0x14000503a
mov esi, 4
jmp 0x14000503a
movups xmm0, xmmword [rbp - 0x20]
movups xmmword [r14 + 0x20], xmm0
mov rcx, qword [rbp - 0x38]
mov r15, qword [rsp + 0xa8]
test rcx, rcx
je 0x14000507c
mov rdx, qword [rbp - 0x28]
mov rax, rcx
sub rdx, rcx
and rdx, 0xfffffffffffffff0
cmp rdx, 0x1000
jb 0x140005077
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005097
call fcn.140018bd4
mov eax, esi
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140018810
add rsp, 0x60
pop r14
pop r13
pop r12
pop rsi
pop rbp
ret
call fcn.140020f88
int3