Function at 0x1401bf400
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
mov dword [rsp + 0x20], r8d
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
xor eax, eax
mov dword [rsp + 0x2c], r9d
mov r9, qword [rsp + 0xb8]
xor r12d, r12d
cmp dword [rcx], eax
mov rdi, rcx
mov ecx, dword [rsp + 0xc0]
mov ebp, r8d
sete al
mov dword [rsp + 0x24], r12d
mov dword [rsp + 0x28], eax
lea r14d, [r12 + 0xd]
mov r8d, r14d
lea eax, [rcx - 1]
movsxd rdx, eax
mov qword [rsp + 0x40], rdx
test eax, eax
js 0x1401bf481
movzx ecx, byte [rdx + r9]
lea eax, [r8*8]
xor ecx, eax
xor r8d, ecx
sub rdx, 1
jns 0x1401bf462
mov ecx, dword [rsp + 0xc0]
movzx r10d, byte [rsp + 0xb0]
lea eax, [r8*8]
xor eax, r10d
mov dword [rsp + 0x20], r10d
xor eax, r8d
lea rsi, [rdi + 0x20]
xor edx, edx
div dword [rdi + 0x14]
mov rax, qword [rsi]
mov r13d, edx
mov rbx, qword [rax + rdx*8]
test rbx, rbx
je 0x1401bf563
cmp byte [rbx + 0x30], r10b
jne 0x1401bf4df
cmp dword [rbx + 0x1c], ecx
jne 0x1401bf4df
movsxd r8, ecx
mov rdx, r9
lea rcx, [rbx + 0x31]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x1401bf4f8
mov r10b, byte [rsp + 0xb0]
mov rbx, qword [rbx]
test rbx, rbx
je 0x1401bf55f
mov ecx, dword [rsp + 0xc0]
mov r9, qword [rsp + 0xb8]
jmp 0x1401bf4b9
test rbx, rbx
je 0x1401bf55f
mov ecx, dword [rbx + 0x10]
mov eax, ecx
sub eax, dword [rbx + 0x18]
cmp eax, 0x16
jge 0x1401bf54b
lea esi, [rcx + rcx]
mov rcx, rbx
movsxd rdx, esi
call fcn.140157a64
mov rdx, rax
test rax, rax
je 0x1401bf857
mov dword [rax + 0x10], esi
mov rcx, qword [rdi + 0x20]
lea r8, [rcx + r13*8]
mov rcx, qword [r8]
cmp rcx, rbx
je 0x1401bf545
mov rax, qword [rcx]
mov r8, rcx
mov rcx, rax
cmp rax, rbx
jne 0x1401bf537
mov qword [r8], rdx
mov rbx, rdx
mov r12d, dword [rbx + 0x18]
mov r14, qword [rsp + 0x98]
neg r12d
jmp 0x1401bf774
lea rsi, [rdi + 0x20]
movsxd r15, dword [rsp + 0xc0]
mov ecx, 0x80
lea rax, [r15 + 1]
mov qword [rsp + 0x48], rax
add rax, 0x71
cmp rax, rcx
cmovl rax, rcx
mov ecx, dword [rdi + 0x14]
mov qword [rsp + 0x38], rax
mov eax, dword [rdi + 0x10]
add eax, eax
cmp eax, ecx
jl 0x1401bf6bc
mov rax, qword [rsi]
lea r15d, [rcx + rcx]
movsxd rbx, r15d
shl rbx, 3
mov rcx, rbx
mov dword [rsp + 0x90], r15d
mov qword [rsp + 0x30], rax
call fcn.140157a00
mov r13, rax
test rax, rax
je 0x1401bf857
mov r8, rbx
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
cmp dword [rdi + 0x14], r12d
jle 0x1401bf654
mov rsi, qword [rsp + 0x30]
mov ebp, r15d
jmp 0x1401bf62c
mov rax, qword [rbx]
lea rcx, [rbx + 0x30]
mov qword [rsi], rax
mov r15d, r14d
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
sub eax, 1
movsxd r8, eax
js 0x1401bf618
movzx edx, byte [r8 + rbx + 0x30]
lea ecx, [r15*8]
xor edx, ecx
xor r15d, edx
sub r8, 1
jns 0x1401bf5ff
xor edx, edx
mov eax, r15d
div ebp
mov rax, qword [r13 + rdx*8]
mov qword [rbx], rax
mov qword [r13 + rdx*8], rbx
mov rbx, qword [rsi]
test rbx, rbx
jne 0x1401bf5e5
inc r12d
add rsi, 8
cmp r12d, dword [rdi + 0x14]
jl 0x1401bf62c
mov ebp, dword [rsp + 0xa8]
lea rsi, [rdi + 0x20]
mov r15d, dword [rsp + 0x90]
mov rcx, qword [rsp + 0x30]
call fcn.140157a98
mov rdx, qword [rsp + 0x40]
mov dword [rdi + 0x14], r15d
mov qword [rsi], r13
test rdx, rdx
js 0x1401bf693
mov r8, qword [rsp + 0xb8]
movzx ecx, byte [rdx + r8]
lea eax, [r14*8]
xor ecx, eax
xor r14d, ecx
sub rdx, 1
jns 0x1401bf677
lea rsi, [rdi + 0x20]
mov r12d, dword [rsp + 0x24]
lea eax, [r14*8]
xor eax, dword [rsp + 0x20]
xor edx, edx
xor eax, r14d
movsxd r14, dword [rsp + 0xc0]
div r15d
mov r15, r14
mov r13d, edx
jmp 0x1401bf6c4
mov r14d, dword [rsp + 0xc0]
mov rcx, qword [rsp + 0x38]
call fcn.140157a00
mov rbx, rax
test rax, rax
je 0x1401bf857
xor edx, edx
mov rcx, rax
lea r8d, [rdx + 0x30]
call sub.VCRUNTIME140.dll_memset
mov rax, qword [rsp + 0x38]
lea rcx, [rbx + 0x31]
mov rdx, qword [rsp + 0xb8]
mov r8, r15
mov dword [rbx + 0x10], eax
mov al, byte [rsp + 0xb0]
mov byte [rbx + 0x30], al
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsp + 0x48]
mov dword [rbx + 0x1c], r14d
mov edx, r13d
mov byte [rbx + rax + 0x30], 0
lea eax, [r14 + 0x32]
mov r14, qword [rsp + 0x98]
mov dword [rbx + 0x18], eax
mov rax, qword [rdi + 0x20]
mov rcx, qword [rax + rdx*8]
mov qword [rbx], rcx
mov rax, qword [rsi]
mov qword [rax + rdx*8], rbx
mov rdx, r14
inc dword [rdi + 0x10]
movsxd rcx, dword [rbx + 0x18]
add rcx, rbx
call fcn.1401c10c0
add eax, dword [rbx + 0x18]
mov dword [rbx + 0x18], eax
mov dword [rbx + 0x14], eax
mov qword [rbx + 0x28], r14
cmp dword [rdi], 1
je 0x1401bf774
inc eax
mov dword [rbx + 0x18], eax
mov eax, dword [rdi]
neg eax
sbb cx, cx
mov word [rbx + 0x22], cx
mov rsi, qword [rbx + 0x28]
cmp r14, rsi
je 0x1401bf7cb
xor r8d, r8d
mov rdx, rbx
mov rcx, rdi
call fcn.140180b84
movsxd rcx, dword [rbx + 0x18]
mov rdx, r14
sub rdx, rsi
add rcx, rbx
call fcn.1401c10c0
add eax, dword [rbx + 0x18]
mov r11d, 1
mov dword [rbx + 0x18], eax
mov dword [rbx + 0x14], eax
mov qword [rbx + 0x28], r14
cmp dword [rdi], r11d
je 0x1401bf7d0
inc eax
mov dword [rbx + 0x18], eax
mov eax, dword [rdi]
neg eax
sbb cx, cx
and dword [rbx + 0x24], 0
mov word [rbx + 0x22], cx
jmp 0x1401bf7d0
mov r11d, dword [rsp + 0x28]
test ebp, ebp
js 0x1401bf843
cmp dword [rdi], 1
jne 0x1401bf7df
mov byte [rbx + 0x21], 1
jmp 0x1401bf847
movsx eax, word [rbx + 0x22]
cmp ebp, eax
je 0x1401bf815
cmp dword [rdi], 0
jne 0x1401bf83d
movsxd rax, dword [rbx + 0x18]
movsxd rdx, ebp
mov byte [rax + rbx], 1
mov eax, dword [rbx + 0x18]
inc eax
movsxd rcx, eax
add rcx, rbx
mov dword [rbx + 0x18], eax
call fcn.1401c10c0
add dword [rbx + 0x18], eax
and dword [rbx + 0x24], 0
mov word [rbx + 0x22], bp
mov ebp, dword [rsp + 0x2c]
test r11d, r11d
je 0x1401bf847
movsxd rcx, dword [rbx + 0x18]
mov eax, ebp
sub eax, dword [rbx + 0x24]
add rcx, rbx
add eax, 2
movsxd rdx, eax
call fcn.1401c10c0
add dword [rbx + 0x18], eax
mov dword [rbx + 0x24], ebp
jmp 0x1401bf847
mov word [rbx + 0x22], bp
jmp 0x1401bf81e
mov byte [rbx + 0x20], 1
mov eax, dword [rbx + 0x18]
mov rcx, qword [rdi + 8]
add eax, r12d
add dword [rcx], eax
xor eax, eax
jmp 0x1401bf85c
mov eax, 7
mov rbx, qword [rsp + 0xa0]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret