Function at 0x140185c60
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xf8
mov r14, rdx
mov rdi, rcx
mov rax, qword [0x140327038]
xor rax, rsp
mov qword [rsp + 0xf0], rax
mov rcx, qword [rcx + 8]
mov eax, r8d
lea r9d, [r8 + 0x68]
xor edx, edx
cmp r9d, 0xa8
jb 0x140185cfb
mov r10d, eax
and r10d, 7
jne 0x140185cfb
mov r10d, dword [rcx + 0x14]
cmp r10d, r9d
jb 0x140186591
mov r9, qword [rcx + 8]
mov edx, dword [r9 + rax + 4]
cmp edx, 0xc8799269
jne 0x140186591
add r9, rax
mov edx, dword [r9]
cmp edx, 0x68
jb 0x140186591
xor edx, edx
mov r11d, dword [r9]
add r11d, r8d
jb 0x140185cfb
cmp r11d, r10d
ja 0x140185cfb
mov r10d, dword [r9 + 8]
xor edx, edx
cmp r10d, 0xf1645913
cmove rdx, r9
lea rbx, [rdx + 0x10]
test rdx, rdx
cmove rbx, rdx
lea r10d, [r8 + 0x10]
xor edx, edx
cmp r10d, 0x50
jb 0x140185d83
mov r9d, eax
and r9d, 7
jne 0x140185d83
mov r9d, dword [rcx + 0x14]
cmp r9d, r10d
jb 0x1401865a5
mov r10, qword [rcx + 8]
mov edx, dword [r10 + rax + 4]
cmp edx, 0xc8799269
jne 0x1401865a5
add r10, rax
mov eax, dword [r10]
cmp eax, 0x10
jb 0x1401865a5
xor edx, edx
mov eax, dword [r10]
add eax, r8d
jb 0x140185d83
cmp eax, r9d
ja 0x140185d83
test r10, r10
je 0x140185d83
mov edx, dword [r10]
cmp rdx, 0x11
jb 0x1401865a0
add r8d, edx
jb 0x1401865a0
cmp r8d, r9d
ja 0x1401865a0
add rdx, 0xfffffffffffffff0
test rbx, rbx
je 0x1401864ff
cmp byte [rbx + 0x50], 0
je 0x1401864ff
cmp byte [rdx + rbx - 1], 0
jne 0x1401864ff
mov rax, qword [rbx + 0x20]
test rax, rax
je 0x1401864ff
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x1401864ff
cmp rcx, rax
je 0x140185dcc
inc rax
cmp rcx, rax
jne 0x1401864ff
lea rsi, [rbx + 0x50]
mov rcx, rsi
call fcn.140164e30
xorps xmm0, xmm0
lea r12, [rsp + 0xa8]
movups xmmword [r12 + 0x34], xmm0
movups xmmword [r12 + 0x28], xmm0
movups xmmword [r12 + 0x18], xmm0
movups xmmword [r12 + 8], xmm0
movups xmmword [r12 - 8], xmm0
movaps xmm0, xmmword [0x1402f1510]
movups xmmword [r12 - 0x18], xmm0
test rax, rax
je 0x140185e52
mov r15, rax
lea eax, [rax*8]
mov rcx, r15
shr rcx, 0x1d
mov dword [rsp + 0xa4], ecx
mov dword [rsp + 0xa0], eax
mov r8, r15
mov rdx, rsi
cmp r15, 0x40
jae 0x14018655b
mov dword [rsp + 0xe8], r15d
mov rcx, r12
call fcn.14013efb0
mov qword [rsp + 0x38], rsi
lea r15, [rbx + 0x20]
mov eax, dword [rsp + 0xe8]
lea rcx, [rax + 1]
mov esi, dword [rsp + 0xa0]
mov ebp, dword [rsp + 0xa4]
mov byte [rsp + rax + 0xa8], 0x80
cmp rax, 0x38
jae 0x140186526
cmp rcx, 0x38
je 0x140185e9f
mov r8d, 0x38
sub r8, rcx
add rcx, r12
xor edx, edx
call fcn.14013f660
lea r13, [rsp + 0x90]
mov dword [r13 + 0x50], esi
mov dword [r13 + 0x54], ebp
mov r8d, 1
mov rcx, r13
mov rdx, r12
call fcn.14000b9c0
mov rax, qword [r13]
bswap rax
cmp rax, qword [r15]
jne 0x1401864ff
lea rcx, [rbx + 0x38]
mov ebp, dword [rbx]
cmp ebp, 4
je 0x140186404
mov qword [rsp + 0x48], rcx
mov eax, dword [rbx + 4]
mov dword [rsp + 0x64], eax
mov esi, dword [rbx + 0x10]
mov eax, dword [rbx + 0x14]
mov ecx, dword [rbx + 0x18]
mov dword [rsp + 0x44], ecx
mov rcx, qword [rdi + 8]
lea edx, [rax + 0x14]
xor r12d, r12d
cmp edx, 0x54
jb 0x140185f65
mov r8d, eax
and r8d, 7
jne 0x140185f65
mov r8d, dword [rcx + 0x14]
cmp r8d, edx
jb 0x140186598
mov rdx, qword [rcx + 8]
mov r9d, dword [rdx + rax + 4]
cmp r9d, 0xc8799269
jne 0x140186598
add rdx, rax
mov r9d, dword [rdx]
cmp r9d, 0x14
jb 0x140186598
xor r12d, r12d
mov r9d, dword [rdx]
add r9d, eax
jb 0x140185f65
cmp r9d, r8d
ja 0x140185f65
mov r8d, dword [rdx + 8]
xor r12d, r12d
cmp r8d, 0xbcea225b
cmove r12, rdx
mov qword [rsp + 0x58], r14
lea r14, [r12 + 0x10]
test r12, r12
cmove r14, r12
lea r9d, [rax + 0x10]
xor edx, edx
cmp r9d, 0x50
jb 0x140185ff6
mov r8d, eax
and r8d, 7
jne 0x140185ff6
mov r8d, dword [rcx + 0x14]
cmp r8d, r9d
jb 0x1401865b1
mov r9, qword [rcx + 8]
mov edx, dword [r9 + rax + 4]
cmp edx, 0xc8799269
jne 0x1401865b1
add r9, rax
mov edx, dword [r9]
cmp edx, 0x10
jb 0x1401865b1
xor edx, edx
mov r10d, dword [r9]
add r10d, eax
jb 0x140185ff6
cmp r10d, r8d
ja 0x140185ff6
test r9, r9
je 0x140185ff6
mov edx, dword [r9]
cmp rdx, 0x11
jb 0x1401865ac
mov r9d, edx
add r9d, eax
jb 0x1401865ac
cmp r9d, r8d
ja 0x1401865ac
add rdx, 0xfffffffffffffff0
mov qword [rsp + 0x50], r15
test r12, r12
je 0x1401864fa
cmp esi, 2
jb 0x1401864fa
cmp esi, 0x3ffffffe
ja 0x1401864fa
lea r15d, [rsi + 1]
lea r13, [r15*4]
cmp rdx, r13
jb 0x1401864fa
mov ecx, 0x20
call fcn.14013a6b4
mov r12, rax
mov rcx, r13
call fcn.14013a6b4
mov qword [r12], rax
mov qword [r12 + 8], rax
lea rcx, [rax + r15*4]
mov qword [r12 + 0x10], rcx
xor edx, edx
mov r8, rax
add r8, rdx
je 0x1401865e4
mov dword [r8], 0
add rdx, 4
cmp r13, rdx
jne 0x140186057
mov qword [r12 + 8], rcx
mov qword [r12 + 0x18], 0
test r15, r15
je 0x1401865b8
mov ecx, dword [r14]
mov dword [rax], ecx
mov ecx, dword [r14 + 4]
cmp ecx, dword [r14]
jle 0x1401864f1
mov eax, 2
sub rax, r15
mov edx, 1
mov r8, qword [r12]
mov r9, qword [r12 + 8]
sub r9, r8
sar r9, 2
cmp r9, rdx
jbe 0x1401865b8
mov dword [r8 + rdx*4], ecx
lea rcx, [rax + rdx]
cmp rcx, 1
je 0x140186101
mov ecx, dword [r14 + rdx*4 + 4]
lea r8, [rdx + 1]
cmp ecx, dword [r14 + rdx*4]
mov rdx, r8
jg 0x1401860a9
jmp 0x1401864f1
mov rcx, r13
call fcn.14010ecc8
jmp 0x1401861b9
mov rcx, rdi
call fcn.14010ecc8
jmp 0x14018622a
mov rax, qword [r12]
mov rdx, qword [r12 + 8]
sub rdx, rax
je 0x140186610
mov rcx, rdx
shr rcx, 2
xor r8d, r8d
lea r9, [0x1402fc7e0]
mov r14d, dword [rsp + 0x44]
movzx r10d, cl
movzx r11d, byte [rax + r8]
xor r11d, r10d
shr ecx, 8
xor ecx, dword [r9 + r11*4]
inc r8
cmp rdx, r8
jne 0x140186129
mov dword [r12 + 0x18], ecx
cmp ecx, r14d
jne 0x1401864f1
test r12, r12
je 0x1401864fa
mov rcx, qword [rdi + 0x10]
test rcx, rcx
jne 0x14018661c
mov rcx, r12
call fcn.1400ce260
mov r12, rax
lea r14, [rsi*8]
mov edx, dword [rbx + 0x1c]
test edx, edx
jne 0x140186478
movabs r15, 0xfffffffc00000000
movabs rax, 0xaaaaaaaa00000000
mov qword [rsp + 0xa0], rax
mov r13, qword [rdi + 8]
mov rax, r13
and rax, r15
cmp rax, qword [0x140336a08]
je 0x1401860e7
add rbx, 0x1c
mov qword [rsp + 0x90], r13
mov dword [rsp + 0x98], 0x53215531
cmp esi, 0x1fffffff
ja 0x140186629
mov eax, r14d
mov dword [rsp + 0x9c], eax
mov r13, rbx
and r13, r15
cmp r13, qword [0x140336a08]
je 0x140186631
mov qword [rsp + 0xa8], rbx
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x80], rax
mov rdi, qword [rdi + 8]
mov rax, rdi
and rax, r15
cmp rax, qword [0x140336a08]
je 0x1401860f4
lea eax, [rsi*4]
mov qword [rsp + 0x70], rdi
mov dword [rsp + 0x78], 0x53215531
cmp esi, 0x1fffffff
ja 0x14018663e
mov dword [rsp + 0x7c], r14d
mov dword [rsp + 0x80], eax
cmp r13, qword [0x140336a08]
je 0x140186647
mov qword [rsp + 0x88], rbx
cmp ebp, 3
mov r14, qword [rsp + 0x58]
ja case.default.0x140186289
mov eax, ebp
lea rcx, [0x1402fc5a0]
movsxd rax, dword [rcx + rax*4]
add rax, rcx
jmp rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea rdi, [rsp + 0x68]
lea r9, [rsp + 0x90]
mov rcx, rdi
mov rdx, qword [rsp + 0x38]
mov r8, r12
call fcn.140123ae0
mov rax, qword [rdi]
test rax, rax
je case.default.0x140186289
mov ecx, dword [rsp + 0x64]
lock or dword [rax + 0x10], ecx
mov qword [r14], rax
mov rcx, qword [rsp + 0x88]
mov rax, rcx
and rax, r15
cmp rax, qword [0x140336a08]
je 0x14018651c
mov qword [rsp + 0x88], 0
mov rcx, qword [rsp + 0x70]
mov rax, rcx
and rax, r15
cmp rax, qword [0x140336a08]
jne 0x14018631d
call fcn.14010edf0
mov rcx, qword [rsp + 0xa8]
mov rax, rcx
and rax, r15
cmp rax, qword [0x140336a08]
je 0x140186512
mov qword [rsp + 0xa8], 0
mov rcx, qword [rsp + 0x90]
and r15, rcx
cmp r15, qword [0x140336a08]
jne 0x14018635d
call fcn.14010edf0
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.14013d520
mov rax, r14
add rsp, 0xf8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea rdi, [rsp + 0x68]
lea r9, [rsp + 0x90]
mov rcx, rdi
mov rdx, qword [rsp + 0x38]
mov r8, r12
call fcn.140136460
jmp 0x1401862c6
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea rdi, [rsp + 0x68]
lea r9, [rsp + 0x90]
mov rcx, rdi
mov rdx, qword [rsp + 0x38]
mov r8, r12
call fcn.140115cf0
jmp 0x1401862c6
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [r14], rax
mov qword [rsp + 0x20], rcx
mov rcx, r14
mov rdx, rdi
mov r8, qword [rsp + 0x38]
mov r9, r15
call fcn.1400e4880
mov rax, qword [r14]
mov ecx, dword [rbx + 4]
lock or dword [rax + 0x10], ecx
jmp 0x14018635d
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea rdi, [rsp + 0x68]
lea r9, [rsp + 0x90]
mov rcx, rdi
mov rdx, qword [rsp + 0x38]
mov r8, r12
call fcn.1400e48e0
jmp 0x1401862c6
lea r9d, [rdx + 0x10]
xor eax, eax
cmp r9d, 0x50
jb 0x1401864dd
mov ecx, edx
and ecx, 7
jne 0x1401864dd
mov rcx, qword [rdi + 8]
mov r8d, dword [rcx + 0x14]
cmp r8d, r9d
jb 0x1401864ed
mov r9, qword [rcx + 8]
mov eax, dword [r9 + rdx + 4]
cmp eax, 0xc8799269
jne 0x1401864ed
add r9, rdx
mov eax, dword [r9]
cmp eax, 0x10
jb 0x1401864ed
xor eax, eax
mov r10d, dword [r9]
add r10d, edx
jb 0x1401864dd
cmp r10d, r8d
ja 0x1401864dd
test r9, r9
je 0x1401864dd
mov eax, dword [r9]
cmp rax, 0x11
jb 0x1401864e8
add edx, eax
jb 0x1401864e8
cmp edx, r8d
ja 0x1401864e8
add rax, 0xfffffffffffffff0
cmp rax, r14
jae 0x140186186
jmp 0x1401864fa
call fcn.14021d4e0
xor eax, eax
jmp 0x1401864dd
test r12, r12
jne 0x140186654
mov r14, qword [rsp + 0x58]
mov qword [r14], 0
jmp 0x14018635d
xor eax, eax
jmp 0x1401862da
call fcn.14010edf0
jmp 0x140186338
call fcn.14010edf0
jmp 0x1401862f8
cmp eax, 0x3f
je 0x14018653e
mov r8d, 0x3f
sub r8, rax
add rcx, r12
xor edx, edx
call fcn.14013f660
lea rcx, [rsp + 0x90]
mov r8d, 1
mov rdx, r12
call fcn.14000b9c0
xor ecx, ecx
jmp 0x140185e8c
mov r8, r15
shr r8, 6
lea rcx, [rsp + 0x90]
mov rdx, rsi
call fcn.14000b9c0
mov r8, r15
and r8, 0x3f
je 0x140185e52
and r15, 0xffffffffffffffc0
mov rdx, r15
add rdx, rsi
mov r15d, r8d
jmp 0x140185e42
xor edx, edx
jmp 0x140185cfb
xor r12d, r12d
jmp 0x140185f65
call fcn.14021d4e0
xor edx, edx
jmp 0x140185d83
call fcn.14021d4e0
xor edx, edx
jmp 0x140185ff6
lea rax, str.vector___index_out_of_bounds
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str....._buildtools_third_partylibc_trunkinclude_vector
lea r9, str.__n___size__
mov r8d, 0x5b5
call fcn.140181600
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, 0x25
call fcn.140181600
xor ecx, ecx
mov r14d, dword [rsp + 0x44]
jmp 0x140186144
mov rdx, r12
call fcn.1400811a0
jmp 0x140186170
int3
mov rcx, rbx
call fcn.14010ecc8
jmp 0x1401861f9
int3
mov rcx, rbx
call fcn.14010ecc8
jmp 0x140186263
mov rcx, qword [r12]
test rcx, rcx
je 0x140186667
mov qword [r12 + 8], rcx
call fcn.14013a6ac
mov rcx, r12
call fcn.14013a6ac
jmp 0x1401864fa