Function at 0x140101540
Capabilities:
Encode data using xor

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x1c8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x140], 0xfffffffffffffffe
mov rsi, rcx
mov rcx, qword [rbp + 0x1b0]
mov dword [rsi + 0xc], r9d
mov r14d, r9d
mov rbx, r8
lea rax, [0x140352adc]
movsxd r9, dword [0x140352adc]
mov r8, r9
xor r8, rax
and r9, rax
lea rax, [r8 + r9*2]
mov r9d, dword [0x140352ad4]
test r14d, r14d
jns case.0x140101611.4
cmp byte [rsi + 0x10], 0
je case.0x140101611.4
mov r13d, dword [0x140426330]
lea r8d, [r13 + 1]
mov dword [0x140426330], r8d
xor edi, edi
mov dword [rbp + 0xbc], r8d
test r13d, r8d
jne 0x1401015f0
test r9d, r9d
jle 0x1401015f0
xor r8d, r8d
xor edi, edi
nop dword [rax]
movsxd r8, r8d
xor edi, dword [rax + r8]
add r8d, 4
cmp r8d, r9d
jl 0x1401015e0
lea eax, [r14 + 0x14]
cmp eax, 0x13
mov dword [rbp + 0x13c], edx
ja case.0x140101611.18
lea r8, [0x1401027ec]
movsxd rax, dword [r8 + rax*4]
add rax, r8
jmp rax
movzx edx, word [0x140477284]
mov r8d, 0x90520cf7
call fcn.1400a2e00
test rax, rax
lea r15, [0x140350718]
cmovne r15, rax
lea r14, [rbp + 0xc8]
mov qword [rbp + 0xd8], 0
mov qword [rbp + 0xe0], 0xf
mov byte [rbp + 0xc8], 0
mov rcx, r15
mov edx, 0x522f1e4b
call fcn.1400a24c0
mov r12, rax
cmp rax, 0xf
jbe 0x140101c09
mov rcx, r14
mov rdx, r12
mov r9, r15
call fcn.14008fff0
jmp 0x140101c27
mov qword [rbp + 0x130], r13
movzx edx, word [0x140477282]
mov r8d, 0x90520cf7
call fcn.1400a2e00
test rax, rax
lea r12, [0x140350718]
cmovne r12, rax
lea r15, [rbp + 0xc8]
mov qword [rbp + 0xd8], 0
mov qword [rbp + 0xe0], 0xf
mov byte [rbp + 0xc8], 0
mov rcx, r12
mov edx, 0x522f1e4b
call fcn.1400a24c0
mov r13, rax
cmp rax, 0xf
jbe 0x140101aa7
mov rcx, r15
mov rdx, r13
mov r9, r12
call fcn.14008fff0
jmp 0x140101ac5
mov qword [rbp + 0x130], r13
movzx edx, word [0x14047727a]
mov r8d, 0x90520cf7
call fcn.1400a2e00
test rax, rax
lea r12, [0x140350718]
cmovne r12, rax
lea r15, [rbp + 0xc8]
mov qword [rbp + 0xd8], 0
mov qword [rbp + 0xe0], 0xf
mov byte [rbp + 0xc8], 0
mov rcx, r12
mov edx, 0x522f1e4b
call fcn.1400a24c0
mov r13, rax
cmp rax, 0xf
jbe 0x140101b62
mov rcx, r15
mov rdx, r13
mov r9, r12
call fcn.14008fff0
jmp 0x140101b80
mov qword [rbp + 0x130], r13
movzx edx, word [0x140477278]
mov r8d, 0x90520cf7
call fcn.1400a2e00
test rax, rax
lea r12, [0x140350718]
cmovne r12, rax
lea r15, [rbp + 0xc8]
mov qword [rbp + 0xd8], 0
mov qword [rbp + 0xe0], 0xf
mov byte [rbp + 0xc8], 0
mov rcx, r12
mov edx, 0x522f1e4b
call fcn.1400a24c0
mov r13, rax
cmp rax, 0xf
jbe 0x140101cb2
mov rcx, r15
mov rdx, r13
mov r9, r12
call fcn.14008fff0
jmp 0x140101cd0
movzx edx, word [0x140477276]
mov r8d, 0x90520cf7
call fcn.1400a2e00
test rax, rax
lea r15, [0x140350718]
cmovne r15, rax
lea r14, [rbp + 0xc8]
mov qword [rbp + 0xd8], 0
mov qword [rbp + 0xe0], 0xf
mov byte [rbp + 0xc8], 0
mov rcx, r15
mov edx, 0x522f1e4b
call fcn.1400a24c0
mov r12, rax
cmp rax, 0xf
jbe 0x140101d59
mov rcx, r14
mov rdx, r12
mov r9, r15
call fcn.14008fff0
jmp 0x140101d77
mov qword [rbp + 0x130], r13
movzx edx, word [0x140477270]
mov r8d, 0x90520cf7
call fcn.1400a2e00
test rax, rax
lea r12, [0x140350718]
cmovne r12, rax
lea r15, [rbp + 0xc8]
mov qword [rbp + 0xd8], 0
mov qword [rbp + 0xe0], 0xf
mov byte [rbp + 0xc8], 0
mov rcx, r12
mov edx, 0x522f1e4b
call fcn.1400a24c0
mov r13, rax
cmp rax, 0xf
jbe 0x140101df4
mov rcx, r15
mov rdx, r13
mov r9, r12
call fcn.14008fff0
jmp 0x140101e12
mov qword [rbp + 0x130], r13
movzx edx, word [0x14047727e]
mov r8d, 0x90520cf7
call fcn.1400a2e00
test rax, rax
lea r12, [0x140350718]
cmovne r12, rax
lea r15, [rbp + 0xc8]
mov qword [rbp + 0xd8], 0
mov qword [rbp + 0xe0], 0xf
mov byte [rbp + 0xc8], 0
mov rcx, r12
mov edx, 0x522f1e4b
call fcn.1400a24c0
mov r13, rax
cmp rax, 0xf
jbe 0x140101e9b
mov rcx, r15
mov rdx, r13
mov r9, r12
call fcn.14008fff0
jmp 0x140101eb9
mov qword [rbp + 0x130], r13
movzx edx, word [0x14047727c]
mov r8d, 0x90520cf7
call fcn.1400a2e00
test rax, rax
lea r12, [0x140350718]
cmovne r12, rax
lea r15, [rbp + 0xc8]
mov qword [rbp + 0xd8], 0
mov qword [rbp + 0xe0], 0xf
mov byte [rbp + 0xc8], 0
mov rcx, r12
mov edx, 0x522f1e4b
call fcn.1400a24c0
mov r13, rax
cmp rax, 0xf
jbe 0x140101f42
mov rcx, r15
mov rdx, r13
mov r9, r12
call fcn.14008fff0
jmp 0x140101f60
movzx edx, word [0x140477272]
mov r8d, 0x90520cf7
call fcn.1400a2e00
test rax, rax
lea r15, [0x140350718]
cmovne r15, rax
lea r14, [rbp + 0xc8]
mov qword [rbp + 0xd8], 0
mov qword [rbp + 0xe0], 0xf
mov byte [rbp + 0xc8], 0
mov rcx, r15
mov edx, 0x522f1e4b
call fcn.1400a24c0
mov r12, rax
cmp rax, 0xf
jbe 0x140101fe9
mov rcx, r14
mov rdx, r12
mov r9, r15
call fcn.14008fff0
jmp 0x140102007
movzx edx, word [0x140477274]
mov r8d, 0x90520cf7
call fcn.1400a2e00
test rax, rax
lea r15, [0x140350718]
cmovne r15, rax
lea r14, [rbp + 0xc8]
mov qword [rbp + 0xd8], 0
mov qword [rbp + 0xe0], 0xf
mov byte [rbp + 0xc8], 0
mov rcx, r15
mov edx, 0x522f1e4b
call fcn.1400a24c0
mov r12, rax
cmp rax, 0xf
jbe 0x14010208d
mov rcx, r14
mov rdx, r12
mov r9, r15
call fcn.14008fff0
jmp 0x1401020ab
mov qword [rbp + 0xd8], r13
mov rcx, r15
mov rdx, r12
mov r8, r13
call fcn.140335e20
mov byte [rbp + r13 + 0xc8], 0
lea rax, [0x14034fe38]
mov qword [rbp + 0xc0], rax
cmp qword [rbp + 0xe0], 0x10
mov r13, qword [rbp + 0x130]
mov r12d, dword [rbp + 0x13c]
jb 0x140101af2
mov r15, qword [rbp + 0xc8]
mov dword [rsp + 0x20], r14d
lea rcx, [rbp - 0x50]
mov edx, 0x100
mov r8, r15
mov r9, rbx
call fcn.14007f550
mov rax, qword [rbp + 0xe0]
cmp rax, 0x10
jb 0x14010212a
mov rcx, qword [rbp + 0xc8]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x140102125
mov r8, qword [rcx - 8]
mov rdx, rcx
xor rdx, 0xfffffffffffffff8
movabs r9, 0x7ffffffffffffff8
and r9, rcx
lea rcx, [rdx + r9*2]
sub rcx, r8
cmp rcx, 0x20
jb 0x14010211b
call fcn.1402ee57c
mov qword [rbp + 0xd8], r13
mov rcx, r15
mov rdx, r12
mov r8, r13
call fcn.140335e20
mov byte [rbp + r13 + 0xc8], 0
lea rax, [0x14034fe38]
mov qword [rbp + 0xc0], rax
cmp qword [rbp + 0xe0], 0x10
mov r13, qword [rbp + 0x130]
mov r12d, dword [rbp + 0x13c]
jb 0x140101bad
mov r15, qword [rbp + 0xc8]
mov dword [rsp + 0x20], r14d
lea rcx, [rbp - 0x50]
mov edx, 0x100
mov r8, r15
mov r9, rbx
call fcn.14007f550
mov rax, qword [rbp + 0xe0]
cmp rax, 0x10
jb 0x14010212a
mov rcx, qword [rbp + 0xc8]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x140102125
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jb 0x14010211b
call fcn.1402ee57c
mov qword [rbp + 0xd8], r12
mov rcx, r14
mov rdx, r15
mov r8, r12
call fcn.140335e20
mov byte [rbp + r12 + 0xc8], 0
lea rax, [0x14034fe38]
mov qword [rbp + 0xc0], rax
cmp qword [rbp + 0xe0], 0x10
mov r12d, dword [rbp + 0x13c]
jb 0x140101c4d
mov r14, qword [rbp + 0xc8]
lea rcx, [rbp - 0x50]
mov edx, 0x100
mov r8, r14
mov r9, rbx
call fcn.14007f550
mov rax, qword [rbp + 0xe0]
cmp rax, 0x10
jb 0x14010212a
mov rcx, qword [rbp + 0xc8]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x140102125
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x1401022e2
mov rcx, rax
xor rcx, 0x28
and eax, 0x28
lea rdx, [rcx + rax*2]
jmp 0x140102122
mov qword [rbp + 0xd8], r13
mov rcx, r15
mov rdx, r12
mov r8, r13
call fcn.140335e20
mov byte [rbp + r13 + 0xc8], 0
lea rax, [0x14034fe38]
mov qword [rbp + 0xc0], rax
cmp qword [rbp + 0xe0], 0x10
mov r13, qword [rbp + 0x130]
mov r12d, dword [rbp + 0x13c]
jb 0x140101cfd
mov r15, qword [rbp + 0xc8]
mov dword [rsp + 0x20], r14d
lea rcx, [rbp - 0x50]
mov edx, 0x100
mov r8, r15
mov r9, rbx
call fcn.14007f550
mov rax, qword [rbp + 0xe0]
cmp rax, 0x10
jb 0x14010212a
mov rcx, qword [rbp + 0xc8]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x140102125
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jb 0x14010211b
call fcn.1402ee57c
mov qword [rbp + 0xd8], r12
mov rcx, r14
mov rdx, r15
mov r8, r12
call fcn.140335e20
mov byte [rbp + r12 + 0xc8], 0
lea rax, [0x14034fe38]
mov qword [rbp + 0xc0], rax
cmp qword [rbp + 0xe0], 0x10
mov r12d, dword [rbp + 0x13c]
jb 0x140101d9d
mov r14, qword [rbp + 0xc8]
lea rcx, [rbp - 0x50]
mov edx, 0x100
mov r8, r14
mov r9, rbx
call fcn.14007f550
mov rax, qword [rbp + 0xe0]
cmp rax, 0x10
jb 0x14010212a
mov rcx, qword [rbp + 0xc8]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x140102125
mov r8, qword [rcx - 8]
sub rcx, r8
add rcx, 0xfffffffffffffff8
cmp rcx, 0x20
jb 0x14010211b
call fcn.1402ee57c
mov qword [rbp + 0xd8], r13
mov rcx, r15
mov rdx, r12
mov r8, r13
call fcn.140335e20
mov byte [rbp + r13 + 0xc8], 0
lea rax, [0x14034fe38]
mov qword [rbp + 0xc0], rax
cmp qword [rbp + 0xe0], 0x10
mov r13, qword [rbp + 0x130]
mov r12d, dword [rbp + 0x13c]
jb 0x140101e3f
mov r15, qword [rbp + 0xc8]
mov dword [rsp + 0x20], r14d
lea rcx, [rbp - 0x50]
mov edx, 0x100
mov r8, r15
mov r9, rbx
call fcn.14007f550
mov rax, qword [rbp + 0xe0]
cmp rax, 0x10
jb 0x14010212a
mov rcx, qword [rbp + 0xc8]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x140102125
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jb 0x14010211b
call fcn.1402ee57c
mov qword [rbp + 0xd8], r13
mov rcx, r15
mov rdx, r12
mov r8, r13
call fcn.140335e20
mov byte [rbp + r13 + 0xc8], 0
lea rax, [0x14034fe38]
mov qword [rbp + 0xc0], rax
cmp qword [rbp + 0xe0], 0x10
mov r13, qword [rbp + 0x130]
mov r12d, dword [rbp + 0x13c]
jb 0x140101ee6
mov r15, qword [rbp + 0xc8]
mov dword [rsp + 0x20], r14d
lea rcx, [rbp - 0x50]
mov edx, 0x100
mov r8, r15
mov r9, rbx
call fcn.14007f550
mov rax, qword [rbp + 0xe0]
cmp rax, 0x10
jb 0x14010212a
mov rcx, qword [rbp + 0xc8]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x140102125
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jb 0x14010211b
call fcn.1402ee57c
mov qword [rbp + 0xd8], r13
mov rcx, r15
mov rdx, r12
mov r8, r13
call fcn.140335e20
mov byte [rbp + r13 + 0xc8], 0
lea rax, [0x14034fe38]
mov qword [rbp + 0xc0], rax
cmp qword [rbp + 0xe0], 0x10
mov r13, qword [rbp + 0x130]
mov r12d, dword [rbp + 0x13c]
jb 0x140101f8d
mov r15, qword [rbp + 0xc8]
mov dword [rsp + 0x20], r14d
lea rcx, [rbp - 0x50]
mov edx, 0x100
mov r8, r15
mov r9, rbx
call fcn.14007f550
mov rax, qword [rbp + 0xe0]
cmp rax, 0x10
jb 0x14010212a
mov rcx, qword [rbp + 0xc8]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x140102125
mov r8, qword [rcx - 8]
sub rcx, r8
add rcx, 0xfffffffffffffff8
cmp rcx, 0x20
jb 0x14010211b
call fcn.1402ee57c
mov qword [rbp + 0xd8], r12
mov rcx, r14
mov rdx, r15
mov r8, r12
call fcn.140335e20
mov byte [rbp + r12 + 0xc8], 0
lea rax, [0x14034fe38]
mov qword [rbp + 0xc0], rax
cmp qword [rbp + 0xe0], 0x10
mov r12d, dword [rbp + 0x13c]
jb 0x14010202d
mov r14, qword [rbp + 0xc8]
lea rcx, [rbp - 0x50]
mov edx, 0x100
mov r8, r14
mov r9, rbx
call fcn.14007f550
mov rax, qword [rbp + 0xe0]
cmp rax, 0x10
jb 0x14010212a
mov rcx, qword [rbp + 0xc8]
cmp byte [0x1404776c1], 0
jne 0x140102073
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x140102125
mov r8, qword [rcx - 8]
sub rcx, r8
add rcx, 0xfffffffffffffff8
cmp rcx, 0x20
jb 0x14010211b
call fcn.1402ee57c
mov qword [rbp + 0xd8], r12
mov rcx, r14
mov rdx, r15
mov r8, r12
call fcn.140335e20
mov byte [rbp + r12 + 0xc8], 0
lea rax, [0x14034fe38]
mov qword [rbp + 0xc0], rax
cmp qword [rbp + 0xe0], 0x10
mov r12d, dword [rbp + 0x13c]
jb 0x1401020d1
mov r14, qword [rbp + 0xc8]
lea rcx, [rbp - 0x50]
mov edx, 0x100
mov r8, r14
mov r9, rbx
call fcn.14007f550
mov rax, qword [rbp + 0xe0]
cmp rax, 0x10
jb 0x14010212a
mov rcx, qword [rbp + 0xc8]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x140102125
mov r8, qword [rcx - 8]
sub rcx, r8
add rcx, 0xfffffffffffffff8
cmp rcx, 0x20
jae 0x1401022e7
add rax, 0x28
mov rdx, rax
mov rcx, r8
call fcn.1400a22e0
lea rcx, [rbp + 0xd8]
mov qword [rbp + 0xf0], 0
mov qword [rbp + 0xf8], 0xf
mov byte [rbp + 0xe0], 0
lea rax, [0x14034fe38]
mov qword [rbp + 0xd8], rax
mov qword [rbp + 0x118], 0
mov qword [rbp + 0x120], 0xf
mov byte [rbp + 0x108], 0
mov qword [rbp + 0x100], rax
mov dword [rbp + 0xc0], r12d
movaps xmm0, xmmword [0x140352ac0]
movups xmmword [rbp + 0xc4], xmm0
mov edx, 0x408
add rdx, qword [rsi + 0x18]
call fcn.1401ea9a0
lea rcx, [rbp + 0x100]
lea rdx, [rbp - 0x50]
call fcn.1401e9ad0
mov byte [rbp + 0x128], 0
mov rcx, qword [rsi + 0x18]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
mov r10, qword [case.0x1401085ed.0]
mov qword [rsp + 0x20], 0
lea rdx, [rbp + 0xb0]
lea r9, [rbp + 0xc0]
xor r8d, r8d
call r10
mov rax, qword [rbp + 0x120]
cmp rax, 0x10
jb 0x14010222e
mov rcx, qword [rbp + 0x108]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x140102229
mov r8, qword [rcx - 8]
sub rcx, r8
add rcx, 0xfffffffffffffff8
cmp rcx, 0x20
jae 0x1401022d8
add rax, 0x28
mov rdx, rax
mov rcx, r8
call fcn.1400a22e0
mov qword [rbp + 0x118], 0
mov qword [rbp + 0x120], 0xf
mov byte [rbp + 0x108], 0
mov rax, qword [rbp + 0xf8]
cmp rax, 0x10
jb case.0x140101611.4
mov rcx, qword [rbp + 0xe0]
cmp byte [0x1404776c0], 0
jne 0x140102275
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x1401022be
and r13d, dword [rbp + 0xbc]
mov edx, dword [0x140352ae0]
xor r8d, r8d
cmp r13d, 1
sbb r8d, r8d
sub edx, edi
test edx, r8d
setne dl
or dl, byte [0x1404776c0]
and dl, 1
mov byte [0x1404776c0], dl
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x1401022dd
add rax, 0x28
mov rdx, rax
mov rcx, r8
call fcn.1400a22e0
nop
add rsp, 0x1c8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call fcn.1402ee57c
call fcn.1402ee57c
call fcn.1402ee57c
call fcn.1402ee57c
int3