Function at 0x1401d91a0
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 - 0x1f]
sub rsp, 0xb0
mov rax, qword [0x140648080]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov rdi, r9
mov r9d, r8d
mov dword [rbp - 0x51], r8d
mov r14, rdx
mov r8, rcx
mov qword [rbp - 0x59], rcx
mov r15, qword [rbp + 0x7f]
mov qword [rbp - 9], r15
xor edx, edx
mov dword [rbp - 1], edx
mov rsi, qword [r15]
test rsi, rsi
jne 0x1401d9201
call fcn.14017c330
mov dword [r14], 6
jmp 0x1401d922b
cmp r9d, 8
jge 0x1401d9215
call fcn.14017c330
mov dword [r14], 7
jmp 0x1401d922b
mov rcx, qword [rdi + 0x10]
cmp rcx, 0x7d
jbe 0x1401d9275
call fcn.14017c330
mov dword [r14], 8
mov qword [r14 + 8], rax
mov rdi, qword [r15 + 8]
test rdi, rdi
je 0x1401d95c3
mov ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x1401d95c3
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
lock xadd dword [rdi + 0xc], ebx
cmp ebx, 1
jne 0x1401d95c3
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x1401d95c3
movzx eax, byte [r8 + 9]
mov byte [rbp - 0x60], al
movzx r12d, r9b
and r12b, 0xf
or r12b, 0x80
mov byte [rbp - 0x61], r12b
mov r13d, 0x80
test al, al
cmovne r13d, edx
or r13b, cl
add rsi, 0x50
mov rdx, qword [rsi + 0x10]
cmp rcx, rdx
ja 0x1401d92c0
mov qword [rsi + 0x10], rcx
mov rax, rsi
cmp qword [rsi + 0x18], 0xf
jbe 0x1401d92ba
mov rax, qword [rsi]
mov byte [rax + rcx], 0
jmp 0x1401d931e
mov r12, rcx
sub r12, rdx
mov r8, qword [rsi + 0x18]
mov rax, r8
sub rax, rdx
cmp r12, rax
ja 0x1401d92fd
mov qword [rsi + 0x10], rcx
mov rax, rsi
cmp r8, 0xf
jbe 0x1401d92e5
mov rax, qword [rsi]
lea rbx, [rax + rdx]
mov r8, r12
xor edx, edx
mov rcx, rbx
call fcn.1404dd800
mov byte [rbx + r12], 0
jmp 0x1401d9315
mov byte [rsp + 0x20], 0
mov r9, r12
movzx r8d, byte [rbp - 0x60]
mov rdx, r12
mov rcx, rsi
call fcn.1401b53d0
mov r8, qword [rbp - 0x59]
movzx r12d, byte [rbp - 0x61]
cmp byte [rbp - 0x60], 0
jne 0x1401d948d
mov rbx, qword [r8 + 0x98]
mov qword [rbp - 0x59], rbx
add rbx, 0x10
mov qword [rbp - 1], rbx
mov rcx, rbx
call fcn.140483e98
test eax, eax
jne 0x1401d95fd
mov eax, dword [rbx + 0x4c]
cmp eax, 0x7fffffff
je 0x1401d95ed
mov rax, qword [rbp - 0x59]
mov r8d, dword [rax + 0xc]
mov edx, dword [rax + 8]
mov rcx, rax
call fcn.1401e8170
mov dword [rbp - 1], eax
mov rcx, rbx
call fcn.140483ea0
xor eax, eax
mov qword [rbp + 7], rax
mov dword [rbp + 0xf], eax
mov rdx, qword [rdi + 0x10]
lea rcx, [rbp + 7]
call fcn.140171bf0
movsxd rcx, eax
mov ebx, dword [rbp - 1]
mov dword [rbp + rcx + 7], ebx
mov rax, qword [r15]
mov qword [rbp - 0x59], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x49], xmm0
mov qword [rbp - 0x31], reloc.WS2_32.dll_ntohs
mov eax, 2
mov dword [rbp - 1], eax
mov byte [rbp - 0x49], r12b
mov qword [rbp - 0x39], rax
mov byte [rbp - 0x48], r13b
mov byte [rbp - 0x47], 0
movzx ecx, r13b
and cl, 0x7f
cmp cl, 0x7e
jne 0x1401d93d8
mov eax, 4
jmp 0x1401d93e4
mov edx, 0xa
cmp cl, 0x7f
cmove rax, rdx
lea r8, [rax + 4]
test r13b, r13b
cmovns r8, rax
sub r8, 2
lea rdx, [rbp + 7]
lea rcx, [rbp - 0x49]
call fcn.1401a6950
mov rcx, qword [rbp - 0x59]
add rcx, 0x10
lea rax, [rbp - 0x49]
cmp rcx, rax
je 0x1401d9429
lea rdx, [rbp - 0x49]
cmp qword [rbp - 0x31], 0xf
cmova rdx, qword [rbp - 0x49]
mov r8, qword [rbp - 0x39]
call fcn.1401ab8d0
nop
lea rcx, [rbp - 0x49]
call fcn.14012c790
mov dword [rbp - 1], ebx
cmp qword [rsi + 0x18], 0xf
jbe 0x1401d943f
mov rsi, qword [rsi]
mov rax, qword [rdi + 0x10]
cmp qword [rdi + 0x18], 0xf
jbe 0x1401d9452
add rax, qword [rdi]
mov rdi, qword [rdi]
jmp 0x1401d9455
add rax, rdi
xor edx, edx
cmp rdi, rax
je 0x1401d956c
sub rsi, rdi
nop dword [rax]
nop word [rax + rax]
movzx ecx, byte [rbp + rdx - 1]
xor cl, byte [rdi]
mov byte [rdi + rsi], cl
inc rdx
and edx, 3
inc rdi
cmp rdi, rax
jne 0x1401d9470
jmp 0x1401d956c
xor eax, eax
mov qword [rbp + 7], rax
mov dword [rbp + 0xf], eax
mov rdx, qword [rdi + 0x10]
lea rcx, [rbp + 7]
call fcn.140171bf0
mov rbx, qword [r15]
xorps xmm0, xmm0
movups xmmword [rbp - 0x29], xmm0
mov qword [rbp - 0x11], reloc.WS2_32.dll_ntohs
mov dword [rbp - 1], 1
mov byte [rbp - 0x29], r12b
mov eax, 2
mov qword [rbp - 0x19], rax
mov byte [rbp - 0x28], r13b
mov byte [rbp - 0x27], 0
movzx ecx, r13b
and cl, 0x7f
cmp cl, 0x7e
jne 0x1401d94e4
mov eax, 4
jmp 0x1401d94f0
mov edx, 0xa
cmp cl, 0x7f
cmove rax, rdx
lea r8, [rax + 4]
test r13b, r13b
cmovns r8, rax
sub r8, 2
lea rdx, [rbp + 7]
lea rcx, [rbp - 0x29]
call fcn.1401a6950
lea rcx, [rbx + 0x10]
lea rax, [rbp - 0x29]
cmp rcx, rax
je 0x1401d9531
lea rdx, [rbp - 0x29]
cmp qword [rbp - 0x11], 0xf
cmova rdx, qword [rbp - 0x29]
mov r8, qword [rbp - 0x19]
call fcn.1401ab8d0
nop
lea rcx, [rbp - 0x29]
call fcn.14012c790
cmp qword [rsi + 0x18], 0xf
jbe 0x1401d9544
mov rsi, qword [rsi]
cmp qword [rdi + 0x18], 0xf
jbe 0x1401d9557
mov r8, qword [rdi]
add r8, qword [rdi + 0x10]
mov rdi, qword [rdi]
jmp 0x1401d955e
mov r8, qword [rdi + 0x10]
add r8, rdi
sub r8, rdi
mov rdx, rdi
mov rcx, rsi
call fcn.1404dd160
mov rax, qword [r15]
mov ecx, dword [rbp - 0x51]
mov dword [rax + 0x70], ecx
mov rax, qword [r15]
mov byte [rax + 0x74], 1
mov dword [r14], 0
lea rax, [0x140648ef0]
mov qword [r14 + 8], rax
mov rdi, qword [r15 + 8]
test rdi, rdi
je 0x1401d95c3
mov ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x1401d95c3
mov rdx, qword [rdi]
mov rcx, rdi
call qword [rdx]
lock xadd dword [rdi + 0xc], ebx
cmp ebx, 1
jne 0x1401d95c3
mov rdx, qword [rdi]
mov rcx, rdi
call qword [rdx + reloc.OLEAUT32.dll_VariantClear]
mov rax, r14
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.1404a4900
mov rbx, qword [rsp + 0x100]
add rsp, 0xb0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
dec eax
mov dword [rbx + 0x4c], eax
mov ecx, 6
call fcn.1404823d0
int3
mov ecx, 5
call fcn.1404823d0
int3