Function at 0x140053830
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
push r12
push r13
push r14
mov eax, 0x1340
call fcn.1400fe810
sub rsp, rax
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rsp + 0x1380], rbx
mov qword [rsp + 0x1388], rbp
mov rax, qword [0x140132350]
xor rax, rsp
mov qword [rsp + 0x1330], rax
mov ebx, edx
mov rdi, rcx
xor ebp, ebp
mov dword [rsp + 0x120], ebp
mov dword [rsp + 0x124], ebp
mov dword [rsp + 0x128], 0x83
lea rcx, [rsp + 0xc0]
call fcn.140067be8
mov rax, qword [rdi + 0x68c0]
mov qword [rsp + 0x68], rax
mov byte [rdi + 0xc5a3], 1
mov rax, qword [rdi]
mov edx, dword [rdi + 0x7a80]
add rdx, qword [rdi + 0xc5a8]
xor r8d, r8d
mov rcx, rdi
call qword [rax + 0x18]
mov byte [rsp + 0x20], bpl
xor r9d, r9d
xor r8d, r8d
lea edx, [rbp + 1]
mov rcx, rdi
call fcn.14002c2a0
mov r11, qword [rdi]
lea r12d, [rbp + 2]
mov r8d, r12d
xor edx, edx
mov rcx, rdi
call qword [r11 + 0x18]
mov r11, qword [rdi]
mov rcx, rdi
call qword [r11 + 0x20]
mov rsi, rax
mov qword [rsp + 0x38], rax
mov rdx, rax
mov ecx, ebx
call fcn.140052bb0
mov ebx, eax
mov dword [rsp + 0x34], eax
mov r14, rbp
lea rcx, [rdi + 0x9e58]
lea edx, [rbp + 0x14]
call fcn.140044ce0
mov byte [rdi + 0x9e68], 1
mov edx, r12d
lea rcx, [rdi + 0xaec8]
call fcn.140044868
mov dword [rsp + 0x28], ebp
lea rax, [0x14010c490]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call fcn.14002d3cc
mov r11, qword [rdi]
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [r11 + 0x18]
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 + 0x60], rax
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.14000db34
nop
mov r8, qword [rsp + 0x48]
xor edx, edx
mov rcx, qword [rsp + 0x40]
call fcn.1400eada0
mov dword [rsp + 0x30], 0xfffffff
test rsi, rsi
jle 0x140053b1e
call fcn.140066460
cmp rsi, 0x200
jae 0x1400539f1
mov ebx, esi
movsxd rax, esi
mov r8d, 0x200
sub r8, rax
lea rcx, [rsp + rax + 0x130]
xor edx, edx
call fcn.1400eada0
xor esi, esi
jmp 0x1400539f9
mov ebx, 0x200
sub rsi, rbx
mov rax, qword [rdi]
movsxd r8, ebx
lea rdx, [rsp + 0x130]
mov rcx, rdi
call qword [rax + 0x10]
mov ecx, r12d
shl ecx, 9
add rcx, qword [rsp + 0x40]
lea rdx, [rsp + 0x130]
sub rdx, rcx
mov r8d, 0x200
mov al, byte [rdx + rcx]
xor byte [rcx], al
inc rcx
sub r8, 1
jne 0x140053a29
mov r8d, 0x200
lea rdx, [rsp + 0x130]
or ecx, 0xffffffff
call fcn.140038664
mov byte [rsp + rbp + 0x330], al
shr eax, 8
mov byte [rsp + rbp + 0x331], al
add r13d, 2
add rbp, 2
cmp r13d, 0x1000
jne 0x140053ada
mov qword [rsp + 0x78], rdi
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x20]
mov rbx, rax
mov qword [rsp + 0x80], rax
mov r9, qword [rdi]
xor edx, edx
lea r8d, [rdx + 2]
mov rcx, rdi
call qword [r9 + 0x18]
mov ebp, r13d
mov r8, rbp
lea rdx, [rsp + 0x330]
mov rcx, rdi
call fcn.1400414d4
mov r8, rbp
lea rdx, [rsp + 0x330]
mov ecx, dword [rsp + 0x30]
call fcn.140038664
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 + 0x18]
test r14b, r14b
jne 0x140053b05
mov rax, qword [rsp + 0x68]
cmp byte [rax + 0x6150], r14b
jne 0x140053b05
mov rdx, r14
shl rdx, 9
mov r8, qword [rsp + 0x38]
lea rcx, [0x14010d730]
call fcn.1400679e0
inc r14
inc r12d
cmp r12d, dword [rsp + 0x34]
sbb eax, eax
and r12d, eax
test rsi, rsi
jg 0x1400539c2
mov rax, qword [rdi]
mov ebp, 2
mov r8d, ebp
xor edx, edx
mov rcx, rdi
call qword [rax + 0x18]
mov r8d, r13d
lea rdx, [rsp + 0x330]
mov rcx, rdi
call fcn.1400414d4
mov r8d, r13d
lea rdx, [rsp + 0x330]
mov ecx, dword [rsp + 0x30]
call fcn.140038664
mov ebx, eax
mov rsi, qword [rsp + 0x60]
mov r8, rsi
mov rdx, qword [rsp + 0x40]
mov rcx, rdi
call fcn.1400414d4
mov r8, rsi
mov rdx, qword [rsp + 0x40]
mov ecx, ebx
call fcn.140038664
mov dword [rdi + 0xaec8], ebp
not eax
mov dword [rdi + 0xaecc], eax
mov rax, qword [rdi]
xor r8d, r8d
mov rdx, qword [rsp + 0x38]
mov rcx, rdi
call qword [rax + 0x18]
lea rcx, [rsp + 0x88]
call fcn.1400563a8
nop
lea r8d, [rbp + 6]
lea rdx, str.Protect
lea rcx, [rsp + 0x88]
call fcn.140056248
movsxd rdx, dword [rsp + 0x34]
lea rcx, [rsp + 0x88]
call fcn.140056100
mov rdx, r14
lea rcx, [rsp + 0x88]
call fcn.140056184
lea rdx, [rdi + 0xae78]
lea rcx, [rsp + 0x88]
call fcn.1400562f8
lea r8, [rsi + r14*2]
xor ebx, ebx
mov dword [rsp + 0x28], ebx
lea rax, [0x14010c490]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor edx, edx
mov rcx, rdi
call fcn.14002d3cc
mov r11, qword [rdi]
mov r8d, ebp
xor edx, edx
mov rcx, rdi
call qword [r11 + 0x18]
mov dword [rsp + 0x120], ebx
mov dword [rsp + 0x124], ebx
mov dword [rsp + 0x128], 0x84
lea rcx, [rsp + 0xc0]
call fcn.140067be8
nop
mov rcx, qword [rsp + 0x88]
cmp rcx, rbx
je 0x140053c65
call fcn.1400ea2a8
nop
cmp qword [rsp + 0x40], rbx
je 0x140053c76
mov rcx, qword [rsp + 0x40]
call fcn.1400ea2a8
mov rcx, qword [rsp + 0x1330]
xor rcx, rsp
call fcn.1400e9d80
lea r11, [rsp + 0x1340]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret