Function at 0x140046950
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rdx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x98
cmp byte [rcx], 0
je 0x140046eb3
cmp byte [rcx + 1], 0
jne 0x1400473e9
mov rax, rcx
mov byte [rcx + 1], 1
not rax
lea r8, [rcx + 3]
mov qword [rsp + 0x78], rax
mov r11, 0xfffffffffffffffe
mov eax, 9
mov ebx, 1
sub rax, rcx
mov edi, 2
mov qword [rsp + 0xe0], rax
mov esi, 3
mov eax, 0xa
mov ebp, 4
sub rax, rcx
mov r14d, 5
mov qword [rsp + 0xf0], rax
mov r15d, 6
mov eax, 0xb
mov r12d, 7
sub rax, rcx
mov r13d, 8
mov qword [rsp + 0xf8], rax
sub r11, rcx
mov eax, 0xc
sub rbx, rcx
sub rax, rcx
sub rdi, rcx
mov qword [rsp + 0x20], rax
sub rsi, rcx
mov eax, 0xd
sub rbp, rcx
sub rax, rcx
sub r14, rcx
mov qword [rsp + 0x28], rax
sub r15, rcx
mov eax, 0xe
sub r12, rcx
sub rax, rcx
sub r13, rcx
mov qword [rsp + 0x30], rax
mov r10, 0xfffffffffffffffd
mov eax, 0xf
movabs rdx, 0xd28f2c51de26cd5
sub rax, rcx
movabs r9, 0x137051795078ccd5
mov qword [rsp + 0x38], rax
mov eax, 0x10
sub rax, rcx
mov qword [rsp + 0x40], rax
mov eax, 0x11
sub rax, rcx
mov qword [rsp + 0x48], rax
mov eax, 0x12
sub rax, rcx
mov qword [rsp + 0x50], rax
mov eax, 0x13
sub rax, rcx
mov qword [rsp + 0x58], rax
mov eax, 0x14
sub rax, rcx
mov qword [rsp + 0x60], rax
mov eax, 0x15
sub rax, rcx
mov qword [rsp + 0x68], rax
mov eax, 0x16
sub rax, rcx
mov qword [rsp + 0x70], rax
sub r10, rcx
nop dword [rax]
lea rax, [r8 + r10]
xor rax, qword [rcx + 0x38]
xor rax, rdx
mov rdx, rax
shl rdx, 0xd
xor rdx, rax
mov rax, rdx
shr rax, 7
xor al, dl
xor byte [r8 - 1], al
lea rax, [r8 + r11]
xor rax, qword [rcx + 0x38]
mov rdx, rax
shl rdx, 0xd
xor rdx, rax
xor rdx, r9
mov rax, rdx
shr rax, 7
xor al, dl
xor byte [r8], al
mov rax, qword [rsp + 0x78]
add rax, r8
xor rax, qword [rcx + 0x38]
mov rdx, rax
shl rdx, 0xd
xor rdx, rax
xor rdx, r9
mov rax, rdx
shr rax, 7
xor al, dl
xor byte [r8 + 1], al
mov rax, r8
sub rax, rcx
xor rax, qword [rcx + 0x38]
mov rdx, rax
shl rdx, 0xd
xor rdx, rax
xor rdx, r9
mov rax, rdx
shr rax, 7
xor al, dl
xor byte [r8 + 2], al
lea rax, [r8 + rbx]
xor rax, qword [rcx + 0x38]
mov rdx, rax
shl rdx, 0xd
xor rdx, rax
xor rdx, r9
mov rax, rdx
shr rax, 7
xor al, byte [r8 + 3]
xor al, dl
mov byte [r8 + 3], al
lea rax, [r8 + rdi]
xor rax, qword [rcx + 0x38]
mov rdx, rax
shl rdx, 0xd
xor rdx, rax
xor rdx, r9
mov rax, rdx
shr rax, 7
xor al, dl
xor byte [r8 + 4], al
lea rax, [r8 + rsi]
xor rax, qword [rcx + 0x38]
mov rdx, rax
shl rdx, 0xd
xor rdx, rax
xor rdx, r9
mov rax, rdx
shr rax, 7
xor al, dl
xor byte [r8 + 5], al
lea rax, [r8 + rbp]
xor rax, qword [rcx + 0x38]
mov rdx, rax
shl rdx, 0xd
xor rdx, rax
xor rdx, r9
mov rax, rdx
shr rax, 7
xor al, dl
xor byte [r8 + 6], al
lea rax, [r8 + r14]
xor rax, qword [rcx + 0x38]
mov rdx, rax
shl rdx, 0xd
xor rdx, rax
xor rdx, r9
mov rax, rdx
shr rax, 7
xor al, byte [r8 + 7]
xor al, dl
mov byte [r8 + 7], al
lea rax, [r8 + r15]
xor rax, qword [rcx + 0x38]
mov rdx, rax
shl rdx, 0xd
xor rdx, rax
xor rdx, r9
mov rax, rdx
shr rax, 7
xor al, dl
xor byte [r8 + 8], al
lea rax, [r8 + r12]
xor rax, qword [rcx + 0x38]
mov rdx, rax
shl rdx, 0xd
xor rdx, rax
xor rdx, r9
mov rax, rdx
shr rax, 7
xor al, dl
xor byte [r8 + 9], al
lea rax, [r8 + r13]
xor rax, qword [rcx + 0x38]
mov rdx, rax
shl rdx, 0xd
xor rdx, rax
xor rdx, r9
mov rax, rdx
shr rax, 7
xor al, dl
xor byte [r8 + 0xa], al
mov rax, qword [rsp + 0xe0]
add rax, r8
xor rax, qword [rcx + 0x38]
mov rdx, rax
shl rdx, 0xd
xor rdx, rax
xor rdx, r9
mov rax, rdx
shr rax, 7
xor al, byte [r8 + 0xb]
xor al, dl
mov byte [r8 + 0xb], al
mov rax, qword [rsp + 0xf0]
add rax, r8
xor rax, qword [rcx + 0x38]
mov rdx, rax
shl rdx, 0xd
xor rdx, rax
xor rdx, r9
mov rax, rdx
shr rax, 7
xor al, dl
xor byte [r8 + 0xc], al
mov rax, qword [rsp + 0xf8]
add rax, r8
xor rax, qword [rcx + 0x38]
mov rdx, rax
shl rdx, 0xd
xor rdx, rax
xor rdx, r9
mov rax, rdx
shr rax, 7
xor al, dl
xor byte [r8 + 0xd], al
mov rax, qword [rsp + 0x20]
add rax, r8
xor rax, qword [rcx + 0x38]
mov rdx, rax
shl rdx, 0xd
xor rdx, rax
xor rdx, r9
mov rax, rdx
shr rax, 7
xor al, dl
xor byte [r8 + 0xe], al
mov rax, qword [rsp + 0x28]
add rax, r8
xor rax, qword [rcx + 0x38]
mov rdx, rax
shl rdx, 0xd
xor rdx, rax
xor rdx, r9
mov rax, rdx
shr rax, 7
xor al, byte [r8 + 0xf]
xor al, dl
mov byte [r8 + 0xf], al
mov rax, qword [rsp + 0x30]
add rax, r8
xor rax, qword [rcx + 0x38]
mov rdx, rax
shl rdx, 0xd
xor rdx, rax
xor rdx, r9
mov rax, rdx
shr rax, 7
xor al, dl
xor byte [r8 + 0x10], al
mov rax, qword [rsp + 0x38]
add rax, r8
xor rax, qword [rcx + 0x38]
mov rdx, rax
shl rdx, 0xd
xor rdx, rax
xor rdx, r9
mov rax, rdx
shr rax, 7
xor al, dl
xor byte [r8 + 0x11], al
mov rax, qword [rsp + 0x40]
add rax, r8
xor rax, qword [rcx + 0x38]
mov rdx, rax
shl rdx, 0xd
xor rdx, rax
xor rdx, r9
mov rax, rdx
shr rax, 7
xor al, dl
xor byte [r8 + 0x12], al
mov rax, qword [rsp + 0x48]
add rax, r8
xor rax, qword [rcx + 0x38]
mov rdx, rax
shl rdx, 0xd
xor rdx, rax
xor rdx, r9
mov rax, rdx
shr rax, 7
xor al, byte [r8 + 0x13]
xor al, dl
mov byte [r8 + 0x13], al
mov rax, qword [rsp + 0x50]
add rax, r8
xor rax, qword [rcx + 0x38]
mov rdx, rax
shl rdx, 0xd
xor rdx, rax
xor rdx, r9
mov rax, rdx
shr rax, 7
xor al, dl
xor byte [r8 + 0x14], al
mov rax, qword [rsp + 0x58]
add rax, r8
xor rax, qword [rcx + 0x38]
mov rdx, rax
shl rdx, 0xd
xor rdx, rax
xor rdx, r9
mov rax, rdx
shr rax, 7
xor al, dl
xor byte [r8 + 0x15], al
mov rax, qword [rsp + 0x60]
add rax, r8
xor rax, qword [rcx + 0x38]
mov rdx, rax
shl rdx, 0xd
xor rdx, rax
xor rdx, r9
mov rax, rdx
shr rax, 7
xor al, dl
xor byte [r8 + 0x16], al
mov rax, qword [rsp + 0x68]
add rax, r8
xor rax, qword [rcx + 0x38]
mov rdx, rax
shl rdx, 0xd
xor rdx, rax
xor rdx, r9
mov rax, rdx
shr rax, 7
xor al, byte [r8 + 0x17]
xor al, dl
mov byte [r8 + 0x17], al
mov rax, qword [rsp + 0x70]
add rax, r8
xor rax, qword [rcx + 0x38]
mov rdx, rax
shl rdx, 0xd
xor rdx, rax
xor rdx, r9
mov rax, rdx
shr rax, 7
xor al, dl
movabs rdx, 0xd28f2c51de26cd5
xor byte [r8 + 0x18], al
add r8, 0x1a
lea rax, [r8 + r10]
cmp rax, 0x34
jb 0x140046ac0
jmp 0x1400473e9
mov rax, rcx
lea r8, [rcx + 3]
not rax
mov r11, 0xfffffffffffffffe
mov qword [rsp + 0x78], rax
mov ebx, 1
mov eax, 9
mov edi, 2
sub rax, rcx
mov esi, 3
mov qword [rsp + 0xe0], rax
mov ebp, 4
mov eax, 0xa
mov r14d, 5
sub rax, rcx
mov r15d, 6
mov qword [rsp + 0xf0], rax
mov r12d, 7
mov eax, 0xb
mov r13d, 8
sub rax, rcx
sub r11, rcx
mov qword [rsp + 0xf8], rax
sub rbx, rcx
mov eax, 0xc
sub rdi, rcx
sub rax, rcx
sub rsi, rcx
mov qword [rsp + 0x20], rax
sub rbp, rcx
mov eax, 0xd
sub r14, rcx
sub rax, rcx
sub r15, rcx
mov qword [rsp + 0x28], rax
sub r12, rcx
mov eax, 0xe
sub r13, rcx
sub rax, rcx
mov r10, 0xfffffffffffffffd
mov qword [rsp + 0x30], rax
movabs rdx, 0xd28f2c51de26cd5
mov eax, 0xf
movabs r9, 0x137051795078ccd5
sub rax, rcx
mov qword [rsp + 0x38], rax
mov eax, 0x10
sub rax, rcx
mov qword [rsp + 0x40], rax
mov eax, 0x11
sub rax, rcx
mov qword [rsp + 0x48], rax
mov eax, 0x12
sub rax, rcx
mov qword [rsp + 0x50], rax
mov eax, 0x13
sub rax, rcx
mov qword [rsp + 0x58], rax
mov eax, 0x14
sub rax, rcx
mov qword [rsp + 0x60], rax
mov eax, 0x15
sub rax, rcx
mov qword [rsp + 0x68], rax
mov eax, 0x16
sub rax, rcx
mov qword [rsp + 0x70], rax
sub r10, rcx
nop dword [rax]
lea rax, [r8 + r10]
xor rax, qword [rcx + 0x38]
xor rax, rdx
mov rdx, rax
shl rdx, 0xd
xor rdx, rax
mov rax, rdx
shr rax, 7
xor al, dl
xor byte [r8 - 1], al
lea rax, [r8 + r11]
xor rax, qword [rcx + 0x38]
mov rdx, rax
shl rdx, 0xd
xor rdx, rax
xor rdx, r9
mov rax, rdx
shr rax, 7
xor al, byte [r8]
xor al, dl
mov byte [r8], al
mov rax, qword [rsp + 0x78]
add rax, r8
xor rax, qword [rcx + 0x38]
mov rdx, rax
shl rdx, 0xd
xor rdx, rax
xor rdx, r9
mov rax, rdx
shr rax, 7
xor al, dl
xor byte [r8 + 1], al
mov rax, r8
sub rax, rcx
xor rax, qword [rcx + 0x38]
mov rdx, rax
shl rdx, 0xd
xor rdx, rax
xor rdx, r9
mov rax, rdx
shr rax, 7
xor al, byte [r8 + 2]
xor al, dl
mov byte [r8 + 2], al
lea rax, [r8 + rbx]
xor rax, qword [rcx + 0x38]
mov rdx, rax
shl rdx, 0xd
xor rdx, rax
xor rdx, r9
mov rax, rdx
shr rax, 7
xor al, dl
xor byte [r8 + 3], al
lea rax, [r8 + rdi]
xor rax, qword [rcx + 0x38]
mov rdx, rax
shl rdx, 0xd
xor rdx, rax
xor rdx, r9
mov rax, rdx
shr rax, 7
xor al, dl
xor byte [r8 + 4], al
lea rax, [r8 + rsi]
xor rax, qword [rcx + 0x38]
mov rdx, rax
shl rdx, 0xd
xor rdx, rax
xor rdx, r9
mov rax, rdx
shr rax, 7
xor al, dl
xor byte [r8 + 5], al
lea rax, [r8 + rbp]
xor rax, qword [rcx + 0x38]
mov rdx, rax
shl rdx, 0xd
xor rdx, rax
xor rdx, r9
mov rax, rdx
shr rax, 7
xor al, byte [r8 + 6]
xor al, dl
mov byte [r8 + 6], al
lea rax, [r8 + r14]
xor rax, qword [rcx + 0x38]
mov rdx, rax
shl rdx, 0xd
xor rdx, rax
xor rdx, r9
mov rax, rdx
shr rax, 7
xor al, dl
xor byte [r8 + 7], al
lea rax, [r8 + r15]
xor rax, qword [rcx + 0x38]
mov rdx, rax
shl rdx, 0xd
xor rdx, rax
xor rdx, r9
mov rax, rdx
shr rax, 7
xor al, dl
xor byte [r8 + 8], al
lea rax, [r8 + r12]
xor rax, qword [rcx + 0x38]
mov rdx, rax
shl rdx, 0xd
xor rdx, rax
xor rdx, r9
mov rax, rdx
shr rax, 7
xor al, dl
xor byte [r8 + 9], al
lea rax, [r8 + r13]
xor rax, qword [rcx + 0x38]
mov rdx, rax
shl rdx, 0xd
xor rdx, rax
xor rdx, r9
mov rax, rdx
shr rax, 7
xor al, byte [r8 + 0xa]
xor al, dl
mov byte [r8 + 0xa], al
mov rax, qword [rsp + 0xe0]
add rax, r8
xor rax, qword [rcx + 0x38]
mov rdx, rax
shl rdx, 0xd
xor rdx, rax
xor rdx, r9
mov rax, rdx
shr rax, 7
xor al, dl
xor byte [r8 + 0xb], al
mov rax, qword [rsp + 0xf0]
add rax, r8
xor rax, qword [rcx + 0x38]
mov rdx, rax
shl rdx, 0xd
xor rdx, rax
xor rdx, r9
mov rax, rdx
shr rax, 7
xor al, dl
xor byte [r8 + 0xc], al
mov rax, qword [rsp + 0xf8]
add rax, r8
xor rax, qword [rcx + 0x38]
mov rdx, rax
shl rdx, 0xd
xor rdx, rax
xor rdx, r9
mov rax, rdx
shr rax, 7
xor al, dl
xor byte [r8 + 0xd], al
mov rax, qword [rsp + 0x20]
add rax, r8
xor rax, qword [rcx + 0x38]
mov rdx, rax
shl rdx, 0xd
xor rdx, rax
xor rdx, r9
mov rax, rdx
shr rax, 7
xor al, byte [r8 + 0xe]
xor al, dl
mov byte [r8 + 0xe], al
mov rax, qword [rsp + 0x28]
add rax, r8
xor rax, qword [rcx + 0x38]
mov rdx, rax
shl rdx, 0xd
xor rdx, rax
xor rdx, r9
mov rax, rdx
shr rax, 7
xor al, dl
xor byte [r8 + 0xf], al
mov rax, qword [rsp + 0x30]
add rax, r8
xor rax, qword [rcx + 0x38]
mov rdx, rax
shl rdx, 0xd
xor rdx, rax
xor rdx, r9
mov rax, rdx
shr rax, 7
xor al, dl
xor byte [r8 + 0x10], al
mov rax, qword [rsp + 0x38]
add rax, r8
xor rax, qword [rcx + 0x38]
mov rdx, rax
shl rdx, 0xd
xor rdx, rax
xor rdx, r9
mov rax, rdx
shr rax, 7
xor al, byte [r8 + 0x11]
xor al, dl
mov byte [r8 + 0x11], al
mov rax, qword [rsp + 0x40]
add rax, r8
xor rax, qword [rcx + 0x38]
mov rdx, rax
shl rdx, 0xd
xor rdx, rax
xor rdx, r9
mov rax, rdx
shr rax, 7
xor al, byte [r8 + 0x12]
xor al, dl
mov byte [r8 + 0x12], al
mov rax, qword [rsp + 0x48]
add rax, r8
xor rax, qword [rcx + 0x38]
mov rdx, rax
shl rdx, 0xd
xor rdx, rax
xor rdx, r9
mov rax, rdx
shr rax, 7
xor al, dl
xor byte [r8 + 0x13], al
mov rax, qword [rsp + 0x50]
add rax, r8
xor rax, qword [rcx + 0x38]
mov rdx, rax
shl rdx, 0xd
xor rdx, rax
xor rdx, r9
mov rax, rdx
shr rax, 7
xor al, dl
xor byte [r8 + 0x14], al
mov rax, qword [rsp + 0x58]
add rax, r8
xor rax, qword [rcx + 0x38]
mov rdx, rax
shl rdx, 0xd
xor rdx, rax
xor rdx, r9
mov rax, rdx
shr rax, 7
xor al, byte [r8 + 0x15]
xor al, dl
mov byte [r8 + 0x15], al
mov rax, qword [rsp + 0x60]
add rax, r8
xor rax, qword [rcx + 0x38]
mov rdx, rax
shl rdx, 0xd
xor rdx, rax
xor rdx, r9
mov rax, rdx
shr rax, 7
xor al, byte [r8 + 0x16]
xor al, dl
mov byte [r8 + 0x16], al
mov rax, qword [rsp + 0x68]
add rax, r8
xor rax, qword [rcx + 0x38]
mov rdx, rax
shl rdx, 0xd
xor rdx, rax
xor rdx, r9
mov rax, rdx
shr rax, 7
xor al, dl
xor byte [r8 + 0x17], al
mov rax, qword [rsp + 0x70]
add rax, r8
xor rax, qword [rcx + 0x38]
mov rdx, rax
shl rdx, 0xd
xor rdx, rax
xor rdx, r9
mov rax, rdx
shr rax, 7
xor al, dl
movabs rdx, 0xd28f2c51de26cd5
xor byte [r8 + 0x18], al
add r8, 0x1a
lea rax, [r8 + r10]
cmp rax, 0x34
jb 0x140046ff0
lea r8, [rcx + 0x35]
lea rdx, [rcx + 2]
mov rcx, qword [rsp + 0xe8]
call fcn.1400049a0
mov rax, qword [rsp + 0xe8]
add rsp, 0x98
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret