Function at 0x140033980
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
push r12
push r13
push r14
mov eax, 0x12d0
call fcn.1400614d0
sub rsp, rax
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rsp + 0x1310], rbx
mov qword [rsp + 0x1318], rbp
mov rax, qword [0x140071fd0]
xor rax, rsp
mov qword [rsp + 0x12c0], rax
mov ebx, edx
mov rdi, rcx
mov ecx, 0xe18
call fcn.14003f40c
mov rcx, rax
call fcn.140016d08
lea rcx, [0x140065ad0]
call fcn.140016d08
mov rax, qword [rdi + 0x5a80]
mov qword [rsp + 0x60], rax
mov byte [rdi + 0xb2a3], 1
mov rax, qword [rdi]
mov edx, dword [rdi + 0x6784]
add rdx, qword [rdi + 0xb2a8]
xor r8d, r8d
mov rcx, rdi
call qword [rax + 0x10]
xor ebp, ebp
mov byte [rsp + 0x20], bpl
xor r9d, r9d
xor r8d, r8d
lea edx, [rbp + 1]
mov rcx, rdi
call fcn.140009b10
mov r11, qword [rdi]
lea r12d, [rbp + 2]
mov r8d, r12d
xor edx, edx
mov rcx, rdi
call qword [r11 + 0x10]
mov r11, qword [rdi]
mov rcx, rdi
call qword [r11 + 0x18]
mov rsi, rax
mov qword [rsp + 0x38], rax
mov rdx, rax
mov ecx, ebx
call fcn.140032cdc
mov ebx, eax
mov dword [rsp + 0x34], eax
mov r14, rbp
lea rcx, [rdi + 0x8b58]
lea edx, [rbp + 0x14]
call fcn.140024024
mov byte [rdi + 0x8b68], 1
mov edx, r12d
lea rcx, [rdi + 0x9bc8]
call fcn.140023bac
mov dword [rsp + 0x28], ebp
lea rax, [0x140064e48]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call fcn.14000add8
mov r11, qword [rdi]
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [r11 + 0x10]
mov r12d, ebp
mov r13d, ebp
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x58], rbp
mov eax, ebx
shl eax, 9
cdqe
mov qword [rsp + 0x68], rax
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.1400075b8
nop
mov r8, qword [rsp + 0x48]
xor edx, edx
mov rcx, qword [rsp + 0x40]
call fcn.1400540d0
mov dword [rsp + 0x30], 0xfffffff
test rsi, rsi
jle 0x140033c70
call fcn.140045378
cmp rsi, 0x200
jae 0x140033b39
mov ebx, esi
movsxd rax, esi
mov r8d, 0x200
sub r8, rax
lea rcx, [rsp + rax + 0xc0]
xor edx, edx
call fcn.1400540d0
xor esi, esi
jmp 0x140033b41
mov ebx, 0x200
sub rsi, rbx
mov rax, qword [rdi]
movsxd r8, ebx
lea rdx, [rsp + 0xc0]
mov rcx, rdi
call qword [rax + 8]
mov ecx, r12d
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 0x140033b71
mov r8d, 0x200
lea rdx, [rsp + 0xc0]
or ecx, 0xffffffff
call fcn.140017944
mov byte [rsp + rbp + 0x2c0], al
shr eax, 8
mov byte [rsp + rbp + 0x2c1], al
add r13d, 2
add rbp, 2
cmp r13d, 0x1000
jne 0x140033c25
mov qword [rsp + 0xa8], rdi
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x18]
mov rbx, rax
mov qword [rsp + 0xb0], rax
mov r9, qword [rdi]
xor edx, edx
lea r8d, [rdx + 2]
mov rcx, rdi
call qword [r9 + 0x10]
mov ebp, r13d
mov r8, rbp
lea rdx, [rsp + 0x2c0]
mov rcx, rdi
call fcn.14002081c
mov r8, rbp
lea rdx, [rsp + 0x2c0]
mov ecx, dword [rsp + 0x30]
call fcn.140017944
mov dword [rsp + 0x30], eax
xor r13d, r13d
xor ebp, ebp
mov rax, qword [rdi]
xor r8d, r8d
mov rdx, rbx
mov rcx, rdi
call qword [rax + 0x10]
test r14b, r14b
jne 0x140033c57
mov rax, qword [rsp + 0x60]
cmp byte [rax + 0x614c], r14b
jne 0x140033c57
mov rcx, r14
shl rcx, 9
mov rdx, qword [rsp + 0x38]
call fcn.14004492c
mov edx, eax
lea rcx, str._b_b_b_b_3d__
call fcn.140016d08
inc r14
inc r12d
cmp r12d, dword [rsp + 0x34]
sbb eax, eax
and r12d, eax
test rsi, rsi
jg 0x140033b0a
mov rax, qword [rdi]
mov ebp, 2
mov r8d, ebp
xor edx, edx
mov rcx, rdi
call qword [rax + 0x10]
mov r8d, r13d
lea rdx, [rsp + 0x2c0]
mov rcx, rdi
call fcn.14002081c
mov r8d, r13d
lea rdx, [rsp + 0x2c0]
mov ecx, dword [rsp + 0x30]
call fcn.140017944
mov ebx, eax
mov rsi, qword [rsp + 0x68]
mov r8, rsi
mov rdx, qword [rsp + 0x40]
mov rcx, rdi
call fcn.14002081c
mov r8, rsi
mov rdx, qword [rsp + 0x40]
mov ecx, ebx
call fcn.140017944
mov dword [rdi + 0x9bc8], ebp
not eax
mov dword [rdi + 0x9bcc], eax
mov rax, qword [rdi]
xor r8d, r8d
mov rdx, qword [rsp + 0x38]
mov rcx, rdi
call qword [rax + 0x10]
lea rcx, [rsp + 0x78]
call fcn.140036508
nop
lea r8d, [rbp + 6]
lea rdx, str.Protect
lea rcx, [rsp + 0x78]
call fcn.140036408
movsxd rdx, dword [rsp + 0x34]
lea rcx, [rsp + 0x78]
call fcn.1400362c0
mov rdx, r14
lea rcx, [rsp + 0x78]
call fcn.140036344
lea rdx, [rdi + 0x9b78]
lea rcx, [rsp + 0x78]
call fcn.140036460
lea r8, [rsi + r14*2]
and dword [rsp + 0x28], 0
lea rax, [0x140064e48]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor edx, edx
mov rcx, rdi
call fcn.14000add8
mov r11, qword [rdi]
mov r8d, ebp
xor edx, edx
mov rcx, rdi
call qword [r11 + 0x10]
mov rax, qword [rsp + 0x60]
cmp byte [rax + 0x614c], 0
jne 0x140033d88
lea rcx, str._b_b_b_b
call fcn.140016d08
nop
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x140033d98
call fcn.140053fa0
nop
cmp qword [rsp + 0x40], 0
je 0x140033daa
mov rcx, qword [rsp + 0x40]
call fcn.140053fa0
mov rcx, qword [rsp + 0x12c0]
xor rcx, rsp
call fcn.140053930
lea r11, [rsp + 0x12d0]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret