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

Disassembly:
push rsi
push rdi
sub rsp, 0x58
movzx eax, byte [rcx]
test eax, eax
je 0x140023171
add rcx, 8
cmp eax, 1
jne 0x1400231ab
add rsp, 0x58
pop rdi
pop rsi
jmp 0x140024d40
mov rsi, qword [rcx + 0x18]
test rsi, rsi
je 0x1400231b6
cmp r8, rsi
cmovae r8, rsi
mov rax, qword [rcx + 8]
mov rdi, rcx
mov r9, qword [rcx + 0x10]
mov rcx, rax
call qword [r9 + 0x18]
mov rcx, rax
mov eax, 1
test rcx, rcx
jne 0x1400231ba
sub rsi, rdx
jb 0x1400231c1
mov qword [rdi + 0x18], rsi
jmp 0x1400231b8
add rsp, 0x58
pop rdi
pop rsi
jmp 0x140027240
xor edx, edx
xor eax, eax
add rsp, 0x58
pop rdi
pop rsi
ret
lea rax, str.0Q__
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], 1
lea rax, str._tP__
mov qword [rsp + 0x38], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
lea rdx, str._rustc_9b00956e56009bab2aa15d7bff10916599e3d6d6library_std_srciomod.rs_rustc_9b00956e56009bab2aa15d7bff10916599e3d6d6librarycore_srcio_borrowed_buf.rs
lea rcx, [rsp + 0x28]
call fcn.14023ffc0
int3
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x58
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
mov r14, qword [rcx + 0x10]
test r14, r14
je 0x140024d91
cmp rdi, r14
mov r8, r14
cmovb r8, rdi
mov rcx, qword [rsi]
mov rax, qword [rsi + 8]
mov rdx, rbx
call qword [rax + 0x18]
mov rcx, rax
mov eax, 1
test rcx, rcx
jne 0x140024d95
sub r14, rdx
jb 0x140024e34
mov qword [rsi + 0x10], r14
jmp 0x140024d93
xor edx, edx
xor eax, eax
test rdi, rdi
je 0x140024e27
mov r8d, dword [rsi + 0x20]
mov ecx, dword [rsi + 0x18]
mov r9d, dword [rsi + 0x1c]
xor r10d, r10d
lea r11, [0x1402445d8]
nop word cs:[rax + rax]
mov r14d, r8d
or r14d, 3
mov ebp, r14d
and ebp, 0xfffffffe
imul ebp, r14d
shr ebp, 8
xor bpl, byte [rbx + r10]
mov r14d, ecx
xor r14b, bpl
shr ecx, 8
movzx r14d, r14b
xor ecx, dword [r11 + r14*4]
movzx r14d, cl
add r14d, r9d
imul r9d, r14d, 0x8088405
inc r9d
mov r14d, r9d
shr r14d, 0x18
movzx r15d, r8b
xor r15d, r14d
shr r8d, 8
xor r8d, dword [r11 + r15*4]
mov byte [rbx + r10], bpl
inc r10
cmp rdi, r10
jne 0x140024dc0
mov dword [rsi + 0x20], r8d
mov dword [rsi + 0x18], ecx
mov dword [rsi + 0x1c], r9d
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
lea rax, str.0Q__
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], 1
lea rax, str._tP__
mov qword [rsp + 0x38], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
lea rdx, str._rustc_9b00956e56009bab2aa15d7bff10916599e3d6d6library_std_srciomod.rs_rustc_9b00956e56009bab2aa15d7bff10916599e3d6d6librarycore_srcio_borrowed_buf.rs
lea rcx, [rsp + 0x28]
call fcn.14023ffc0
int3
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xc8
movdqa xmmword [rsp + 0xb0], xmm6
mov rbx, qword [rcx + 0x28]
test rbx, rbx
je 0x1400272b8
mov r14, rdx
mov rdi, rcx
mov r15, qword [rcx + 0x10]
test r15, r15
je 0x1400272c1
cmp rbx, r8
mov r12, r8
cmovb r8, rbx
cmp r8, r15
cmovae r8, r15
mov rcx, qword [rdi]
mov rax, qword [rdi + 8]
mov rdx, r14
call qword [rax + 0x18]
mov rcx, rax
mov rsi, rdx
mov eax, 1
test rcx, rcx
jne 0x1400275f7
sub r15, rsi
jb 0x14002762b
mov qword [rdi + 0x10], r15
mov r8, r12
jmp 0x1400272c3
xor esi, esi
xor eax, eax
jmp 0x1400275f7
xor esi, esi
sub rbx, rsi
mov qword [rdi + 0x28], rbx
cmp rsi, r8
ja 0x140027616
lea rbx, [rdi + 0x90]
movzx eax, byte [rdi + 0xd0]
movzx r15d, al
mov r8d, 0x40
sub r8, r15
cmp r8, rsi
jbe 0x140027307
lea rcx, [rbx + r15]
mov rdx, r14
mov r8, rsi
call sub.VCRUNTIME140.dll_memcpy
add r15, rsi
jmp 0x14002737d
test al, al
je 0x14002733b
lea r13, [r14 + r8]
mov r12, rsi
sub r12, r8
add r15, rbx
mov rcx, r15
mov rdx, r14
call sub.VCRUNTIME140.dll_memcpy
inc qword [rdi + 0x30]
lea rcx, [rdi + 0x38]
mov r8d, 1
mov rdx, rbx
call fcn.140033130
jmp 0x140027341
mov r12, rsi
mov r13, r14
mov rbp, r12
and rbp, 0xffffffffffffffc0
mov r15d, r12d
and r15d, 0x3f
add rbp, r13
cmp r12, 0x40
jb 0x14002736f
shr r12, 6
add qword [rdi + 0x30], r12
lea rcx, [rdi + 0x38]
mov rdx, r13
mov r8, r12
call fcn.140033130
mov rcx, rbx
mov rdx, rbp
mov r8, r15
call sub.VCRUNTIME140.dll_memcpy
mov byte [rdi + 0xd0], r15b
mov rcx, qword [rdi + 0x18]
mov rax, qword [rdi + 0x20]
mov rdx, r14
mov r8, rsi
call qword [rax + 0x18]
cmp qword [rdi + 0x28], 0
je 0x1400273a3
xor eax, eax
jmp 0x1400275f7
cmp byte [rdi + 0xd8], 0
jne 0x140027665
mov byte [rdi + 0xd8], 1
mov word [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea rdx, [rsp + 0x20]
mov r8d, 0xa
mov rcx, rdi
call fcn.140025f70
mov rcx, rax
test rax, rax
jne 0x1400275ef
movzx r14d, byte [rdi + 0xd0]
mov rax, qword [rdi + 0x30]
shl rax, 9
mov r12d, r14d
shl r12d, 3
or r12, rax
mov eax, dword [rdi + 0x48]
mov dword [rsp + 0x80], eax
movups xmm0, xmmword [rdi + 0x38]
movaps xmmword [rsp + 0x70], xmm0
mov byte [rdi + r14 + 0x90], 0x80
mov r8, r14
xor r8, 0x3f
je 0x140027438
lea rcx, [rbx + r14]
inc rcx
test rcx, rcx
je 0x140027438
xor edx, edx
call sub.VCRUNTIME140.dll_memset
lea r15, [rdi + 0x38]
bswap r12
xor r14d, 0x38
cmp r14d, 8
jae 0x14002748f
lea r14, [rsp + 0x70]
mov r8d, 1
mov rcx, r14
mov rdx, rbx
call fcn.140033130
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], r12
lea rdx, [rsp + 0x30]
mov r8d, 1
mov rcx, r14
jmp 0x1400274a4
mov qword [rdi + 0xc8], r12
lea rcx, [rsp + 0x70]
mov r8d, 1
mov rdx, rbx
call fcn.140033130
mov eax, dword [rsp + 0x80]
bswap eax
movdqa xmm0, xmmword [rsp + 0x70]
pxor xmm6, xmm6
movdqa xmm1, xmm0
punpckhbw xmm1, xmm6
pshuflw xmm1, xmm1, 0x1b
pshufhw xmm1, xmm1, 0x1b
punpcklbw xmm0, xmm6
pshuflw xmm0, xmm0, 0x1b
pshufhw xmm0, xmm0, 0x1b
packuswb xmm0, xmm1
mov rcx, qword [rdi + 0x50]
mov edx, dword [rdi + 0x68]
mov dword [rsp + 0x40], edx
movups xmm1, xmmword [rdi + 0x58]
movaps xmmword [rsp + 0x30], xmm1
movdqu xmmword [rdi + 0x90], xmm0
mov dword [rdi + 0xa0], eax
mov byte [rdi + 0xd0], setsockopt
shl rcx, 9
or rcx, 0xa0
bswap rcx
mov byte [rdi + 0xa4], 0x80
movdqu xmmword [rdi + 0xa5], xmm6
movdqu xmmword [rdi + 0xb5], xmm6
mov dword [rdi + 0xc4], 0
mov qword [rdi + 0xc8], rcx
lea rcx, [rsp + 0x30]
mov r8d, 1
mov rdx, rbx
call fcn.140033130
mov eax, dword [rsp + 0x40]
bswap eax
movdqa xmm0, xmmword [rsp + 0x30]
movdqa xmm1, xmm0
punpckhbw xmm1, xmm6
pshuflw xmm1, xmm1, 0x1b
pshufhw xmm1, xmm1, 0x1b
punpcklbw xmm0, xmm6
pshuflw xmm0, xmm0, 0x1b
pshufhw xmm0, xmm0, 0x1b
packuswb xmm0, xmm1
mov rcx, qword [rdi + 0x70]
mov qword [rdi + 0x30], rcx
mov ecx, dword [rdi + 0x88]
mov dword [r15 + 0x10], ecx
movups xmm1, xmmword [rdi + 0x78]
movups xmmword [r15], xmm1
mov byte [rdi + 0xd0], 0
movdqa xmmword [rsp + 0x90], xmm0
mov dword [rsp + 0xa0], eax
lea rcx, [rsp + 0x90]
lea r8, [rsp + 0x20]
mov edx, 0xa
mov r9d, 0xa
call fcn.140034820
test al, al
je 0x14002739c
lea rdx, str.Invalid_authentication_code__this_could_be_due_to_an_invalid_password_or_errors_in_the_dataTried_to_use_an_already_finalized_HMAC._This_is_a_bug_
mov r8d, 0x5b
mov cl, reloc.WS2_32.dll_setsockopt
call fcn.140024ff0
mov rcx, rax
mov eax, 1
mov rsi, rcx
mov rdx, rsi
movaps xmm6, xmmword [rsp + 0xb0]
add rsp, 0xc8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rax, str.C:Users1.cargo_registry_srcindex.crates.io_6f17d22bba15001fzip_0.6.6_src_aes.rs
mov rcx, rsi
mov rdx, r8
mov r8, rax
call fcn.140240510
lea rax, str.0Q__
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 1
lea rax, str._tP__
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
lea rdx, str._rustc_9b00956e56009bab2aa15d7bff10916599e3d6d6library_std_srciomod.rs_rustc_9b00956e56009bab2aa15d7bff10916599e3d6d6librarycore_srcio_borrowed_buf.rs
lea rcx, [rsp + 0x30]
call fcn.14023ffc0
lea rax, [0x140245318]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 1
lea rax, [0x1402451b0]
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
lea rdx, str.C:Users1.cargo_registry_srcindex.crates.io_6f17d22bba15001fzip_0.6.6_src_aes.rs
lea rcx, [rsp + 0x30]
call fcn.14023ffc0
int3