Function at 0x140002824
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x138
mov r14, rdx
mov rbx, rcx
cmp byte [rdx + 0xb9], 0
je 0x140002a2c
mov rax, qword [r14 + 0x98]
lea rcx, [rax - 1]
imul rcx, rcx, 0xb0
add rcx, qword [r14 + 0x88]
xor esi, esi
cmp rax, 1
cmovae rsi, rcx
lea rdx, [0x14014c2f8]
mov rcx, rsi
call fcn.1400047da
mov rax, qword [rsi + 0x38]
mov r13, qword [rsi + 0x48]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], r13
cmp r13, 0xffff
jbe 0x1400028b0
lea rdx, str.Extra_data_exceeds_extra_fieldIncomplete_extra_data_header.cargo_registry_srcindex.crates.io_6f17d22bba15001fzip_0.6.6_srcwrite.rs
mov r8d, 0x1e
mov cl, reloc.WS2_32.dll_setsockopt
call fcn.140027a00
jmp 0x140002a03
lea rdi, [rsp + 0x48]
lea r15, [rsp + 0x38]
lea rbp, [0x1401f1340]
test r13, r13
je 0x140002a15
cmp r13, 4
jb 0x140002d33
mov rcx, rdi
mov rdx, r15
call fcn.1400f3228
cmp word [rsp + 0x48], 0
jne 0x140002dd3
movzx r12d, word [rsp + 0x4a]
mov word [rsp + 0x36], r12w
mov rcx, rdi
mov rdx, r15
call fcn.1400f3228
cmp word [rsp + 0x48], 0
jne 0x140002dd3
cmp r12w, 1
je 0x140002d42
cmp r12w, 0x20
jb 0x140002972
movzx ecx, word [rsp + 0x4a]
add r13, 0xfffffffffffffffc
xor eax, eax
cmp rax, 0x62
je 0x140002941
lea rdx, [rax + 2]
cmp word [rax + rbp], r12w
mov rax, rdx
jne 0x14000292b
jmp 0x140002972
cmp r13, rcx
jb 0x140002d51
mov rdx, qword [rsp + 0x38]
mov r8, qword [rsp + 0x40]
lea r9, [0x1401f1428]
call fcn.14005c359
mov r13, rdx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rdx
jmp 0x1400028c1
lea rax, [rsp + 0x36]
lea rcx, [rsp + 0xe0]
mov qword [rcx], rax
lea rax, [fcn.14001b390]
mov qword [rcx + 8], rax
mov eax, 2
mov qword [rsp + 0x48], rax
and qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 6
and qword [rsp + 0x68], 0
movabs rdx, 0xc00000020
mov qword [rsp + 0x70], rdx
mov byte [rsp + 0x78], 3
lea r8, str.Extra_data_header_ID__requires_crate_feature__unreserved_
lea rdx, [rsp + 0x108]
mov qword [rdx], r8
mov qword [rdx + 8], rax
mov qword [rdx + 0x20], rdi
mov eax, 1
mov qword [rdx + 0x28], rax
mov qword [rdx + 0x10], rcx
mov qword [rdx + 0x18], rax
lea rsi, [rsp + 0xf0]
mov rcx, rsi
call fcn.140011770
mov rcx, rsi
call fcn.1400f32a8
xor ecx, ecx
mov qword [rbx], rcx
mov qword [rbx + 8], rax
mov qword [rbx + 0x10], rdx
jmp 0x140002ca6
cmp byte [r14 + 0xba], 0
je 0x140002d65
and word [r14 + 0xb9], 0
lea rsi, [rsp + 0x48]
mov rcx, rsi
mov rdx, r14
xor r8d, r8d
xor r9d, r9d
call fcn.140001c90
mov rax, qword [rsi]
cmp rax, 4
jne 0x140002b55
lea rax, [rsp + 0x48]
mov ecx, recv
mov rdi, rax
mov rsi, r14
rep movsq qword [rdi], qword [rsi]
mov qword [r14], 2
cmp dword [rax], 3
jne 0x140002f65
lea rsi, [rsp + 0x50]
cmp qword [rsi], 0
je 0x140002bd0
movups xmm0, xmmword [rsi]
movups xmm1, xmmword [rsi + 0x10]
movups xmm2, xmmword [rsi + 0x20]
movaps xmmword [rsp + 0xd0], xmm2
movaps xmmword [rsp + 0xc0], xmm1
movaps xmmword [rsp + 0xb0], xmm0
mov r8, qword [rsp + 0xc0]
cmp r8, 0xb
jbe 0x140002f4c
mov eax, dword [r14 + 0x6c]
shr eax, 0x18
mov rdi, qword [rsp + 0xb0]
mov byte [rdi + 0xb], al
mov ecx, dword [rsp + 0xd8]
mov r15d, dword [rsp + 0xd0]
mov eax, dword [rsp + 0xd4]
xor edx, edx
lea r9, [0x1401f1464]
mov r10d, 0xff
cmp r8, rdx
je 0x140002b66
mov r11b, byte [rdi + rdx]
mov r13d, ecx
or r13d, 3
mov ebp, r13d
and ebp, 0xfffffffe
mov r12d, r15d
shr r12d, 8
xor r15b, r11b
movzx r15d, r15b
xor r12d, dword [r9 + r15*4]
imul ebp, r13d
mov r15d, r12d
and r12d, r10d
add r12d, eax
imul eax, r12d, 0x8088405
inc eax
mov r12d, eax
shr r12d, 0x18
mov r13d, ecx
and ecx, r10d
xor ecx, r12d
shr ebp, 8
shr r13d, 8
xor r13d, dword [r9 + rcx*4]
xor bpl, r11b
mov byte [rdi + rdx], bpl
inc rdx
mov ecx, r13d
jmp 0x140002aed
movups xmm0, xmmword [rsp + 0x50]
movups xmmword [rbx + 8], xmm0
mov qword [rbx], rax
jmp 0x140002ca6
mov dword [rsp + 0xd8], ecx
mov dword [rsp + 0xd0], r15d
mov dword [rsp + 0xd4], eax
mov r15, qword [rsp + 0xc8]
mov rcx, r15
mov rdx, rdi
call fcn.1400f30b4
test rax, rax
je 0x140002bfb
mov r12, rax
lea rcx, [rsp + 0xb0]
call fcn.140004129
mov qword [rbx + 8], r12
and qword [rbx], 0
cmp dword [rsp + 0x48], 3
jne 0x140002c3c
cmp qword [rsp + 0x50], 0
jne 0x140002ca6
mov rcx, rsi
call fcn.140004080
jmp 0x140002ca6
lea rdi, [r14 + 8]
mov rcx, r14
call fcn.140004094
mov qword [r14], 3
movups xmm0, xmmword [rsi]
movups xmm1, xmmword [rsi + 0x10]
movups xmm2, xmmword [rsi + 0x20]
movups xmmword [rdi + 0x20], xmm2
movups xmmword [rdi + 0x10], xmm1
movups xmmword [rdi], xmm0
jmp 0x140002c52
mov rdx, qword [rsp + 0xb8]
mov rcx, rdi
call fcn.140029ea3
mov rcx, r14
call fcn.140004094
mov qword [r14], 3
and qword [r14 + 8], 0
mov qword [r14 + 0x10], r15
cmp dword [rsp + 0x48], 3
jne 0x140002c48
cmp qword [rsp + 0x50], 0
jne 0x140002c52
mov rcx, rsi
call fcn.140004080
jmp 0x140002c52
lea rcx, [rsp + 0x48]
call fcn.140004094
jmp 0x140002ca6
lea rcx, [rsp + 0x48]
call fcn.140004094
mov rcx, r14
call fcn.140001c3a
cmp byte [r14 + 0xbb], 0
je 0x140002c76
xor eax, eax
mov byte [r14 + 0xb8], al
mov byte [r14 + 0xbb], al
jmp 0x140002c9f
mov rsi, rax
mov rax, qword [r14 + 0x98]
lea rcx, [rax - 1]
imul rcx, rcx, 0xb0
add rcx, qword [r14 + 0x88]
xor r12d, r12d
cmp rax, 1
cmovae r12, rcx
jae 0x140002cba
mov qword [rbx], 4
add rsp, 0x138
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov eax, dword [r14 + 0x6c]
mov dword [r12 + 0x9c], eax
mov rax, qword [r14 + 0x80]
mov qword [r12 + 0x78], rax
mov rdx, qword [rsi]
lea rdi, [rsp + 0x48]
mov rcx, rdi
call fcn.14004c827
cmp qword [rdi], 0
jne 0x140002d21
lea r15, [rsp + 0x48]
mov rdi, qword [r15 + 8]
mov rax, rdi
sub rax, qword [r14 + 0x78]
mov qword [r12 + 0x70], rax
mov r9, qword [r12 + 0x80]
add r9, 0xe
mov rdx, qword [rsi]
mov rcx, r15
xor r8d, r8d
call fcn.1400c9f30
cmp qword [r15], 0
je 0x140002ddd
mov rax, qword [rsp + 0x50]
mov qword [rbx + 8], rax
and qword [rbx], 0
jmp 0x140002ca6
lea rdx, [0x1401f12d6]
mov r8d, 0x1c
jmp 0x140002d5e
lea rdx, str.No_custom_ZIP64_extra_data_allowed
mov r8d, 0x22
jmp 0x140002d5e
lea rdx, str.Extra_data_size_exceeds_extra_field
mov r8d, 0x23
mov cl, 0x27
jmp 0x1400028a6
mov rcx, r14
call fcn.140001c3a
mov rdi, rax
mov rdx, qword [rsi + 0x38]
mov r8, qword [rsi + 0x48]
mov rcx, qword [rax]
call fcn.1400f30b4
test rax, rax
jne 0x140002a03
mov r15, qword [rsi + 0x48]
add r15, qword [rsi + 0x90]
mov qword [r14 + 0x78], r15
mov qword [rsi + 0x90], r15
mov bpl, byte [rsi + 0xa8]
mov r13, qword [rsi + 0x48]
mov r9, qword [rsi + 0x80]
add r9, 0x1c
mov rdx, qword [rdi]
lea r12, [rsp + 0x48]
mov rcx, r12
xor r8d, r8d
call fcn.1400c9f30
cmp qword [r12], 0
je 0x140002e5f
mov rax, qword [rsp + 0x50]
jmp 0x140002a03
mov edx, dword [r12 + 0x9c]
mov rcx, qword [rsi]
call fcn.140007925
test rax, rax
jne 0x140002d26
cmp byte [r12 + 0xa8], 0
je 0x140002ed9
mov rax, qword [r12 + 0x18]
mov rcx, qword [r12 + 0x80]
lea r9, [rcx + rax]
add r9, 0x22
mov rdx, qword [rsi]
lea r15, [rsp + 0x48]
mov rcx, r15
xor r8d, r8d
call fcn.1400c9f30
cmp qword [r15], 0
jne 0x140002d21
mov rdx, qword [r12 + 0x78]
mov rcx, qword [rsi]
call fcn.140007964
test rax, rax
jne 0x140002d26
mov rdx, qword [r12 + 0x70]
mov rcx, qword [rsi]
call fcn.140007964
jmp 0x140002f1e
lea edx, [r13 + 0x14]
test bpl, bpl
cmove edx, r13d
mov rcx, qword [rdi]
call fcn.1400078e5
test rax, rax
jne 0x140002a03
mov rdx, qword [rdi]
lea rdi, [rsp + 0x48]
mov rcx, rdi
xor r8d, r8d
mov r9, r15
call fcn.1400c9f30
cmp qword [rdi], 0
jne 0x140002dd3
movzx r8d, word [rsi + 0x98]
mov r9d, dword [rsi]
mov eax, dword [rsi + 4]
mov dword [rsp + 0x20], eax
lea rsi, [rsp + 0x48]
mov rcx, rsi
mov rdx, r14
call fcn.140001c90
mov rcx, qword [rsi]
cmp rcx, 4
je 0x140002a23
mov rax, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x58]
jmp 0x140002a05
mov rdx, qword [r12 + 0x70]
mov rax, rdx
shr rax, 0x20
je 0x140002f00
lea rdx, str.Large_file_option_has_not_been_setShould_have_switched_to_stored_and_unencrypted_beforehand
mov r8d, 0x22
mov cl, 0x27
call fcn.1400beff3
jmp 0x140002d26
mov rcx, qword [rsi]
call fcn.140007925
test rax, rax
jne 0x140002d26
mov edx, dword [r12 + 0x78]
mov rcx, qword [rsi]
call fcn.140007925
test rax, rax
jne 0x140002d26
mov rdx, qword [rsi]
lea rsi, [rsp + 0x48]
mov rcx, rsi
xor r8d, r8d
mov r9, rdi
call fcn.1400c9f30
cmp qword [rsi], 0
jne 0x140002d21
jmp 0x140002c64
lea rax, str..cargo_registry_srcindex.crates.io_6f17d22bba15001fzip_0.6.6_srczipcrypto.rs
mov ecx, 0xb
mov rdx, r8
mov r8, rax
call fcn.140147450
ud2
lea rcx, str.internal_error:_entered_unreachable_code
lea r8, [0x14014c2e0]
mov edx, 0x28
call fcn.1401475d0
ud2