Function at 0x140008270
Capabilities:
Encode data using xor

Disassembly:
test edx, edx
je 0x14000869a
push rsi
push rdi
push r12
push r14
push r15
mov eax, 0x12d0
call fcn.140048bf0
sub rsp, rax
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rsp + 0x1310], rbx
mov qword [rsp + 0x1318], rbp
mov rax, qword [0x140056850]
xor rax, rsp
mov qword [rsp + 0x12c0], rax
mov esi, edx
mov rdi, rcx
mov ecx, 0xdfc
call fcn.14002fa2c
mov rcx, rax
call fcn.1400115f0
lea rcx, [0x14004b9a4]
call fcn.1400115f0
or word [rdi + 0x474c], 0x40
mov rdx, qword [rdi + 0x6e60]
add rdx, 7
xor r8d, r8d
mov rcx, rdi
call fcn.140019bc4
xor r8d, r8d
lea edx, [r8 + 0x73]
mov rcx, rdi
call fcn.140007540
xor edx, edx
lea r8d, [rdx + 2]
mov rcx, rdi
call fcn.140019bc4
mov rcx, rdi
call fcn.140019438
mov rbx, rax
mov qword [rsp + 0x38], rax
mov r8, rax
mov edx, esi
mov rcx, rdi
call fcn.1400066d4
mov esi, eax
mov dword [rsp + 0x34], eax
xor r14d, r14d
lea rcx, [rdi + 0x60a8]
lea edx, [r14 + 0x14]
cmp qword [rcx + 0x10], rdx
jae 0x140008350
sub rdx, qword [rcx + 8]
call fcn.14001b62c
jmp 0x140008354
mov qword [rcx + 8], rdx
mov eax, 0x8000
mov word [rdi + 0x5480], ax
and dword [rdi + 0x549c], r14d
mov eax, 0x4000
or word [rdi + 0x5480], ax
mov byte [rsp + 0x28], r14b
lea rax, [0x14004b810]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call fcn.140007ee4
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call fcn.140019bc4
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.140006908
nop
mov r8, qword [rsp + 0x48]
xor edx, edx
mov rcx, qword [rsp + 0x40]
call fcn.14003d524
mov r15d, 0xfffffff
mov dword [rsp + 0x30], r15d
xor esi, esi
test rbx, rbx
jle 0x140008541
call fcn.1400349c0
mov ecx, 0x200
cmp rbx, rcx
jae 0x140008415
mov r15d, ebx
movsxd rax, ebx
mov r8, rcx
sub r8, rax
lea rcx, [rsp + rax + 0xc0]
xor edx, edx
call fcn.14003d524
xor ebx, ebx
jmp 0x14000841b
mov r15d, ecx
sub rbx, rcx
movsxd r8, r15d
lea rdx, [rsp + 0xc0]
mov rcx, rdi
call fcn.140019de0
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 0x140008449
mov r8d, 0x200
lea rdx, [rsp + 0xc0]
or ecx, 0xffffffff
call fcn.140011f6c
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 0x1400084f2
mov rdx, rdi
lea rcx, [rsp + 0xa0]
call fcn.140031684
nop
xor edx, edx
lea r8d, [rdx + 2]
mov rcx, rdi
call fcn.140019bc4
mov r8, r15
lea rdx, [rsp + 0x2c0]
mov rcx, rdi
call fcn.140019c28
mov r8, r15
lea rdx, [rsp + 0x2c0]
mov ecx, dword [rsp + 0x30]
call fcn.140011f6c
mov r15d, eax
mov dword [rsp + 0x30], eax
xor r12d, r12d
xor esi, esi
lea rcx, [rsp + 0xa0]
call fcn.1400316bc
jmp 0x1400084f7
mov r15d, dword [rsp + 0x30]
test r14b, r14b
jne 0x14000852b
mov rax, qword [rdi + 0x1428]
cmp byte [rax + 0x28b4], r14b
jne 0x14000852b
mov rcx, r14
shl rcx, 9
mov rdx, qword [rsp + 0x38]
call fcn.140033fcc
mov edx, eax
lea rcx, str._b_b_b_b_3d__
call fcn.1400115f0
inc r14
inc ebp
cmp ebp, dword [rsp + 0x34]
sbb eax, eax
and ebp, eax
test rbx, rbx
jg 0x1400083e7
mov ebp, 2
mov r8d, ebp
xor edx, edx
mov rcx, rdi
call fcn.140019bc4
mov r8d, r12d
lea rdx, [rsp + 0x2c0]
mov rcx, rdi
call fcn.140019c28
mov r8d, r12d
lea rdx, [rsp + 0x2c0]
mov ecx, r15d
call fcn.140011f6c
mov ebx, eax
mov rsi, qword [rsp + 0x58]
mov r8, rsi
mov rdx, qword [rsp + 0x40]
mov rcx, rdi
call fcn.140019c28
mov r8, rsi
mov rdx, qword [rsp + 0x40]
mov ecx, ebx
call fcn.140011f6c
not eax
mov dword [rdi + 0x5490], eax
xor r8d, r8d
mov rdx, qword [rsp + 0x38]
mov rcx, rdi
call fcn.140019bc4
xor edx, edx
lea rcx, [rsp + 0x68]
call fcn.14002b268
nop
lea r8d, [rbp + 6]
lea rdx, str.Protect
lea rcx, [rsp + 0x68]
call fcn.14002b12c
mov edx, dword [rsp + 0x34]
lea rcx, [rsp + 0x68]
call fcn.14002b080
mov rdx, r14
lea rcx, [rsp + 0x68]
call fcn.14002b0fc
lea rdx, [rdi + 0x60a8]
lea rcx, [rsp + 0x68]
call fcn.14002b388
lea r8, [rsi + r14*2]
mov byte [rsp + 0x28], 0
lea rax, [0x14004b810]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor edx, edx
mov rcx, rdi
call fcn.140007ee4
mov r8d, ebp
xor edx, edx
mov rcx, rdi
call fcn.140019bc4
mov r11, qword [rdi + 0x1428]
cmp byte [r11 + 0x28b4], 0
jne 0x140008652
lea rcx, str._b_b_b_b
call fcn.1400115f0
nop
lea rcx, [rsp + 0x68]
call fcn.14002b2b0
nop
cmp qword [rsp + 0x40], 0
je 0x14000866f
mov rcx, qword [rsp + 0x40]
call fcn.14003ceb8
mov rcx, qword [rsp + 0x12c0]
xor rcx, rsp
call fcn.14003d060
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