Function at 0x140158310
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 [0x140297028]
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 0x1401583ab
mov r10d, eax
and r10d, 7
jne 0x1401583ab
mov r10d, dword [rcx + 0x14]
cmp r10d, r9d
jb 0x140158cf4
mov r9, qword [rcx + 8]
mov edx, dword [r9 + rax + 4]
cmp edx, 0xc8799269
jne 0x140158cf4
add r9, rax
mov edx, dword [r9]
cmp edx, 0x68
jb 0x140158cf4
xor edx, edx
mov r11d, dword [r9]
add r11d, r8d
jb 0x1401583ab
cmp r11d, r10d
ja 0x1401583ab
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 0x14015843a
mov r9d, eax
and r9d, 7
jne 0x14015843a
mov r9d, dword [rcx + 0x14]
cmp r9d, r10d
jb 0x140158d08
mov r10, qword [rcx + 8]
mov edx, dword [r10 + rax + 4]
cmp edx, 0xc8799269
jne 0x140158d08
add r10, rax
mov eax, dword [r10]
cmp eax, 0x10
jb 0x140158d08
mov eax, dword [r10]
add eax, r8d
setb r11b
xor edx, edx
test r10, r10
je 0x14015843a
test r11b, r11b
jne 0x14015843a
cmp eax, r9d
ja 0x14015843a
mov edx, dword [r10]
cmp rdx, 0x11
jb 0x140158d03
add r8d, edx
jb 0x140158d03
cmp r8d, r9d
ja 0x140158d03
add rdx, 0xfffffffffffffff0
test rbx, rbx
je 0x140158c51
cmp byte [rbx + 0x50], 0
je 0x140158c51
cmp byte [rdx + rbx - 1], 0
jne 0x140158c51
mov rax, qword [rbx + 0x20]
test rax, rax
je 0x140158c51
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x140158c51
cmp rcx, rax
je 0x140158483
inc rax
cmp rcx, rax
jne 0x140158c51
lea rsi, [rbx + 0x50]
mov rcx, rsi
call fcn.1401a7230
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 [0x140276f10]
movups xmmword [r12 - 0x18], xmm0
test rax, rax
je 0x140158509
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 0x140158cbe
mov dword [rsp + 0xe8], r15d
mov rcx, r12
call fcn.140184b40
mov qword [rsp + 0x40], 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 0x140158c89
cmp rcx, 0x38
je 0x140158556
mov r8d, 0x38
sub r8, rcx
add rcx, r12
xor edx, edx
call fcn.1401851f0
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.140080440
mov rax, qword [r13]
bswap rax
cmp rax, qword [r15]
jne 0x140158c51
lea rsi, [rbx + 0x38]
mov ebp, dword [rbx]
cmp ebp, 4
je 0x140158b34
mov qword [rsp + 0x60], rsi
mov eax, dword [rbx + 4]
mov dword [rsp + 0x58], eax
mov esi, dword [rbx + 0x10]
mov eax, dword [rbx + 0x14]
mov r8d, dword [rbx + 0x18]
mov rcx, qword [rdi + 8]
lea edx, [rax + 0x14]
xor r12d, r12d
cmp edx, 0x54
mov dword [rsp + 0x5c], r8d
jb 0x14015861e
mov r8d, eax
and r8d, 7
jne 0x14015861e
mov r8d, dword [rcx + 0x14]
cmp r8d, edx
jb 0x140158cfb
mov rdx, qword [rcx + 8]
mov r9d, dword [rdx + rax + 4]
cmp r9d, 0xc8799269
jne 0x140158cfb
add rdx, rax
mov r9d, dword [rdx]
cmp r9d, 0x14
jb 0x140158cfb
xor r12d, r12d
mov r9d, dword [rdx]
add r9d, eax
jb 0x14015861e
cmp r9d, r8d
ja 0x14015861e
mov r8d, dword [rdx + 8]
xor r12d, r12d
cmp r8d, 0xbcea225b
cmove r12, rdx
mov qword [rsp + 0x50], r14
lea r14, [r12 + 0x10]
test r12, r12
cmove r14, r12
lea r9d, [rax + 0x10]
xor edx, edx
cmp r9d, 0x50
jb 0x1401586b6
mov r8d, eax
and r8d, 7
jne 0x1401586b6
mov r8d, dword [rcx + 0x14]
cmp r8d, r9d
jb 0x140158d14
mov r9, qword [rcx + 8]
mov edx, dword [r9 + rax + 4]
cmp edx, 0xc8799269
jne 0x140158d14
add r9, rax
mov edx, dword [r9]
cmp edx, 0x10
jb 0x140158d14
mov r10d, dword [r9]
add r10d, eax
setb r11b
xor edx, edx
test r9, r9
je 0x1401586b6
test r11b, r11b
jne 0x1401586b6
cmp r10d, r8d
ja 0x1401586b6
mov edx, dword [r9]
cmp rdx, 0x11
jb 0x140158d0f
mov r9d, edx
add r9d, eax
jb 0x140158d0f
cmp r9d, r8d
ja 0x140158d0f
add rdx, 0xfffffffffffffff0
mov qword [rsp + 0x48], r15
test r12, r12
je 0x140158c4c
cmp esi, 2
jb 0x140158c4c
cmp esi, 0x3ffffffe
ja 0x140158c4c
lea r15d, [rsi + 1]
lea r13, [r15*4]
cmp rdx, r13
jb 0x140158c4c
mov ecx, 0x20
call fcn.1401803a4
mov r12, rax
mov rcx, r13
call fcn.1401803a4
mov qword [r12], rax
mov qword [r12 + 8], rax
lea rcx, [rax + r15*4]
mov qword [r12 + 0x10], rcx
xor edx, edx
nop word [rax + rax]
mov r8, rax
add r8, rdx
je 0x140158d47
mov dword [r8], 0
add rdx, 4
cmp r13, rdx
jne 0x140158720
mov qword [r12 + 8], rcx
mov qword [r12 + 0x18], 0
test r15, r15
je 0x140158d1b
mov ecx, dword [r14]
mov dword [rax], ecx
mov eax, 1
nop dword [rax]
mov ecx, dword [r14 + rax*4]
cmp ecx, dword [r14 + rax*4 - 4]
jle 0x140158c43
mov rdx, qword [r12]
mov r8, qword [r12 + 8]
sub r8, rdx
sar r8, 2
cmp r8, rax
jbe 0x140158d1b
mov dword [rdx + rax*4], ecx
inc rax
cmp r15, rax
jne 0x140158760
mov rcx, qword [r12]
mov r8, qword [r12 + 8]
mov rdx, r8
sub rdx, rcx
je 0x140158d7a
mov rax, rdx
shr rax, 2
mov r9, rcx
not r9
add r9, r8
je 0x14015881c
mov r9, rdx
and r9, 0xfffffffffffffffe
xor r8d, r8d
lea r10, [0x140277fa0]
nop dword [rax + rax]
movzx r11d, al
movzx r14d, byte [rcx + r8]
xor r14d, r11d
shr eax, 8
xor eax, dword [r10 + r14*4]
movzx r11d, al
movzx r14d, byte [rcx + r8 + 1]
xor r14d, r11d
shr eax, 8
xor eax, dword [r10 + r14*4]
add r8, 2
cmp r9, r8
jne 0x1401587d0
jmp 0x14015881f
mov rcx, rdi
call fcn.1400d8270
jmp 0x140158922
mov rcx, r13
call fcn.1400d8270
jmp 0x1401588b1
xor r8d, r8d
test dl, 1
je 0x14015883b
movzx edx, al
movzx ecx, byte [rcx + r8]
xor ecx, edx
lea rdx, [0x140277fa0]
shr eax, 8
xor eax, dword [rdx + rcx*4]
mov dword [r12 + 0x18], eax
cmp eax, dword [rsp + 0x5c]
jne 0x140158c43
test r12, r12
je 0x140158c4c
mov rcx, qword [rdi + 0x10]
test rcx, rcx
jne 0x140158c5d
mov rcx, r12
call fcn.140102300
mov r12, rax
lea r14, [rsi*8]
mov edx, dword [rbx + 0x1c]
test edx, edx
jne 0x140158b6a
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 [0x1402a6e88]
je 0x14015880f
add rbx, 0x1c
mov qword [rsp + 0x90], r13
mov dword [rsp + 0x98], 0x53215531
cmp esi, 0x1fffffff
ja 0x140158d81
mov eax, r14d
mov dword [rsp + 0x9c], eax
mov r13, rbx
and r13, r15
cmp r13, qword [0x1402a6e88]
je 0x140158d89
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 [0x1402a6e88]
je 0x140158802
lea eax, [rsi*4]
mov qword [rsp + 0x70], rdi
mov dword [rsp + 0x78], 0x53215531
cmp esi, 0x1fffffff
ja 0x140158d96
mov rsi, qword [rsp + 0x60]
mov dword [rsp + 0x7c], r14d
mov dword [rsp + 0x80], eax
cmp r13, qword [0x1402a6e88]
je 0x140158d9f
mov qword [rsp + 0x88], rbx
cmp ebp, 3
mov r14, qword [rsp + 0x50]
ja case.default.0x140158986
mov eax, ebp
lea rcx, [0x14027e054]
movsxd rax, dword [rcx + rax*4]
add rax, rcx
jmp rax
mov qword [rsp + 0x30], rsi
mov rax, qword [rsp + 0x48]
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 + 0x40]
mov r8, r12
call fcn.140158dd0
mov rdi, qword [rdi]
test rdi, rdi
je case.default.0x140158986
mov eax, dword [rsp + 0x58]
lock or dword [rdi + 0x10], eax
mov qword [r14], rdi
mov rcx, qword [rsp + 0x88]
mov rax, rcx
and rax, r15
cmp rax, qword [0x1402a6e88]
je 0x140158c6e
mov qword [rsp + 0x88], 0
mov rcx, qword [rsp + 0x70]
mov rax, rcx
and rax, r15
cmp rax, qword [0x1402a6e88]
jne 0x140158a15
call fcn.1400db1b0
mov rcx, qword [rsp + 0xa8]
mov rax, rcx
and rax, r15
cmp rax, qword [0x1402a6e88]
je 0x140158c78
mov qword [rsp + 0xa8], 0
mov rcx, qword [rsp + 0x90]
and r15, rcx
cmp r15, qword [0x1402a6e88]
jne 0x140158a55
call fcn.1400db1b0
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.1401830b0
mov rax, r14
add rsp, 0xf8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov ecx, 0x40
call fcn.1401803a4
mov rdi, rax
mov qword [rsp + 0x30], rsi
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x90]
mov rcx, rdi
mov rdx, qword [rsp + 0x40]
mov r8, r12
call fcn.140102980
lea rax, [0x14026d9f0]
mov qword [rdi], rax
lea rax, [rdi + 0x30]
xorps xmm0, xmm0
movups xmmword [rdi + 0x30], xmm0
mov qword [rdi + 0x28], rax
jmp 0x1401589c1
mov ecx, 0x40
call fcn.1401803a4
mov rdi, rax
mov qword [rsp + 0x30], rsi
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x90]
mov rcx, rdi
mov rdx, qword [rsp + 0x40]
mov r8, r12
call fcn.140102980
lea rax, [rdi + 0x30]
xorps xmm0, xmm0
movups xmmword [rdi + 0x30], xmm0
mov qword [rdi + 0x28], rax
lea rax, [0x14026dab0]
mov qword [rdi], rax
jmp 0x1401589c1
mov ecx, 0x38
call fcn.1401803a4
mov r12, rax
mov qword [rsp + 0x20], rsi
mov rcx, rax
mov rdx, rdi
mov r8, qword [rsp + 0x40]
mov r9, r15
call fcn.14001f230
mov qword [r14], r12
mov eax, dword [rbx + 4]
lock or dword [r12 + 0x10], eax
jmp 0x140158a55
lea r9d, [rdx + 0x10]
xor eax, eax
cmp r9d, 0x50
jb 0x140158bee
mov ecx, edx
and ecx, 7
jne 0x140158bee
mov rcx, qword [rdi + 8]
mov r8d, dword [rcx + 0x14]
cmp r8d, r9d
jb 0x140158c6a
mov r9, qword [rcx + 8]
mov eax, dword [r9 + rdx + 4]
cmp eax, 0xc8799269
jne 0x140158c6a
add r9, rdx
mov eax, dword [r9]
cmp eax, 0x10
jb 0x140158c6a
mov r10d, dword [r9]
add r10d, edx
setb r11b
xor eax, eax
test r9, r9
je 0x140158bee
test r11b, r11b
jne 0x140158bee
cmp r10d, r8d
ja 0x140158bee
mov eax, dword [r9]
cmp rax, 0x11
jb 0x140158c82
add edx, eax
jb 0x140158c82
cmp edx, r8d
ja 0x140158c82
add rax, 0xfffffffffffffff0
cmp rax, r14
jae 0x14015887e
jmp 0x140158c4c
mov ecx, 0x28
call fcn.1401803a4
mov rdi, rax
mov qword [rsp + 0x30], rsi
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x90]
mov rcx, rdi
mov rdx, qword [rsp + 0x40]
mov r8, r12
call fcn.140102980
lea rax, str.P_b_a_
jmp 0x140158b2c
test r12, r12
jne 0x140158dac
mov r14, qword [rsp + 0x50]
mov qword [r14], 0
jmp 0x140158a55
mov rdx, r12
call fcn.140103240
jmp 0x140158868
xor eax, eax
jmp 0x140158bee
call fcn.1400db1b0
jmp 0x1401589f0
call fcn.1400db1b0
jmp 0x140158a30
call fcn.1401bf020
jmp 0x140158c6a
cmp eax, 0x3f
je 0x140158ca1
mov r8d, 0x3f
sub r8, rax
add rcx, r12
xor edx, edx
call fcn.1401851f0
lea rcx, [rsp + 0x90]
mov r8d, 1
mov rdx, r12
call fcn.140080440
xor ecx, ecx
jmp 0x140158543
mov r8, r15
shr r8, 6
lea rcx, [rsp + 0x90]
mov rdx, rsi
call fcn.140080440
mov r8, r15
and r8, 0x3f
je 0x140158509
and r15, 0xffffffffffffffc0
mov rdx, r15
add rdx, rsi
mov r15d, r8d
jmp 0x1401584f9
xor edx, edx
jmp 0x1401583ab
xor r12d, r12d
jmp 0x14015861e
call fcn.1401bf020
xor edx, edx
jmp 0x14015843a
call fcn.1401bf020
xor edx, edx
jmp 0x1401586b6
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, 0x5b7
call fcn.1401bda10
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.1401bda10
xor edi, edi
jmp 0x1401589d2
xor eax, eax
jmp 0x14015883b
int3
mov rcx, rbx
call fcn.1400d8270
jmp 0x1401588f1
int3
mov rcx, rbx
call fcn.1400d8270
jmp 0x140158960
mov rcx, qword [r12]
test rcx, rcx
je 0x140158dbf
mov qword [r12 + 8], rcx
call fcn.14018039c
mov rcx, r12
call fcn.14018039c
jmp 0x140158c4c