Function at 0x1401f2ddc
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
mov r10, qword [rsp + 0xb8]
xor eax, eax
xor r13d, r13d
mov dword [rsp + 0x30], r9d
cmp dword [rcx], eax
mov ebp, r8d
mov r9d, dword [rsp + 0xc0]
mov rsi, rcx
sete al
mov dword [rsp + 0x24], r13d
mov dword [rsp + 0x2c], eax
lea r14d, [r13 + 0xd]
mov r8d, r14d
lea eax, [r9 - 1]
movsxd r15, eax
mov rdx, r15
test eax, eax
js 0x1401f2e55
movzx ecx, byte [rdx + r10]
lea eax, [r8*8]
xor ecx, eax
xor r8d, ecx
sub rdx, 1
jns 0x1401f2e3d
movzx ecx, byte [rsp + 0xb0]
lea eax, [r8*8]
xor eax, ecx
mov dword [rsp + 0x28], ecx
xor eax, r8d
xor edx, edx
div dword [rsi + 0x14]
mov rax, qword [rsi + 0x20]
mov dword [rsp + 0x90], edx
mov r12d, edx
mov rdi, qword [rax + rdx*8]
test rdi, rdi
je 0x1401f2f3b
movsxd rbp, r9d
cmp byte [rdi + 0x30], cl
jne 0x1401f2eb5
cmp dword [rdi + 0x1c], ebp
jne 0x1401f2eb5
mov r8, rbp
lea rcx, [rdi + 0x31]
mov rdx, r10
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x1401f2ec5
mov cl, byte [rsp + 0xb0]
mov rdi, qword [rdi]
mov r10, qword [rsp + 0xb8]
test rdi, rdi
jne 0x1401f2e91
mov ebp, dword [rsp + 0xa8]
test rdi, rdi
je 0x1401f2f33
mov ecx, dword [rdi + 0x10]
mov eax, ecx
sub eax, dword [rdi + 0x18]
cmp eax, 0x16
jge 0x1401f2f1f
lea ebx, [rcx + rcx]
mov rcx, rdi
movsxd rdx, ebx
call fcn.140186b3c
mov rdx, rax
test rax, rax
je 0x1401f30b7
mov dword [rax + 0x10], ebx
mov rcx, qword [rsi + 0x20]
lea r8, [rcx + r12*8]
mov rcx, qword [r8]
cmp rcx, rdi
je 0x1401f2f19
mov rax, qword [rcx]
mov r8, rcx
mov rcx, rax
cmp rax, rdi
jne 0x1401f2f0b
mov qword [r8], rdx
mov rdi, rdx
mov r13d, dword [rdi + 0x18]
mov r14, qword [rsp + 0x98]
neg r13d
jmp 0x1401f315c
mov r9d, dword [rsp + 0xc0]
mov ecx, dword [rsi + 0x14]
lea eax, [r9 + 1]
movsxd r12, eax
mov eax, 0x80
add r12, 0x71
cmp r12, rax
cmovl r12, rax
mov eax, dword [rsi + 0x10]
add eax, eax
mov qword [rsp + 0x48], r12
cmp eax, ecx
jl 0x1401f309f
lea eax, [rcx + rcx]
mov rcx, qword [rsi + 0x20]
movsxd rbx, eax
mov qword [rsp + 0x40], rcx
shl rbx, 3
mov rcx, rbx
mov dword [rsp + 0x20], eax
call fcn.140186ad8
mov qword [rsp + 0x38], rax
mov rdi, rax
test rax, rax
je 0x1401f30b7
mov r8, rbx
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
xor eax, eax
mov dword [rsp + 0x90], eax
cmp dword [rsi + 0x14], eax
jle 0x1401f304a
mov rbx, qword [rsp + 0x40]
mov rbp, rdi
mov r12d, dword [rsp + 0x20]
mov rdi, qword [rbx]
test rdi, rdi
je 0x1401f3022
mov rax, qword [rdi]
lea rcx, [rdi + 0x30]
mov qword [rbx], rax
mov r13d, r14d
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
sub eax, 1
movsxd r8, eax
js 0x1401f2ffe
movzx edx, byte [rdi + r8 + 0x30]
lea ecx, [r13*8]
xor edx, ecx
xor r13d, edx
sub r8, 1
jns 0x1401f2fe5
xor edx, edx
mov eax, r13d
div r12d
mov rax, qword [rbp + rdx*8]
mov qword [rdi], rax
mov qword [rbp + rdx*8], rdi
mov rdi, qword [rbx]
test rdi, rdi
jne 0x1401f2fcb
mov eax, dword [rsp + 0x90]
inc eax
add rbx, 8
mov dword [rsp + 0x90], eax
cmp eax, dword [rsi + 0x14]
jl 0x1401f2fc3
mov ebp, dword [rsp + 0xa8]
mov r12, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x38]
mov r13d, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x40]
call fcn.140186c1c
mov r8d, dword [rsp + 0x20]
mov dword [rsi + 0x14], r8d
mov qword [rsi + 0x20], rdi
test r15, r15
js 0x1401f3086
mov rdx, qword [rsp + 0xb8]
movzx ecx, byte [r15 + rdx]
lea eax, [r14*8]
xor ecx, eax
xor r14d, ecx
sub r15, 1
jns 0x1401f306e
lea eax, [r14*8]
xor edx, edx
xor eax, dword [rsp + 0x28]
xor eax, r14d
div r8d
mov r14d, edx
jmp 0x1401f30a7
mov r14d, dword [rsp + 0x90]
mov rcx, r12
call fcn.140186ad8
mov rdi, rax
test rax, rax
jne 0x1401f30c1
mov eax, 7
jmp 0x1401f3239
xor edx, edx
mov rcx, rdi
lea r8d, [rdx + 0x30]
call sub.VCRUNTIME140.dll_memset
mov al, byte [rsp + 0xb0]
lea rcx, [rdi + 0x31]
movsxd r15, dword [rsp + 0xc0]
mov rdx, qword [rsp + 0xb8]
mov r8, r15
mov byte [rdi + 0x30], al
mov dword [rdi + 0x10], r12d
call sub.VCRUNTIME140.dll_memcpy
mov dword [rdi + 0x1c], r15d
lea eax, [r15 + 0x32]
mov byte [r15 + rdi + 0x31], 0
mov dword [rdi + 0x18], eax
mov rax, qword [rsi + 0x20]
mov edx, r14d
mov r14, qword [rsp + 0x98]
mov rcx, qword [rax + rdx*8]
mov qword [rdi], rcx
mov rax, qword [rsi + 0x20]
mov qword [rax + rdx*8], rdi
mov rdx, r14
inc dword [rsi + 0x10]
movsxd rcx, dword [rdi + 0x18]
add rcx, rdi
call fcn.1401f4a8c
add dword [rdi + 0x18], eax
mov eax, dword [rdi + 0x18]
mov dword [rdi + 0x14], eax
mov qword [rdi + 0x28], r14
cmp dword [rsi], 1
je 0x1401f315c
inc eax
mov dword [rdi + 0x18], eax
mov eax, dword [rsi]
neg eax
sbb cx, cx
mov word [rdi + 0x22], cx
mov rbx, qword [rdi + 0x28]
cmp r14, rbx
je 0x1401f31b3
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call fcn.1401b4aec
movsxd rcx, dword [rdi + 0x18]
mov rdx, r14
sub rdx, rbx
add rcx, rdi
call fcn.1401f4a8c
add dword [rdi + 0x18], eax
mov r11d, 1
mov eax, dword [rdi + 0x18]
mov dword [rdi + 0x14], eax
mov qword [rdi + 0x28], r14
cmp dword [rsi], r11d
je 0x1401f31b8
inc eax
mov dword [rdi + 0x18], eax
mov eax, dword [rsi]
neg eax
sbb cx, cx
and dword [rdi + 0x24], 0
mov word [rdi + 0x22], cx
jmp 0x1401f31b8
mov r11d, dword [rsp + 0x2c]
test ebp, ebp
js 0x1401f3227
cmp dword [rsi], 1
jne 0x1401f31c7
mov byte [rdi + 0x21], 1
jmp 0x1401f322b
movsx eax, word [rdi + 0x22]
cmp ebp, eax
je 0x1401f31f9
cmp dword [rsi], 0
jne 0x1401f3221
movsxd rax, dword [rdi + 0x18]
movsxd rdx, ebp
mov byte [rax + rdi], 1
inc dword [rdi + 0x18]
movsxd rcx, dword [rdi + 0x18]
add rcx, rdi
call fcn.1401f4a8c
add dword [rdi + 0x18], eax
and dword [rdi + 0x24], 0
mov word [rdi + 0x22], bp
mov ebp, dword [rsp + 0x30]
test r11d, r11d
je 0x1401f322b
movsxd rcx, dword [rdi + 0x18]
mov eax, ebp
sub eax, dword [rdi + 0x24]
add rcx, rdi
add eax, 2
movsxd rdx, eax
call fcn.1401f4a8c
add dword [rdi + 0x18], eax
mov dword [rdi + 0x24], ebp
jmp 0x1401f322b
mov word [rdi + 0x22], bp
jmp 0x1401f3202
mov byte [rdi + 0x20], 1
mov eax, dword [rdi + 0x18]
mov rcx, qword [rsi + 8]
add eax, r13d
add dword [rcx], eax
xor eax, eax
mov rbx, qword [rsp + 0xa0]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret