Function at 0x180196a40
Capabilities:
Encode data using xor

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0xe8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x60], 0xfffffffffffffffe
mov r15, rdx
mov qword [rbp + 0x10], rcx
cmp rdx, 0x15
jae 0x180196a9f
cmp r15, 1
jbe 0x180197157
mov r8d, 1
mov rcx, qword [rbp + 0x10]
mov rdx, r15
add rsp, 0xe8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
jmp 0x180197380
movabs rax, 0x7ffffffffffffffe
mov rsi, r15
and rsi, rax
movzx eax, byte [0x1802ea611]
mov edx, 1
mov rcx, rsi
call fcn.180004690
test rax, rax
je 0x1801972b9
mov qword [rbp + 0x28], rax
mov qword [rbp], rsi
movzx eax, byte [0x1802ea611]
mov ecx, 0x100
mov edx, 8
call fcn.180004690
test rax, rax
je 0x1801972c5
mov rdi, rax
mov rax, qword [rbp + 0x10]
lea rcx, [rax + 3]
mov qword [rbp - 0x10], rcx
add rax, 0xfffffffffffffffe
mov qword [rbp - 8], rax
mov eax, 0x10
mov qword [rbp + 0x58], rax
xor ebx, ebx
xor r14d, r14d
mov qword [rbp - 0x18], r15
jmp 0x180196b29
mov ebx, 1
mov r14, qword [rbp + 8]
mov rax, r15
sub rax, r14
jbe 0x18019711b
mov rcx, qword [rbp + 0x10]
lea rcx, [rcx + r14*2]
cmp rax, 2
mov qword [rbp + 0x38], rdi
jae 0x180196c20
mov r8, rax
lea r12, [r8 + r14]
mov r13, qword [rbp + 0x58]
mov rdi, r12
sub rdi, r14
jb 0x180197235
cmp r12, r15
ja 0x180197235
jae 0x180196ba4
cmp r8, 0xa
jae 0x180196ba4
lea r12, [r14 + 0xa]
cmp r12, r15
cmovae r12, r15
cmp r8, 1
adc r8, 0
mov rdi, r12
sub rdi, r14
mov rax, qword [rbp + 0x38]
mov qword [rbp + 0x48], rax
mov qword [rbp + 0x40], r13
mov rdx, rdi
call 0x180197380
mov r13, qword [rbp + 0x58]
cmp rbx, r13
jne 0x180196cd0
mov qword [rbp + 0x30], r14
lea rax, [r13*2]
mov qword [rbp + 0x50], rax
mov rcx, r13
shl rcx, 5
movzx eax, byte [0x1802ea611]
mov edx, 8
call fcn.180004690
test rax, rax
je 0x18019725b
mov rsi, rax
shl r13, 4
mov rcx, rax
mov r14, qword [rbp + 0x38]
mov rdx, r14
mov r8, r13
call sub.VCRUNTIME140.dll_memcpy
mov r8d, 8
mov rcx, r14
mov rdx, r13
call fcn.1800046a0
mov rax, qword [rbp + 0x50]
mov qword [rbp + 0x58], rax
mov r14, qword [rbp + 0x30]
jmp 0x180196cd4
movzx edx, byte [rcx + 2]
movzx r9d, byte [rcx + 3]
xor r8d, r8d
cmp r9b, byte [rcx + 1]
setb r8b
xor r10d, r10d
cmp dl, byte [rcx]
setb r10b
cmove r10d, r8d
mov r8d, 2
test r10b, r10b
je 0x180196fe0
cmp rax, 2
je 0x180196c99
nop word cs:[rax + rax]
mov r10d, edx
mov r11d, r9d
movzx edx, byte [rcx + r8*2]
movzx r9d, byte [rcx + r8*2 + 1]
xor esi, esi
cmp r9b, r11b
setb sil
xor r11d, r11d
cmp dl, r10b
setb r11b
cmove r11d, esi
cmp r11b, 1
jne 0x180196c99
inc r8
cmp rax, r8
jne 0x180196c60
mov r8, rax
mov r12, r8
add r12, r14
jb 0x180197279
cmp r12, r15
mov r13, qword [rbp + 0x58]
ja 0x180197299
cmp r8, 2
jae 0x18019702e
mov r8d, 1
jmp 0x180196b56
mov rsi, qword [rbp + 0x38]
mov rax, rbx
shl rax, 4
mov qword [rsi + rax], rdi
mov qword [rsi + rax + 8], r14
inc rbx
mov r14, r12
cmp rbx, 2
mov rdi, rsi
jb 0x180196b29
mov qword [rbp + 8], r12
mov qword [rbp + 0x38], rdi
jmp 0x180196d6e
mov rdx, r12
mov rbx, qword [rbp + 0x50]
mov rsi, qword [rbp + 0x18]
mov r12, qword [rbp + 0x20]
mov rdi, qword [rbp + 0x38]
add r13, rdi
add r14, rdi
sub r8, rdx
mov rcx, r15
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rbp - 0x20]
add rax, qword [rbp + 0x30]
mov qword [r14], rax
mov rax, qword [rbp - 0x28]
mov qword [r14 + 8], rax
lea rdx, [r13 + 0x10]
not r12
add rsi, r12
shl rsi, 4
mov rcx, r13
mov r8, rsi
call sub.VCRUNTIME140.dll_memmove
cmp rbx, 1
mov r15, qword [rbp - 0x18]
jbe 0x180196b20
mov r11, rbx
lea r10, [rbx - 1]
mov rcx, r10
shl rcx, 4
mov rax, qword [rdi + rcx]
mov rcx, qword [rdi + rcx + 8]
add rcx, rax
cmp rcx, r15
je 0x180196de0
mov rdx, r11
shl rdx, 4
mov r8, qword [rdx + rdi - 0x20]
cmp r8, rax
jbe 0x180196de0
cmp r11, 2
je 0x180197055
lea r12, [r11 - 3]
mov rcx, r12
shl rcx, 4
mov rcx, qword [rdi + rcx]
lea r9, [r8 + rax]
cmp rcx, r9
jbe 0x180196df5
cmp r11, 3
jbe 0x180197101
add r8, rcx
cmp qword [rdx + rdi - 0x40], r8
jbe 0x180196df5
jmp 0x18019710f
cmp r11, 2
je 0x180196dfa
lea r12, [r11 - 3]
mov rcx, r12
shl rcx, 4
mov rcx, qword [rdi + rcx]
cmp rcx, rax
jb 0x180196dfe
lea r12, [r11 - 2]
cmp r11, r12
jbe 0x1801971af
lea r14, [r12 + 1]
cmp r11, r14
jbe 0x18019716c
mov qword [rbp + 0x50], r10
mov r13, r12
shl r13, 4
mov rcx, qword [rdi + r13 + 8]
shl r14, 4
mov rax, qword [rdi + r14]
mov rbx, qword [rdi + r14 + 8]
add rbx, rax
mov rsi, rbx
sub rsi, rcx
jb 0x1801971f2
cmp rbx, r15
ja 0x180197212
mov qword [rbp - 0x20], rax
mov qword [rbp + 0x20], r12
mov qword [rbp + 0x18], r11
mov rdx, qword [rdi + r13]
mov rax, qword [rbp + 0x10]
mov qword [rbp - 0x28], rcx
lea r15, [rax + rcx*2]
lea rdi, [r15 + rdx*2]
mov r12, rsi
sub r12, rdx
cmp r12, rdx
mov qword [rbp + 0x30], rdx
jae 0x180196f20
lea r8, [r12 + r12]
mov rsi, qword [rbp + 0x28]
mov rcx, rsi
mov rdx, rdi
call sub.VCRUNTIME140.dll_memcpy
lea r8, [rsi + r12*2]
cmp qword [rbp + 0x30], 0
jle 0x180196fd0
test r12, r12
jle 0x180196fd0
mov rax, qword [rbp - 8]
lea rax, [rax + rbx*2]
mov r10, qword [rbp + 0x28]
mov rbx, qword [rbp + 0x50]
mov rsi, qword [rbp + 0x18]
mov r12, qword [rbp + 0x20]
movzx ecx, byte [r8 - 2]
movzx edx, byte [r8 - 1]
xor r9d, r9d
cmp dl, byte [rdi - 1]
setb r9b
xor edx, edx
cmp cl, byte [rdi - 2]
setb dl
cmove edx, r9d
movzx ecx, dl
sub rdi, rcx
sub rdi, rcx
lea r8, [r8 + rcx*2]
add r8, 0xfffffffffffffffe
test cl, cl
mov rcx, r8
cmovne rcx, rdi
movzx ecx, word [rcx]
mov word [rax], cx
cmp rdi, r15
jbe 0x180196f0e
add rax, 0xfffffffffffffffe
cmp r8, r10
ja 0x180196ec0
mov r15, rdi
mov rdx, r10
jmp 0x180196d1f
lea r8, [rdx + rdx]
mov r12, qword [rbp + 0x28]
mov rcx, r12
mov rdx, r15
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rbp + 0x30]
lea r8, [r12 + rax*2]
test rax, rax
jle 0x180196d10
cmp rsi, rax
jle 0x180196d10
mov rax, qword [rbp + 0x10]
lea rax, [rax + rbx*2]
mov rdx, r12
mov rbx, qword [rbp + 0x50]
mov rsi, qword [rbp + 0x18]
mov r12, qword [rbp + 0x20]
nop word cs:[rax + rax]
movzx r9d, byte [rdi]
movzx ecx, byte [rdi + 1]
xor r10d, r10d
cmp cl, byte [rdx + 1]
setb r10b
xor ecx, ecx
cmp r9b, byte [rdx]
setb cl
cmove ecx, r10d
mov r9, rdi
test cl, cl
jne 0x180196f98
mov r9, rdx
movzx r9d, word [r9]
mov word [r15], r9w
add r15, 2
mov r9d, ecx
xor r9b, 1
movzx r9d, r9b
lea rdx, [rdx + r9*2]
cmp rdx, r8
jae 0x180196d1f
movzx ecx, cl
lea rdi, [rdi + rcx*2]
cmp rdi, rax
jb 0x180196f70
jmp 0x180196d1f
mov r15, rdi
mov rdx, qword [rbp + 0x28]
jmp 0x180196d13
cmp rax, 2
je 0x180196b4e
nop word [rax + rax]
mov r10d, edx
mov r11d, r9d
movzx edx, byte [rcx + r8*2]
movzx r9d, byte [rcx + r8*2 + 1]
xor esi, esi
cmp r9b, r11b
setb sil
xor r11d, r11d
cmp dl, r10b
setb r11b
cmove r11d, esi
test r11b, r11b
jne 0x180196b4e
inc r8
cmp rax, r8
jne 0x180196ff0
jmp 0x180196b4b
mov qword [rbp + 0x50], rbx
mov rax, r8
shr rax, 1
lea rdx, [rcx + r8*2]
mov r9, r8
and r9, 0xfffffffffffffffe
sub rdx, r9
cmp rax, 1
mov qword [rbp + 0x30], r14
jne 0x180197063
xor r9d, r9d
jmp 0x1801970cd
mov ebx, 2
mov r14, qword [rbp + 8]
jmp 0x180196b29
mov r10, rax
and r10, 0xfffffffffffffffe
mov r9, qword [rbp - 0x10]
lea r11, [r9 + r14*2]
mov r9, qword [rbp - 8]
lea rsi, [r9 + r12*2]
xor r9d, r9d
movabs r13, 0x7ffffffffffffffe
nop word [rax + rax]
movzx edi, word [r11 + r9*2 - 3]
movzx ebx, word [rsi]
mov word [r11 + r9*2 - 3], bx
mov word [rsi], di
mov rdi, r9
xor rdi, r13
add rdi, rax
movzx ebx, word [r11 + r9*2 - 1]
movzx r14d, word [rdx + rdi*2]
mov word [r11 + r9*2 - 1], r14w
mov word [rdx + rdi*2], bx
add r9, 2
add rsi, 0xfffffffffffffffc
cmp r10, r9
jne 0x180197090
test r8b, 2
je 0x1801970f0
mov r10, r9
not r10
add rax, r10
movzx r10d, word [rcx + r9*2]
movzx r11d, word [rdx + rax*2]
mov word [rcx + r9*2], r11w
mov word [rdx + rax*2], r10w
mov r13, qword [rbp + 0x58]
mov rbx, qword [rbp + 0x50]
mov r14, qword [rbp + 0x30]
jmp 0x180196b56
mov ebx, 3
mov r14, qword [rbp + 8]
jmp 0x180196b29
mov rbx, r11
mov r14, qword [rbp + 8]
jmp 0x180196b29
mov rdx, qword [rbp + 0x58]
shl rdx, 4
mov r8d, 8
mov rcx, rdi
call fcn.1800046a0
mov r8d, 1
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp]
add rsp, 0xe8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
jmp fcn.1800046a0
nop
add rsp, 0xe8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea rax, [0x180297bd8]
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x50], 1
mov qword [rbp - 0x48], 8
xorps xmm0, xmm0
movups xmmword [rbp - 0x40], xmm0
mov qword [rbp + 0x48], rdi
mov rax, qword [rbp + 0x58]
mov qword [rbp + 0x40], rax
lea rdx, [0x180297c68]
lea rcx, [rbp - 0x58]
call fcn.180201810
jmp 0x1801972d1
lea rax, [0x180297bd8]
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x50], 1
mov qword [rbp - 0x48], 8
xorps xmm0, xmm0
movups xmmword [rbp - 0x40], xmm0
mov qword [rbp + 0x48], rdi
mov rax, qword [rbp + 0x58]
mov qword [rbp + 0x40], rax
lea rdx, [0x180297c50]
lea rcx, [rbp - 0x58]
call fcn.180201810
jmp 0x1801972d1
mov qword [rbp + 0x48], rdi
mov rax, qword [rbp + 0x58]
mov qword [rbp + 0x40], rax
lea r8, [0x180297c80]
mov rdx, rbx
call fcn.180201cb0
jmp 0x1801972d1
mov qword [rbp + 0x48], rdi
mov rax, qword [rbp + 0x58]
mov qword [rbp + 0x40], rax
lea r8, [0x180297c80]
mov rcx, rbx
mov rdx, r15
call fcn.180201ca0
jmp 0x1801972d1
mov rax, qword [rbp + 0x38]
mov qword [rbp + 0x48], rax
mov qword [rbp + 0x40], r13
lea rcx, [0x180297ce0]
lea r8, [0x180297d10]
mov edx, 0x2c
call fcn.1802018d0
jmp 0x1801972d1
mov rax, qword [rbp + 0x38]
mov qword [rbp + 0x48], rax
mov rax, qword [rbp + 0x50]
mov qword [rbp + 0x40], rax
lea rcx, [0x180297cc8]
call fcn.1802017d0
jmp 0x1801972d1
mov qword [rbp + 0x48], rdi
mov rax, qword [rbp + 0x58]
mov qword [rbp + 0x40], rax
lea r8, [0x180297c38]
mov rcx, r14
mov rdx, r12
call fcn.180201cb0
jmp 0x1801972d1
mov rax, qword [rbp + 0x38]
mov qword [rbp + 0x48], rax
mov qword [rbp + 0x40], r13
lea r8, [0x180297c38]
mov rcx, r12
mov rdx, r15
call fcn.180201ca0
jmp 0x1801972d1
lea rcx, [0x180297c98]
call fcn.1802017d0
lea rcx, [0x180297cb0]
call fcn.1802017d0
ud2
push rsi
push rdi
push rbx
sub rsp, 0x20
lea rax, [r8 - 1]
cmp rax, rdx
jae 0x180197461
cmp r8, rdx
jae 0x180197459
lea rax, [rcx + r8*2]
add rax, 0xfffffffffffffffe
jmp 0x1801973d5
mov r11, rcx
movzx r10d, r10b
movzx r9d, r9b
movzx r9d, r9w
shl r9d, 8
movzx r10d, r10w
or r10d, r9d
mov word [r11], r10w
inc r8
add rax, 2
cmp r8, rdx
je 0x180197459
movzx r10d, byte [rcx + r8*2]
movzx r9d, byte [rcx + r8*2 + 1]
xor r11d, r11d
cmp r9b, byte [rcx + r8*2 - 1]
setb r11b
xor esi, esi
cmp r10b, byte [rcx + r8*2 - 2]
setb sil
cmove esi, r11d
cmp sil, 1
jne 0x1801973c5
lea r11, [rcx + r8*2]
add r11, 0xfffffffffffffffe
movzx esi, word [r11]
mov word [rcx + r8*2], si
cmp r8, 1
je 0x1801973aa
mov esi, 1
mov r11, rax
xor edi, edi
cmp r9b, byte [r11 - 1]
setb dil
xor ebx, ebx
cmp r10b, byte [r11 - 2]
setb bl
cmove ebx, edi
cmp bl, 1
jne 0x1801973aa
movzx edi, word [r11 - 2]
mov word [r11], di
add r11, 0xfffffffffffffffe
inc rsi
cmp r8, rsi
jne 0x180197420
jmp 0x1801973a7
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x180297d28]
lea r8, [0x180297d58]
mov edx, 0x2e
call fcn.1802018d0
int3