Function at 0x1400adb80
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, 0x118
movaps xmmword [rsp + 0x100], xmm6
mov rbx, rdx
mov rax, qword [0x140145040]
xor rax, rsp
mov qword [rsp + 0xf8], rax
test r8, r8
je 0x1400ae68f
mov rdi, r8
mov r11, rcx
mov eax, dword [r8]
cmp eax, 4
je 0x1400ae5df
mov dword [rsp + 0x4c], eax
mov eax, dword [rdi + 4]
mov dword [rsp + 0x50], eax
mov esi, dword [rdi + 0x10]
mov eax, dword [rdi + 0x14]
mov ecx, dword [rdi + 0x18]
mov dword [rsp + 0x54], ecx
mov rcx, qword [r11 + 8]
lea r8d, [rax + 0x14]
xor edx, edx
cmp r8d, 0x54
jb 0x1400adc4d
mov r9d, eax
and r9d, 7
jne 0x1400adc4d
mov r9d, dword [rcx + 0x14]
cmp r9d, r8d
jb 0x1400ae6c2
mov r8, qword [rcx + 8]
mov edx, dword [r8 + rax + 4]
cmp edx, 0xc8799269
jne 0x1400ae6c2
add r8, rax
mov edx, dword [r8]
cmp edx, 0x14
jb 0x1400ae6c2
xor edx, edx
mov r10d, dword [r8]
add r10d, eax
jb 0x1400adc4d
cmp r10d, r9d
ja 0x1400adc4d
mov r9d, dword [r8 + 8]
xor edx, edx
cmp r9d, 0xbcea225b
cmove rdx, r8
mov qword [rsp + 0x40], r11
lea r13, [rdx + 0x10]
test rdx, rdx
cmove r13, rdx
lea r9d, [rax + 0x10]
xor edx, edx
cmp r9d, 0x50
jb 0x1400adce0
mov r8d, eax
and r8d, 7
jne 0x1400adce0
mov r8d, dword [rcx + 0x14]
cmp r8d, r9d
jb 0x1400ae6aa
mov r9, qword [rcx + 8]
mov edx, dword [r9 + rax + 4]
cmp edx, 0xc8799269
jne 0x1400ae6aa
add r9, rax
mov edx, dword [r9]
cmp edx, 0x10
jb 0x1400ae6aa
mov r10d, dword [r9]
add r10d, eax
setb r11b
xor edx, edx
test r9, r9
je 0x1400adce0
test r11b, r11b
jne 0x1400adce0
cmp r10d, r8d
ja 0x1400adce0
mov edx, dword [r9]
cmp rdx, 0x11
jb 0x1400ae6a3
add eax, edx
jb 0x1400ae6a3
cmp eax, r8d
ja 0x1400ae6a3
add rdx, 0xfffffffffffffff0
mov qword [rsp + 0x38], rbx
test r13, r13
je 0x1400ae68a
cmp esi, 2
jb 0x1400ae68a
cmp esi, 0x3ffffffe
ja 0x1400ae68a
lea ebp, [rsi + 1]
lea rbx, [rbp*4]
cmp rdx, rbx
jb 0x1400ae68a
mov ecx, 0x20
call fcn.1400b4d4c
mov r12, rax
mov rcx, rbx
call fcn.1400b4d4c
mov r14, rax
mov qword [r12], rax
lea r15, [rax + rbp*4]
mov qword [r12 + 0x10], r15
mov rcx, rax
xor edx, edx
mov r8, rbx
call fcn.1400eb280
mov qword [r12 + 8], r15
mov qword [r12 + 0x18], 0
test rbp, rbp
je 0x1400ae6bf
mov eax, dword [r13]
mov dword [r14], eax
mov eax, 1
nop dword [rax]
mov ecx, dword [r13 + rax*4]
cmp ecx, dword [r13 + rax*4 - 4]
jle 0x1400ae681
mov rdx, qword [r12]
mov r8, qword [r12 + 8]
sub r8, rdx
sar r8, 2
cmp r8, rax
jbe 0x1400ae6bf
mov dword [rdx + rax*4], ecx
inc rax
cmp rbp, rax
jne 0x1400add70
mov r8, qword [r12]
mov rax, qword [r12 + 8]
mov rdx, rax
sub rdx, r8
je 0x1400ae6c9
js 0x1400ae6d0
mov rcx, rdx
shr rcx, 2
test dl, 1
jne 0x1400ae617
mov rdx, r8
lea r9, [rax - 1]
cmp r9, r8
je 0x1400ade1e
lea r8, [0x14012a4b0]
nop word cs:[rax + rax]
movzx r9d, byte [rdx]
movzx r10d, cl
xor r10d, r9d
shr ecx, 8
xor ecx, dword [r8 + r10*4]
movzx r9d, byte [rdx + 1]
movzx r10d, cl
xor r10d, r9d
shr ecx, 8
xor ecx, dword [r8 + r10*4]
add rdx, 2
cmp rdx, rax
jne 0x1400addf0
mov dword [r12 + 0x18], ecx
cmp ecx, dword [rsp + 0x54]
jne 0x1400ae681
test r12, r12
je 0x1400ae68a
mov r13, qword [rsp + 0x40]
mov rcx, qword [r13 + 0x10]
test rcx, rcx
jne 0x1400ae4a3
mov rcx, r12
call fcn.14007b5a0
mov r14, rax
xor r15d, r15d
lea rbx, [rsi*8]
mov edx, dword [rdi + 0x1c]
test edx, edx
jne 0x1400ae4bd
movabs rbp, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x88], rbp
mov r13, qword [r13 + 8]
mov rax, qword [0x140147c20]
and rax, r13
cmp rax, qword [0x140147c08]
jne 0x1400ade9a
mov rcx, r13
call fcn.140086860
lea r12, [rdi + 0x1c]
mov qword [rsp + 0x78], r13
mov dword [rsp + 0x80], 0x53215531
cmp esi, 0x1fffffff
ja 0x1400ae6e7
mov eax, ebx
mov r13, qword [rsp + 0x40]
mov qword [rsp + 0x40], r15
mov dword [rsp + 0x84], eax
mov dword [rsp + 0x88], 0
mov rax, qword [0x140147c20]
and rax, r12
cmp rax, qword [0x140147c08]
je 0x1400ae6ef
mov qword [rsp + 0x90], r12
mov qword [rsp + 0x68], rbp
mov r15, qword [r13 + 8]
mov rax, qword [0x140147c20]
and rax, r15
cmp rax, qword [0x140147c08]
jne 0x1400adf1b
mov rcx, r15
call fcn.140086860
lea eax, [rsi*4]
mov qword [rsp + 0x58], r15
mov dword [rsp + 0x60], 0x53215531
cmp esi, 0x1fffffff
ja 0x1400ae6fc
mov esi, dword [rsp + 0x4c]
mov dword [rsp + 0x64], ebx
mov dword [rsp + 0x68], eax
mov rax, qword [0x140147c20]
and rax, r12
cmp rax, qword [0x140147c08]
je 0x1400ae704
mov qword [rsp + 0x70], r12
cmp esi, 3
ja case.default.0x1400adf80
lea r13, [rdi + 0x50]
mov eax, esi
lea rcx, [0x140128a10]
movsxd rax, dword [rcx + rax*4]
add rax, rcx
jmp rax
mov ecx, 0x28
call fcn.1400b4d4c
mov r15, rax
mov qword [rax + 8], r13
mov dword [rax + 0x10], 0
lea rax, [0x140120a28]
mov qword [r15], rax
xorps xmm6, xmm6
movups xmmword [r15 + 0x18], xmm6
mov rcx, r13
call fcn.1400d3140
lea r12, [rsp + 0xb0]
movups xmmword [r12 + 0x34], xmm6
movups xmmword [r12 + 0x28], xmm6
movups xmmword [r12 + 0x18], xmm6
movups xmmword [r12 + 8], xmm6
movups xmmword [r12 - 8], xmm6
movaps xmm0, xmmword [0x140123670]
movups xmmword [r12 - 0x18], xmm0
test rax, rax
je 0x1400ae02b
mov rbp, rax
lea eax, [rax*8]
mov rcx, rbp
shr rcx, 0x1d
mov dword [rsp + 0xac], ecx
mov dword [rsp + 0xa8], eax
cmp rbp, 0x40
jae 0x1400ae55b
mov r8, rbp
mov dword [rsp + 0xf0], r8d
mov rcx, r12
mov rdx, r13
call fcn.1400eabe0
lea r13, [rdi + 0x20]
mov eax, dword [rsp + 0xf0]
lea rcx, [rax + 1]
mov esi, dword [rsp + 0xa8]
mov ebx, dword [rsp + 0xac]
mov byte [rsp + rax + 0xb0], 0x80
cmp rax, 0x38
jae 0x1400ae45e
cmp rcx, 0x38
je 0x1400ae073
mov r8d, 0x38
sub r8, rcx
add rcx, r12
xor edx, edx
call fcn.1400eb280
lea rbp, [rsp + 0x98]
mov dword [rbp + 0x50], esi
mov dword [rbp + 0x54], ebx
mov r8d, 1
mov rcx, rbp
mov rdx, r12
call fcn.140046400
mov rsi, qword [rbp]
mov ecx, 0x48
call fcn.1400b4d4c
mov r12, rax
mov qword [rax + 8], 0
mov rax, qword [0x140147c20]
and rax, r13
cmp rax, qword [0x140147c08]
je 0x1400ae724
mov qword [r12 + 0x10], r13
cmp qword [r13], 0
jne 0x1400ae0d5
bswap rsi
mov qword [r13], rsi
mov qword [r12 + 0x18], 0
mov rax, qword [0x140147c20]
and rax, r14
cmp rax, qword [0x140147c08]
jne 0x1400ae0f9
mov rcx, r14
call fcn.140086860
mov qword [r12 + 0x20], r14
mov rax, qword [r14 + 8]
sub rax, qword [r14]
cmp rax, 4
je 0x1400ae71e
lea rbx, [rsp + 0x80]
lea rsi, [0x140121228]
mov qword [r12], rsi
mov r13, qword [rbx - 8]
mov rax, qword [0x140147c20]
and rax, r13
cmp rax, qword [0x140147c08]
jne 0x1400ae141
mov rcx, r13
call fcn.140086860
mov qword [r12 + 0x28], r13
mov eax, dword [rbx + 8]
mov dword [r12 + 0x38], eax
mov rax, qword [rbx]
mov qword [r12 + 0x30], rax
mov r13, qword [rsp + 0x90]
mov rax, qword [0x140147c20]
and rax, r13
cmp rax, qword [0x140147c08]
je 0x1400ae731
lea rbx, [r15 + 0x18]
mov qword [r12 + 0x40], r13
mov eax, dword [rdi + 0x34]
cmp eax, 0xffffffff
je 0x1400ae58b
lea r13, [rdi + 0x38]
mov rcx, qword [rbx]
mov qword [rbx], r12
test rcx, rcx
je 0x1400ae1aa
mov rax, qword [rcx]
mov rax, qword [rax]
mov edx, 1
call qword [0x14013a9a8]
mov rax, qword [r12 + 0x10]
mov rbx, qword [rax]
mov ecx, 0x48
call fcn.1400b4d4c
mov r12, rax
mov qword [rax + 8], 0
mov rax, qword [0x140147c20]
and rax, r13
cmp rax, qword [0x140147c08]
je 0x1400ae73e
mov qword [r12 + 0x10], r13
cmp qword [r13], 0
jne 0x1400ae1ee
mov qword [r13], rbx
mov qword [r12 + 0x18], 0
mov rax, qword [0x140147c20]
and rax, r14
cmp rax, qword [0x140147c08]
jne 0x1400ae212
mov rcx, r14
call fcn.140086860
mov qword [r12 + 0x20], r14
mov rax, qword [r14 + 8]
sub rax, qword [r14]
cmp rax, 4
je 0x1400ae721
lea rbx, [rsp + 0x60]
mov qword [r12], rsi
mov r14, qword [rbx - 8]
mov rax, qword [0x140147c20]
and rax, r14
cmp rax, qword [0x140147c08]
jne 0x1400ae250
mov rcx, r14
call fcn.140086860
mov qword [r12 + 0x28], r14
mov eax, dword [rbx + 8]
mov dword [r12 + 0x38], eax
mov rax, qword [rbx]
mov qword [r12 + 0x30], rax
mov r14, qword [rsp + 0x70]
mov rax, qword [0x140147c20]
and rax, r14
cmp rax, qword [0x140147c08]
je 0x1400ae74b
mov qword [r12 + 0x40], r14
mov eax, dword [rdi + 0x4c]
cmp eax, 0xffffffff
je 0x1400ae5b5
mov rcx, qword [r15 + 0x20]
mov qword [r15 + 0x20], r12
test rcx, rcx
je 0x1400ae2b0
mov rax, qword [rcx]
mov rax, qword [rax]
mov edx, 1
call qword [0x14013a9a8]
mov rbx, qword [rsp + 0x38]
test r15, r15
je 0x1400ae69b
mov eax, dword [rsp + 0x50]
lock or dword [r15 + 0x10], eax
mov qword [rbx], r15
mov rcx, qword [rsp + 0x70]
mov rax, qword [0x140147c20]
and rax, rcx
cmp rax, qword [0x140147c08]
je 0x1400ae6d3
mov qword [rsp + 0x70], 0
mov rcx, qword [rsp + 0x58]
mov rax, qword [0x140147c20]
and rax, rcx
cmp rax, qword [0x140147c08]
mov r15, qword [rsp + 0x40]
jne 0x1400ae311
call fcn.140073aa0
mov rcx, qword [rsp + 0x90]
mov rax, qword [0x140147c20]
and rax, rcx
cmp rax, qword [0x140147c08]
je 0x1400ae6dd
mov qword [rsp + 0x90], 0
mov rcx, qword [rsp + 0x78]
mov rax, qword [0x140147c20]
and rax, rcx
cmp rax, qword [0x140147c08]
jne 0x1400ae359
call fcn.140073aa0
test r15, r15
jne 0x1400ae38d
mov rcx, qword [rsp + 0xf8]
xor rcx, rsp
call fcn.1400b7310
mov rax, rbx
movaps xmm6, xmmword [rsp + 0x100]
add rsp, 0x118
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, qword [r15]
test rcx, rcx
je 0x1400ae39e
mov qword [r15 + 8], rcx
call fcn.1400b4d44
mov rcx, r15
call fcn.1400b4d44
jmp 0x1400ae35e
lea rsi, [rdi + 0x38]
add rdi, 0x20
mov ecx, 0x40
call fcn.1400b4d4c
mov r15, rax
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rdi
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x78]
mov rcx, r15
mov rdx, r13
mov r8, r14
call fcn.140001260
lea rax, [0x140120ae8]
mov qword [r15], rax
lea rax, [r15 + 0x30]
xorps xmm0, xmm0
movups xmmword [r15 + 0x30], xmm0
mov qword [r15 + 0x28], rax
jmp 0x1400ae2b0
lea rsi, [rdi + 0x38]
add rdi, 0x20
mov ecx, 0x40
call fcn.1400b4d4c
mov r15, rax
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rdi
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x78]
mov rcx, r15
mov rdx, r13
mov r8, r14
call fcn.140001260
lea rax, [r15 + 0x30]
xorps xmm0, xmm0
movups xmmword [r15 + 0x30], xmm0
mov qword [r15 + 0x28], rax
lea rax, [0x140120ba8]
mov qword [r15], rax
jmp 0x1400ae2b0
cmp eax, 0x3f
je 0x1400ae474
add rcx, r12
cmp eax, 0x3c
jne 0x1400ae491
mov byte [rcx + 2], 0
mov word [rcx], 0
lea rcx, [rsp + 0x98]
mov r8d, 1
mov rdx, r12
call fcn.140046400
xor ecx, ecx
jmp 0x1400ae060
mov r8d, 0x3f
sub r8, rax
xor edx, edx
call fcn.1400eb280
jmp 0x1400ae474
mov rdx, r12
call fcn.14007d8f0
mov r14, rax
xor r15d, r15d
cmp rax, r12
cmovne r15, r12
jmp 0x1400ade56
lea r9d, [rdx + 0x10]
xor eax, eax
cmp r9d, 0x50
jb 0x1400ae541
mov ecx, edx
and ecx, 7
jne 0x1400ae541
mov rcx, qword [r13 + 8]
mov r8d, dword [rcx + 0x14]
cmp r8d, r9d
jb 0x1400ae6b8
mov r9, qword [rcx + 8]
mov eax, dword [r9 + rdx + 4]
cmp eax, 0xc8799269
jne 0x1400ae6b8
add r9, rdx
mov eax, dword [r9]
cmp eax, 0x10
jb 0x1400ae6b8
mov r10d, dword [r9]
add r10d, edx
setb r11b
xor eax, eax
test r9, r9
je 0x1400ae541
test r11b, r11b
jne 0x1400ae541
cmp r10d, r8d
ja 0x1400ae541
mov eax, dword [r9]
cmp rax, 0x11
jb 0x1400ae6b1
add edx, eax
jb 0x1400ae6b1
cmp edx, r8d
ja 0x1400ae6b1
add rax, 0xfffffffffffffff0
cmp rax, rbx
jae 0x1400ade69
mov rbx, qword [rsp + 0x38]
mov qword [rbx], 0
jmp 0x1400ae359
mov r8, rbp
shr r8, 6
lea rcx, [rsp + 0x98]
mov rdx, r13
call fcn.140046400
mov r8, rbp
and r8, 0x3f
je 0x1400ae02b
and rbp, 0xffffffffffffffc0
add r13, rbp
jmp 0x1400ae018
mov rax, qword [r12 + 0x40]
mov eax, dword [rax]
test eax, eax
je 0x1400ae18a
mov rcx, r12
add rcx, 0x28
call fcn.140001690
mov qword [r12 + 0x18], rax
mov rax, qword [r12 + 0x18]
jmp 0x1400ae18a
mov rax, qword [r12 + 0x40]
mov eax, dword [rax]
test eax, eax
je 0x1400ae292
mov rcx, r12
add rcx, 0x28
call fcn.140001690
mov qword [r12 + 0x18], rax
mov rax, qword [r12 + 0x18]
jmp 0x1400ae292
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rbx], rax
lea rax, [rdi + 0x38]
lea r9, [rdi + 0x20]
lea r8, [rdi + 0x50]
mov qword [rsp + 0x20], rax
mov rcx, rbx
mov rdx, r11
call fcn.140003440
mov rax, qword [rbx]
mov ecx, dword [rdi + 4]
lock or dword [rax + 0x10], ecx
jmp 0x1400ae35e
movzx edx, byte [r8]
movzx r9d, cl
xor r9d, edx
lea rdx, [0x14012a4b0]
shr ecx, 8
xor ecx, dword [rdx + r9*4]
lea rdx, [r8 + 1]
jmp 0x1400addd2
lea rsi, [rdi + 0x38]
add rdi, 0x20
mov ecx, 0x28
call fcn.1400b4d4c
mov r15, rax
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rdi
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x78]
mov rcx, r15
mov rdx, r13
mov r8, r14
call fcn.140001260
lea rax, [0x140120c68]
jmp 0x1400ae456
test r12, r12
jne 0x1400ae758
mov rbx, qword [rsp + 0x38]
mov qword [rbx], 0
jmp 0x1400ae35e
xor r15d, r15d
jmp 0x1400ae2c7
mov dl, 1
call fcn.1400ec5e0
xor edx, edx
jmp 0x1400adce0
mov dl, 1
call fcn.1400ec5e0
xor eax, eax
jmp 0x1400ae541
int3
xor edx, edx
jmp 0x1400adc4d
xor ecx, ecx
jmp 0x1400ade1e
int3
call fcn.140073aa0
jmp 0x1400ae2e6
call fcn.140073aa0
jmp 0x1400ae330
int3
mov rcx, r12
call fcn.140086860
jmp 0x1400adeef
int3
mov rcx, r12
call fcn.140086860
jmp 0x1400adf5e
xor r15d, r15d
mov rbx, qword [rsp + 0x38]
jmp 0x1400ae2c7
int3
int3
mov rcx, r13
call fcn.140086860
jmp 0x1400ae0c2
mov rcx, r13
call fcn.140086860
jmp 0x1400ae175
mov rcx, r13
call fcn.140086860
jmp 0x1400ae1de
mov rcx, r14
call fcn.140086860
jmp 0x1400ae281
mov rcx, qword [r12]
test rcx, rcx
je 0x1400ae76b
mov qword [r12 + 8], rcx
call fcn.1400b4d44
mov rcx, r12
call fcn.1400b4d44
jmp 0x1400ae68a