Function at 0x140035488
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x11e0]
mov eax, 0x12e0
call fcn.140057d70
sub rsp, rax
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rsp + 0x1330], rbx
mov rax, qword [0x140084ee0]
xor rax, rsp
mov qword [rbp + 0x11d0], rax
mov ebx, edx
mov rdi, rcx
mov ecx, 0x89
call fcn.140006200
mov rax, qword [rdi + 0x22b8]
mov qword [rsp + 0x40], rax
mov byte [rdi + 0x7f63], 1
mov rax, qword [rdi]
mov edx, dword [rdi + 0x3478]
add rdx, qword [rdi + 0x7f68]
xor r8d, r8d
mov rcx, rdi
call qword [rax + 0x20]
mov byte [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
mov rcx, rdi
call fcn.14000b0b0
mov rax, qword [rdi]
mov r14d, 2
mov r8d, r14d
xor edx, edx
mov rcx, rdi
call qword [rax + 0x20]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x28]
mov rsi, rax
mov qword [rsp + 0x38], rax
mov rdx, rax
mov ecx, ebx
call fcn.1400359e8
mov r12d, eax
mov dword [rsp + 0x30], eax
xor r15d, r15d
lea rcx, [rdi + 0x5860]
lea edx, [r14 + 0x12]
call fcn.140025814
mov byte [rdi + 0x5870], 1
lea rcx, [rdi + 0x68e0]
mov edx, r14d
call fcn.1400255b4
and dword [rsp + 0x28], r15d
lea rax, [0x1400719e4]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call fcn.1400077dc
mov rax, qword [rdi]
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [rax + 0x20]
xor r14d, r14d
xor ebx, ebx
mov eax, r12d
shl eax, 9
cdqe
mov qword [rsp + 0x48], rax
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.14000705c
nop
mov r8, qword [rsp + 0x58]
xor edx, edx
mov rcx, qword [rsp + 0x50]
call fcn.140059eb0
mov r13d, 0xfffffff
jmp 0x14003572c
call fcn.140048e84
mov ecx, 0x200
cmp rsi, rcx
jae 0x140035614
mov r12d, esi
movsxd rax, esi
mov r8d, ecx
sub r8, rax
lea rcx, [rbp - 0x30]
add rcx, rax
xor edx, edx
call fcn.140059eb0
xor esi, esi
jmp 0x14003561a
mov r12d, ecx
sub rsi, rcx
mov rax, qword [rdi]
movsxd r8, r12d
lea rdx, [rbp - 0x30]
mov rcx, rdi
call qword [rax + 0x18]
mov ecx, r14d
shl ecx, 9
add rcx, qword [rsp + 0x50]
lea rdx, [rbp - 0x30]
sub rdx, rcx
mov r8d, 0x200
mov al, byte [rdx + rcx]
xor byte [rcx], al
inc rcx
sub r8, 1
jne 0x140035642
mov r8d, 0x200
lea rdx, [rbp - 0x30]
or ecx, 0xffffffff
call fcn.140017f6c
mov byte [rbp + rbx + 0x1d0], al
inc ebx
shr eax, 8
mov byte [rbp + rbx + 0x1d0], al
inc ebx
cmp ebx, 0x1000
jne 0x1400356ee
mov qword [rbp - 0x80], rdi
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x28]
mov r12, rax
mov qword [rbp - 0x78], rax
mov r9, qword [rdi]
xor edx, edx
lea r8d, [rdx + 2]
mov rcx, rdi
call qword [r9 + 0x20]
mov ebx, 0x1000
mov r8d, ebx
lea rdx, [rbp + 0x1d0]
mov rcx, rdi
call fcn.140021cf0
mov r8d, ebx
lea rdx, [rbp + 0x1d0]
mov ecx, r13d
call fcn.140017f6c
mov r13d, eax
xor ebx, ebx
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x30]
test al, al
je 0x1400356ee
mov rax, qword [rdi]
xor r8d, r8d
mov rdx, r12
mov rcx, rdi
call qword [rax + 0x20]
nop
test r15b, r15b
jne 0x140035719
mov rax, qword [rsp + 0x40]
cmp byte [rax + 0x6150], r15b
jne 0x140035719
mov rdx, r15
shl rdx, 9
mov r8, qword [rsp + 0x38]
lea rcx, [0x1400719ec]
call fcn.14004abcc
inc r15
inc r14d
mov r12d, dword [rsp + 0x30]
cmp r14d, r12d
sbb eax, eax
and r14d, eax
test rsi, rsi
jg 0x1400355e7
mov rax, qword [rdi]
mov r14d, 2
mov r8d, r14d
xor edx, edx
mov rcx, rdi
call qword [rax + 0x20]
mov r8, rbx
lea rdx, [rbp + 0x1d0]
mov rcx, rdi
call fcn.140021cf0
mov r8, rbx
lea rdx, [rbp + 0x1d0]
mov ecx, r13d
call fcn.140017f6c
mov ebx, eax
mov rsi, qword [rsp + 0x48]
mov r8, rsi
mov rdx, qword [rsp + 0x50]
mov rcx, rdi
call fcn.140021cf0
mov r8, rsi
mov rdx, qword [rsp + 0x50]
mov ecx, ebx
call fcn.140017f6c
mov dword [rdi + 0x68e0], r14d
not eax
mov dword [rdi + 0x68e4], eax
mov rax, qword [rdi]
xor r8d, r8d
mov rdx, qword [rsp + 0x38]
mov rcx, rdi
call qword [rax + 0x20]
lea rcx, [rbp - 0x70]
call fcn.140037944
nop
lea r8d, [r14 + 6]
lea rdx, [0x1400719f0]
lea rcx, [rbp - 0x70]
call fcn.140037b64
movsxd rdx, r12d
lea rcx, [rbp - 0x70]
call fcn.140037ab0
mov rdx, r15
lea rcx, [rbp - 0x70]
call fcn.140037b34
lea rdx, [rdi + 0x6888]
lea rcx, [rbp - 0x70]
call fcn.140037980
lea r8, [rsi + r15*2]
and dword [rsp + 0x28], 0
lea rax, [0x1400719fc]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor edx, edx
mov rcx, rdi
call fcn.1400077dc
mov rax, qword [rdi]
mov r8d, r14d
xor edx, edx
mov rcx, rdi
call qword [rax + 0x20]
mov rax, qword [rsp + 0x40]
cmp byte [rax + 0x6150], 0
jne 0x140035843
lea rcx, [0x140071a08]
call fcn.140017e18
mov ecx, 0x8a
call fcn.140006200
nop
lea rcx, [rbp - 0x70]
call fcn.1400014a0
nop
lea rcx, [rsp + 0x50]
call fcn.1400072c0
mov rcx, qword [rbp + 0x11d0]
xor rcx, rsp
call fcn.140057de0
mov rbx, qword [rsp + 0x1330]
add rsp, 0x12e0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret