Function at 0x140030a90
Capabilities:
Encode data using xor

Disassembly:
mov r11, rsp
push rbx
push rsi
push rdi
sub rsp, 0x50
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
test rdx, rdx
je 0x140030f3e
lea eax, [r9 - 0x10]
test eax, 0xffffffe7
jne 0x140030f98
cmp r9d, 0x28
je 0x140030f98
movsxd rcx, dword [rsp + 0x90]
lea eax, [rcx - 0x10]
test eax, 0xffffffe7
jne 0x140030f6b
cmp ecx, 0x28
je 0x140030f6b
mov qword [r11 + 8], rbp
mov qword [r11 + 0x18], r12
mov qword [r11 + 0x20], r13
mov dword [rbx + 0x3d0], ecx
mov r8, rcx
mov qword [r11 - 0x20], r14
lea rcx, [rbx + 0x3d8]
mov rdx, rdi
mov qword [r11 - 0x28], r15
mov dword [rbx + 0x3cc], r9d
call fcn.14006eda0
movsxd r8, dword [rbx + 0x3d0]
lea rcx, [rbx + 0x3f8]
mov rdx, rdi
call fcn.14006eda0
mov eax, dword [rbx + 0x3cc]
cmp eax, 0x10
je 0x140030b53
cmp eax, 0x18
mov eax, reloc.WS2_32.dll_ntohl
jne 0x140030b73
cmp dword [rbx + 0x3d0], 0x20
mov ecx, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
cmovne eax, ecx
jmp 0x140030b73
mov edx, dword [rbx + 0x3d0]
cmp edx, 0x10
jne 0x140030b63
lea eax, [rdx - 6]
jmp 0x140030b73
mov eax, reloc.WS2_32.dll_ntohl
mov ecx, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
cmp edx, 0x18
cmove eax, ecx
mov dword [rbx + 0x3d4], eax
mov eax, dword [rbx + 0x3d0]
cdq
and edx, 3
add eax, edx
xor edx, edx
sar eax, 2
movsxd r15, eax
mov r14, r15
cmp dword [rbx + 0x3d4], edx
jl 0x140030bbd
lea r8, [rbx + 0xc]
nop dword [rax]
test r15d, r15d
jle 0x140030baf
mov rdi, r8
xor eax, eax
mov rcx, r15
rep stosd dword [rdi], eax
inc edx
add r8, 0x20
cmp edx, dword [rbx + 0x3d4]
jle 0x140030ba0
xor edx, edx
cmp dword [rbx + 0x3d4], edx
jl 0x140030bed
lea r8, [rbx + 0x1ec]
nop
test r15d, r15d
jle 0x140030bdf
mov rdi, r8
xor eax, eax
mov rcx, r15
rep stosd dword [rdi], eax
inc edx
add r8, 0x20
cmp edx, dword [rbx + 0x3d4]
jle 0x140030bd0
mov eax, dword [rbx + 0x3cc]
mov ebp, dword [rbx + 0x3d4]
cdq
inc ebp
and edx, 3
add eax, edx
lea rdx, [rbx + 0x418]
imul ebp, r15d
sar eax, 2
movsxd r13, eax
test eax, eax
jle 0x140030c51
mov edi, r13d
nop dword [rax]
movzx ecx, byte [rsi]
lea rsi, [rsi + 4]
lea rdx, [rdx + 4]
shl ecx, 0x18
mov dword [rdx - 4], ecx
movzx eax, byte [rsi - 3]
shl eax, 0x10
or dword [rdx - 4], eax
movzx eax, byte [rsi - 2]
shl eax, 8
or dword [rdx - 4], eax
movzx eax, byte [rsi - 1]
or dword [rdx - 4], eax
dec rdi
jne 0x140030c20
xor r9d, r9d
xor r11d, r11d
test r13d, r13d
jle 0x140030cad
lea r10, [rbx + 0x418]
cmp r9d, ebp
jge 0x140030e87
mov eax, r9d
inc r11
add r10, 4
cdq
inc r9d
idiv r15d
movsxd rdi, eax
mov eax, dword [r10 - 4]
movsxd r8, edx
lea rcx, [r8 + rdi*8]
mov dword [rbx + rcx*4 + 0xc], eax
movsxd rax, dword [rbx + 0x3d4]
sub rax, rdi
lea rcx, [r8 + rax*8]
mov eax, dword [r10 - 4]
mov dword [rbx + rcx*4 + 0x1ec], eax
cmp r11, r13
jl 0x140030c63
cmp r9d, ebp
jge 0x140030e87
lea r10, [0x140128b10]
lea r14, [0x140000000]
nop dword [rax]
nop dword [rax + rax]
mov edi, dword [rbx + r13*4 + 0x414]
inc r10
movsxd rdx, edi
mov qword [rsp + 0x78], r10
mov rax, rdx
sar rax, 0x10
movzx ecx, al
movsx eax, byte [r10 - 1]
movsx r8d, byte [rcx + r14 + 0x125910]
xor r8d, eax
mov rax, rdx
sar rax, 8
shl r8d, 8
movzx ecx, al
movzx eax, byte [rcx + r14 + 0x125910]
xor r8d, eax
movzx eax, dl
movzx eax, byte [rax + r14 + 0x125910]
shl r8d, 8
xor r8d, eax
mov eax, edi
shr rax, 0x18
shl r8d, 8
movzx eax, byte [rax + r14 + 0x125910]
xor r8d, eax
xor dword [rbx + 0x418], r8d
cmp r13d, 8
je 0x140030d84
cmp r13, 1
jle 0x140030e1f
lea rcx, [rbx + 0x41c]
lea rdx, [r13 - 1]
nop dword [rax]
nop word [rax + rax]
mov eax, dword [rcx - 4]
lea rcx, [rcx + 4]
xor dword [rcx - 4], eax
dec rdx
jne 0x140030d70
jmp 0x140030e1f
lea rcx, [rbx + 0x41c]
mov edx, 3
mov eax, dword [rcx - 4]
lea rcx, [rcx + 4]
xor dword [rcx - 4], eax
dec rdx
jne 0x140030d90
mov eax, dword [rbx + 0x424]
mov ecx, eax
movsxd rdx, eax
shr rcx, 0x18
mov rax, rdx
movsx edi, byte [rcx + r14 + 0x125910]
sar rax, 0x10
movzx ecx, al
shl edi, 8
movzx eax, byte [rcx + r14 + 0x125910]
xor edi, eax
mov rax, rdx
sar rax, 8
shl edi, 8
movzx ecx, al
movzx eax, byte [rcx + r14 + 0x125910]
xor edi, eax
movzx eax, dl
movzx eax, byte [rax + r14 + 0x125910]
shl edi, 8
xor edi, eax
xor dword [rbx + 0x428], edi
cmp r13, 5
jle 0x140030e1f
lea rax, [rbx + 0x42c]
lea rdx, [r13 - 5]
nop
mov ecx, dword [rax - 4]
lea rax, [rax + 4]
xor dword [rax - 4], ecx
dec rdx
jne 0x140030e10
xor r11d, r11d
test r13d, r13d
jle 0x140030e7b
lea r10, [rbx + 0x418]
nop
cmp r9d, ebp
jge 0x140030e84
mov eax, r9d
inc r11
add r10, 4
cdq
inc r9d
idiv r15d
movsxd rdi, eax
mov eax, dword [r10 - 4]
movsxd r8, edx
lea rcx, [r8 + rdi*8]
mov dword [rbx + rcx*4 + 0xc], eax
movsxd rax, dword [rbx + 0x3d4]
sub rax, rdi
lea rcx, [r8 + rax*8]
mov eax, dword [r10 - 4]
mov dword [rbx + rcx*4 + 0x1ec], eax
cmp r11, r13
jl 0x140030e30
mov r10, qword [rsp + 0x78]
cmp r9d, ebp
jl 0x140030cd0
mov r14, r15
mov r15, qword [rsp + 0x40]
mov r13, qword [rsp + 0x88]
mov r12, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x70]
mov r10d, 1
cmp dword [rbx + 0x3d4], r10d
jle 0x140030f2d
lea r11, [rbx + 0x20c]
test r14, r14
jle 0x140030f1d
mov r8, r11
mov r9, r14
lea rsi, [0x140000000]
nop dword [rax]
mov eax, dword [r8]
lea r8, [r8 + 4]
mov edx, eax
movsxd rdi, eax
shr rdx, 0x18
mov rax, rdi
mov edx, dword [rsi + rdx*4 + 0x127b10]
sar rax, 0x10
movzx ecx, al
mov rax, rdi
xor edx, dword [rsi + rcx*4 + 0x127f10]
sar rax, 8
movzx ecx, al
movzx eax, dil
xor edx, dword [rsi + rcx*4 + 0x128310]
xor edx, dword [rsi + rax*4 + 0x128710]
mov dword [r8 - 4], edx
dec r9
jne 0x140030ed0
inc r10d
add r11, 0x20
cmp r10d, dword [rbx + 0x3d4]
jl 0x140030eb7
mov byte [rbx + 8], 1
mov r14, qword [rsp + 0x48]
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret
lea rax, str.Empty_key
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x28]
mov qword [rsp + 0x78], rax
call fcn.14007097c
lea rdx, [0x140155940]
lea rcx, [rsp + 0x28]
call fcn.140070c18
int3
lea rax, str.Incorrect_block_length
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x28]
mov qword [rsp + 0x78], rax
call fcn.14007097c
lea rdx, [0x140155940]
lea rcx, [rsp + 0x28]
call fcn.140070c18
int3
lea rax, str.Incorrect_key_length
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x28]
mov qword [rsp + 0x78], rax
call fcn.14007097c
lea rdx, [0x140155940]
lea rcx, [rsp + 0x28]
call fcn.140070c18
int3