Function at 0x140035c1c
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0xa8
test edx, edx
je 0x140035c13
mov eax, dword [rcx + 0x7f60]
cmp eax, 2
jne 0x140035bea
add rsp, 0xa8
jmp 0x140035c1c
cmp eax, 3
jne 0x140035c13
mov r8d, edx
mov rdx, rcx
lea rcx, [rsp + 0x20]
call fcn.140035438
lea rcx, [rsp + 0x20]
call fcn.140035594
lea rcx, [rsp + 0x20]
call fcn.140035008
add rsp, 0xa8
ret
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x11d0]
mov eax, 0x12d0
call fcn.140059170
sub rsp, rax
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rsp + 0x1320], rbx
mov rax, qword [0x1400886c0]
xor rax, rsp
mov qword [rbp + 0x11c0], rax
mov ebx, edx
mov rdi, rcx
mov ecx, 0x8a
call fcn.1400061c4
mov rax, qword [rdi + 0x22c0]
mov qword [rsp + 0x40], rax
mov byte [rdi + 0x7f6b], 1
mov rax, qword [rdi]
mov edx, dword [rdi + 0x3480]
add rdx, qword [rdi + 0x7f70]
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.14000b058
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.140036144
mov r12d, eax
mov dword [rsp + 0x30], eax
xor r15d, r15d
lea rcx, [rdi + 0x5868]
lea edx, [r14 + 0x12]
call fcn.140025e28
mov byte [rdi + 0x5878], 1
lea rcx, [rdi + 0x68e8]
mov edx, r14d
call fcn.140025b98
and dword [rsp + 0x28], r15d
lea rax, [0x140074394]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call fcn.140007770
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.140007020
nop
mov r8, qword [rsp + 0x58]
xor edx, edx
mov rcx, qword [rsp + 0x50]
call fcn.14005b2b0
mov r13d, 0xfffffff
jmp 0x140035ea9
call fcn.14004a2c8
mov ecx, 0x200
cmp rsi, rcx
jae 0x140035da8
mov r12d, esi
movsxd rax, esi
mov r8d, ecx
sub r8, rax
lea rcx, [rbp - 0x40]
add rcx, rax
xor edx, edx
call fcn.14005b2b0
xor esi, esi
jmp 0x140035dae
mov r12d, ecx
sub rsi, rcx
mov rax, qword [rdi]
movsxd r8, r12d
lea rdx, [rbp - 0x40]
mov rcx, rdi
call qword [rax + 0x18]
mov ecx, r14d
shl ecx, 9
add rcx, qword [rsp + 0x50]
lea rdx, [rbp - 0x40]
sub rdx, rcx
mov r8d, 0x200
mov al, byte [rdx + rcx]
xor byte [rcx], al
inc rcx
sub r8, 1
jne 0x140035dd6
mov r8d, 0x200
lea rdx, [rbp - 0x40]
or ecx, 0xffffffff
call fcn.140017efc
mov byte [rbp + rbx + 0x1c0], al
inc ebx
shr eax, 8
mov byte [rbp + rbx + 0x1c0], al
inc ebx
mov r12d, 0x1000
cmp ebx, r12d
jne 0x140035e6b
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x28]
mov rbx, rax
mov r9, qword [rdi]
xor edx, edx
lea r8d, [rdx + 2]
mov rcx, rdi
call qword [r9 + 0x20]
mov r8d, r12d
lea rdx, [rbp + 0x1c0]
mov rcx, rdi
call fcn.140021d80
mov r9, qword [rdi]
xor r8d, r8d
mov rdx, rbx
mov rcx, rdi
call qword [r9 + 0x20]
mov r8d, r12d
lea rdx, [rbp + 0x1c0]
mov ecx, r13d
call fcn.140017efc
mov r13d, eax
xor ebx, ebx
test r15b, r15b
jne 0x140035e96
mov rax, qword [rsp + 0x40]
cmp byte [rax + 0x6150], r15b
jne 0x140035e96
mov rdx, r15
shl rdx, 9
mov r8, qword [rsp + 0x38]
lea rcx, [0x14007439c]
call fcn.14004bf24
inc r15
inc r14d
mov r12d, dword [rsp + 0x30]
cmp r14d, r12d
sbb eax, eax
and r14d, eax
test rsi, rsi
jg 0x140035d7b
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 + 0x1c0]
mov rcx, rdi
call fcn.140021d80
mov r8, rbx
lea rdx, [rbp + 0x1c0]
mov ecx, r13d
call fcn.140017efc
mov ebx, eax
mov rsi, qword [rsp + 0x48]
mov r8, rsi
mov rdx, qword [rsp + 0x50]
mov rcx, rdi
call fcn.140021d80
mov r8, rsi
mov rdx, qword [rsp + 0x50]
mov ecx, ebx
call fcn.140017efc
mov dword [rdi + 0x68e8], r14d
not eax
mov dword [rdi + 0x68ec], eax
mov rax, qword [rdi]
xor r8d, r8d
mov rdx, qword [rsp + 0x38]
mov rcx, rdi
call qword [rax + 0x20]
lea rcx, [rbp - 0x80]
call fcn.140038030
nop
lea r8d, [r14 + 6]
lea rdx, [0x1400743a0]
lea rcx, [rbp - 0x80]
call fcn.140038250
movsxd rdx, r12d
lea rcx, [rbp - 0x80]
call fcn.14003819c
mov rdx, r15
lea rcx, [rbp - 0x80]
call fcn.140038220
lea rdx, [rdi + 0x6890]
lea rcx, [rbp - 0x80]
call fcn.14003806c
lea r8, [rsi + r15*2]
and dword [rsp + 0x28], 0
lea rax, [0x1400743ac]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor edx, edx
mov rcx, rdi
call fcn.140007770
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 0x140035fc0
lea rcx, [0x1400743b8]
call fcn.140017da8
mov ecx, 0x8b
call fcn.1400061c4
nop
lea rcx, [rbp - 0x80]
call fcn.1400013c0
nop
lea rcx, [rsp + 0x50]
call fcn.14000728c
mov rcx, qword [rbp + 0x11c0]
xor rcx, rsp
call fcn.1400591e0
mov rbx, qword [rsp + 0x1320]
add rsp, 0x12d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret