Function at 0x14000826c
Capabilities:
Encode data using xor

Disassembly:
test edx, edx
je 0x140008696
push rsi
push rdi
push r12
push r14
push r15
mov eax, 0x12d0
call fcn.140048c40
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.14002fa38
mov rcx, rax
call fcn.1400115ec
lea rcx, [0x14004b9a4]
call fcn.1400115ec
or word [rdi + 0x474c], 0x40
mov rdx, qword [rdi + 0x6e60]
add rdx, 7
xor r8d, r8d
mov rcx, rdi
call fcn.140019bc0
xor r8d, r8d
lea edx, [r8 + 0x73]
mov rcx, rdi
call fcn.14000753c
xor edx, edx
lea r8d, [rdx + 2]
mov rcx, rdi
call fcn.140019bc0
mov rcx, rdi
call fcn.140019434
mov rbx, rax
mov qword [rsp + 0x38], rax
mov r8, rax
mov edx, esi
mov rcx, rdi
call fcn.1400066d0
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 0x14000834c
sub rdx, qword [rcx + 8]
call fcn.14001b640
jmp 0x140008350
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.140007ee0
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call fcn.140019bc0
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.140006904
nop
mov r8, qword [rsp + 0x48]
xor edx, edx
mov rcx, qword [rsp + 0x40]
call fcn.14003d574
mov r15d, 0xfffffff
mov dword [rsp + 0x30], r15d
xor esi, esi
test rbx, rbx
jle 0x14000853d
call fcn.140034a08
mov ecx, 0x200
cmp rbx, rcx
jae 0x140008411
mov r15d, ebx
movsxd rax, ebx
mov r8, rcx
sub r8, rax
lea rcx, [rsp + rax + 0xc0]
xor edx, edx
call fcn.14003d574
xor ebx, ebx
jmp 0x140008417
mov r15d, ecx
sub rbx, rcx
movsxd r8, r15d
lea rdx, [rsp + 0xc0]
mov rcx, rdi
call fcn.140019ddc
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 0x140008445
mov r8d, 0x200
lea rdx, [rsp + 0xc0]
or ecx, 0xffffffff
call fcn.140011f68
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 0x1400084ee
mov rdx, rdi
lea rcx, [rsp + 0xa0]
call fcn.1400316cc
nop
xor edx, edx
lea r8d, [rdx + 2]
mov rcx, rdi
call fcn.140019bc0
mov r8, r15
lea rdx, [rsp + 0x2c0]
mov rcx, rdi
call fcn.140019c24
mov r8, r15
lea rdx, [rsp + 0x2c0]
mov ecx, dword [rsp + 0x30]
call fcn.140011f68
mov r15d, eax
mov dword [rsp + 0x30], eax
xor r12d, r12d
xor esi, esi
lea rcx, [rsp + 0xa0]
call fcn.140031704
jmp 0x1400084f3
mov r15d, dword [rsp + 0x30]
test r14b, r14b
jne 0x140008527
mov rax, qword [rdi + 0x1428]
cmp byte [rax + 0x28b4], r14b
jne 0x140008527
mov rcx, r14
shl rcx, 9
mov rdx, qword [rsp + 0x38]
call fcn.140034014
mov edx, eax
lea rcx, str._b_b_b_b_3d__
call fcn.1400115ec
inc r14
inc ebp
cmp ebp, dword [rsp + 0x34]
sbb eax, eax
and ebp, eax
test rbx, rbx
jg 0x1400083e3
mov ebp, 2
mov r8d, ebp
xor edx, edx
mov rcx, rdi
call fcn.140019bc0
mov r8d, r12d
lea rdx, [rsp + 0x2c0]
mov rcx, rdi
call fcn.140019c24
mov r8d, r12d
lea rdx, [rsp + 0x2c0]
mov ecx, r15d
call fcn.140011f68
mov ebx, eax
mov rsi, qword [rsp + 0x58]
mov r8, rsi
mov rdx, qword [rsp + 0x40]
mov rcx, rdi
call fcn.140019c24
mov r8, rsi
mov rdx, qword [rsp + 0x40]
mov ecx, ebx
call fcn.140011f68
not eax
mov dword [rdi + 0x5490], eax
xor r8d, r8d
mov rdx, qword [rsp + 0x38]
mov rcx, rdi
call fcn.140019bc0
xor edx, edx
lea rcx, [rsp + 0x68]
call fcn.14002b274
nop
lea r8d, [rbp + 6]
lea rdx, str.Protect
lea rcx, [rsp + 0x68]
call fcn.14002b138
mov edx, dword [rsp + 0x34]
lea rcx, [rsp + 0x68]
call fcn.14002b08c
mov rdx, r14
lea rcx, [rsp + 0x68]
call fcn.14002b108
lea rdx, [rdi + 0x60a8]
lea rcx, [rsp + 0x68]
call fcn.14002b394
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.140007ee0
mov r8d, ebp
xor edx, edx
mov rcx, rdi
call fcn.140019bc0
mov r11, qword [rdi + 0x1428]
cmp byte [r11 + 0x28b4], 0
jne 0x14000864e
lea rcx, str._b_b_b_b
call fcn.1400115ec
nop
lea rcx, [rsp + 0x68]
call fcn.14002b2bc
nop
cmp qword [rsp + 0x40], 0
je 0x14000866b
mov rcx, qword [rsp + 0x40]
call fcn.14003cf00
mov rcx, qword [rsp + 0x12c0]
xor rcx, rsp
call fcn.14003d0b0
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