Function at 0x140055866
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov rdi, rdx
movzx eax, byte [r8 + 0x17]
mov ebx, eax
and ebx, 0x7f
test al, al
mov r14, qword [r8]
cmovns r14, r8
cmovs rbx, qword [r8 + 8]
cmp rbx, 0x20
mov qword [rsp + 0x28], rcx
ja 0x1400558f9
mov r11, rcx
cmp rbx, 0x10
ja 0x140055af7
cmp rbx, 9
jb 0x140055b86
mov rax, qword [r14 + rbx - 8]
lea rdx, [rax + rbx]
mov ecx, ebx
ror rdx, cl
mov rcx, qword [r14]
xor rcx, rdx
movabs r8, 0x9ddfea08eb382d69
imul rcx, r8
xor rdx, rcx
shr rcx, 0x2f
xor rcx, rdx
imul rcx, r8
mov r15, rcx
shr r15, 0x2f
xor r15, rcx
imul r15, r8
xor r15, rax
jmp 0x1400559cc
cmp rbx, 0x40
ja 0x140055beb
mov rcx, qword [r14 + 0x10]
mov r9, qword [r14 + 0x18]
mov r11, qword [r14 + rbx - 0x10]
lea rdx, [r11 + rbx]
movabs rax, 0xc3a5c85c97cb3127
imul rdx, rax
add rdx, qword [r14]
lea r8, [rdx + r9]
rol r8, 0xc
mov r15, rdx
rol r15, 0x1b
add rdx, qword [r14 + 8]
mov r10, rdx
rol r10, 0x39
add rdx, rcx
add rcx, qword [r14 + rbx - 0x20]
mov rsi, qword [r14 + rbx - 8]
add rsi, r9
lea r12, [rsi + rcx]
rol r12, 0xc
mov r13, rcx
rol r13, 0x1b
add rcx, qword [r14 + rbx - 0x18]
add r10, r15
mov r15, rcx
rol r15, 0x39
add rcx, r11
add rsi, rcx
rol rcx, 0x21
add r13, r9
add r13, r15
add r13, r12
add r13, rcx
add r13, rdx
rol rdx, 0x21
add r10, r8
add rdx, r10
movabs rcx, 0x9ae16a3b2f90404f
imul r13, rcx
add rsi, rdx
imul rsi, rax
add rsi, r13
mov r8, rsi
shr r8, 0x2f
xor r8, rsi
imul r8, rax
add r8, rdx
mov r15, r8
shr r15, 0x2f
xor r15, r8
imul r15, rcx
mov r11, qword [rsp + 0x28]
mov rbp, qword [r11 + 8]
test rbp, rbp
je 0x140055ed3
mov rax, rbp
shr rax, 1
movabs rcx, 0x5555555555555555
and rcx, rax
mov rax, rbp
sub rax, rcx
movabs rcx, 0x3333333333333333
mov rdx, rax
and rdx, rcx
shr rax, 2
and rax, rcx
add rax, rdx
mov rcx, rax
shr rcx, 4
add rcx, rax
movabs rax, 0xf0f0f0f0f0f0f0f
and rax, rcx
movabs rsi, 0x101010101010101
imul rsi, rax
shr rsi, 0x38
cmp rsi, 1
jbe 0x140055ec7
mov r13, r15
cmp r15, rbp
jb 0x140055a52
mov rax, r15
xor edx, edx
div rbp
mov r13, rdx
mov rax, qword [r11]
mov rax, qword [rax + r13*8]
test rax, rax
je 0x140055edd
mov r12, qword [rax]
test r12, r12
je 0x140055edd
lea r8, [rbp - 1]
mov rax, qword [r12 + 8]
cmp rax, r15
je 0x140055a9b
cmp esi, 1
jbe 0x140055ebf
cmp rax, rbp
jb 0x140055a92
xor edx, edx
div rbp
mov rax, rdx
cmp rax, r13
jne 0x140055edd
movzx edx, byte [r12 + 0x27]
mov eax, edx
and eax, 0x7f
mov rcx, rax
test dl, dl
jns 0x140055ab2
mov rcx, qword [r12 + 0x18]
cmp rcx, rbx
je 0x140055ac5
mov r12, qword [r12]
test r12, r12
jne 0x140055a72
jmp 0x140055edd
lea rcx, [r12 + 0x10]
test dl, dl
jns 0x140055ad1
mov rcx, qword [rcx]
js 0x140055e50
test al, al
je 0x140055af0
xor ecx, ecx
mov dl, byte [r12 + rcx + 0x10]
cmp dl, byte [r14 + rcx]
jne 0x140055ab7
inc rcx
cmp rax, rcx
jne 0x140055add
xor eax, eax
jmp 0x140055ff8
movabs rcx, 0xb492b66fbe98f273
imul rcx, qword [r14]
mov rdx, qword [r14 + 8]
movabs rax, 0x9ae16a3b2f90404f
imul rax, qword [r14 + rbx - 8]
movabs r8, 0xc3a5c85c97cb3127
imul r8, qword [r14 + rbx - 0x10]
movabs r9, 0xc949d7c7509e6557
xor r9, rdx
rol r9, 0x2c
add r9, rcx
add r9, rbx
sub rcx, rdx
rol rcx, 0x15
sub r9, rax
rol rax, 0x22
add rax, r8
add rax, rcx
xor rax, r9
movabs rcx, 0x9ddfea08eb382d69
imul rax, rcx
xor r9, rax
shr rax, 0x2f
xor rax, r9
imul rax, rcx
mov r15, rax
shr r15, 0x2f
xor r15, rax
imul r15, rcx
jmp 0x1400559cc
cmp rbx, 4
jae 0x140055e81
movabs r15, 0x9ae16a3b2f90404f
test rbx, rbx
je 0x1400559cc
movzx eax, byte [r14]
mov rcx, rbx
shr rcx, 1
movzx ecx, byte [r14 + rcx]
movzx edx, byte [rbx + r14 - 1]
shl rcx, 8
or rcx, rax
lea rax, [rbx + rdx*4]
imul rcx, r15
movabs rdx, 0xc949d7c7509e6557
imul rdx, rax
xor rdx, rcx
mov rax, rdx
shr rax, 0x2f
xor rax, rdx
imul r15, rax
jmp 0x1400559cc
mov qword [rsp + 0x30], rdi
movabs rbp, 0xb492b66fbe98f273
movabs rdi, 0x9ddfea08eb382d69
mov r11, qword [r14 + rbx - 0x28]
mov rax, qword [r14 + rbx - 0x10]
mov rcx, qword [r14 + rbx - 0x38]
mov r10, qword [r14 + rbx - 0x30]
lea rdx, [rcx + rax]
mov r9, qword [r14 + rbx - 0x18]
lea rsi, [r10 + rbx]
xor rsi, r9
imul rsi, rdi
mov r8, r9
xor r8, rsi
shr rsi, 0x2f
xor rsi, r8
imul rsi, rdi
mov r8, rsi
shr r8, 0x2f
xor r8, rsi
imul r8, rdi
mov rsi, qword [r14 + rbx - 0x40]
add rsi, rbx
lea r12, [rsi + r11]
add r12, r8
rol r12, 0x2b
add r10, rcx
add r10, rsi
mov r15, r10
rol r15, 0x14
add r15, rsi
add r15, r12
add r10, r11
mov rcx, qword [r14 + rbx - 0x20]
add rcx, rdx
mov r12, qword [r14 + rbx - 8]
add rcx, rbp
lea r13, [r12 + r11]
add r13, rcx
rol r13, 0x2b
add r9, rax
add r9, rcx
mov rsi, r9
rol rsi, 0x14
add rsi, rcx
add rsi, r13
imul r11, rbp
add r11, qword [r14]
add r9, r12
lea rax, [rbx - 1]
and rax, 0xffffffffffffffc0
mov qword [rsp + 0x38], rax
xor r13d, r13d
mov rcx, r8
add r11, r10
add r11, rdx
mov rax, qword [r14 + r13 + 8]
mov rbp, qword [r14 + r13 + 0x10]
add r11, rax
rol r11, 0x1b
add rdx, r15
mov r8, qword [r14 + r13 + 0x30]
mov qword [rsp + 0x40], r8
add rdx, r8
rol rdx, 0x16
movabs r8, 0xb492b66fbe98f273
imul r11, r8
mov rdi, rdx
imul rdi, r8
mov r8, r11
xor r8, rsi
mov r12, qword [r14 + r13 + 0x28]
add r10, r12
mov rdx, r10
add rdx, rdi
add rcx, r9
movabs r10, 0xb492b66fbe98f273
imul r15, r10
mov rdi, qword [r14 + r13 + 0x18]
add r15, qword [r14 + r13]
add r9, rdi
add r9, r15
add r9, r8
rol r9, 0x2b
add rax, rbp
add rax, r15
mov r10, rax
rol r10, 0x14
add r15, r10
add r15, r9
rol rcx, 0x1f
mov r10, rax
mov r11, rcx
movabs rax, 0xb492b66fbe98f273
imul r11, rax
add r10, rdi
add rsi, r11
mov rax, qword [r14 + r13 + 0x38]
add rsi, qword [r14 + r13 + 0x20]
add rbp, rax
add rbp, rdx
add rbp, rsi
add r12, qword [rsp + 0x40]
add r12, rsi
mov rcx, r12
rol rcx, 0x14
add rsi, rcx
rol rbp, 0x2b
add rsi, rbp
mov r9, r12
add r9, rax
add r13, 0x40
cmp qword [rsp + 0x38], r13
jne 0x140055cbc
xor r15, rsi
movabs rdi, 0x9ddfea08eb382d69
imul r15, rdi
mov rcx, r15
shr rcx, 0x2f
xor rcx, rsi
xor rcx, r15
imul rcx, rdi
mov rax, rcx
shr rax, 0x2f
xor rax, rcx
imul rax, rdi
add rax, r11
xor r10, r9
imul r10, rdi
mov rcx, r10
shr rcx, 0x2f
xor rcx, r9
xor rcx, r10
imul rcx, rdi
mov r9, rcx
shr r9, 0x2f
xor r9, rcx
imul r9, rdi
mov rcx, rdx
shr rcx, 0x2f
xor rcx, rdx
movabs rdx, 0xb492b66fbe98f273
imul rcx, rdx
add rcx, r8
add rcx, r9
xor rcx, rax
imul rcx, rdi
xor rax, rcx
shr rcx, 0x2f
xor rcx, rax
imul rcx, rdi
mov r15, rcx
shr r15, 0x2f
xor r15, rcx
imul r15, rdi
mov rdi, qword [rsp + 0x30]
jmp 0x1400559c7
mov qword [rsp + 0x30], rdi
test rbx, rbx
je 0x1400560ba
mov rdi, r8
mov rdx, r14
mov r8, rbx
call fcn.140114770
test eax, eax
mov r8, rdi
mov rdi, qword [rsp + 0x30]
jne 0x140055ab7
jmp 0x140055af0
mov eax, dword [r14]
mov ecx, dword [r14 + rbx - 4]
lea rax, [rbx + rax*8]
xor rax, rcx
movabs rdx, 0x9ddfea08eb382d69
imul rax, rdx
xor rcx, rax
shr rax, 0x2f
xor rax, rcx
imul rax, rdx
mov r15, rax
shr r15, 0x2f
xor r15, rax
imul r15, rdx
jmp 0x1400559cc
and rax, r8
jmp 0x140055a92
lea r13, [rbp - 1]
and r13, r15
jmp 0x140055a52
movabs r13, 0xaaaaaaaaaaaaaaaa
mov ecx, 0x30
call fcn.1401119e0
mov rcx, rax
add rcx, 0x10
je 0x1400560c6
mov r12, rax
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax]
cmp byte [rax + 0x17], 0
mov r8, qword [rsp + 0x28]
js 0x1400560a4
mov rdx, qword [rax + 0x10]
mov qword [rcx + 0x10], rdx
movups xmm0, xmmword [rax]
movups xmmword [rcx], xmm0
mov dword [r12 + 0x28], 0
mov qword [r12 + 8], r15
mov qword [r12], 0
mov rax, qword [r8 + 0x18]
inc rax
js 0x140055f48
xorps xmm0, xmm0
cvtsi2ss xmm0, rax
jmp 0x140055f60
mov rcx, rax
shr rcx, 1
and eax, 1
or rax, rcx
xorps xmm0, xmm0
cvtsi2ss xmm0, rax
addss xmm0, xmm0
mov rcx, rbp
shr rcx, 1
mov eax, ebp
and eax, 1
or rax, rcx
test rbp, rbp
js 0x140055f7a
cvtsi2ss xmm1, rbp
jmp 0x140055f83
cvtsi2ss xmm1, rax
addss xmm1, xmm1
movss xmm2, dword [r8 + 0x20]
je 0x140056012
mulss xmm1, xmm2
ucomiss xmm0, xmm1
ja 0x140056012
mov rcx, qword [r8]
mov rax, qword [rcx + r13*8]
test rax, rax
je 0x140055fad
mov rcx, qword [rax]
mov qword [r12], rcx
jmp 0x140055fef
lea rax, [r8 + 0x10]
mov rdx, qword [r8 + 0x10]
mov qword [r12], rdx
mov qword [r8 + 0x10], r12
mov qword [rcx + r13*8], rax
mov rax, qword [r12]
test rax, rax
je 0x140055ff2
mov rax, qword [rax + 8]
lea rcx, [rbp - 1]
test rbp, rcx
je 0x14005609c
cmp rax, rbp
jb 0x140055fe8
xor edx, edx
div rbp
mov rax, rdx
shl rax, 3
add rax, qword [r8]
mov qword [rax], r12
inc qword [r8 + 0x18]
mov al, 1
mov qword [rdi], r12
mov byte [rdi + 8], al
mov rax, rdi
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
divss xmm0, xmm2
call fcn.140130af0
cvttss2si rcx, xmm0
mov rdx, rcx
sar rdx, 0x3f
subss xmm0, dword [0x1401d3bc8]
cvttss2si rax, xmm0
and rax, rdx
or rax, rcx
mov r9, rbp
add r9, rbp
cmp rbp, 3
jb 0x14005608d
lea r8, [rbp - 1]
xor edx, edx
test rbp, r8
setne dl
mov rcx, qword [rsp + 0x28]
or rdx, r9
cmp rdx, rax
cmovbe rdx, rax
call fcn.1400b30d0
mov r8, qword [rsp + 0x28]
mov rbp, qword [r8 + 8]
lea r13, [rbp - 1]
test rbp, r13
je 0x140056094
cmp r15, rbp
jb 0x1400560f2
mov rax, r15
xor edx, edx
div rbp
mov r13, rdx
jmp 0x140055f98
mov edx, 1
jmp 0x140056052
and r13, r15
jmp 0x140055f98
and rax, rcx
jmp 0x140055fe8
mov rdx, qword [rax]
mov r8, qword [rax + 8]
call fcn.14006a7c4
mov r8, qword [rsp + 0x28]
jmp 0x140055f1f
xor eax, eax
mov rdi, qword [rsp + 0x30]
jmp 0x140055ff8
lea rax, str.null_pointer_given_to_construct_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str....._buildtools_third_partylibc_trunkinclude__memoryconstruct_at.h
lea r9, str.__location___nullptr
mov r8d, 0x23
call fcn.140152a0d
mov r13, r15
jmp 0x140055f98