Function at 0x18002d3d0
Capabilities:
Encode data using xor

Disassembly:
push rbp
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x100
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x78], 0xfffffffffffffffe
mov rsi, rcx
cmp qword [r8], rcx
jne 0x18002d60c
mov rdi, rdx
mov qword [rdx], rsi
xorps xmm0, xmm0
movups xmmword [rdx + 8], xmm0
movabs rax, 0x8000000000000000
mov qword [rdx + 0x18], rax
movzx eax, byte [rsi]
cmp eax, 2
je 0x18002d442
cmp eax, 1
jne 0x18002d4ce
lea rbx, [rdi + 8]
mov rcx, qword [rsi + 8]
mov rdx, qword [r8 + 8]
call fcn.18002fb50
mov qword [rbx], rax
jmp 0x18002d5f7
mov r14, qword [rsi + 8]
mov rsi, qword [r14 + 8]
mov qword [rdi + 0x10], rsi
mov r15, qword [r8 + 0x10]
lea r12, [r15 + 0x10]
cmp r12, rsi
je 0x18002d4b0
lea rbx, [rbp + 0x58]
nop
movups xmm0, xmmword [r12]
movaps xmmword [rbp + 0x50], xmm0
mov byte [r12], 0
mov qword [r12 + 8], 0
movzx edx, byte [r12 - 0x10]
movzx eax, byte [rbp + 0x50]
mov byte [r12 - 0x10], al
mov byte [rbp + 0x50], dl
mov rax, qword [r12 - 8]
mov rcx, qword [rbp + 0x58]
mov qword [r12 - 8], rcx
mov qword [rbp + 0x58], rax
mov rcx, rbx
call fcn.180014fb0
add r12, 0x10
cmp r12, rsi
jne 0x18002d460
mov rsi, qword [r14 + 8]
movzx edx, byte [rsi - 0x10]
add rsi, 0xfffffffffffffff8
mov rcx, rsi
call fcn.180014fb0
add qword [r14 + 8], 0xfffffffffffffff0
mov qword [rdi + 0x10], r15
jmp 0x18002d5f7
mov qword [rdi + 0x18], 1
lea ecx, [rax - 3]
cmp cl, 5
ja 0x18002d6da
cmp qword [r8 + 0x18], 0
jne 0x18002d746
cmp eax, 8
je 0x18002d578
cmp eax, 3
jne 0x18002d5f4
mov rbx, qword [rsi + 8]
mov rax, qword [rbx + 0x18]
cmp rax, 0x10
jb 0x18002d557
mov rcx, qword [rbx]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x18002d552
mov r8, qword [rcx - 8]
sub rcx, r8
movabs rdx, 0x5537c683897700f8
add rdx, rcx
shr rdx, 5
movabs rcx, 0x2a9be341c4bb808
cmp rdx, rcx
jne 0x18002d808
add rax, 0x28
mov rdx, rax
mov rcx, r8
call fcn.18003c9c4
lea r14, [rsi + 8]
mov qword [rbx + 0x10], 0
mov qword [rbx + 0x18], 0xf
mov byte [rbx], 0
mov rcx, qword [r14]
mov edx, 0x20
jmp 0x18002d5e8
lea r14, [rsi + 8]
mov rbx, qword [rsi + 8]
mov rcx, qword [rbx]
test rcx, rcx
je 0x18002d5e0
mov rdx, qword [rbx + 0x10]
sub rdx, rcx
cmp rdx, 0x1000
jb 0x18002d5ca
mov rax, qword [rcx - 8]
sub rcx, rax
movabs r8, 0x5537c683897700f8
add r8, rcx
shr r8, 5
movabs rcx, 0x2a9be341c4bb808
cmp r8, rcx
jne 0x18002d808
add rdx, 0x27
mov rcx, rax
call fcn.18003c9c4
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], 0
mov rbx, qword [r14]
mov edx, 0x28
mov rcx, rbx
call fcn.18003c9c4
mov qword [r14], 0
mov byte [rsi], 0
mov rax, rdi
add rsp, 0x100
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
ret
cmp byte [0x180052e36], 0
jne 0x18002d694
mov rax, qword [0x180050d70]
movabs r8, 0xdd10b33ea81616d0
add r8, rax
movabs r9, 0xdd10b33ea81616bc
add r9, rax
xor ecx, ecx
movabs r10, 0xcccccccccccccccd
lea r11, [0x180052e12]
nop dword [rax]
mov rax, rcx
mul r10
shr rdx, 2
and rdx, 0xfffffffffffffffc
lea rax, [rdx + rdx*4]
mov rdx, r9
sub rdx, rax
movzx eax, byte [rdx + rcx]
xor al, byte [r8 + rcx]
mov byte [rcx + r11], al
movzx eax, byte [rdx + rcx + 1]
xor al, byte [r8 + rcx + 1]
mov byte [rcx + r11 + 1], al
add rcx, 2
cmp rcx, 0x24
jne 0x18002d650
mov byte [0x180052e36], 1
lea rdx, [0x180052e12]
lea rdi, [rbp + 0x50]
mov rcx, rdi
call fcn.180002760
lea rcx, [rbp - 0x60]
mov edx, 0xca
mov r8, rdi
mov r9, rsi
call fcn.18002e320
movabs rdx, 0xdd10b33ea815eba9
add rdx, qword [0x180050d80]
lea rcx, [rbp - 0x60]
call sub.VCRUNTIME140.dll__CxxThrowException
jmp 0x18002d808
mov rcx, rsi
call fcn.18002ef50
mov qword [rbp + 0x48], rax
movabs rcx, 0xdd10b33ea8161745
add rcx, qword [0x180050d70]
call fcn.18003ab50
lea rdx, [0x180052e4e]
lea rdi, [rbp + 0x50]
lea r8, [rbp + 0x48]
mov rcx, rdi
call fcn.18002ede0
lea rcx, [rbp + 0x10]
mov edx, 0x133
mov r8, rdi
mov r9, rsi
call fcn.18002e960
movabs rdx, 0xdd10b33ea815eba9
add rdx, qword [0x180050d98]
lea rcx, [rbp + 0x10]
call sub.VCRUNTIME140.dll__CxxThrowException
jmp 0x18002d808
cmp byte [0x180052e4d], 0
jne 0x18002d7c7
mov rax, qword [0x180050d70]
movabs r8, 0xdd10b33ea8161719
add r8, rax
movabs r9, 0xdd10b33ea8161705
add r9, rax
xor ecx, ecx
movabs r10, 0xcccccccccccccccd
lea r11, [0x180052e37]
mov rax, rcx
mul r10
shr rdx, 2
and rdx, 0xfffffffffffffffc
lea rax, [rdx + rdx*4]
mov rdx, r9
sub rdx, rax
movzx eax, byte [rdx + rcx]
xor al, byte [r8 + rcx]
mov byte [rcx + r11], al
movzx eax, byte [rdx + rcx + 1]
xor al, byte [r8 + rcx + 1]
mov byte [rcx + r11 + 1], al
add rcx, 2
cmp rcx, 0x16
jne 0x18002d783
mov byte [0x180052e4d], 1
lea rdx, [0x180052e37]
lea rdi, [rbp + 0x50]
mov rcx, rdi
call fcn.180002760
lea rcx, [rbp - 0x28]
mov edx, 0xcd
mov r8, rdi
mov r9, rsi
call fcn.18002e320
movabs rdx, 0xdd10b33ea815eba9
add rdx, qword [0x180050d80]
lea rcx, [rbp - 0x28]
call sub.VCRUNTIME140.dll__CxxThrowException
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3