Function at 0x14015bcf0
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push r12
push r14
push r15
sub rsp, 0x58
mov rax, qword [0x140264330]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov r14d, r9d
mov esi, r8d
mov r15, rdx
mov rbx, rcx
xor r12d, r12d
mov qword [rsp + 0x50], rdi
test dword [rbx + 0x48], 0x3000
je 0x14015bd44
cmp dword [rbx + 0x2c], r12d
jne 0x14015bd44
mov rcx, rbx
call qword [rbx + 0x30]
test eax, eax
js 0x14015c132
je 0x14015c022
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [rbx + 0x28], 1
test esi, esi
jle 0x14015c130
mov rax, qword [rbx + 0x78]
cmp dword [rax + 0x58], r12d
jne 0x14015c0f2
cmp dword [rbx + 0x4c], 0xf0
jne 0x14015be54
xor r9d, r9d
mov r8d, 0x8001
mov rcx, rbx
cmp dword [rbx + 0x1a8], r12d
je 0x14015bde2
lea edx, [r9 + 5]
call fcn.14015c180
test eax, eax
jle 0x14015c132
mov rax, qword [rbx + 0x68]
mov dword [rbx + 0x1a8], r12d
test byte [rax], 0x80
je 0x14015bdb8
movzx eax, byte [rax + 2]
cmp al, 1
je 0x14015bdf4
cmp al, 4
je 0x14015bdf4
mov edx, 0xec
lea r9, [0x1402a09b0]
mov ecx, setsockopt
lea r8d, [rdx - 0x3d]
mov dword [rsp + 0x20], 0xbb
call fcn.1400dabf0
or eax, 0xffffffff
jmp 0x14015c132
mov edx, 2
call fcn.14015c180
test eax, eax
jle 0x14015c132
mov rdx, qword [rbx + 0x68]
mov rax, qword [rbx + 0x78]
mov dword [rbx + 0x4c], 0xf1
mov dword [rax + 8], r12d
movzx eax, byte [rdx + 1]
movzx ecx, byte [rdx]
shl ecx, 8
or ecx, eax
mov rax, qword [rbx + 0x78]
mov dword [rax + 0x54], ecx
test byte [rdx], 0x80
mov rax, qword [rbx + 0x78]
je 0x14015be33
mov dword [rax], r12d
mov rax, qword [rbx + 0x78]
and dword [rax + 0x54], 0x7fff
jmp 0x14015be54
mov dword [rax], 1
mov rax, qword [rbx + 0x78]
and dword [rax + 0x54], 0x3fff
movzx ecx, byte [rdx]
mov rax, qword [rbx + 0x78]
shr ecx, 6
and ecx, 1
mov dword [rax + 8], ecx
cmp dword [rbx + 0x4c], 0xf1
jne 0x14015c0d8
mov rax, qword [rbx + 0x78]
mov edx, dword [rax]
add edx, 2
add edx, dword [rax + 0x54]
mov eax, dword [rbx + 0x70]
cmp edx, eax
jle 0x14015be8f
sub edx, eax
mov r9d, 1
mov rcx, rbx
mov r8d, edx
call fcn.14015c180
test eax, eax
jle 0x14015c132
mov rcx, qword [rbx + 0x68]
mov rdx, qword [rbx + 0x78]
mov dword [rbx + 0x4c], 0xf0
add rcx, 2
cmp dword [rdx], r12d
je 0x14015beb2
movzx eax, byte [rcx]
inc rcx
mov dword [rdx + 0x50], eax
jmp 0x14015beb6
mov dword [rdx + 0x50], r12d
mov rax, qword [rbx + 0x78]
cmp dword [rax + 4], r12d
je 0x14015bf05
mov qword [rax + 0x78], rcx
mov rax, qword [rbx + 0x78]
mov edi, r12d
mov qword [rax + 0x68], rcx
mov rdx, qword [rbx + 0x78]
cmp dword [rdx + 0x50], r12d
je 0x14015bf57
mov dword [rsp + 0x20], 0xf3
lea r9, [0x1402a0a20]
mov r8d, 0x11b
mov edx, 0xec
mov ecx, setsockopt
call fcn.1400dabf0
or eax, 0xffffffff
jmp 0x14015c132
mov rdx, qword [rbx + 0xd8]
test rdx, rdx
je 0x14015c0b1
mov r8, qword [rdx]
test r8, r8
je 0x14015c0b1
movsxd rdi, dword [r8 + 8]
test edi, edi
js 0x14015c0d3
cmp edi, 0x14
jg 0x14015c07a
mov qword [rax + 0x78], rcx
mov rax, qword [rbx + 0x78]
add rcx, rdi
mov qword [rax + 0x68], rcx
mov rdx, qword [rbx + 0x78]
mov ecx, dword [rdx + 0x50]
add ecx, edi
cmp ecx, dword [rdx + 0x54]
ja 0x14015c066
mov eax, dword [rdx + 0x54]
mov dword [rdx + 0x58], eax
mov r9, qword [rbx + 0x78]
cmp dword [r9 + 4], r12d
jne 0x14015c016
mov eax, dword [r9 + 0x54]
cmp eax, edi
jb 0x14015c016
mov rcx, qword [rbx + 0xd0]
test rcx, rcx
je 0x14015bfa1
mov r10, qword [rcx]
cmp dword [r10 + 4], 8
jne 0x14015bf93
add eax, 7
and eax, 0xfffffff8
mov rdx, qword [r9 + 0x78]
mov r9d, eax
mov r8, rdx
call qword [r10 + 0x20]
mov rax, qword [rbx + 0x78]
lea rdx, [rsp + 0x30]
xor r8d, r8d
sub dword [rax + 0x58], edi
mov rcx, rbx
call fcn.14015bb20
mov rcx, qword [rbx + 0x78]
xor r8b, r8b
mov eax, dword [rcx + 0x50]
movsxd r11, edi
mov rdx, r12
sub dword [rcx + 0x58], eax
mov r9, qword [rbx + 0x78]
mov r10, qword [r9 + 0x78]
test edi, edi
je 0x14015bfff
lea rax, [rsp + 0x30]
sub r10, rax
nop
lea rax, [rsp + 0x30]
add rax, rdx
inc rdx
movzx ecx, byte [r10 + rax]
xor cl, byte [rax]
or r8b, cl
cmp rdx, r11
jb 0x14015bfe0
test r8b, r8b
jne 0x14015c04c
mov rax, qword [rbx + 0xd0]
xor edx, edx
mov rcx, qword [rax]
mov eax, dword [r9 + 0x54]
div dword [rcx + 4]
test edx, edx
jne 0x14015c04c
inc dword [r9 + 0xfc]
jmp 0x14015bd21
mov edx, 0xec
lea r9, [0x1402a09d8]
mov ecx, setsockopt
lea r8d, [rdx - 7]
mov dword [rsp + 0x20], 0x8e
call fcn.1400dabf0
or eax, 0xffffffff
jmp 0x14015c132
mov dword [rsp + 0x20], 0x113
lea r9, [0x1402a0ac0]
mov r8d, WSACleanup
jmp 0x14015beee
mov dword [rsp + 0x20], 0x101
lea r9, [0x1402a0a48]
jmp 0x14015bee8
lea r9, str.mac_size___MAX_MAC_SIZE
lea rdx, [0x1402a0a70]
lea rcx, str._s__d_:_OpenSSL_internal_error__assertion_failed:__s_n
mov r8d, 0xfc
call fcn.1400f7420
mov ecx, reloc.WS2_32.dll_shutdown
call qword [sym.imp.MSVCR120.dll_raise]
mov ecx, 3
call qword [sym.imp.MSVCR120.dll__exit]
int3
mov edx, 0xa2
lea r9, str.....opensslopensslcryptoevpevp_lib.c
mov ecx, 6
lea r8d, [rdx - 3]
mov dword [rsp + 0x20], 0x10e
call fcn.1400dabf0
or eax, 0xffffffff
jmp 0x14015c132
mov dword [rsp + 0x20], 0x12f
lea r9, [0x1402a0a98]
mov r8d, 0x7e
jmp 0x14015beee
cmp esi, dword [rax + 0x58]
mov rdx, qword [rax + 0x68]
mov rcx, r15
cmovg esi, dword [rax + 0x58]
mov r8d, esi
call sub.MSVCR120.dll_memcpy
test r14d, r14d
jne 0x14015c130
mov rcx, qword [rbx + 0x78]
sub dword [rcx + 0x58], esi
mov rdx, qword [rbx + 0x78]
movsxd rcx, esi
add qword [rdx + 0x68], rcx
mov rcx, qword [rbx + 0x78]
cmp dword [rcx + 0x58], r12d
jne 0x14015c130
mov dword [rbx + 0x4c], 0xf0
mov eax, esi
mov rdi, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1401bb2c0
add rsp, 0x58
pop r15
pop r14
pop r12
pop rsi
pop rbp
pop rbx
ret