Function at 0x140013778
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x328]
sub rsp, 0x428
mov qword [rbp - 0x78], 0xfffffffffffffffe
mov rax, qword [0x140046180]
xor rax, rsp
mov qword [rbp + 0x310], rax
mov qword [rsp + 0x50], r9
mov qword [rsp + 0x78], r8
mov qword [rbp - 0x80], rdx
mov r12, rcx
mov rax, qword [rbp + 0x390]
mov qword [rsp + 0x70], rax
mov rsi, qword [rbp + 0x398]
mov rax, qword [rbp + 0x3a0]
mov qword [rsp + 0x58], rax
mov rax, qword [rbp + 0x3a8]
mov qword [rsp + 0x68], rax
mov rax, qword [rbp + 0x3b0]
mov qword [rsp + 0x60], rax
xor r14d, r14d
mov qword [rax + 8], r14
mov r13d, r14d
xor edx, edx
lea r8d, [r14 + 0x60]
lea rcx, [rbp - 0x68]
call fcn.140026400
lea edx, [r14 + 1]
mov dword [rsp + 0x44], edx
mov dword [rsp + 0x48], 0x927c0
mov dword [rbp - 0x70], 0x68
mov eax, dword [0x14003a644]
mov dword [rbp + 0x118], eax
movzx eax, word [0x14003a648]
mov word [rbp + 0x11c], ax
lea ecx, [rdx + 3]
mov al, byte [rbp + rcx + 0x117]
xor byte [rbp + rcx + 0x118], al
sub rcx, rdx
test rcx, rcx
jg 0x140013842
xor byte [rbp + 0x118], 0x9b
or eax, 0xffffffff
mov dword [rbp - 0x60], eax
mov dword [rbp - 0x50], eax
mov dword [rbp - 0x20], eax
mov dword [rbp - 0x10], eax
mov rdx, r12
lea rcx, [rbp + 0x78]
call fcn.140020a28
nop
mov rbx, qword [r12 + 0x10]
lea rdi, [rbp + 0x78]
cmp qword [rbp + 0x90], 8
cmovae rdi, qword [rbp + 0x78]
mov edx, 0xa83e62c
mov r15d, 0x9cacbdc
mov ecx, r15d
call fcn.140022154
lea r9, [rbp - 0x70]
xor r8d, r8d
mov edx, ebx
mov rcx, rdi
call rax
test eax, eax
jne 0x1400138d0
cmp qword [rbp + 0x90], 8
jb 0x1400138c9
mov rcx, qword [rbp + 0x78]
call fcn.1400233e4
xor eax, eax
jmp 0x140014018
mov rdx, qword [rbp - 0x58]
test rdx, rdx
jne 0x1400138db
jmp 0x1400138b6
mov ebx, 7
mov qword [rbp + 0x40], rbx
mov qword [rbp + 0x38], r14
mov word [rbp + 0x28], r14w
lea rcx, [rbp + 0x28]
call fcn.140002158
nop
xor r8d, r8d
lea rdx, [0x14003a64c]
lea rcx, [rbp + 0x28]
call fcn.14001403c
cmp rax, 0xffffffffffffffff
je 0x140013941
mov r9, rax
xor r8d, r8d
lea rdx, [rbp]
lea rcx, [rbp + 0x28]
call fcn.14001414c
nop
mov rdx, rax
lea rcx, [rbp + 0x28]
call fcn.1400033a4
nop
cmp qword [rbp + 0x18], 8
jb 0x140013941
mov rcx, qword [rbp]
call fcn.1400233e4
lea rcx, [rbp + 0x120]
lea rdx, [0x14003a650]
mov r8d, 0xe8
call fcn.1400230b0
mov r11d, 0x72
movzx eax, word [rbp + r11*2 + 0x11e]
xor word [rbp + r11*2 + 0x120], ax
dec r11
test r11, r11
jg 0x140013960
mov eax, 0x2a9a
xor word [rbp + 0x120], ax
mov qword [rbp + 0x68], rbx
mov qword [rbp + 0x60], r14
mov word [rbp + 0x50], r14w
cmp qword [rbp - 0x18], r14
je 0x1400139b6
mov ecx, 0x2f
mov rdx, qword [rbp - 0x28]
lea rax, [rdx + 2]
cmp cx, word [rdx]
cmove rdx, rax
lea rcx, [rbp + 0x50]
call fcn.140002158
cmp qword [rsi + 0x10], r14
jbe 0x1400139c3
mov edi, 3
jmp 0x1400139d5
call fcn.1400136f8
mov edi, r14d
test eax, eax
mov eax, 4
cmovne edi, eax
mov rdx, rsi
lea rcx, [rbp + 0xc8]
call fcn.140020a28
mov rbx, rax
cmp qword [rax + 0x18], 8
jb 0x1400139f1
mov rbx, qword [rax]
mov edx, 0xbeb644e
mov ecx, r15d
call fcn.140022154
mov dword [rsp + 0x20], r14d
xor r9d, r9d
mov r8, rbx
mov edx, edi
lea rcx, [rbp + 0x120]
call rax
mov r14, rax
cmp qword [rbp + 0xe0], 8
jb 0x140013a2d
mov rcx, qword [rbp + 0xc8]
call fcn.1400233e4
mov ebx, 7
mov qword [rbp + 0xe0], rbx
xor edi, edi
mov qword [rbp + 0xd8], rdi
mov word [rbp + 0xc8], di
test r14, r14
je 0x140013fca
mov ebx, 0x8d917be
mov edx, ebx
mov ecx, r15d
call fcn.140022154
lea esi, [rdi + 4]
mov r9d, esi
lea r8, [rsp + 0x48]
lea edx, [rdi + 5]
mov rcx, r14
call rax
mov dword [rsp + 0x48], 0x927c0
mov edx, ebx
mov ecx, r15d
call fcn.140022154
mov r9d, esi
lea r8, [rsp + 0x48]
lea edx, [rdi + 6]
mov rcx, r14
call rax
lea r9d, [rdi + 5]
xor r8d, r8d
lea rdx, [rbp]
mov rcx, r12
call fcn.140010ff0
cmp qword [rax + 0x18], 0x10
jb 0x140013ab3
mov rax, qword [rax]
lea rdx, [rbp + 0x118]
mov rcx, rax
call fcn.140023be8
test eax, eax
sete bl
cmp qword [rbp + 0x18], 0x10
jb 0x140013ad7
mov rcx, qword [rbp]
call fcn.1400233e4
test bl, bl
je 0x140013b62
mov dword [rsp + 0x40], 0xa8
call fcn.1400136f8
test eax, eax
je 0x140013af8
or dword [rsp + 0x40], 0xa00
mov ebx, 0x8d917be
mov edx, ebx
mov ecx, r15d
call fcn.140022154
mov r9d, esi
lea r8, [rsp + 0x40]
mov edx, 0x54
mov rcx, r14
call rax
mov dword [rsp + 0x4c], esi
mov edx, 0x4df3d7e
mov ecx, r15d
call fcn.140022154
lea r9, [rsp + 0x4c]
lea r8, [rsp + 0x40]
mov edx, 0x1f
mov rcx, r14
call rax
or dword [rsp + 0x40], 0x3300
mov edx, ebx
mov ecx, r15d
call fcn.140022154
mov r9d, esi
lea r8, [rsp + 0x40]
mov edx, 0x1f
mov rcx, r14
call rax
lea rbx, [rbp + 0x28]
cmp qword [rbp + 0x40], 8
cmovae rbx, qword [rbp + 0x28]
mov edx, 0xa8cf504
mov ecx, r15d
call fcn.140022154
xor r9d, r9d
movzx r8d, word [rbp - 0x4c]
mov rdx, rbx
mov rcx, r14
call rax
mov r15, rax
test rax, rax
je 0x140013faf
mov r9d, 5
xor r8d, r8d
lea rdx, [rbp]
mov rcx, r12
call fcn.140010ff0
cmp qword [rax + 0x18], 0x10
jb 0x140013bb8
mov rax, qword [rax]
lea rdx, [rbp + 0x118]
mov rcx, rax
call fcn.140023be8
test eax, eax
sete bl
cmp qword [rbp + 0x18], 0x10
jb 0x140013bdc
mov rcx, qword [rbp]
call fcn.1400233e4
mov eax, 0x800000
test bl, bl
cmovne edi, eax
mov rdx, qword [rsp + 0x50]
lea rcx, [rbp]
call fcn.140020a28
mov rbx, rax
lea rsi, [rbp + 0x50]
cmp qword [rbp + 0x68], 8
cmovae rsi, qword [rbp + 0x50]
cmp qword [rax + 0x18], 8
jb 0x140013c0f
mov rbx, qword [rax]
mov edx, 0x67ef924
mov ecx, 0x9cacbdc
call fcn.140022154
mov dword [rsp + 0x30], edi
xor edi, edi
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
xor r9d, r9d
mov r8, rsi
mov rdx, rbx
mov rcx, r15
call rax
mov rsi, rax
mov qword [rsp + 0x50], rax
cmp qword [rbp + 0x18], 8
jb 0x140013c54
mov rcx, qword [rbp]
call fcn.1400233e4
mov ebx, 0x9cacbdc
test rsi, rsi
je 0x140013f9c
mov edx, 0x8d917be
mov ecx, ebx
call fcn.140022154
mov r9d, 4
lea r8, [rsp + 0x44]
lea edx, [r9 + 0x3b]
mov rcx, rsi
call rax
mov dword [rsp + 0x44], 3
call fcn.1400136f8
test eax, eax
je 0x140013cb3
mov edx, 0x8d917be
mov ecx, ebx
call fcn.140022154
mov r9d, 4
lea r8, [rsp + 0x44]
lea edx, [r9 + 0x72]
mov rcx, rsi
call rax
mov dword [rsp + 0x44], edi
mov edx, 0x8d917be
mov ecx, ebx
call fcn.140022154
mov r9d, 4
lea r8, [rsp + 0x44]
lea edx, [r9 + 0x54]
mov rcx, rsi
call rax
mov r9d, 5
xor r8d, r8d
lea rdx, [rbp]
mov rcx, r12
call fcn.140010ff0
cmp qword [rax + 0x18], 0x10
jb 0x140013cf6
mov rax, qword [rax]
lea rdx, [rbp + 0x118]
mov rcx, rax
call fcn.140023be8
test eax, eax
sete bl
cmp qword [rbp + 0x18], 0x10
jb 0x140013d1a
mov rcx, qword [rbp]
call fcn.1400233e4
test bl, bl
je 0x140013d78
mov dword [rsp + 0x40], edi
mov r12d, 4
mov dword [rsp + 0x4c], r12d
mov edx, 0x4df3d7e
mov ebx, 0x9cacbdc
mov ecx, ebx
call fcn.140022154
lea r9, [rsp + 0x4c]
lea r8, [rsp + 0x40]
lea edx, [r12 + 0x1b]
mov rcx, rsi
call rax
or dword [rsp + 0x40], 0x3300
mov edx, 0x8d917be
mov ecx, ebx
call fcn.140022154
mov r9d, r12d
lea r8, [rsp + 0x40]
lea edx, [r12 + 0x1b]
mov rcx, rsi
call rax
mov r12, qword [rsp + 0x70]
mov rax, qword [r12 + 8]
mov rbx, qword [rax]
cmp rbx, rax
je 0x140013e8d
lea rdx, [rbx + 0x18]
lea rcx, [rbp + 0xa0]
call fcn.1400142e8
nop
lea r8, [rbx + 0x40]
mov rdx, rax
lea rcx, [rbp]
call fcn.140014394
nop
cmp qword [rbp + 0xb8], 0x10
jb 0x140013dc6
mov rcx, qword [rbp + 0xa0]
call fcn.1400233e4
mov qword [rbp + 0xb8], 0xf
and qword [rbp + 0xb0], 0
mov byte [rbp + 0xa0], 0
lea rdx, [rbp]
lea rcx, [rbp + 0xf0]
call fcn.140020a28
mov rdi, rax
cmp qword [rax + 0x18], 8
jb 0x140013dfd
mov rdi, qword [rax]
mov edx, 0xc9be023
mov ecx, 0x9cacbdc
call fcn.140022154
mov r9d, 0x20000000
or r8d, 0xffffffff
mov rdx, rdi
mov rcx, rsi
call rax
nop
cmp qword [rbp + 0x108], 8
jb 0x140013e36
mov rcx, qword [rbp + 0xf0]
call fcn.1400233e4
nop
cmp qword [rbp + 0x18], 0x10
jb 0x140013e46
mov rcx, qword [rbp]
call fcn.1400233e4
xor edi, edi
cmp byte [rbx + 0x69], dil
jne 0x140013e82
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x69], dil
jne 0x140013e66
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x69], dil
je 0x140013e58
jmp 0x140013e82
mov rax, qword [rbx + 8]
jmp 0x140013e79
cmp rbx, qword [rax + 0x10]
jne 0x140013e7f
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x69], dil
je 0x140013e6c
mov rbx, rax
cmp rbx, qword [r12 + 8]
jne 0x140013d8e
mov edx, 0x6711784
mov ebx, 0x9cacbdc
mov ecx, ebx
call fcn.140022154
mov qword [rsp + 0x30], rdi
mov rcx, qword [rsp + 0x78]
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], ecx
mov r9, qword [rbp - 0x80]
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call rax
test eax, eax
je 0x140013f86
mov edx, 0xab93785
mov ecx, ebx
call fcn.140022154
xor edx, edx
mov rcx, rsi
call rax
test eax, eax
je 0x140013f86
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x50]
call fcn.14001321c
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x50]
call fcn.140013140
xor edx, edx
mov r8d, 0xfe
lea rcx, [rbp + 0x212]
call fcn.140026400
mov dword [rsp + 0x40], 0x100
mov word [rbp + 0x210], di
mov rsi, qword [rsp + 0x50]
test rsi, rsi
je 0x140013f68
mov edx, 0x53e9ea3
mov ecx, ebx
call fcn.140022154
mov qword [rsp + 0x28], rdi
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x20], rcx
lea r9, [rbp + 0x210]
xor r8d, r8d
lea edx, [r8 + 0x13]
mov rcx, rsi
call rax
mov r11d, dword [rsp + 0x40]
mov word [rbp + r11*2 + 0x210], di
lea rcx, [rbp + 0x210]
call fcn.140023c30
mov rcx, qword [rsp + 0x58]
mov dword [rcx], eax
test eax, eax
mov eax, 1
cmovne r13d, eax
test rsi, rsi
je 0x140013f9c
mov edx, 0x74e5405
mov ecx, ebx
call fcn.140022154
mov rcx, rsi
call rax
mov edx, 0x74e5405
mov ecx, ebx
call fcn.140022154
mov rcx, r15
call rax
jmp 0x140013fb4
mov ebx, 0x9cacbdc
mov edx, 0x74e5405
mov ecx, ebx
call fcn.140022154
mov rcx, r14
call rax
mov ebx, 7
cmp qword [rbp + 0x68], 8
jb 0x140013fda
mov rcx, qword [rbp + 0x50]
call fcn.1400233e4
mov qword [rbp + 0x68], rbx
mov qword [rbp + 0x60], rdi
mov word [rbp + 0x50], di
cmp qword [rbp + 0x40], 8
jb 0x140013ff6
mov rcx, qword [rbp + 0x28]
call fcn.1400233e4
mov qword [rbp + 0x40], rbx
mov qword [rbp + 0x38], rdi
mov word [rbp + 0x28], di
cmp qword [rbp + 0x90], 8
jb 0x140014015
mov rcx, qword [rbp + 0x78]
call fcn.1400233e4
mov eax, r13d
mov rcx, qword [rbp + 0x310]
xor rcx, rsp
call fcn.140022ee0
add rsp, 0x428
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret