Function at 0x140053828
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.140067b54
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.14002c2cc
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.140052ba8
mov ebx, eax
mov dword [rsp + 0x34], eax
mov r14, rbp
lea rcx, [rdi + 0x9e58]
lea edx, [rbp + 0x14]
call fcn.140044cd8
mov byte [rdi + 0x9e68], 1
mov edx, r12d
lea rcx, [rdi + 0xaec8]
call fcn.140044860
mov dword [rsp + 0x28], ebp
lea rax, [0x14010c468]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call fcn.14002d3f8
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.14000127c
nop
mov r8, qword [rsp + 0x48]
xor edx, edx
mov rcx, qword [rsp + 0x40]
call fcn.1400ea880
mov dword [rsp + 0x30], 0xfffffff
test rsi, rsi
jle 0x140053b16
call fcn.14006648c
cmp rsi, 0x200
jae 0x1400539e9
mov ebx, esi
movsxd rax, esi
mov r8d, 0x200
sub r8, rax
lea rcx, [rsp + rax + 0x130]
xor edx, edx
call fcn.1400ea880
xor esi, esi
jmp 0x1400539f1
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 0x140053a21
mov r8d, 0x200
lea rdx, [rsp + 0x130]
or ecx, 0xffffffff
call fcn.140038694
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 0x140053ad2
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.1400414cc
mov r8, rbp
lea rdx, [rsp + 0x330]
mov ecx, dword [rsp + 0x30]
call fcn.140038694
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 0x140053afd
mov rax, qword [rsp + 0x68]
cmp byte [rax + 0x6150], r14b
jne 0x140053afd
mov rdx, r14
shl rdx, 9
mov r8, qword [rsp + 0x38]
lea rcx, [0x14010d710]
call fcn.14006794c
inc r14
inc r12d
cmp r12d, dword [rsp + 0x34]
sbb eax, eax
and r12d, eax
test rsi, rsi
jg 0x1400539ba
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.1400414cc
mov r8d, r13d
lea rdx, [rsp + 0x330]
mov ecx, dword [rsp + 0x30]
call fcn.140038694
mov ebx, eax
mov rsi, qword [rsp + 0x60]
mov r8, rsi
mov rdx, qword [rsp + 0x40]
mov rcx, rdi
call fcn.1400414cc
mov r8, rsi
mov rdx, qword [rsp + 0x40]
mov ecx, ebx
call fcn.140038694
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.1400563a0
nop
lea r8d, [rbp + 6]
lea rdx, str.Protect
lea rcx, [rsp + 0x88]
call fcn.140056240
movsxd rdx, dword [rsp + 0x34]
lea rcx, [rsp + 0x88]
call fcn.1400560f8
mov rdx, r14
lea rcx, [rsp + 0x88]
call fcn.14005617c
lea rdx, [rdi + 0xae78]
lea rcx, [rsp + 0x88]
call fcn.1400562f0
lea r8, [rsi + r14*2]
xor ebx, ebx
mov dword [rsp + 0x28], ebx
lea rax, [0x14010c468]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor edx, edx
mov rcx, rdi
call fcn.14002d3f8
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.140067b54
nop
mov rcx, qword [rsp + 0x88]
cmp rcx, rbx
je 0x140053c5d
call fcn.1400e9aa4
nop
cmp qword [rsp + 0x40], rbx
je 0x140053c6e
mov rcx, qword [rsp + 0x40]
call fcn.1400e9aa4
mov rcx, qword [rsp + 0x1330]
xor rcx, rsp
call fcn.1400e9d00
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