Function at 0x180003c00
Capabilities:
Encode data using xor

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x258
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x1d0], 0xfffffffffffffffe
lea rsi, [rbp + 0x80]
mov rcx, rsi
call fcn.180017e20
mov rcx, rsi
call fcn.18002ab30
mov r8, rdx
mov qword [rsp + 0x20], 7
lea r9, str.drm.exe
lea rcx, [rbp + 0x170]
mov rdx, rax
call fcn.18001d3d0
movzx eax, byte [0x1801435b1]
mov ecx, 0xc1140
mov edx, 1
call fcn.180007d20
test rax, rax
je 0x180004143
lea rdx, [0x18004c98f]
mov r8d, 0xc1140
mov qword [rbp + 0x1c0], rax
mov rcx, rax
call fcn.1800492f0
xorps xmm0, xmm0
movaps xmmword [rbp + 0xd0], xmm0
movaps xmmword [rbp + 0xc0], xmm0
movaps xmmword [rbp + 0xb0], xmm0
movaps xmmword [rbp + 0xa0], xmm0
mov ecx, 0x727e5811
mov rax, 0xfffffffffffffffc
nop word cs:[rax + rax]
mov edx, ecx
shl edx, 0xd
xor edx, ecx
mov r8d, edx
shr r8d, 0x11
xor r8d, edx
mov ecx, r8d
shl ecx, 5
xor ecx, r8d
mov dword [rbp + rax + 0xa4], ecx
add rax, 4
cmp rax, 0x3c
jb 0x180003cd0
mov rax, qword [0x18010dae8]
xor rax, qword [rbp + 0xa0]
mov rcx, qword [0x18010daf0]
xor rcx, qword [rbp + 0xa8]
mov rdx, qword [0x18010daf8]
xor rdx, qword [rbp + 0xb0]
mov r8, qword [0x18010db00]
xor r8, qword [rbp + 0xb8]
mov r9, qword [0x18010db08]
xor r9, qword [rbp + 0xc0]
mov r10, qword [0x18010db10]
xor r10, qword [rbp + 0xc8]
mov r11, qword [0x18010db18]
xor r11, qword [rbp + 0xd0]
mov rsi, qword [0x18010db20]
xor rsi, qword [rbp + 0xd8]
mov qword [rbp + 0xa0], rax
mov qword [rbp + 0xa8], rcx
mov qword [rbp + 0xb0], rdx
mov qword [rbp + 0xb8], r8
mov qword [rbp + 0xc0], r9
mov qword [rbp + 0xc8], r10
mov qword [rbp + 0xd0], r11
mov qword [rbp + 0xd8], rsi
lea rcx, [rbp + 0x1a0]
lea rdx, [rbp + 0xa0]
mov r8d, 0x40
mov r9d, 0x20
call fcn.18000f5e0
mov rdx, qword [rbp + 0x1a8]
mov rcx, qword [rbp + 0x1b0]
test byte [rbp + 0x1a0], 1
je 0x180003df6
lea rax, [rdx*2]
test rax, rax
mov rbx, qword [rbp + 0x1c0]
je 0x180003f6f
jmp 0x180003f64
mov rax, qword [rbp + 0x1b8]
test rax, rax
mov rbx, qword [rbp + 0x1c0]
je 0x1800041e1
mov r15d, 0xc1140
mov r14, rbx
jmp 0x180003e29
sub r15, r8
je 0x180003f5f
mov r9, r14
cmp r15, rax
mov r8, rax
cmovb r8, r15
add r14, r8
cmp r8, 8
jb 0x180003e56
lea r10, [rcx + r8]
cmp r9, r10
setb r10b
cmp rcx, r14
setb r11b
test r10b, r11b
je 0x180003ed0
xor r10d, r10d
mov rsi, r8
mov r11, r10
and rsi, 3
je 0x180003e85
mov rdi, r10
nop dword [rax + rax]
movzx r11d, byte [rcx + rdi]
xor byte [r9 + rdi], r11b
lea r11, [rdi + 1]
mov rdi, r11
dec rsi
jne 0x180003e70
sub r10, r8
cmp r10, 0xfffffffffffffffc
ja 0x180003e20
nop
movzx r10d, byte [rcx + r11]
xor byte [r9 + r11], r10b
movzx r10d, byte [rcx + r11 + 1]
xor byte [r9 + r11 + 1], r10b
movzx r10d, byte [rcx + r11 + 2]
xor byte [r9 + r11 + 2], r10b
movzx r10d, byte [rcx + r11 + 3]
xor byte [r9 + r11 + 3], r10b
lea r10, [r11 + 4]
mov r11, r10
cmp r8, r10
jne 0x180003e90
jmp 0x180003e20
cmp r8, 0x20
jae 0x180003edb
xor r10d, r10d
jmp 0x180003f33
mov r10, r8
and r10, 0xffffffffffffffe0
xor r11d, r11d
nop word cs:[rax + rax]
movups xmm0, xmmword [rcx + r11]
movups xmm1, xmmword [rcx + r11 + 0x10]
movups xmm2, xmmword [r9 + r11]
xorps xmm2, xmm0
movups xmm0, xmmword [r9 + r11 + 0x10]
xorps xmm0, xmm1
movups xmmword [r9 + r11], xmm2
movups xmmword [r9 + r11 + 0x10], xmm0
add r11, 0x20
cmp r10, r11
jne 0x180003ef0
cmp r8, r10
je 0x180003e20
test r8b, 0x18
je 0x180003e59
mov r11, r10
mov r10, r8
and r10, 0xfffffffffffffff8
nop dword [rax]
mov rsi, qword [rcx + r11]
xor qword [r9 + r11], rsi
add r11, 8
cmp r10, r11
jne 0x180003f40
cmp r8, r10
je 0x180003e20
jmp 0x180003e59
test rdx, rdx
je 0x180003f6f
mov r8d, 1
call fcn.180007d30
movzx eax, byte [0x1801435b1]
mov ecx, 0xc1140
mov edx, 1
call fcn.180007d20
test rax, rax
je 0x18000415e
mov r8d, 0xc1140
mov qword [rbp + 0x1c0], rax
mov rcx, rax
mov rdx, rbx
call fcn.1800492f0
mov edx, 0xc1140
mov r8d, 1
mov rcx, rbx
call fcn.180007d30
lea rcx, [rbp + 0x170]
call fcn.18002ab30
mov r9d, 0xc1140
mov rcx, rax
mov r8, qword [rbp + 0x1c0]
call fcn.180018180
mov rsi, rax
mov edx, 0xc1140
mov r8d, 1
mov rcx, qword [rbp + 0x1c0]
call fcn.180007d30
test rsi, rsi
jne 0x180004172
movups xmm0, xmmword [rbp + 0x170]
movups xmm1, xmmword [rbp + 0x180]
movaps xmmword [rbp + 0x1b0], xmm1
movaps xmmword [rbp + 0x1a0], xmm0
lea rcx, [rbp + 0x1a0]
call fcn.18002ab30
mov r8, rdx
lea rcx, [rbp + 0xa0]
mov rdx, rax
call fcn.180023760
lea rcx, [rbp - 0x50]
lea rdx, [rbp + 0xa0]
mov r8d, 0xd0
call fcn.1800492f0
mov rdx, qword [rbp + 0x1a0]
test rdx, rdx
je 0x18000406b
mov rcx, qword [rbp + 0x1a8]
mov r8d, 1
call fcn.180007d30
lea rcx, [rbp + 0xa0]
lea rdx, [rbp - 0x50]
call fcn.18001d4d0
mov r13, qword [rbp + 0xa0]
cmp r13, 2
je 0x1800041a6
mov rbx, qword [rbp + 0xa8]
mov r12, qword [rbp + 0xb0]
mov rdi, qword [rbp + 0xb8]
mov r15, qword [rbp + 0xc0]
mov rax, qword [rbp + 0xc8]
mov qword [rbp + 0x1c0], rax
mov rcx, qword [rbp + 0xd0]
mov r14, qword [rbp + 0xd8]
mov rsi, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rsi
mov rcx, r14
call rsi
test r13, r13
je 0x1800040e0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r12, r12
je 0x1800040ee
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r15, r15
je 0x180004100
mov rcx, qword [rbp + 0x1c0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [rbp + 0x1cf], 0
lea rcx, [rbp - 0x50]
call fcn.180004700
mov rdx, qword [rbp + 0x80]
test rdx, rdx
je 0x18000412e
mov rcx, qword [rbp + 0x88]
mov r8d, 1
call fcn.180007d30
nop
add rsp, 0x258
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov byte [rbp + 0x1cf], 1
mov ecx, 1
mov edx, 0xc1140
call fcn.18004adc0
jmp 0x180004221
mov ecx, 1
mov edx, 0xc1140
call fcn.18004adc0
jmp 0x180004221
mov qword [rbp + 0xa0], rsi
lea rax, [0x18010db50]
mov qword [rsp + 0x20], rax
lea rcx, str.called__Result::unwrap____on_an__Err__value127.0.0.1:8085srclib.rs
lea r9, [0x18004c8f0]
lea r8, [rbp + 0xa0]
mov edx, 0x2b
call fcn.18004b240
jmp 0x180004221
mov rax, qword [rbp + 0xa8]
mov qword [rbp + 0x1a0], rax
lea rax, [0x18010db68]
mov qword [rsp + 0x20], rax
lea rcx, str.called__Result::unwrap____on_an__Err__value127.0.0.1:8085srclib.rs
lea r9, [0x18004c8f0]
lea r8, [rbp + 0x1a0]
mov edx, 0x2b
call fcn.18004b240
jmp 0x180004221
mov qword [rbp + 0x190], rcx
mov qword [rbp + 0x198], rdx
lea rax, str.chunk_size_must_be_non_zero
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], 1
mov qword [rbp - 0x40], 8
xorps xmm0, xmm0
movups xmmword [rbp - 0x38], xmm0
lea rdx, str.C:Userslucak.cargo_registry_srcindex.crates.io_6f17d22bba15001finclude_crypt_crypto_0.1.0_srcxor.rs
lea rcx, [rbp - 0x50]
call fcn.18004aef0
ud2