Function at 0x180011db0
Capabilities:
Encode data using xor

Disassembly:
mov dword [rsp + 8], ecx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x48
movsxd r10, dword [0x180024fec]
mov r13, rdx
mov r12, qword [rsp + 0xc0]
mov r11, r8
movsxd rbx, dword [0x180024fc8]
movsxd rsi, ecx
movzx eax, byte [r10 + rdx]
movzx ecx, word [r8 + r10*2]
inc r10d
xor ecx, eax
movsxd r8, dword [0x18002501c]
mov rax, qword [0x180025038]
mov dword [0x180024fec], r10d
movzx ebp, byte [rsi + r13]
mov dword [rsp + 0xa0], ecx
mov rax, qword [rax + 0x6ec0]
mov qword [rsp + 0x10], rax
mov rax, qword [rsp + 0xb8]
movzx ecx, r9w
mov qword [rsp + 0x28], rbx
movzx edx, byte [r8 + rax]
mov rax, qword [rsp + 0xb0]
and edx, 0x4b8
mov rax, qword [rax + rcx*8]
mov rcx, rsi
mov qword [rsp + 0x18], rax
mov esi, 0xffff
mov rax, qword [0x180025010]
add r9w, si
mov qword [rsp + 8], rcx
movzx r14d, r9w
mov word [rsp + 0xa8], r9w
xor r14, 0x11e7
movsxd rdi, dword [rax + 0x1b48]
mov rax, qword [r12 + 0xc070]
mov qword [rsp + 0x20], rax
movzx eax, word [0x180025030]
mov r9d, eax
add ax, si
mov word [0x180025030], ax
mov rax, qword [0x180025008]
mov r15d, dword [rax + 0x8110]
mov rax, qword [0x180025060]
xor r15d, dword [0x180025000]
mov dword [rsp + 0xb0], r15d
mov eax, dword [rax + rcx*4]
movzx ecx, byte [r12 + r8*8]
movsxd r8, dword [0x180025034]
mov dword [rsp + 0x98], eax
movzx eax, byte [0x180025068]
imul ecx, eax
mov dword [rsp], ecx
movzx ecx, word [0x180024ff0]
movzx eax, word [r11 + rcx*2]
add cx, si
dec dword [0x180025058]
mov qword [rsp + 0x30], rax
mov word [0x180024ff0], cx
movzx ecx, byte [0x180024fcf]
movsxd rax, r10d
movzx edx, byte [rax + rdx]
imul edx, ecx
and byte [r8 + r13], dl
movsxd rcx, dword [0x180025058]
mov rax, qword [0x180025070]
movsxd rsi, dword [0x180025050]
lea r8, [rax + rcx*8]
mov rax, qword [0x180025080]
movzx eax, word [rax + 0x530]
and eax, 0x1cd7
cdq
idiv r9d
mov ecx, eax
mov eax, dword [0x180024fe8]
cdq
idiv ecx
movsxd rcx, eax
movzx eax, byte [0x180024fcf]
xor rcx, rax
or qword [r8], rcx
inc dword [0x180025058]
mov r10, qword [rsp + 8]
movzx eax, word [r11 + r10*2]
mov r11, rdi
or eax, 0x1c0e
add dword [0x180024fc8], eax
mov eax, dword [0x18002501c]
dec eax
mov dword [0x18002501c], eax
cdqe
movzx r9d, byte [rax + rbx]
lea rbx, [rdi*8]
mov rax, qword [0x180024ff8]
cmp r9, qword [rbx + rax]
ja 0x180012062
movzx ecx, byte [0x180024ff2]
lea r10, [r9 + 0x8a9]
mov r12, qword [rsp + 8]
add r11, 0x830
mov r15d, 0x14e5
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [r11 - 1]
lea r11, [r11 - 1]
movzx edx, cl
lea rbx, [rbx - 8]
xor edx, dword [r12*4 + 0x14e5]
lea r10, [r10 + 1]
add edx, eax
inc r9d
movsxd rax, dword [0x180024fec]
dec edi
mov dword [r14 + rax*4], edx
xor edx, edx
movzx ecx, byte [0x180024ff2]
add cl, 0xff
mov byte [0x180024ff2], cl
movzx eax, byte [r10 - 1]
movsxd r8, dword [r15]
add eax, esi
cdqe
div qword [rbp + r8*8]
movsxd rdx, r9d
sub eax, dword [0x180025004]
mov dword [0x180025004], eax
mov rax, qword [0x180024ff8]
cmp rdx, qword [rbx + rax]
jbe 0x180011fe0
mov r15d, dword [rsp + 0xb0]
mov r12, qword [rsp + 0xc0]
mov r10, qword [rsp + 8]
movsxd rdx, dword [0x180025034]
dec edi
mov rax, qword [0x180024fc0]
movsxd r8, dword [0x180025000]
cmp dword [rax + rdx*4], 0x1077
jg 0x180012090
cmp r15d, esi
jge 0x180012090
cmp r8d, edx
jge 0x18001228f
mov eax, dword [0x180024fec]
xor edx, edx
movzx ecx, word [rsp + 0xa8]
dec eax
mov dword [0x180024fec], eax
add cx, 2
movsxd r11, dword [rsp + 0x98]
mov rbx, rsi
movzx ebp, cx
movsxd rcx, eax
mov rax, qword [0x180025080]
lea r9, [rax + rcx*2]
movsxd rax, dword [r14 + r8*4]
mov rcx, qword [0x180025070]
div qword [rcx + 0x3250]
mov rcx, qword [0x180025060]
mov rax, rdx
xor edx, edx
movsxd r8, dword [rcx + 0x6918]
movzx ecx, word [r14 + rbp*4 + 8]
div r8
movzx edx, ax
lea eax, [rdi + rdi]
imul edx, ecx
movsxd rcx, eax
movsxd rdi, edi
or word [r9], dx
xor edx, edx
movzx eax, byte [rcx + r13]
mov rcx, qword [rsp + 0x10]
imul rax, qword [rcx + r11*8]
mov rcx, qword [0x180024fe0]
or rax, qword [rcx + r10*8]
movsxd rcx, dword [rsp + 0xa0]
or rax, rsi
mov esi, dword [rsp + 0x90]
div rcx
movsxd rcx, dword [0x18002501c]
movsxd rdx, dword [0x180024fec]
mov r10, rax
mov rax, qword [rsp + 0x18]
mov dword [0x180025058], 0xd3
movzx r8d, byte [rax + rcx*8]
lea ecx, [rsi + 0x1a]
and r8b, byte [rdx + r13]
inc esi
movzx eax, byte [rsp]
movsxd rdx, ecx
mov byte [rdx + 0x8a9], r8b
mov rcx, qword [0x180024fc0]
movzx edx, word [0x180024ff0]
lea r9, [rcx + rdi*4]
mov rcx, qword [0x180025080]
movzx r8d, word [rcx + rdx*2]
or r8d, eax
movzx ecx, sil
sub r8d, dword [r9]
mov dword [r9], r8d
movsxd r8, esi
movzx eax, r10b
imul ecx, eax
or cl, byte [0x5e11]
xor cl, byte [r8 + r13]
add byte [r11 + 0x82e], cl
movsxd rax, dword [0x180025034]
mov rcx, qword [rsp + 0x20]
mov r11, qword [rsp + 0x28]
lea rdx, [rcx + rax*4]
movzx eax, word [0x18002505c]
add eax, 0xd4d
movzx ecx, byte [r8 + r11]
add ecx, eax
xor dword [rdx], ecx
movsxd rax, dword [0x180025000]
movzx ecx, byte [r8 + r13]
cmp byte [rax + r11], cl
jbe 0x18001228f
movsxd r9, dword [0x180024fec]
movzx eax, byte [r9 + r11]
cmp byte [r8 + 0x82e], al
ja 0x18001228f
movzx eax, cl
cmp eax, 0x98b
jb 0x18001228f
movsxd rcx, dword [0x180025058]
movzx edx, byte [rcx + r13]
cmp edx, 0x166
jb 0x18001228f
mov ecx, dword [0x180025034]
xor edx, edx
inc ecx
mov dword [0x180025034], ecx
sub rbx, qword [r12 + r9*8]
dec r9d
movsxd r8, ecx
imul rbx, r8
mov dword [0x180024fec], r9d
mov rax, rbx
div r8
mov dword [0x180025034], eax
mov rax, qword [rsp + 0x30]
movsxd rdx, dword [rax]
mov rax, qword [rsp + 0xc8]
movzx ecx, byte [rax + rbp]
mov rax, qword [rsp + 0xb8]
mov byte [rdx + rax], cl
mov rcx, qword [r12 + rdi*8]
movsxd rax, r15d
imul rcx, rax
mov qword [r12 + rdi*8], rcx
xor eax, eax
add rsp, 0x48
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret