Function at 0x1801d0960
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
lea rbp, [rsp - 0x1e0]
sub rsp, 0x2e0
mov rax, qword [0x18050a0d0]
xor rax, rsp
mov qword [rbp + 0x1c0], rax
mov r14, qword [rbp + 0x248]
mov rbx, qword [rbp + 0x258]
mov rsi, rcx
mov rcx, r14
mov dword [rsp + 0x34], r9d
mov qword [rsp + 0x38], r8
mov edi, edx
mov r13d, 1
call fcn.18016fcd0
movsxd r12, eax
test eax, eax
js 0x1801d0a11
lea rcx, [rbp + 0x60]
call fcn.1801713d0
test rsi, rsi
jne 0x1801d09cf
xor edi, edi
jmp 0x1801d09e9
cmp edi, 0xffffffff
jne 0x1801d09e9
or rdi, 0xffffffffffffffff
nop dword [rax + rax]
inc rdi
cmp byte [rsi + rdi], 0
jne 0x1801d09e0
lea rcx, [rbp + 0x60]
mov r9, r14
mov r8d, edi
mov rdx, rsi
mov qword [rsp + 0x20], 0
call fcn.180171550
test eax, eax
jne 0x1801d0a18
lea rcx, [rbp + 0x60]
call fcn.180171250
xor eax, eax
jmp 0x1801d0c6e
mov eax, dword [rbp + 0x250]
mov qword [rsp + 0x2d8], r15
test eax, eax
je 0x1801d0c58
mov r15d, dword [rbp + 0x240]
nop word [rax + rax]
mov edi, eax
cmp eax, r12d
mov eax, r13d
cmovg edi, r12d
shr eax, 0x18
lea rdx, [rbp + 0x60]
mov byte [rsp + 0x30], al
mov eax, r13d
lea rcx, [rsp + 0x40]
shr eax, 0x10
mov byte [rsp + 0x33], r13b
mov byte [rsp + 0x31], al
mov eax, r13d
shr eax, 8
mov byte [rsp + 0x32], al
call fcn.180171290
test eax, eax
je 0x1801d0ca6
movsxd r8, dword [rsp + 0x34]
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x40]
call fcn.180171810
test eax, eax
je 0x1801d0c8f
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x40]
mov r8d, 4
call fcn.180171810
test eax, eax
je 0x1801d0c8f
lea rdx, [rbp + 0x180]
lea rcx, [rsp + 0x40]
xor r8d, r8d
call fcn.1801714a0
test eax, eax
je 0x1801d0c8f
lea rcx, [rsp + 0x40]
call fcn.180171250
movsxd r14, edi
lea rdx, [rbp + 0x180]
mov r8, r14
mov rcx, rbx
call fcn.180230800
mov esi, 1
cmp r15d, esi
jle 0x1801d0c3c
nop dword [rax]
nop dword [rax + rax]
lea rdx, [rbp + 0x60]
lea rcx, [rsp + 0x40]
call fcn.180171290
test eax, eax
je 0x1801d0ca6
lea rdx, [rbp + 0x180]
lea rcx, [rsp + 0x40]
mov r8, r12
call fcn.180171810
test eax, eax
je 0x1801d0c8f
lea rdx, [rbp + 0x180]
lea rcx, [rsp + 0x40]
xor r8d, r8d
call fcn.1801714a0
test eax, eax
je 0x1801d0c8f
lea rcx, [rsp + 0x40]
call fcn.180171250
xor r9d, r9d
test edi, edi
jle 0x1801d0c03
cmp edi, 0x20
jb 0x1801d0c03
lea eax, [rdi - 1]
xor edx, edx
movsxd rcx, eax
lea rax, [rbp + 0x180]
add rax, rcx
lea r8, [rcx + rbx]
cmp rbx, rax
ja 0x1801d0ba3
lea rax, [rbp + 0x180]
cmp r8, rax
jae 0x1801d0c03
mov eax, edi
and eax, 0x8000001f
jge 0x1801d0bb3
dec eax
or eax, 0xffffffe0
inc eax
mov r8d, edi
sub r8d, eax
nop dword [rax]
movsxd rax, edx
add r9, 0x20
movdqu xmm0, xmmword [rax + rbx]
movdqu xmm1, xmmword [rbp + rax + 0x180]
pxor xmm1, xmm0
movdqu xmmword [rax + rbx], xmm1
lea eax, [rdx + 0x10]
add edx, 0x20
movsxd rcx, eax
movdqu xmm1, xmmword [rbp + rcx + 0x180]
movdqu xmm0, xmmword [rcx + rbx]
pxor xmm1, xmm0
movdqu xmmword [rcx + rbx], xmm1
cmp edx, r8d
jl 0x1801d0bc0
cmp r9, r14
jge 0x1801d0c31
lea r8, [rbp + 0x180]
mov rdx, r14
lea rax, [r9 + rbx]
sub r8, rbx
sub rdx, r9
nop dword [rax]
movzx ecx, byte [r8 + rax]
lea rax, [rax + 1]
xor byte [rax - 1], cl
dec rdx
jne 0x1801d0c20
inc esi
cmp esi, r15d
jl 0x1801d0b10
mov eax, dword [rbp + 0x250]
inc r13d
add rbx, r14
sub eax, edi
mov dword [rbp + 0x250], eax
test eax, eax
jne 0x1801d0a40
lea rcx, [rbp + 0x60]
call fcn.180171250
mov eax, 1
mov r15, qword [rsp + 0x2d8]
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.180243450
add rsp, 0x2e0
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
lea rcx, [rbp + 0x60]
call fcn.180171250
lea rcx, [rsp + 0x40]
call fcn.180171250
xor eax, eax
jmp 0x1801d0c66
lea rcx, [rbp + 0x60]
call fcn.180171250
xor eax, eax
jmp 0x1801d0c66