Function at 0x140066d30
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
mov dword [rsp - 0x3c], ecx
sub rsp, 0x30
cmp qword [rcx + 0x1030], 0
mov rbp, rcx
jne 0x140067031
mov dword [rsp - 0x24], ecx
mov dword [rsp + 0x50], 0x4b93e8c2
add dword [rsp + 0x50], 0x2788f600
sub dword [rsp + 0x50], 0xc7ff89
mov dword [rsp - 0x38], edi
xor dword [rsp + 0x50], 0x39f6d323
xor dword [rsp + 0x50], 0x7681a85f
sub dword [rsp + 0x50], 0x49a7a41
xchg rsp, rsp
add dword [rsp + 0x50], 0x2fdc431d
mov ecx, 0x4a0d07ea
xor ecx, 0x3dcb18e6
xchg rdi, rdi
add ecx, 0x7cfef94
sub ecx, 0x111d588a
add ecx, 0x600bb12
sub ecx, 0x3908e101
mov r12, r12
sub ecx, 0x3b709017
mov dword [rsp + 0x54], 0x55d2584a
xor dword [rsp + 0x54], 0x1dce2e3c
mov dword [rsp - 0x38], 0x349a99e1
add dword [rsp + 0x54], 0x14aa3d5f
sub dword [rsp + 0x54], 0x219c9a04
add dword [rsp + 0x54], 0x223207a
mov dword [rsp - 0x44], esi
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], r14
mov dword [rsp - 0x18], esp
mov qword [rsp + 0x28], 0x2139ba6f
add qword [rsp + 0x28], 0xc7a3453
sub qword [rsp + 0x28], 0x244a546d
xchg r14, r14
add qword [rsp + 0x28], 0x532d297a
xor qword [rsp + 0x28], 0x113fca92
sub qword [rsp + 0x28], 0x4da90955
mov dword [rsp - 0x40], 0x6e76c3a
call fcn.140072200
xor edi, edi
mov qword [rsp + 0x20], rax
mov ecx, edi
mov dword [rsp - 0x3c], 0x278cc18d
nop dword [rax + rax]
movsx edx, byte [rsp + rcx + 0x50]
mov word [rax + rcx*2], dx
mov dword [rsp - 0x2c], esp
inc rcx
mov rsi, qword [rsp + 0x28]
cmp rcx, rsi
jb 0x140066e69
mov dword [rsp - 0x20], edi
cmp rsi, 4
lea rcx, [rsi + 1]
lea r14, [rsp + 0x20]
pushf
mov dword [rsp - 0x30], 0x37ebcac2
mov eax, 0x7611fdc7
sub eax, 0x74612040
xor eax, 0x361c931c
xchg rcx, rcx
xor eax, 0x540998d9
xor eax, 0x63a5d640
popf
cmova r14, qword [rsp + 0x20]
xchg rbp, rbp
mul rcx
pushf
movabs rcx, 0xffffffff6421abe2
mov rbp, rbp
sub rcx, 0x490bceb7
add rcx, 0x4f6dec47
xor rcx, 0x4e64bfc1
xchg rsp, rsp
add rcx, 0x7fffffff
add rcx, 0x5b18894d
popf
mov dword [rsp - 0x24], 0x751063c5
cmovo rax, rcx
mov rcx, rax
call fcn.140072200
mov rbx, rax
mov dword [rsp - 0x34], edi
mov r8, rdi
test rsi, rsi
je 0x140066f94
mov rdx, rax
xchg rbx, rbx
sub r14, rax
nop word [rax + rax]
movzx ecx, r8b
lea rdx, [rdx + 2]
mov dword [rsp - 0x30], edi
and cl, 3
mov eax, 0x79864a20
sub eax, 0x1aac7dc9
xchg r11, r11
sub eax, 0x1dd3ccbe
sub eax, 0xf30f7ec
xor eax, 0x7d6152bc
add eax, 0x29956b63
mov rbx, rbx
sub eax, 0x2528620f
shl cl, 3
inc r8
sar eax, cl
mov dword [rsp - 0x14], edi
movsx eax, al
xor ax, word [r14 + rdx - 2]
mov word [rdx - 2], ax
mov dword [rsp - 0x2c], 0x35a25757
cmp r8, rsi
jb 0x140066f36
xor edx, edx
mov dword [rsp - 0x44], 0xf3ac563
mov word [rbx + rsi*2], di
mov rcx, rbx
call fcn.14005ebf0
mov rcx, rbx
mov dword [rsp - 0x30], 0x7e87ac2b
mov qword [rbp + 0x1030], rax
call fcn.140072210
mov r14, qword [rsp + 0x58]
cmp rsi, 4
xchg rsi, rsi
jbe 0x140066fdd
mov rcx, qword [rsp + 0x20]
call fcn.140072210
mov dword [rsp - 0x3c], esi
mov rsi, qword [rbp + 0x1030]
test rsi, rsi
je 0x140067053
lea rbx, [rbp + 0xb50]
mov dword [rsp - 0x3c], esp
nop
mov edx, dword [rbx + 8]
mov rcx, rsi
xor edx, 0x2fa0562a
mov dword [rsp - 0x10], esp
call fcn.14005d1e0
test rax, rax
je 0x140067053
xor rax, qword [0x1400a2a90]
mov dword [rsp - 0x44], 0x711e1e63
inc rdi
mov qword [rbx], rax
add rbx, 0x10
xchg r8, r8
cmp rdi, 1
jb 0x140066ff5
mov al, 2
add al, 0x56
mov r9, r9
xor al, 0x48
add al, 0x26
add al, 0x1c
mov r12, r12
sub al, 0x51
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
mov r12, r12
pop rdi
pop rsi
pop rbp
ret
mov rbx, qword [rsp + 0x60]
xor al, al
add rsp, 0x30
pop rdi
mov dword [rsp - 0x2c], 0x1b3a74b
pop rsi
pop rbp
ret