Function at 0x14004ffdb
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov rsi, r9
mov edi, r8d
mov r15, rdx
mov r12d, dword [rsp + 0xb0]
call fcn.1400471aa
mov dword [rsp + 0x2c], edi
movsxd r13, edi
lea r9, [r15 + 8]
xor r14d, r14d
mov rbx, rax
xor ebp, ebp
mov qword [rsp + 0x38], r15
jmp 0x1400500da
mov cl, byte [rbx]
test cl, cl
sete r8b
cmp cl, 0x2c
setne dl
inc rbx
xor dl, r8b
jne 0x14005001e
lea rdx, [rbx - 1]
test cl, cl
je 0x140050041
mov byte [rdx], 0
jmp 0x140050044
mov rbx, rdx
cmp dword [rsp + 0x2c], 0
jle 0x1400500da
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x40], r14
mov r15, r9
mov rbp, r9
xor r14d, r14d
mov rcx, qword [rbp - 8]
mov rdx, rdi
call fcn.1400b90f0
test eax, eax
je 0x140050095
inc r14
add rbp, 0x18
cmp r14, r13
jl 0x140050066
mov r14, qword [rsp + 0x40]
mov ebp, dword [rsp + 0x28]
mov rax, qword [rsp + 0x30]
mov r9, r15
jmp 0x1400500da
mov edi, dword [rbp]
cmp edi, 0xffffffff
mov r14, qword [rsp + 0x40]
mov ebp, dword [rsp + 0x28]
mov rax, qword [rsp + 0x30]
mov r9, r15
je 0x1400500da
mov edx, 1
mov ecx, edi
shl edx, cl
bt ebp, edi
jb 0x1400500da
or ebp, edx
mov rcx, rsi
mov edx, r12d
mov r8d, r14d
mov r9d, edi
call fcn.14003a0a3
mov r9, r15
mov rax, qword [rsp + 0x30]
inc r14d
mov rdi, rbx
lea rbx, [rdi + 1]
jmp 0x1400500e9
inc rdi
inc rbx
mov cl, byte [rdi]
cmp cl, 0x2c
je 0x1400500e3
test cl, cl
jne 0x14005001e
mov rcx, rax
call fcn.140047430
mov eax, dword [rsp + 0x2c]
cmp r14d, eax
mov rbx, qword [rsp + 0x38]
jge 0x140050255
mov ecx, eax
mov qword [rsp + 0x30], rcx
test eax, eax
jle 0x140050248
xor r15d, r15d
lea rdi, [r15 + r15*2]
lea r13, [rbx + rdi*8 + 8]
mov eax, dword [r13]
cmp eax, 0x20
jl 0x140050153
mov r8d, 0x168
lea rcx, [0x14000ada4]
lea rdx, str..._settings.c
call fcn.1400b5fb0
mov eax, dword [r13]
bt ebp, eax
jb 0x14005023a
mov eax, dword [rbx + rdi*8 + 0xc]
cmp eax, 0xffffffff
je 0x14005019e
bt ebp, eax
jae 0x14005023a
test r14d, r14d
mov dword [rsp + 0x28], ebp
mov rbp, r14
jle 0x1400501ae
lea rbx, [rbx + rdi*8 + 0xc]
xor r14d, r14d
mov rcx, rsi
mov edx, r12d
mov r8d, r14d
call fcn.1400399e8
cmp eax, dword [rbx]
je 0x1400501ca
inc r14d
cmp r14d, ebp
jl 0x140050182
jmp 0x1400501b1
mov dword [rsp + 0x28], ebp
mov ebx, dword [rbx + rdi*8 + 0x10]
sar ebx, 0x1f
and ebx, r14d
jmp 0x1400501df
xor r14d, r14d
mov r8d, 0x17c
lea rcx, str.j___n
lea rdx, str..._settings.c
call fcn.1400b5fb0
mov rax, qword [rsp + 0x38]
mov ebx, dword [rax + rdi*8 + 0x10]
shr ebx, 0x1f
xor ebx, 1
add ebx, r14d
mov r14, rbp
cmp r14d, ebx
jle 0x14005020f
mov edi, r14d
lea ebp, [rdi - 1]
mov rcx, rsi
mov edx, r12d
mov r8d, ebp
call fcn.1400399e8
mov rcx, rsi
mov edx, r12d
mov r8d, edi
mov r9d, eax
call fcn.14003a0a3
cmp ebp, ebx
mov edi, ebp
jg 0x1400501e7
mov r9d, dword [r13]
mov rcx, rsi
mov edx, r12d
mov r8d, ebx
call fcn.14003a0a3
mov cl, byte [r13]
mov eax, 1
shl eax, cl
mov ebp, dword [rsp + 0x28]
or ebp, eax
inc r14d
mov rbx, qword [rsp + 0x38]
inc r15
cmp r15, qword [rsp + 0x30]
jne 0x140050124
mov eax, dword [rsp + 0x2c]
cmp r14d, eax
jl 0x140050119
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret