Function at 0x140175d38
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
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 + 0x28], r9d
cmp dword [rcx], eax
mov rdi, rcx
mov r9d, dword [rsp + 0xc0]
sete al
movsxd rbp, r8d
mov dword [rsp + 0x24], eax
lea r14d, [r13 + 0xd]
mov r8d, r14d
lea eax, [r9 - 1]
movsxd rdx, eax
mov qword [rsp + 0x40], rdx
test eax, eax
js 0x140175da9
movzx ecx, byte [rdx + r10]
lea eax, [r8*8]
xor ecx, eax
xor r8d, ecx
sub rdx, 1
jns 0x140175d91
movzx ecx, byte [rsp + 0xb0]
lea eax, [r8*8]
xor eax, ecx
mov dword [rsp + 0x20], ecx
xor eax, r8d
lea rsi, [rdi + 0x20]
xor edx, edx
div dword [rdi + 0x14]
mov rax, qword [rsi]
mov r12d, edx
mov rbx, qword [rax + rdx*8]
test rbx, rbx
je 0x140175e93
cmp byte [rbx + 0x30], cl
jne 0x140175e0e
lea eax, [r9 + 1]
cmp dword [rbx + 0x1c], eax
jne 0x140175e0e
movsxd r8, r9d
lea rcx, [rbx + 0x31]
mov rdx, r10
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x140175e20
mov r9d, dword [rsp + 0xc0]
mov cl, byte [rsp + 0xb0]
mov rbx, qword [rbx]
test rbx, rbx
je 0x140175e87
mov r10, qword [rsp + 0xb8]
jmp 0x140175dde
test rbx, rbx
je 0x140175e87
mov ecx, dword [rbx + 0x10]
mov eax, ecx
sub eax, dword [rbx + 0x18]
cmp eax, 0x16
jge 0x140175e73
lea esi, [rcx + rcx]
mov rcx, rbx
movsxd rdx, esi
call fcn.1400ff6ec
mov rdx, rax
test rax, rax
je 0x14017617a
mov dword [rax + 0x10], esi
mov rcx, qword [rdi + 0x20]
lea r8, [rcx + r12*8]
mov rcx, qword [r8]
cmp rcx, rbx
je 0x140175e6d
mov rax, qword [rcx]
mov r8, rcx
mov rcx, rax
cmp rax, rbx
jne 0x140175e5f
mov qword [r8], rdx
mov rbx, rdx
mov r13d, dword [rbx + 0x18]
mov r14, qword [rsp + 0x98]
neg r13d
jmp 0x140176097
mov r9d, dword [rsp + 0xc0]
lea rsi, [rdi + 0x20]
mov ecx, 0x80
movsxd r15, r9d
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 0x140175fdc
lea eax, [rcx + rcx]
mov rcx, qword [rsi]
movsxd rbx, eax
mov qword [rsp + 0x30], rcx
shl rbx, 3
mov rcx, rbx
mov dword [rsp + 0x90], eax
call fcn.1400ff688
mov r12, rax
test rax, rax
je 0x14017617a
mov r8, rbx
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
xor r15d, r15d
cmp dword [rdi + 0x14], r13d
jle 0x140175f73
mov r10, qword [rsp + 0x30]
mov esi, dword [rsp + 0x90]
jmp 0x140175f5a
mov rax, qword [r8]
mov ebx, r14d
mov qword [r10], rax
mov eax, dword [r8 + 0x1c]
sub eax, 1
movsxd r9, eax
js 0x140175f49
lea r11, [r9 + 0x30]
add r11, r8
movzx ecx, byte [r11]
lea edx, [rbx*8]
xor edx, ecx
dec r11
xor ebx, edx
sub r9, 1
jns 0x140175f31
xor edx, edx
mov eax, ebx
div esi
mov rax, qword [r12 + rdx*8]
mov qword [r8], rax
mov qword [r12 + rdx*8], r8
mov r8, qword [r10]
test r8, r8
jne 0x140175f15
inc r15d
add r10, 8
cmp r15d, dword [rdi + 0x14]
jl 0x140175f5a
lea rsi, [rdi + 0x20]
mov rcx, qword [rsp + 0x30]
call fcn.1400ff720
mov rdx, qword [rsp + 0x40]
mov eax, dword [rsp + 0x90]
mov dword [rdi + 0x14], eax
mov qword [rsi], r12
test rdx, rdx
js 0x140175fb8
mov r8, qword [rsp + 0xb8]
movzx ecx, byte [rdx + r8]
lea eax, [r14*8]
xor ecx, eax
xor r14d, ecx
sub rdx, 1
jns 0x140175f9c
lea rsi, [rdi + 0x20]
lea eax, [r14*8]
xor edx, edx
xor eax, dword [rsp + 0x20]
xor eax, r14d
movsxd r14, dword [rsp + 0xc0]
div dword [rdi + 0x14]
mov r15, r14
mov r12d, edx
jmp 0x140175fe4
mov r14d, dword [rsp + 0xc0]
mov rcx, qword [rsp + 0x38]
call fcn.1400ff688
mov rbx, rax
test rax, rax
je 0x14017617a
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
lea eax, [r14 + 1]
mov edx, r12d
mov dword [rbx + 0x1c], eax
mov rax, qword [rsp + 0x48]
mov byte [rax + rbx + 0x30], r13b
lea eax, [r14 + 0x31]
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.140177bc8
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 0x140176097
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 0x1401760ee
xor r8d, r8d
mov rdx, rbx
mov rcx, rdi
call fcn.14012ebbc
movsxd rcx, dword [rbx + 0x18]
mov rdx, r14
sub rdx, rsi
add rcx, rbx
call fcn.140177bc8
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 0x1401760f3
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 0x1401760f3
mov r11d, dword [rsp + 0x24]
test ebp, ebp
js 0x140176166
cmp dword [rdi], 1
jne 0x140176102
mov byte [rbx + 0x21], 1
jmp 0x14017616a
movsx eax, word [rbx + 0x22]
cmp ebp, eax
je 0x140176138
cmp dword [rdi], 0
jne 0x140176160
movsxd rax, dword [rbx + 0x18]
mov rdx, rbp
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.140177bc8
add dword [rbx + 0x18], eax
and dword [rbx + 0x24], 0
mov word [rbx + 0x22], bp
mov ebp, dword [rsp + 0x28]
test r11d, r11d
je 0x14017616a
movsxd rcx, dword [rbx + 0x18]
mov eax, ebp
sub eax, dword [rbx + 0x24]
add rcx, rbx
add eax, 2
movsxd rdx, eax
call fcn.140177bc8
add dword [rbx + 0x18], eax
mov dword [rbx + 0x24], ebp
jmp 0x14017616a
mov word [rbx + 0x22], bp
jmp 0x140176141
mov byte [rbx + 0x20], 1
mov eax, dword [rbx + 0x18]
mov rcx, qword [rdi + 8]
add eax, r13d
add dword [rcx], eax
xor eax, eax
jmp 0x14017617f
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