Function at 0x140033ff8
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1240]
mov eax, 0x1340
call fcn.140055f20
sub rsp, rax
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rsp + 0x1390], rbx
mov rax, qword [0x140081ee0]
xor rax, rsp
mov qword [rbp + 0x1230], rax
mov ebx, edx
mov rdi, rcx
xor r13d, r13d
mov qword [rbp + 0x20], r13
mov dword [rbp + 0x28], 0x83
lea rcx, [rbp - 0x40]
call fcn.1400479a4
mov rax, qword [rdi + 0x22b0]
mov qword [rsp + 0x40], rax
mov byte [rdi + 0x7f93], 1
mov rax, qword [rdi]
mov edx, dword [rdi + 0x3470]
add rdx, qword [rdi + 0x7f98]
xor r8d, r8d
mov rcx, rdi
call qword [rax + 0x18]
mov byte [rsp + 0x20], r13b
xor r9d, r9d
xor r8d, r8d
lea edx, [r13 + 1]
mov rcx, rdi
call fcn.14000b340
mov rax, qword [rdi]
lea r14d, [r13 + 2]
mov r8d, r14d
xor edx, edx
mov rcx, rdi
call qword [rax + 0x18]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x20]
mov rsi, rax
mov qword [rsp + 0x38], rax
mov rdx, rax
mov ecx, ebx
call fcn.140034594
mov ebx, eax
mov dword [rsp + 0x34], eax
mov r12d, r13d
lea rcx, [rdi + 0x5848]
lea edx, [r13 + 0x14]
call fcn.140024480
mov byte [rdi + 0x5858], 1
lea rcx, [rdi + 0x68b8]
mov edx, r14d
call fcn.14002422c
mov dword [rsp + 0x28], r13d
lea rax, [0x14006f784]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call fcn.140007ce8
mov rax, qword [rdi]
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [rax + 0x18]
mov r15d, r13d
mov r14d, r13d
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x68], r13
mov eax, ebx
shl eax, 9
cdqe
mov qword [rsp + 0x48], rax
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.1400079a4
nop
mov r8, qword [rsp + 0x58]
xor edx, edx
mov r13, qword [rsp + 0x50]
mov rcx, r13
call fcn.140058f40
mov dword [rsp + 0x30], 0xfffffff
jmp 0x1400342bc
call fcn.140046bb4
cmp rsi, 0x200
jae 0x1400341a8
mov ebx, esi
movsxd rax, esi
mov r8d, 0x200
sub r8, rax
lea rcx, [rbp + 0x30]
add rcx, rax
xor edx, edx
call fcn.140058f40
xor esi, esi
jmp 0x1400341b0
mov ebx, 0x200
sub rsi, rbx
mov rax, qword [rdi]
movsxd r8, ebx
lea rdx, [rbp + 0x30]
mov rcx, rdi
call qword [rax + 0x10]
mov ecx, r15d
shl ecx, 9
add rcx, r13
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 0x1400341d6
mov r8d, 0x200
lea rdx, [rbp + 0x30]
or ecx, 0xffffffff
call fcn.140017ac0
mov ecx, r14d
mov byte [rbp + rcx + 0x230], al
inc r14d
shr eax, 8
mov byte [rbp + r14 + 0x230], al
inc r14d
cmp r14d, 0x1000
jne 0x140034281
mov qword [rsp + 0x78], rdi
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x20]
mov rbx, rax
mov qword [rbp - 0x80], rax
mov r9, qword [rdi]
xor edx, edx
lea r8d, [rdx + 2]
mov rcx, rdi
call qword [r9 + 0x18]
mov r14d, 0x1000
mov r8d, r14d
lea rdx, [rbp + 0x230]
mov rcx, rdi
call fcn.1400212ac
mov r8d, r14d
lea rdx, [rbp + 0x230]
mov ecx, dword [rsp + 0x30]
call fcn.140017ac0
mov dword [rsp + 0x30], eax
xor r14d, r14d
mov rax, qword [rdi]
xor r8d, r8d
mov rdx, rbx
mov rcx, rdi
call qword [rax + 0x18]
nop
test r12b, r12b
jne 0x1400342ac
mov rax, qword [rsp + 0x40]
cmp byte [rax + 0x6150], r12b
jne 0x1400342ac
mov rdx, r12
shl rdx, 9
mov r8, qword [rsp + 0x38]
lea rcx, [0x14006f78c]
call fcn.140048840
inc r12
inc r15d
cmp r15d, dword [rsp + 0x34]
sbb eax, eax
and r15d, eax
test rsi, rsi
jg 0x14003417a
mov rax, qword [rdi]
mov r15d, 2
mov r8d, r15d
xor edx, edx
mov rcx, rdi
call qword [rax + 0x18]
mov r8d, r14d
lea rdx, [rbp + 0x230]
mov rcx, rdi
call fcn.1400212ac
mov r8d, r14d
lea rdx, [rbp + 0x230]
mov ecx, dword [rsp + 0x30]
call fcn.140017ac0
mov ebx, eax
mov rsi, qword [rsp + 0x48]
mov r8, rsi
mov rdx, r13
mov rcx, rdi
call fcn.1400212ac
mov r8, rsi
mov rdx, r13
mov ecx, ebx
call fcn.140017ac0
mov dword [rdi + 0x68b8], r15d
not eax
mov dword [rdi + 0x68bc], eax
mov rax, qword [rdi]
xor r8d, r8d
mov rdx, qword [rsp + 0x38]
mov rcx, rdi
call qword [rax + 0x18]
lea rcx, [rbp - 0x78]
call fcn.140036890
nop
lea r8d, [r15 + 6]
lea rdx, [0x14006f790]
lea rcx, [rbp - 0x78]
call fcn.140036aac
movsxd rdx, dword [rsp + 0x34]
lea rcx, [rbp - 0x78]
call fcn.1400369f8
mov rdx, r12
lea rcx, [rbp - 0x78]
call fcn.140036a7c
lea rdx, [rdi + 0x6868]
lea rcx, [rbp - 0x78]
call fcn.1400368c8
lea r8, [rsi + r12*2]
xor ebx, ebx
mov dword [rsp + 0x28], ebx
lea rax, [0x14006f79c]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor edx, edx
mov rcx, rdi
call fcn.140007ce8
mov rax, qword [rdi]
mov r8d, r15d
xor edx, edx
mov rcx, rdi
call qword [rax + 0x18]
mov rax, qword [rsp + 0x40]
cmp byte [rax + 0x6150], bl
jne 0x1400343d2
lea rcx, [0x14006f7a8]
call fcn.14001796c
mov qword [rbp + 0x20], rbx
mov dword [rbp + 0x28], 0x84
lea rcx, [rbp - 0x40]
call fcn.1400479a4
nop
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x1400343f6
call fcn.14005a938
nop
test r13, r13
je 0x140034403
mov rcx, r13
call fcn.14005a938
mov rcx, qword [rbp + 0x1230]
xor rcx, rsp
call fcn.140055f90
mov rbx, qword [rsp + 0x1390]
add rsp, 0x1340
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret