Function at 0x14003ca5e
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xb8
mov r15, qword [rsp + 0x120]
mov rax, r8
or rax, r15
je 0x14003d640
mov rbp, rcx
mov rsi, qword [rcx + 0x130]
test rsi, rsi
je 0x14003d640
mov r12, r8
mov rbx, qword [rbp]
test r15, r15
je 0x14003cabd
cmp byte [rbx + 0xb5], 0
je 0x14003cb7c
lea rdx, [0x14023a7e6]
jmp 0x14003cbda
mov r13d, r9d
mov rdi, rdx
mov r15, qword [rsi]
mov rcx, r15
mov edx, 0x5f
call fcn.140202588
test rax, rax
je 0x14003cb3e
mov r14, rax
mov byte [rax], 0
mov rcx, rbx
mov rdx, r15
xor r8d, r8d
call fcn.14004f1a6
mov byte [r14], 0x5f
test rax, rax
je 0x14003cb3e
cmp dword [rax + 0x54], 0
je 0x14003cb3e
mov rax, qword [rax + 0x58]
mov rdx, qword [rax]
lea rcx, [rbx + 0x1b8]
xor r8d, r8d
call fcn.140020878
mov rax, qword [rax + 0x10]
test rax, rax
je 0x14003cb3e
mov rax, qword [rax]
cmp dword [rax], 3
jl 0x14003cb3e
mov rax, qword [rax + 0xb8]
test rax, rax
je 0x14003cb3e
inc r14
mov rcx, r14
call rax
test eax, eax
je 0x14003cb3e
or byte [rsi + 0x41], 4
lea rcx, [rbx + 0xb5]
cmp byte [rbx + 0xb5], 0
mov qword [rsp + 0x80], rdi
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x58], rcx
je 0x14003cb97
mov eax, dword [rbx + 0xb0]
mov dword [rsi + 0x38], eax
cmp eax, 1
mov r15, qword [rsp + 0x120]
jne 0x14003cb9f
or byte [rsi + 0x40], 1
jmp 0x14003cb9f
mov qword [rsp + 0x80], rdx
mov qword [rsp + 0x60], rbx
lea rax, [rbx + 0xb5]
mov qword [rsp + 0x58], rax
jmp 0x14003cba2
mov r15, qword [rsp + 0x120]
mov r9d, r13d
mov byte [rsp + 0x6c], r9b
test r9b, 0x20
je 0x14003d0d8
mov eax, dword [rsi + 0x40]
test al, 8
jne 0x14003cbd3
test al, 4
jne 0x14003cbe7
mov r8, qword [rsi]
lea rdx, [0x1402b09e0]
mov rcx, rbp
call fcn.1400397e7
jmp 0x14003d0d8
lea rdx, [0x1402b09a0]
mov rcx, rbp
call fcn.1400397e7
jmp 0x14003d640
mov qword [rsp + 0x78], r12
or eax, 0x60
mov dword [rsi + 0x40], eax
mov rbx, qword [rbp]
mov r12, qword [rbp + 0x10]
test byte [rbx + 0xb8], 2
jne 0x14003cc38
movzx eax, word [rsi + 0x46]
test ax, ax
jle 0x14003cc38
mov ecx, 0x1b
xor edx, edx
mov r8, qword [rsi + 8]
test byte [r8 + rcx], 1
je 0x14003cc28
mov byte [r8 + rcx - 3], 2
movzx eax, word [rsi + 0x46]
inc rdx
movsx r8, ax
add rcx, 0x20
cmp rdx, r8
jl 0x14003cc13
mov eax, dword [rbp + 0xa8]
test eax, eax
je 0x14003cc7a
jns 0x14003cc4e
mov eax, dword [r12 + 0x90]
dec eax
mov rcx, qword [r12]
cmp byte [rcx + 0x61], 0
je 0x14003cc61
lea rax, [0x1402c6528]
jmp 0x14003cc73
cdqe
lea rax, [rax + rax*2]
shl rax, 3
add rax, qword [r12 + 0x88]
mov dword [rax + 0xc], 2
movzx eax, word [rsi + 0x44]
test ax, ax
js 0x14003ccaf
mov rcx, qword [rsi + 8]
shl rax, 5
mov rcx, qword [rcx + rax]
mov qword [rsp + 0x98], rcx
test rcx, rcx
je 0x14003cd9e
call fcn.140200880
and eax, 0x3fffffff
jmp 0x14003cda0
mov r13, qword [rsi + 0x10]
test r13, r13
je 0x14003ccca
mov eax, dword [r13 + 0x64]
and eax, 3
cmp eax, 2
je 0x14003cccd
mov r13, qword [r13 + 0x28]
jmp 0x14003ccb3
xor r13d, r13d
movzx edi, word [r13 + 0x5e]
mov r14d, 1
cmp di, 2
jb 0x14003cd3a
mov r15d, 1
mov rcx, r13
mov edx, r14d
mov r8, r13
mov r9d, r15d
call fcn.14007c199
test eax, eax
je 0x14003cd00
dec word [r13 + 0x60]
jmp 0x14003cd2f
mov rax, qword [r13 + 0x40]
mov rcx, qword [rax + r15*8]
movsxd rdx, r14d
mov qword [rax + rdx*8], rcx
mov rax, qword [r13 + 0x38]
mov cl, byte [rax + r15]
mov byte [rax + rdx], cl
mov rax, qword [r13 + 8]
movzx ecx, word [rax + r15*2]
inc r14d
mov word [rax + rdx*2], cx
movzx edi, word [r13 + 0x5e]
inc r15
movzx eax, di
cmp r15, rax
jb 0x14003cce4
mov word [r13 + 0x5e], r14w
mov eax, dword [r13 + 0x64]
mov ecx, eax
or ecx, 0x20
mov dword [r13 + 0x64], ecx
mov qword [rsp + 0x90], rbx
test byte [rbx + 0xb8], 2
jne 0x14003cd64
or eax, 0x28
mov dword [r13 + 0x64], eax
mov qword [rsp + 0x70], rbp
movzx ebx, word [r13 + 0x5e]
mov word [r13 + 0x60], bx
test r12, r12
je 0x14003ce22
mov eax, dword [r13 + 0x58]
test eax, eax
jle 0x14003ce22
mov rcx, qword [r12]
cmp byte [rcx + 0x61], 0
je 0x14003ce0f
lea rax, [0x1402c6528]
jmp 0x14003ce1f
xor eax, eax
lea r8, [rsp + 0x98]
mov dword [r8 + 8], eax
mov rcx, rbx
mov edx, 0x3b
xor r9d, r9d
call fcn.140041cb4
mov rcx, qword [rbp]
xor edx, edx
mov r8, rax
call fcn.140041ac8
test rax, rax
je 0x14003d0a3
cmp byte [rbp + 0x104], 2
jb 0x14003d054
mov rcx, qword [rbp + 0x188]
test rcx, rcx
je 0x14003d054
lea r8, [rsi + 0x44]
mov rdx, qword [rax + 8]
cmp qword [rcx], r8
je 0x14003d051
mov rcx, qword [rcx + 0x18]
test rcx, rcx
jne 0x14003cdf8
jmp 0x14003d054
lea rax, [rax + rax*2]
shl rax, 3
add rax, qword [r12 + 0x88]
mov byte [rax], 0xb
mov eax, dword [rsi + 0x38]
mov dword [r13 + 0x58], eax
mov qword [rsp + 0x88], rsi
mov r14, qword [rsi + 0x10]
test r14, r14
mov r12, qword [rsp + 0x78]
je 0x14003cf3f
mov edi, ebx
mov eax, dword [r14 + 0x64]
and eax, 3
cmp eax, 2
je 0x14003cf32
movzx esi, word [r14 + 0x5e]
test ebx, ebx
je 0x14003cf28
movzx r12d, si
xor r15d, r15d
xor ebp, ebp
mov rcx, r14
mov edx, r12d
mov r8, r13
mov r9d, ebp
call fcn.14007c199
xor eax, 1
add r15d, eax
inc ebp
cmp ebx, ebp
jne 0x14003ce6b
test r15d, r15d
je 0x14003cf28
add r15d, r12d
mov rcx, qword [rsp + 0x90]
mov rdx, r14
mov r8d, r15d
call fcn.14007c27a
test eax, eax
mov rsi, qword [rsp + 0x88]
mov rbp, qword [rsp + 0x70]
mov r12, qword [rsp + 0x78]
mov r15, qword [rsp + 0x120]
jne 0x14003d0d8
movzx ebp, word [r14 + 0x5e]
xor r15d, r15d
movzx edx, word [r14 + 0x5e]
mov rcx, r14
mov r8, r13
mov r9d, r15d
call fcn.14007c199
test eax, eax
jne 0x14003cf1e
mov rax, qword [r13 + 8]
movzx eax, word [rax + r15*2]
mov rcx, qword [r14 + 8]
movsxd rdx, ebp
mov word [rcx + rdx*2], ax
mov rax, qword [r13 + 0x40]
mov rax, qword [rax + r15*8]
mov rcx, qword [r14 + 0x40]
mov qword [rcx + rdx*8], rax
mov rax, qword [r13 + 0x38]
cmp byte [rax + r15], 0
je 0x14003cf1c
or byte [r14 + 0x65], 2
inc ebp
inc r15
cmp rdi, r15
jne 0x14003ced1
jmp 0x14003cf32
mov word [r14 + 0x60], si
mov r12, qword [rsp + 0x78]
mov r14, qword [r14 + 0x28]
test r14, r14
jne 0x14003ce45
mov rsi, qword [rsp + 0x88]
movsx eax, word [rsi + 0x46]
test eax, eax
jle 0x14003cf8d
mov rcx, qword [r13 + 8]
xor r8d, r8d
xor edx, edx
mov rbp, qword [rsp + 0x70]
mov r15, qword [rsp + 0x120]
mov r9d, ebx
mov r10, rcx
test r9d, r9d
jle 0x14003cf82
dec r9d
movsx r11d, word [r10]
add r10, 2
cmp edx, r11d
jne 0x14003cf6b
jmp 0x14003cf85
inc r8d
inc edx
cmp edx, eax
jne 0x14003cf65
jmp 0x14003cf9d
xor r8d, r8d
mov rbp, qword [rsp + 0x70]
mov r15, qword [rsp + 0x120]
add r8d, ebx
mov rcx, qword [rsp + 0x90]
mov rdx, r13
call fcn.14007c27a
test eax, eax
jne 0x14003d0d8
movzx edx, word [rsi + 0x46]
test dx, dx
jle 0x14003d00c
xor eax, eax
lea rcx, [0x1402a7ac0]
mov r8, qword [r13 + 8]
mov r9d, ebx
mov r10, r8
test r9d, r9d
jle 0x14003cfeb
dec r9d
movsx r11d, word [r10]
add r10, 2
cmp eax, r11d
jne 0x14003cfd4
jmp 0x14003d001
movsxd rbx, ebx
mov word [r8 + rbx*2], ax
mov rdx, qword [r13 + 0x40]
mov qword [rdx + rbx*8], rcx
inc ebx
movzx edx, word [rsi + 0x46]
inc eax
movsx r8d, dx
cmp eax, r8d
jl 0x14003cfca
movzx eax, word [r13 + 0x60]
test rax, rax
je 0x14003d0cd
mov r8, qword [r13 + 8]
inc rax
xor r9d, r9d
xor edx, edx
movzx ecx, word [r8 + rax*2 - 4]
mov r10d, 1
shl r10, cl
cmp cx, 0x3f
cmovae r10, r9
or rdx, r10
dec rax
cmp rax, 1
ja 0x14003d026
not rdx
jmp 0x14003d0d4
mov qword [rcx], rdx
mov cl, byte [rbp + 0x102]
mov byte [rax + 0x20], cl
mov word [rsi + 0x44], 0xffff
movzx ecx, byte [rsi + 0x4c]
xor edx, edx
mov dword [rsp + 0x48], edx
mov dword [rsp + 0x40], edx
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rax
mov byte [rsp + 0x50], 2
mov rcx, rbp
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call fcn.14003dfba
cmp byte [rbx + 0x61], 0
jne 0x14003d0a3
cmp dword [rbp + 0x30], 0
je 0x14003d0aa
mov r12, qword [rsp + 0x78]
jmp 0x14003d0d8
mov r13, qword [rsi + 0x10]
test r13, r13
je 0x14003d654
mov eax, dword [r13 + 0x64]
and eax, 3
cmp eax, 2
je 0x14003cd3f
mov r13, qword [r13 + 0x28]
jmp 0x14003d0ae
mov rdx, 0xffffffffffffffff
mov qword [r13 + 0x68], rdx
mov rax, qword [rsi + 0x70]
test rax, rax
je 0x14003d106
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx + 0x20]
add rcx, 0x18
mov r13, 0xffffffffffffffff
inc r13
lea rdx, [rcx + 0x20]
cmp qword [rcx], rax
mov rcx, rdx
jne 0x14003d0f5
jmp 0x14003d10c
mov r13d, 0xfff0bdc0
mov rbx, qword [rsp + 0x80]
mov rax, qword [rsi + 0x30]
test rax, rax
je 0x14003d136
mov qword [rsp + 0x20], rax
mov rcx, rbp
mov rdx, rsi
mov r8d, 4
xor r9d, r9d
call fcn.14007c0f5
movzx eax, word [rsi + 0x46]
test ax, ax
mov dil, byte [rsp + 0x6c]
jle 0x14003d164
mov rcx, qword [rsi + 8]
inc eax
add rcx, 0x1a
xor edx, edx
movzx r8d, byte [rcx]
add edx, r8d
dec eax
add rcx, 0x20
cmp eax, 1
ja 0x14003d150
jmp 0x14003d166
xor edx, edx
movzx ecx, word [rsi + 0x44]
shr ecx, 0xf
add ecx, edx
shl ecx, 2
call fcn.140051261
mov word [rsi + 0x4a], ax
mov r14, qword [rsi + 0x10]
test r14, r14
je 0x14003d192
mov rcx, r14
call fcn.14007c21e
mov r14, qword [r14 + 0x28]
jmp 0x14003d17f
mov rax, qword [rsp + 0x58]
cmp byte [rax], 0
je 0x14003d1c7
mov rdx, qword [rsi]
mov rcx, qword [rsi + 0x70]
add rcx, 8
mov r8, rsi
call fcn.14001ffec
test rax, rax
je 0x14003d4dc
mov rcx, qword [rsp + 0x60]
call fcn.140027709
jmp 0x14003d640
mov rcx, rbp
call fcn.14004e969
test rax, rax
je 0x14003d640
mov dword [rsp + 0x20], 0
mov rcx, rax
mov edx, 0x75
xor r8d, r8d
mov r14, rax
xor r9d, r9d
call fcn.14004e997
cmp qword [rsi + 0x18], 0
lea rax, [0x1402b0a00]
lea r8, [0x1402b0a20]
cmove r8, rax
lea rax, [0x1402ab2c0]
lea r10, [0x1402b0820]
cmove r10, rax
test r15, r15
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x88], r10
je 0x14003d520
mov qword [rsp + 0x80], rbx
mov qword [rsp + 0x78], r12
mov rcx, rbp
mov ebp, dword [rbp + 0x38]
lea ebx, [rbp + 1]
lea eax, [rbp + 3]
mov dword [rsp + 0x6c], eax
mov dword [rcx + 0x38], eax
mov rax, qword [rcx + 0x90]
test rax, rax
cmove rax, rcx
mov byte [rax + 0x21], 1
mov qword [rsp + 0x70], rcx
mov r9d, dword [rcx + 0x7c]
mov dword [rsp + 0x20], r13d
mov rcx, r14
mov edx, 0x62
mov r8d, 1
call fcn.14004e997
mov eax, dword [r14 + 0x90]
test eax, eax
jle 0x14003d2a7
mov rcx, qword [r14 + 0x88]
dec eax
lea rax, [rax + rax*2]
mov word [rcx + rax*8 + 2], 0x10
mov rdi, qword [rsp + 0x70]
mov dword [rdi + 0x34], 2
mov r12d, dword [r14 + 0x90]
lea eax, [r12 + 1]
mov dword [rsp + 0x20], eax
mov rcx, r14
mov edx, 0xd
mov r8d, ebx
xor r9d, r9d
call fcn.14004e997
cmp dword [rdi + 0x30], 0
jne 0x14003d640
mov rcx, rdi
mov rdx, r15
mov r8b, 0x41
call fcn.140051dc7
test rax, rax
je 0x14003d640
movzx ecx, word [rax + 0x46]
mov word [rsi + 0x46], cx
mov rcx, qword [rax + 8]
mov qword [rsi + 8], rcx
mov word [rax + 0x46], 0
mov qword [rax + 8], 0
mov rcx, qword [rsp + 0x60]
mov rdx, rax
call fcn.14001fc03
lea r8, [rsp + 0x98]
mov byte [r8], 0xd
mov dword [r8 + 4], ebx
xorps xmm0, xmm0
movups xmmword [r8 + 8], xmm0
mov rcx, rdi
mov rdx, r15
call fcn.14003fc39
cmp dword [rdi + 0x30], 0
jne 0x14003d640
add ebp, 2
xor r15d, r15d
mov dword [rsp + 0x20], r15d
mov rdi, qword [rsp + 0x58]
mov rcx, rdi
mov edx, 0x43
mov r8d, ebx
xor r9d, r9d
call fcn.14004e997
mov rcx, rdi
mov rax, qword [rdi + 0x18]
mov byte [rax + 0x1f], 0
mov rax, qword [rdi + 0x18]
mov dword [rax + 0x28], r15d
mov eax, dword [rdi + 0x90]
mov rdx, qword [rdi]
lea rdi, [0x1402c6528]
cmp byte [rdx + 0x61], 0
mov rdx, rdi
jne 0x14003d3ba
lea edx, [rax - 1]
test r12d, r12d
cmovns edx, r12d
movsxd rdx, edx
lea rdx, [rdx + rdx*2]
shl rdx, 3
add rdx, qword [rcx + 0x88]
mov dword [rdx + 8], eax
mov r8d, dword [rsp + 0x9c]
mov dword [rsp + 0x20], r15d
mov edx, 0xe
xor r9d, r9d
call fcn.14004e997
mov r14d, eax
mov r8d, dword [rsp + 0xa0]
mov r9d, dword [rsp + 0xa4]
mov dword [rsp + 0x20], ebp
mov rcx, qword [rsp + 0x58]
mov edx, 0x5c
call fcn.14004e997
mov rcx, qword [rsp + 0x58]
mov rdx, rsi
xor r8d, r8d
call fcn.140061f3a
mov dword [rsp + 0x20], r15d
mov rcx, qword [rsp + 0x58]
mov edx, 0x79
mov r8d, 1
mov ebx, dword [rsp + 0x6c]
mov r9d, ebx
call fcn.14004e997
mov dword [rsp + 0x20], ebx
mov rcx, qword [rsp + 0x58]
mov edx, 0x7a
mov r8d, 1
mov r9d, ebp
call fcn.14004e997
mov dword [rsp + 0x20], r15d
mov rcx, qword [rsp + 0x58]
mov edx, 0xb
xor r8d, r8d
mov r9d, r14d
call fcn.14004e997
mov rcx, qword [rsp + 0x58]
mov eax, dword [rcx + 0x90]
mov rdx, qword [rcx]
cmp byte [rdx + 0x61], 0
jne 0x14003d494
lea edx, [rax - 1]
test r14d, r14d
cmovns edx, r14d
movsxd rdx, edx
lea rdi, [rdx + rdx*2]
shl rdi, 3
add rdi, qword [rcx + 0x88]
mov dword [rdi + 8], eax
mov dword [rsp + 0x20], 0
mov edx, 0x75
mov r8d, 1
xor r9d, r9d
call fcn.14004e997
mov r15, qword [rsp + 0x60]
mov rcx, r15
mov rdx, rsi
call fcn.14007c31a
mov r14, rax
mov rbp, qword [rsp + 0x70]
mov r12, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x80]
jmp 0x14003d563
mov qword [rbp + 0x130], 0
mov rax, qword [rsp + 0x60]
or byte [rax + 0x2c], 1
cmp qword [rsi + 0x18], 0
jne 0x14003d640
mov rcx, qword [rbp + 0xe0]
cmp qword [rbx], 0
cmovne r12, rbx
mov edx, dword [r12]
sub edx, ecx
call fcn.140051ce5
add eax, 0xd
mov dword [rsi + 0x50], eax
jmp 0x14003d640
lea rcx, [rbp + 0xf0]
test dil, dil
cmove rcx, r12
mov rdx, qword [rcx]
mov rax, qword [rbp + 0xe0]
mov r9d, edx
sub r9d, eax
cmp byte [rdx], 0x3b
je 0x14003d547
add r9d, dword [rcx + 8]
mov qword [rsp + 0x20], rax
lea rdx, [0x1402b0a40]
mov r15, qword [rsp + 0x60]
mov rcx, r15
call fcn.14002bf89
mov r14, rax
mov eax, dword [rbp + 0x78]
mov ecx, dword [rbp + 0x7c]
mov rdx, qword [rsi]
mov r8, qword [r15 + 0x20]
movsxd rdi, r13d
shl rdi, 5
mov r8, qword [r8 + rdi]
mov dword [rsp + 0x48], eax
mov qword [rsp + 0x40], r14
mov dword [rsp + 0x38], ecx
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], rdx
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x20], rax
lea rdx, [0x1402b0a60]
lea r9, [0x1402ab060]
mov rcx, rbp
call fcn.14004e883
test r14, r14
je 0x14003d5c5
mov rcx, r15
mov rdx, r14
call fcn.14001fb53
mov qword [rsp + 0x60], r15
mov rax, qword [rbp]
mov rdx, qword [rbp + 0x10]
mov rcx, qword [rax + 0x20]
mov r8d, r13d
call fcn.14005f7dd
test byte [rsi + 0x40], 8
je 0x14003d60c
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 0x20]
mov rcx, qword [rax + rdi + 0x18]
cmp qword [rcx + 0x68], 0
jne 0x14003d60c
mov r8, qword [rax + rdi]
lea rdx, [0x1402b0ac0]
mov rcx, rbp
call fcn.14004e883
mov r8, qword [rsi]
lea rdx, [0x1402b0b00]
mov rdi, qword [rsp + 0x60]
mov rcx, rdi
call fcn.14002bf89
mov rcx, qword [rsp + 0x58]
mov edx, r13d
mov r8, rax
call fcn.14004e9f0
cmp byte [rdi + 0xb5], 0
jne 0x14003d19c
add rsp, 0xb8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor r13d, r13d
jmp 0x14003cd3f