Function at 0x1400d5cf0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xa0
mov rax, qword [0x1401fdf00]
xor rax, rsp
mov qword [rbp + 0x1f], rax
mov rsi, rdx
mov r15, rcx
mov qword [rbp - 0x31], rcx
mov qword [rbp + 0x17], rdx
xor ebx, ebx
mov dword [rbp - 0x45], ebx
mov dword [rbp - 0x59], 0xfafbe2e5
mov dword [rbp - 0x55], 0xefe8ff
mov byte [rbp - 0x51], 1
mov ecx, ebx
nop dword [rax]
nop word [rax + rax]
lea eax, [rcx - 0x6a]
xor byte [rbp + rcx - 0x59], al
inc rcx
cmp rcx, 7
jb 0x1400d5d50
mov byte [rbp - 0x51], 0
lea r9, [rbp - 0x49]
lea r8, [rbp - 0x52]
lea rdx, [rbp - 0x59]
lea rcx, [rbp - 0x29]
call fcn.14004c2f0
mov r12d, listen
cmp byte [rsi], 0
jne 0x1400d5d90
mov byte [rsi], 1
call fcn.1400c1d30
mov qword [rsi + 8], rax
cmp byte [rsi], 1
jne 0x1400d5da7
lea rdx, [rbp - 0x29]
mov rcx, qword [rsi + 8]
call fcn.1400c7660
mov rcx, rax
jmp 0x1400d5dab
mov rcx, qword [rbp + 0x17]
lea rax, [rcx + 8]
cmp byte [rcx], 4
cmovne rax, rbx
movzx eax, byte [rax]
mov byte [r15 + 0x210], al
mov rdx, qword [rbp - 0x11]
cmp rdx, 0x10
jb 0x1400d5dfe
inc rdx
mov rcx, qword [rbp - 0x29]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400d5df9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400d5df9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140160684
lea rdx, str.message
mov rcx, rsi
call fcn.1400bfd00
cmp byte [rax], 3
jne 0x1400d5e18
mov r8, qword [rax + 8]
jmp 0x1400d5e1b
mov r8, rbx
mov rdx, r8
cmp qword [r8 + 0x18], 0x10
jb 0x1400d5e28
mov rdx, qword [r8]
lea rcx, [r15 + 0x218]
mov r8, qword [r8 + 0x10]
call fcn.140045ea0
mov dword [rbp - 0x45], 0xfcf4f8e4
mov word [rbp - 0x41], 0x100
mov rcx, rbx
nop dword [rax + rax]
lea eax, [rcx - 0x6a]
xor byte [rbp + rcx - 0x45], al
inc rcx
cmp rcx, 4
jb 0x1400d5e50
mov byte [rbp - 0x40], 0
cmp byte [rsi], 1
jne 0x1400d60a4
mov rax, qword [rsi + 8]
mov r14, qword [rax]
mov qword [rbp - 0x59], r14
mov rdi, qword [r14 + 8]
mov r13, r14
cmp byte [rdi + 0x19], 0
jne 0x1400d5ee7
lea rax, [rbp - 0x45]
mov r14, 0xffffffffffffffff
inc r14
cmp byte [rax + r14], 0
jne 0x1400d5e90
nop word [rax + rax]
lea rcx, [rdi + 0x20]
mov r15, qword [rcx + 0x10]
cmp qword [rcx + 0x18], 0x10
jb 0x1400d5eb2
mov rcx, qword [rcx]
mov r8, r15
cmp r14, r15
cmovb r8, r14
lea rdx, [rbp - 0x45]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x1400d6092
js 0x1400d609b
mov r13, rdi
mov rdi, qword [rdi]
cmp byte [rdi + 0x19], 0
je 0x1400d5ea0
mov r14, qword [rbp - 0x59]
mov r15, qword [rbp - 0x31]
cmp byte [r13 + 0x19], 0
jne 0x1400d60a4
lea rdx, [r13 + 0x20]
lea rcx, [rbp - 0x45]
call fcn.1400c04d0
test al, al
jne 0x1400d60a4
cmp r13, r14
je 0x1400d60a4
mov dword [rbp - 0x59], 0xedebf2e2
mov dword [rbp - 0x55], 0x100e9ff
mov rcx, rbx
nop dword [rax]
nop word [rax + rax]
lea eax, [rcx - 0x6a]
xor byte [rbp + rcx - 0x59], al
inc rcx
cmp rcx, 6
jb 0x1400d5f30
mov byte [rbp - 0x52], 0
mov dword [rbp - 0x3d], 0xfcf4f8e4
mov word [rbp - 0x39], 0x100
mov rcx, rbx
nop dword [rax]
nop dword [rax + rax]
lea eax, [rcx - 0x6a]
xor byte [rbp + rcx - 0x3d], al
inc rcx
cmp rcx, 4
jb 0x1400d5f60
mov byte [rbp - 0x38], 0
lea r9, [rbp - 0x49]
lea r8, [rbp - 0x39]
lea rdx, [rbp - 0x3d]
lea rcx, [rbp - 9]
call fcn.14004c2f0
nop
mov r12d, 0x3d
mov dword [rbp - 0x45], r12d
mov rdi, qword [rbp + 0x17]
cmp byte [rsi], 0
jne 0x1400d5fa9
mov byte [rsi], 1
call fcn.1400c1d30
mov qword [rsi + 8], rax
cmp byte [rsi], 1
jne 0x1400d5fbe
lea rdx, [rbp - 9]
mov rcx, qword [rsi + 8]
call fcn.1400c7660
mov rdi, rax
lea rdx, [rbp - 0x59]
mov rcx, rdi
call fcn.1400bfc70
test al, al
je 0x1400d60a4
mov dword [rbp - 0x59], 0xc6ecf8f8
mov dword [rbp - 0x55], 0xfef9f3f9
mov dword [rbp - 0x51], 0xc4faf5
mov byte [rbp - 0x4d], 1
mov rcx, rbx
nop
lea eax, [rcx - 0x6a]
xor byte [rbp + rcx - 0x59], al
inc rcx
cmp rcx, 0xb
jb 0x1400d5ff0
mov byte [rbp - 0x4d], 0
mov dword [rbp - 0x31], 0xfcf4f8e4
mov word [rbp - 0x2d], 0x100
nop dword [rax]
nop word [rax + rax]
lea eax, [rbx - 0x6a]
xor byte [rbp + rbx - 0x31], al
inc rbx
cmp rbx, 4
jb 0x1400d6020
mov byte [rbp - 0x2c], 0
lea r9, [rbp - 0x49]
lea r8, [rbp - 0x2d]
lea rdx, [rbp - 0x31]
lea rcx, [rbp - 0x29]
call fcn.14004c2f0
nop
mov r12d, 0xff
mov dword [rbp - 0x45], r12d
mov rbx, qword [rbp + 0x17]
cmp byte [rsi], 0
jne 0x1400d6069
mov byte [rsi], 1
call fcn.1400c1d30
mov qword [rsi + 8], rax
cmp byte [rsi], 1
jne 0x1400d607e
lea rdx, [rbp - 0x29]
mov rcx, qword [rsi + 8]
call fcn.1400c7660
mov rbx, rax
lea rdx, [rbp - 0x59]
mov rcx, rbx
call fcn.1400bfc70
test al, al
je 0x1400d60a4
mov bl, 1
jmp 0x1400d60a6
cmp r15, r14
jae 0x1400d5ed3
mov rdi, qword [rdi + 0x10]
jmp 0x1400d5ed9
xor bl, bl
test r12b, 2
je 0x1400d60ff
and r12d, 0xfffffffd
mov rdx, qword [rbp - 0x11]
cmp rdx, 0x10
jb 0x1400d60ee
inc rdx
mov rcx, qword [rbp - 0x29]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400d60e9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400d60e9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140160684
movdqa xmm0, xmmword [0x1401df750]
movdqu xmmword [rbp - 0x19], xmm0
mov byte [rbp - 0x29], 0
test r12b, 1
je 0x1400d6143
mov rdx, qword [rbp + 0xf]
cmp rdx, 0x10
jb 0x1400d6143
inc rdx
mov rcx, qword [rbp - 9]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400d613e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400d613e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140160684
test bl, bl
je 0x1400d614f
mov byte [r15 + 0x238], 1
lea rcx, [rsi + 8]
movzx edx, byte [rsi]
call fcn.1400cd810
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.14015ff50
mov rbx, qword [rsp + 0xf0]
add rsp, 0xa0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret