Function at 0x140008f7c
Capabilities:
Encode data using xor

Disassembly:
test edx, edx
je 0x1400093a6
push rsi
push rdi
push r12
push r14
push r15
mov eax, 0x12d0
call fcn.14004d510
sub rsp, rax
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rsp + 0x1310], rbx
mov qword [rsp + 0x1318], rbp
mov rax, qword [0x14005b870]
xor rax, rsp
mov qword [rsp + 0x12c0], rax
mov esi, edx
mov rdi, rcx
mov ecx, 0xdfc
call fcn.14003227c
mov rcx, rax
call fcn.140011f8c
lea rcx, [0x140050a9c]
call fcn.140011f8c
or word [rdi + 0x5800], 0x40
mov rdx, qword [rdi + 0x7f10]
add rdx, 7
xor r8d, r8d
mov rcx, rdi
call fcn.14001aaf4
xor r8d, r8d
lea edx, [r8 + 0x73]
mov rcx, rdi
call fcn.140007978
xor edx, edx
lea r8d, [rdx + 2]
mov rcx, rdi
call fcn.14001aaf4
mov rcx, rdi
call fcn.14001a314
mov rbx, rax
mov qword [rsp + 0x38], rax
mov r8, rax
mov edx, esi
mov rcx, rdi
call fcn.140006af0
mov esi, eax
mov dword [rsp + 0x34], eax
xor r14d, r14d
lea rcx, [rdi + 0x7158]
lea edx, [r14 + 0x14]
cmp qword [rcx + 0x10], rdx
jae 0x14000905c
sub rdx, qword [rcx + 8]
call fcn.1400011d8
jmp 0x140009060
mov qword [rcx + 8], rdx
mov eax, 0x8000
mov word [rdi + 0x6530], ax
and dword [rdi + 0x654c], r14d
mov eax, 0x4000
or word [rdi + 0x6530], ax
mov byte [rsp + 0x28], r14b
lea rax, [0x140050890]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call fcn.1400080d8
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call fcn.14001aaf4
xor ebp, ebp
xor r12d, r12d
mov eax, esi
shl eax, 9
cdqe
mov qword [rsp + 0x58], rax
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140006d24
nop
mov r8, qword [rsp + 0x48]
xor edx, edx
mov rcx, qword [rsp + 0x40]
call fcn.140040d24
mov r15d, 0xfffffff
mov dword [rsp + 0x30], r15d
xor esi, esi
test rbx, rbx
jle 0x14000924d
call fcn.14003730c
mov ecx, 0x200
cmp rbx, rcx
jae 0x140009121
mov r15d, ebx
movsxd rax, ebx
mov r8, rcx
sub r8, rax
lea rcx, [rsp + rax + 0xc0]
xor edx, edx
call fcn.140040d24
xor ebx, ebx
jmp 0x140009127
mov r15d, ecx
sub rbx, rcx
movsxd r8, r15d
lea rdx, [rsp + 0xc0]
mov rcx, rdi
call fcn.14001ad30
mov ecx, ebp
shl ecx, 9
add rcx, qword [rsp + 0x40]
lea rdx, [rsp + 0xc0]
sub rdx, rcx
mov r8d, 0x200
mov al, byte [rdx + rcx]
xor byte [rcx], al
inc rcx
sub r8, 1
jne 0x140009155
mov r8d, 0x200
lea rdx, [rsp + 0xc0]
or ecx, 0xffffffff
call fcn.14001292c
mov byte [rsp + rsi + 0x2c0], al
shr eax, 8
mov byte [rsp + rsi + 0x2c1], al
add r12d, 2
add rsi, 2
mov r15d, 0x1000
cmp r12d, r15d
jne 0x1400091fe
mov rdx, rdi
lea rcx, [rsp + 0xa0]
call fcn.140033f6c
nop
xor edx, edx
lea r8d, [rdx + 2]
mov rcx, rdi
call fcn.14001aaf4
mov r8, r15
lea rdx, [rsp + 0x2c0]
mov rcx, rdi
call fcn.14001ab5c
mov r8, r15
lea rdx, [rsp + 0x2c0]
mov ecx, dword [rsp + 0x30]
call fcn.14001292c
mov r15d, eax
mov dword [rsp + 0x30], eax
xor r12d, r12d
xor esi, esi
lea rcx, [rsp + 0xa0]
call fcn.140033fa4
jmp 0x140009203
mov r15d, dword [rsp + 0x30]
test r14b, r14b
jne 0x140009237
mov rax, qword [rdi + 0x1428]
cmp byte [rax + 0x3934], r14b
jne 0x140009237
mov rcx, r14
shl rcx, 9
mov rdx, qword [rsp + 0x38]
call fcn.140036984
mov edx, eax
lea rcx, str._b_b_b_b_3d__
call fcn.140011f8c
inc r14
inc ebp
cmp ebp, dword [rsp + 0x34]
sbb eax, eax
and ebp, eax
test rbx, rbx
jg 0x1400090f3
mov ebp, 2
mov r8d, ebp
xor edx, edx
mov rcx, rdi
call fcn.14001aaf4
mov r8d, r12d
lea rdx, [rsp + 0x2c0]
mov rcx, rdi
call fcn.14001ab5c
mov r8d, r12d
lea rdx, [rsp + 0x2c0]
mov ecx, r15d
call fcn.14001292c
mov ebx, eax
mov rsi, qword [rsp + 0x58]
mov r8, rsi
mov rdx, qword [rsp + 0x40]
mov rcx, rdi
call fcn.14001ab5c
mov r8, rsi
mov rdx, qword [rsp + 0x40]
mov ecx, ebx
call fcn.14001292c
not eax
mov dword [rdi + 0x6540], eax
xor r8d, r8d
mov rdx, qword [rsp + 0x38]
mov rcx, rdi
call fcn.14001aaf4
xor edx, edx
lea rcx, [rsp + 0x68]
call fcn.14002d17c
nop
lea r8d, [rbp + 6]
lea rdx, str.Protect
lea rcx, [rsp + 0x68]
call fcn.14002d040
mov edx, dword [rsp + 0x34]
lea rcx, [rsp + 0x68]
call fcn.14002cf94
mov rdx, r14
lea rcx, [rsp + 0x68]
call fcn.14002d010
lea rdx, [rdi + 0x7158]
lea rcx, [rsp + 0x68]
call fcn.14002d29c
lea r8, [rsi + r14*2]
mov byte [rsp + 0x28], 0
lea rax, [0x140050890]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor edx, edx
mov rcx, rdi
call fcn.1400080d8
mov r8d, ebp
xor edx, edx
mov rcx, rdi
call fcn.14001aaf4
mov r11, qword [rdi + 0x1428]
cmp byte [r11 + 0x3934], 0
jne 0x14000935e
lea rcx, str._b_b_b_b
call fcn.140011f8c
nop
lea rcx, [rsp + 0x68]
call fcn.14002d1c4
nop
cmp qword [rsp + 0x40], 0
je 0x14000937b
mov rcx, qword [rsp + 0x40]
call fcn.1400406b8
mov rcx, qword [rsp + 0x12c0]
xor rcx, rsp
call fcn.140040860
lea r11, [rsp + 0x12d0]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret