Function at 0x1401404d0
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, [0x1403bc0ec]
movsxd r9, dword [0x1403bc0ec]
mov r8, r9
xor r8, rax
and r9, rax
lea rax, [r8 + r9*2]
mov r9d, dword [0x1403bc0e4]
test r14d, r14d
jns case.0x1401405a1.4
cmp byte [rsi + 0x10], 0
je case.0x1401405a1.4
mov r13d, dword [0x140498300]
lea r8d, [r13 + 1]
mov dword [0x140498300], r8d
xor edi, edi
mov dword [rbp + 0xbc], r8d
test r13d, r8d
jne 0x140140580
test r9d, r9d
jle 0x140140580
xor r8d, r8d
xor edi, edi
nop dword [rax]
movsxd r8, r8d
xor edi, dword [rax + r8]
add r8d, 4
cmp r8d, r9d
jl 0x140140570
lea eax, [r14 + 0x14]
cmp eax, 0x13
mov dword [rbp + 0x13c], edx
ja case.0x1401405a1.18
lea r8, [0x14014177c]
movsxd rax, dword [r8 + rax*4]
add rax, r8
jmp rax
movzx edx, word [0x1404ee304]
mov r8d, 0x90520cf7
call fcn.1400856d0
test rax, rax
lea r15, [0x1403b9d28]
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.1400856f0
mov r12, rax
cmp rax, 0xf
jbe 0x140140b99
mov rcx, r14
mov rdx, r12
mov r9, r15
call fcn.140072260
jmp 0x140140bb7
mov qword [rbp + 0x130], r13
movzx edx, word [0x1404ee302]
mov r8d, 0x90520cf7
call fcn.1400856d0
test rax, rax
lea r12, [0x1403b9d28]
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.1400856f0
mov r13, rax
cmp rax, 0xf
jbe 0x140140a37
mov rcx, r15
mov rdx, r13
mov r9, r12
call fcn.140072260
jmp 0x140140a55
mov qword [rbp + 0x130], r13
movzx edx, word [0x1404ee2fa]
mov r8d, 0x90520cf7
call fcn.1400856d0
test rax, rax
lea r12, [0x1403b9d28]
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.1400856f0
mov r13, rax
cmp rax, 0xf
jbe 0x140140af2
mov rcx, r15
mov rdx, r13
mov r9, r12
call fcn.140072260
jmp 0x140140b10
mov qword [rbp + 0x130], r13
movzx edx, word [0x1404ee2f8]
mov r8d, 0x90520cf7
call fcn.1400856d0
test rax, rax
lea r12, [0x1403b9d28]
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.1400856f0
mov r13, rax
cmp rax, 0xf
jbe 0x140140c42
mov rcx, r15
mov rdx, r13
mov r9, r12
call fcn.140072260
jmp 0x140140c60
movzx edx, word [0x1404ee2f6]
mov r8d, 0x90520cf7
call fcn.1400856d0
test rax, rax
lea r15, [0x1403b9d28]
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.1400856f0
mov r12, rax
cmp rax, 0xf
jbe 0x140140ce9
mov rcx, r14
mov rdx, r12
mov r9, r15
call fcn.140072260
jmp 0x140140d07
mov qword [rbp + 0x130], r13
movzx edx, word [0x1404ee2f0]
mov r8d, 0x90520cf7
call fcn.1400856d0
test rax, rax
lea r12, [0x1403b9d28]
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.1400856f0
mov r13, rax
cmp rax, 0xf
jbe 0x140140d84
mov rcx, r15
mov rdx, r13
mov r9, r12
call fcn.140072260
jmp 0x140140da2
mov qword [rbp + 0x130], r13
movzx edx, word [0x1404ee2fe]
mov r8d, 0x90520cf7
call fcn.1400856d0
test rax, rax
lea r12, [0x1403b9d28]
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.1400856f0
mov r13, rax
cmp rax, 0xf
jbe 0x140140e2b
mov rcx, r15
mov rdx, r13
mov r9, r12
call fcn.140072260
jmp 0x140140e49
mov qword [rbp + 0x130], r13
movzx edx, word [0x1404ee2fc]
mov r8d, 0x90520cf7
call fcn.1400856d0
test rax, rax
lea r12, [0x1403b9d28]
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.1400856f0
mov r13, rax
cmp rax, 0xf
jbe 0x140140ed2
mov rcx, r15
mov rdx, r13
mov r9, r12
call fcn.140072260
jmp 0x140140ef0
movzx edx, word [0x1404ee2f2]
mov r8d, 0x90520cf7
call fcn.1400856d0
test rax, rax
lea r15, [0x1403b9d28]
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.1400856f0
mov r12, rax
cmp rax, 0xf
jbe 0x140140f79
mov rcx, r14
mov rdx, r12
mov r9, r15
call fcn.140072260
jmp 0x140140f97
movzx edx, word [0x1404ee2f4]
mov r8d, 0x90520cf7
call fcn.1400856d0
test rax, rax
lea r15, [0x1403b9d28]
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.1400856f0
mov r12, rax
cmp rax, 0xf
jbe 0x14014101d
mov rcx, r14
mov rdx, r12
mov r9, r15
call fcn.140072260
jmp 0x14014103b
mov qword [rbp + 0xd8], r13
mov rcx, r15
mov rdx, r12
mov r8, r13
call fcn.14039e2f0
mov byte [rbp + r13 + 0xc8], 0
lea rax, [0x1403b9448]
mov qword [rbp + 0xc0], rax
cmp qword [rbp + 0xe0], 0x10
mov r13, qword [rbp + 0x130]
mov r12d, dword [rbp + 0x13c]
jb 0x140140a82
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.140061060
mov rax, qword [rbp + 0xe0]
cmp rax, 0x10
jb 0x1401410ba
mov rcx, qword [rbp + 0xc8]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x1401410b5
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 0x1401410ab
call fcn.140356a3c
mov qword [rbp + 0xd8], r13
mov rcx, r15
mov rdx, r12
mov r8, r13
call fcn.14039e2f0
mov byte [rbp + r13 + 0xc8], 0
lea rax, [0x1403b9448]
mov qword [rbp + 0xc0], rax
cmp qword [rbp + 0xe0], 0x10
mov r13, qword [rbp + 0x130]
mov r12d, dword [rbp + 0x13c]
jb 0x140140b3d
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.140061060
mov rax, qword [rbp + 0xe0]
cmp rax, 0x10
jb 0x1401410ba
mov rcx, qword [rbp + 0xc8]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x1401410b5
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jb 0x1401410ab
call fcn.140356a3c
mov qword [rbp + 0xd8], r12
mov rcx, r14
mov rdx, r15
mov r8, r12
call fcn.14039e2f0
mov byte [rbp + r12 + 0xc8], 0
lea rax, [0x1403b9448]
mov qword [rbp + 0xc0], rax
cmp qword [rbp + 0xe0], 0x10
mov r12d, dword [rbp + 0x13c]
jb 0x140140bdd
mov r14, qword [rbp + 0xc8]
lea rcx, [rbp - 0x50]
mov edx, 0x100
mov r8, r14
mov r9, rbx
call fcn.140061060
mov rax, qword [rbp + 0xe0]
cmp rax, 0x10
jb 0x1401410ba
mov rcx, qword [rbp + 0xc8]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x1401410b5
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x140141272
mov rcx, rax
xor rcx, 0x28
and eax, 0x28
lea rdx, [rcx + rax*2]
jmp 0x1401410b2
mov qword [rbp + 0xd8], r13
mov rcx, r15
mov rdx, r12
mov r8, r13
call fcn.14039e2f0
mov byte [rbp + r13 + 0xc8], 0
lea rax, [0x1403b9448]
mov qword [rbp + 0xc0], rax
cmp qword [rbp + 0xe0], 0x10
mov r13, qword [rbp + 0x130]
mov r12d, dword [rbp + 0x13c]
jb 0x140140c8d
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.140061060
mov rax, qword [rbp + 0xe0]
cmp rax, 0x10
jb 0x1401410ba
mov rcx, qword [rbp + 0xc8]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x1401410b5
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jb 0x1401410ab
call fcn.140356a3c
mov qword [rbp + 0xd8], r12
mov rcx, r14
mov rdx, r15
mov r8, r12
call fcn.14039e2f0
mov byte [rbp + r12 + 0xc8], 0
lea rax, [0x1403b9448]
mov qword [rbp + 0xc0], rax
cmp qword [rbp + 0xe0], 0x10
mov r12d, dword [rbp + 0x13c]
jb 0x140140d2d
mov r14, qword [rbp + 0xc8]
lea rcx, [rbp - 0x50]
mov edx, 0x100
mov r8, r14
mov r9, rbx
call fcn.140061060
mov rax, qword [rbp + 0xe0]
cmp rax, 0x10
jb 0x1401410ba
mov rcx, qword [rbp + 0xc8]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x1401410b5
mov r8, qword [rcx - 8]
sub rcx, r8
add rcx, 0xfffffffffffffff8
cmp rcx, 0x20
jb 0x1401410ab
call fcn.140356a3c
mov qword [rbp + 0xd8], r13
mov rcx, r15
mov rdx, r12
mov r8, r13
call fcn.14039e2f0
mov byte [rbp + r13 + 0xc8], 0
lea rax, [0x1403b9448]
mov qword [rbp + 0xc0], rax
cmp qword [rbp + 0xe0], 0x10
mov r13, qword [rbp + 0x130]
mov r12d, dword [rbp + 0x13c]
jb 0x140140dcf
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.140061060
mov rax, qword [rbp + 0xe0]
cmp rax, 0x10
jb 0x1401410ba
mov rcx, qword [rbp + 0xc8]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x1401410b5
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jb 0x1401410ab
call fcn.140356a3c
mov qword [rbp + 0xd8], r13
mov rcx, r15
mov rdx, r12
mov r8, r13
call fcn.14039e2f0
mov byte [rbp + r13 + 0xc8], 0
lea rax, [0x1403b9448]
mov qword [rbp + 0xc0], rax
cmp qword [rbp + 0xe0], 0x10
mov r13, qword [rbp + 0x130]
mov r12d, dword [rbp + 0x13c]
jb 0x140140e76
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.140061060
mov rax, qword [rbp + 0xe0]
cmp rax, 0x10
jb 0x1401410ba
mov rcx, qword [rbp + 0xc8]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x1401410b5
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jb 0x1401410ab
call fcn.140356a3c
mov qword [rbp + 0xd8], r13
mov rcx, r15
mov rdx, r12
mov r8, r13
call fcn.14039e2f0
mov byte [rbp + r13 + 0xc8], 0
lea rax, [0x1403b9448]
mov qword [rbp + 0xc0], rax
cmp qword [rbp + 0xe0], 0x10
mov r13, qword [rbp + 0x130]
mov r12d, dword [rbp + 0x13c]
jb 0x140140f1d
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.140061060
mov rax, qword [rbp + 0xe0]
cmp rax, 0x10
jb 0x1401410ba
mov rcx, qword [rbp + 0xc8]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x1401410b5
mov r8, qword [rcx - 8]
sub rcx, r8
add rcx, 0xfffffffffffffff8
cmp rcx, 0x20
jb 0x1401410ab
call fcn.140356a3c
mov qword [rbp + 0xd8], r12
mov rcx, r14
mov rdx, r15
mov r8, r12
call fcn.14039e2f0
mov byte [rbp + r12 + 0xc8], 0
lea rax, [0x1403b9448]
mov qword [rbp + 0xc0], rax
cmp qword [rbp + 0xe0], 0x10
mov r12d, dword [rbp + 0x13c]
jb 0x140140fbd
mov r14, qword [rbp + 0xc8]
lea rcx, [rbp - 0x50]
mov edx, 0x100
mov r8, r14
mov r9, rbx
call fcn.140061060
mov rax, qword [rbp + 0xe0]
cmp rax, 0x10
jb 0x1401410ba
mov rcx, qword [rbp + 0xc8]
cmp byte [0x1404ee749], 0
jne 0x140141003
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x1401410b5
mov r8, qword [rcx - 8]
sub rcx, r8
add rcx, 0xfffffffffffffff8
cmp rcx, 0x20
jb 0x1401410ab
call fcn.140356a3c
mov qword [rbp + 0xd8], r12
mov rcx, r14
mov rdx, r15
mov r8, r12
call fcn.14039e2f0
mov byte [rbp + r12 + 0xc8], 0
lea rax, [0x1403b9448]
mov qword [rbp + 0xc0], rax
cmp qword [rbp + 0xe0], 0x10
mov r12d, dword [rbp + 0x13c]
jb 0x140141061
mov r14, qword [rbp + 0xc8]
lea rcx, [rbp - 0x50]
mov edx, 0x100
mov r8, r14
mov r9, rbx
call fcn.140061060
mov rax, qword [rbp + 0xe0]
cmp rax, 0x10
jb 0x1401410ba
mov rcx, qword [rbp + 0xc8]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x1401410b5
mov r8, qword [rcx - 8]
sub rcx, r8
add rcx, 0xfffffffffffffff8
cmp rcx, 0x20
jae 0x140141277
add rax, 0x28
mov rdx, rax
mov rcx, r8
call fcn.140084c10
lea rcx, [rbp + 0xd8]
mov qword [rbp + 0xf0], 0
mov qword [rbp + 0xf8], 0xf
mov byte [rbp + 0xe0], 0
lea rax, [0x1403b9448]
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 [0x1403bc0d0]
movups xmmword [rbp + 0xc4], xmm0
mov edx, 0x408
add rdx, qword [rsi + 0x18]
call fcn.1402492d0
lea rcx, [rbp + 0x100]
lea rdx, [rbp - 0x50]
call fcn.140248400
mov byte [rbp + 0x128], 0
mov rcx, qword [rsi + 0x18]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
mov r10, qword [case.0x14014757d.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 0x1401411be
mov rcx, qword [rbp + 0x108]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x1401411b9
mov r8, qword [rcx - 8]
sub rcx, r8
add rcx, 0xfffffffffffffff8
cmp rcx, 0x20
jae 0x140141268
add rax, 0x28
mov rdx, rax
mov rcx, r8
call fcn.140084c10
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.0x1401405a1.4
mov rcx, qword [rbp + 0xe0]
cmp byte [0x1404ee748], 0
jne 0x140141205
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x14014124e
and r13d, dword [rbp + 0xbc]
mov edx, dword [0x1403bc0f0]
xor r8d, r8d
cmp r13d, 1
sbb r8d, r8d
sub edx, edi
test edx, r8d
setne dl
or dl, byte [0x1404ee748]
and dl, 1
mov byte [0x1404ee748], dl
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x14014126d
add rax, 0x28
mov rdx, rax
mov rcx, r8
call fcn.140084c10
nop
add rsp, 0x1c8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call fcn.140356a3c
call fcn.140356a3c
call fcn.140356a3c
call fcn.140356a3c
int3