Function at 0x180017700
Capabilities:
Encrypt data using des

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
push rbp
push r14
lea rbp, [rsp - 0x4f]
sub rsp, 0x88
mov r10, r8
mov r14, rcx
cmp edx, 0x100
jle 0x18001773b
mov eax, 0xfffffffd
add rsp, 0x88
pop r14
pop rbp
ret
mov r9d, dword [rcx]
mov qword [rsp + 0x78], rdi
cmp r9d, 1
jne 0x180017769
mov rax, qword [rcx + 0x10]
cmp dword [rax], r9d
jne 0x180017769
xor edi, edi
xor eax, eax
mov dword [r8], edi
mov rdi, qword [rsp + 0x78]
add rsp, 0x88
pop r14
pop rbp
ret
mov qword [rsp + 0xa0], rbx
lea rbx, [0x18009abe0]
mov qword [rsp + 0x80], rsi
mov rdx, rbx
lea rsi, [0x18009afe0]
nop word [rax + rax]
mov ecx, dword [rdx]
test r9d, r9d
jne 0x1800177c4
test ecx, ecx
jne 0x1800177df
mov dword [r10], 1
xor eax, eax
mov rsi, qword [rsp + 0x80]
mov rbx, qword [rsp + 0xa0]
mov rdi, qword [rsp + 0x78]
add rsp, 0x88
pop r14
pop rbp
ret
cmp dword [r14 + 8], 1
je 0x1800177df
cmp r9d, 1
jg 0x1800177df
mov rax, qword [r14 + 0x10]
mov r8d, dword [rax]
cmp r8d, ecx
ja 0x1800177df
jae 0x18001779b
add rdx, 4
cmp rdx, rsi
jl 0x180017790
xor edi, edi
mov dword [rbp - 0x15], edi
nop dword [rax]
mov edx, dword [rbx]
lea r8, [rbp - 0x19]
mov rcx, r14
call fcn.180016b60
test eax, eax
jne 0x1800177a4
cmp dword [rbp - 0x19], edi
je 0x1800177a2
add rbx, 4
cmp rbx, rsi
jl 0x1800177f0
movsxd rax, dword [r14]
mov ebx, edi
mov qword [rsp + 0x68], r13
mov qword [rsp + 0x60], r15
mov rsi, rdi
mov qword [rbp + 0x17], rdi
mov dword [rbp + 7], ebx
mov qword [rbp + 0xb], rdi
mov qword [rbp - 1], rdi
mov qword [rbp - 0x11], rdi
mov dword [rbp - 9], edi
test eax, eax
jne 0x180017840
mov edx, edi
jmp 0x180017867
mov edx, eax
mov rcx, rax
mov rax, qword [r14 + 0x10]
mov r8d, dword [rax + rcx*4 - 4]
imul edx, edx, 0x1c
sub edx, 0x1c
test r8d, r8d
je 0x180017867
nop dword [rax]
inc edx
shr r8d, 1
jne 0x180017860
test dl, 7
mov eax, edi
setne al
shr edx, 3
add eax, edx
mov dword [rbp - 0x19], eax
mov ecx, eax
mov rax, qword [0x1800b2188]
test rax, rax
je 0x180017889
call rax
jmp 0x18001788e
call fcn.1800339ec
mov r15, rax
test rax, rax
jne 0x1800178f7
lea r13d, [rax - 2]
mov rbx, qword [0x1800b2190]
cmp qword [rbp - 1], rdi
je 0x180017a67
mov ecx, edi
cmp dword [rbp - 0x11], ecx
jle 0x1800178d3
mov rdx, rdi
nop word [rax + rax]
mov rax, qword [rbp - 1]
inc ecx
add rdx, 4
mov dword [rdx + rax - 4], edi
cmp ecx, dword [rbp - 0x11]
jl 0x1800178c0
mov rcx, qword [rbp - 1]
test rcx, rcx
je 0x180017a60
test rbx, rbx
je 0x180017a53
call rbx
mov rbx, qword [0x1800b2190]
jmp 0x180017a5c
lea r8, [rbp - 0x11]
mov edx, 2
mov rcx, r14
call fcn.1800169e0
mov r13d, eax
test eax, eax
jne 0x18001789a
mov qword [rsp + 0x70], r12
mov r12d, edi
cmp dword [rbp + 0x6f], ebx
jle 0x1800179d8
mov r8d, dword [rbp - 0x19]
mov rcx, qword [rbp + 0x7f]
mov rdx, r15
call fcn.18001b360
mov r13d, eax
test eax, eax
jne 0x1800179e2
mov r8d, dword [rbp - 0x19]
lea rcx, [rbp + 7]
mov rdx, r15
call fcn.18000fe70
mov r13d, eax
test eax, eax
jne 0x180017a40
mov ebx, dword [rbp + 7]
mov rsi, qword [rbp + 0x17]
test ebx, ebx
je 0x1800179c8
mov eax, dword [rbp + 0xf]
cmp eax, 1
je 0x1800179c8
cmp ebx, 1
jg 0x180017973
cmp dword [rsi], 2
jbe 0x1800179c8
cmp eax, dword [rbp - 9]
jne 0x1800179c8
mov eax, dword [rbp - 0x11]
cmp ebx, eax
jg 0x1800179c8
jl 0x180017a1b
lea eax, [rbx - 1]
mov edx, edi
movsxd rcx, eax
lea r8, [rcx*4]
lea rcx, [r8 + rsi]
test ebx, ebx
jle 0x1800179c8
mov rax, qword [rbp - 1]
sub r8, rcx
lea r9, [r8 + rax]
nop dword [rax + rax]
mov eax, dword [r9 + rcx]
mov r8d, dword [rcx]
cmp r8d, eax
ja 0x1800179c8
jb 0x180017a1b
inc edx
sub rcx, 4
cmp edx, ebx
jl 0x1800179b0
dec r12d
inc r12d
cmp r12d, dword [rbp + 0x6f]
jl 0x180017920
mov rax, qword [rbp + 0x77]
mov dword [rax], 1
mov r12, qword [rsp + 0x70]
test rsi, rsi
je 0x18001789a
test ebx, ebx
jle 0x180017a05
mov r8d, ebx
xor edx, edx
mov rcx, rsi
shl r8, 2
call fcn.180037c60
mov rbx, qword [0x1800b2190]
mov rcx, rsi
test rbx, rbx
je 0x180017a49
call rbx
jmp 0x18001789a
lea r8, [rbp - 0x15]
lea rdx, [rbp + 7]
mov rcx, r14
call fcn.180016c80
mov r13d, eax
test eax, eax
jne 0x180017a40
cmp dword [rbp - 0x15], edi
je 0x180017a40
mov rsi, qword [rbp + 0x17]
mov ebx, dword [rbp + 7]
jmp 0x1800179cb
mov rsi, qword [rbp + 0x17]
mov ebx, dword [rbp + 7]
jmp 0x1800179e2
call fcn.1800337e4
jmp 0x1800178a1
mov rcx, qword [rbp - 1]
call fcn.1800337e4
mov qword [rbp - 1], rdi
mov qword [rbp - 0x11], rdi
mov dword [rbp - 9], edi
test r15, r15
je 0x180017a8d
mov rcx, r15
test rbx, rbx
je 0x180017a88
call rbx
mov r15, qword [rsp + 0x60]
mov eax, r13d
mov r13, qword [rsp + 0x68]
jmp 0x1800177a4
call fcn.1800337e4
mov r15, qword [rsp + 0x60]
mov eax, r13d
mov r13, qword [rsp + 0x68]
jmp 0x1800177a4