Function at 0x140004f70
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov rsi, r9
mov rdi, r8
mov rbx, rcx
mov r12, qword [rsp + 0xa8]
mov r15, qword [rsp + 0xa0]
mov rax, qword [rdx]
lea rcx, [rax + r9]
mov qword [rdx], rcx
movdqu xmm0, xmmword [r15 + 1]
test byte [r15], 1
mov byte [r15], 0
jne 0x140004fc8
mov rax, rsi
and rax, 0xfffffffffffffff0
test rax, rax
jne 0x1400050c7
jmp 0x1400051d7
and eax, 0xf
movdqa xmmword [rsp + 0x20], xmm0
mov r14d, 0x10
sub r14, rax
mov r13, rsi
lea rcx, [rsp + rax]
add rcx, 0x20
sub r13, r14
jb 0x1400051f7
mov rdx, rdi
mov r8, r14
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x20]
mov ecx, dword [rsp + 0x24]
bswap eax
bswap ecx
mov edx, dword [rsp + 0x28]
bswap edx
mov r9d, dword [rsp + 0x2c]
bswap r9d
xor r9d, dword [rbx]
xor edx, dword [rbx + 4]
xor ecx, dword [rbx + 8]
xor eax, dword [rbx + 0xc]
pxor xmm0, xmm0
mov r8d, 0x800
nop dword [rax]
mov r10d, eax
shld r10d, ecx, 0x1f
shld ecx, edx, 0x1f
shld edx, r9d, 0x1f
and r9d, 1
neg r9d
movdqu xmm1, xmmword [r12 + r8 - 0x20]
movdqu xmm2, xmmword [r12 + r8 - 0x10]
movd xmm3, r9d
pshufd xmm3, xmm3, 0
pand xmm3, xmm2
mov r11d, eax
shr r11d, 1
shld r11d, r10d, 0x1f
shld r10d, ecx, 0x1f
shld ecx, edx, 0x1f
pxor xmm3, xmm0
and edx, 1
neg edx
movd xmm0, edx
pshufd xmm0, xmm0, 0
pand xmm0, xmm1
pxor xmm0, xmm3
shr eax, 2
mov r9d, ecx
mov edx, r10d
mov ecx, r11d
add r8, 0xffffffffffffffe0
jne 0x140005030
movdqu xmmword [rbx], xmm0
and rsi, 0xfffffffffffffff0
cmp rsi, r13
ja 0x140005253
add rdi, r14
mov rax, rsi
mov rsi, r13
test rax, rax
je 0x1400051d7
movdqu xmm0, xmmword [rbx]
mov rcx, rax
mov r8, rdi
nop word cs:[rax + rax]
mov r9d, 0x10
cmp rcx, 0x10
cmovb r9, rcx
jb 0x140005223
lea rdx, [r8 + r9]
sub rcx, r9
mov r10d, dword [r8]
mov r9d, dword [r8 + 4]
bswap r10d
bswap r9d
mov r14d, dword [r8 + 8]
bswap r14d
mov r8d, dword [r8 + 0xc]
bswap r8d
movd ebp, xmm0
xor ebp, r8d
pshufd xmm1, xmm0, 0x55
movd r11d, xmm1
xor r11d, r14d
pshufd xmm1, xmm0, 0xee
movd r8d, xmm1
xor r8d, r9d
pshufd xmm0, xmm0, 0xff
movd r9d, xmm0
xor r9d, r10d
pxor xmm0, xmm0
mov r10d, 0x800
nop
mov r14d, r9d
shld r14d, r8d, 0x1f
shld r8d, r11d, 0x1f
shld r11d, ebp, 0x1f
and ebp, 1
neg ebp
movdqu xmm1, xmmword [r12 + r10 - 0x20]
movdqu xmm2, xmmword [r12 + r10 - 0x10]
movd xmm3, ebp
pshufd xmm3, xmm3, 0
pand xmm3, xmm2
mov r13d, r9d
shr r13d, 1
shld r13d, r14d, 0x1f
shld r14d, r8d, 0x1f
shld r8d, r11d, 0x1f
pxor xmm3, xmm0
and r11d, 1
neg r11d
movd xmm0, r11d
pshufd xmm0, xmm0, 0
pand xmm0, xmm1
pxor xmm0, xmm3
shr r9d, 2
mov ebp, r8d
mov r11d, r14d
mov r8d, r13d
add r10, 0xffffffffffffffe0
jne 0x140005150
movdqu xmmword [rbx], xmm0
mov r8, rdx
test rcx, rcx
jne 0x1400050e0
cmp rsi, rax
je 0x140005212
sub rsi, rax
pxor xmm0, xmm0
movdqa xmmword [rsp + 0x20], xmm0
cmp rsi, 0x11
jae 0x14000523b
add rdi, rax
lea rcx, [rsp + 0x20]
mov rdx, rdi
mov r8, rsi
call sub.VCRUNTIME140.dll_memcpy
movdqa xmm0, xmmword [rsp + 0x20]
mov byte [r15], 1
movdqu xmmword [r15 + 1], xmm0
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [0x14002c17e]
lea r8, str.C:Usersp.farzam.cargo_registry_srcindex.crates.io_6f17d22bba15001f_rust_crypto_0.2.36_srcghash.rsassertion_failed:_bytes.len____16
mov edx, 0x23
call fcn.140028c30
lea rcx, [0x14002c06b]
lea r8, [0x14002c100]
mov edx, 0x28
call fcn.140028c30
lea rcx, str.assertion_failed:_mid___self.len__assertion_failed:_dst.len_____src.len__C:Usersp.farzam.cargo_registry_srcindex.crates.io_6f17d22bba15001f_rust_crypto_0.2.36_srccryptoutil.rs
lea r8, str.C:Usersp.farzam.cargo_registry_srcindex.crates.io_6f17d22bba15001f_rust_crypto_0.2.36_srcghash.rsassertion_failed:_bytes.len____16
mov edx, 0x23
call fcn.140028c30
int3