Function at 0x140299fe0
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 0x14029a061
movzx ecx, byte [rdx + r9]
lea eax, [r8*8]
xor ecx, eax
xor r8d, ecx
sub rdx, 1
jns 0x14029a042
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 0x14029a143
cmp byte [rbx + 0x30], r10b
jne 0x14029a0bf
cmp dword [rbx + 0x1c], ecx
jne 0x14029a0bf
movsxd r8, ecx
mov rdx, r9
lea rcx, [rbx + 0x31]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x14029a0d8
mov r10b, byte [rsp + 0xb0]
mov rbx, qword [rbx]
test rbx, rbx
je 0x14029a13f
mov ecx, dword [rsp + 0xc0]
mov r9, qword [rsp + 0xb8]
jmp 0x14029a099
test rbx, rbx
je 0x14029a13f
mov ecx, dword [rbx + 0x10]
mov eax, ecx
sub eax, dword [rbx + 0x18]
cmp eax, 0x16
jge 0x14029a12b
lea esi, [rcx + rcx]
mov rcx, rbx
movsxd rdx, esi
call fcn.14022a214
mov rdx, rax
test rax, rax
je 0x14029a437
mov dword [rax + 0x10], esi
mov rcx, qword [rdi + 0x20]
lea r8, [rcx + r13*8]
mov rcx, qword [r8]
cmp rcx, rbx
je 0x14029a125
mov rax, qword [rcx]
mov r8, rcx
mov rcx, rax
cmp rax, rbx
jne 0x14029a117
mov qword [r8], rdx
mov rbx, rdx
mov r12d, dword [rbx + 0x18]
mov r14, qword [rsp + 0x98]
neg r12d
jmp 0x14029a354
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 0x14029a29c
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.14022a1b0
mov r13, rax
test rax, rax
je 0x14029a437
mov r8, rbx
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
cmp dword [rdi + 0x14], r12d
jle 0x14029a234
mov rsi, qword [rsp + 0x30]
mov ebp, r15d
jmp 0x14029a20c
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 0x14029a1f8
movzx edx, byte [r8 + rbx + 0x30]
lea ecx, [r15*8]
xor edx, ecx
xor r15d, edx
sub r8, 1
jns 0x14029a1df
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 0x14029a1c5
inc r12d
add rsi, 8
cmp r12d, dword [rdi + 0x14]
jl 0x14029a20c
mov ebp, dword [rsp + 0xa8]
lea rsi, [rdi + 0x20]
mov r15d, dword [rsp + 0x90]
mov rcx, qword [rsp + 0x30]
call fcn.14022a248
mov rdx, qword [rsp + 0x40]
mov dword [rdi + 0x14], r15d
mov qword [rsi], r13
test rdx, rdx
js 0x14029a273
mov r8, qword [rsp + 0xb8]
movzx ecx, byte [rdx + r8]
lea eax, [r14*8]
xor ecx, eax
xor r14d, ecx
sub rdx, 1
jns 0x14029a257
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 0x14029a2a4
mov r14d, dword [rsp + 0xc0]
mov rcx, qword [rsp + 0x38]
call fcn.14022a1b0
mov rbx, rax
test rax, rax
je 0x14029a437
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.14029bca0
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 0x14029a354
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 0x14029a3ab
xor r8d, r8d
mov rdx, rbx
mov rcx, rdi
call fcn.140259b1c
movsxd rcx, dword [rbx + 0x18]
mov rdx, r14
sub rdx, rsi
add rcx, rbx
call fcn.14029bca0
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 0x14029a3b0
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 0x14029a3b0
mov r11d, dword [rsp + 0x28]
test ebp, ebp
js 0x14029a423
cmp dword [rdi], 1
jne 0x14029a3bf
mov byte [rbx + 0x21], 1
jmp 0x14029a427
movsx eax, word [rbx + 0x22]
cmp ebp, eax
je 0x14029a3f5
cmp dword [rdi], 0
jne 0x14029a41d
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.14029bca0
add dword [rbx + 0x18], eax
and dword [rbx + 0x24], 0
mov word [rbx + 0x22], bp
mov ebp, dword [rsp + 0x2c]
test r11d, r11d
je 0x14029a427
movsxd rcx, dword [rbx + 0x18]
mov eax, ebp
sub eax, dword [rbx + 0x24]
add rcx, rbx
add eax, 2
movsxd rdx, eax
call fcn.14029bca0
add dword [rbx + 0x18], eax
mov dword [rbx + 0x24], ebp
jmp 0x14029a427
mov word [rbx + 0x22], bp
jmp 0x14029a3fe
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 0x14029a43c
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