Function at 0x14015ae30
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push r12
push r14
push r15
sub rsp, 0x58
mov rax, qword [0x1402581e0]
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 0x14015ae84
cmp dword [rbx + 0x2c], r12d
jne 0x14015ae84
mov rcx, rbx
call qword [rbx + 0x30]
test eax, eax
js 0x14015b272
je 0x14015b162
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [rbx + 0x28], 1
test esi, esi
jle 0x14015b270
mov rax, qword [rbx + 0x78]
cmp dword [rax + 0x58], r12d
jne 0x14015b232
cmp dword [rbx + 0x4c], 0xf0
jne 0x14015af94
xor r9d, r9d
mov r8d, 0x8001
mov rcx, rbx
cmp dword [rbx + 0x1a8], r12d
je 0x14015af22
lea edx, [r9 + 5]
call fcn.14015b2c0
test eax, eax
jle 0x14015b272
mov rax, qword [rbx + 0x68]
mov dword [rbx + 0x1a8], r12d
test byte [rax], 0x80
je 0x14015aef8
movzx eax, byte [rax + 2]
cmp al, 1
je 0x14015af34
cmp al, 4
je 0x14015af34
mov edx, 0xec
lea r9, [0x140294860]
mov ecx, setsockopt
lea r8d, [rdx - 0x3d]
mov dword [rsp + 0x20], 0xbb
call fcn.1400d9be0
or eax, 0xffffffff
jmp 0x14015b272
mov edx, 2
call fcn.14015b2c0
test eax, eax
jle 0x14015b272
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 0x14015af73
mov dword [rax], r12d
mov rax, qword [rbx + 0x78]
and dword [rax + 0x54], 0x7fff
jmp 0x14015af94
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 0x14015b218
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 0x14015afcf
sub edx, eax
mov r9d, 1
mov rcx, rbx
mov r8d, edx
call fcn.14015b2c0
test eax, eax
jle 0x14015b272
mov rcx, qword [rbx + 0x68]
mov rdx, qword [rbx + 0x78]
mov dword [rbx + 0x4c], 0xf0
add rcx, 2
cmp dword [rdx], r12d
je 0x14015aff2
movzx eax, byte [rcx]
inc rcx
mov dword [rdx + 0x50], eax
jmp 0x14015aff6
mov dword [rdx + 0x50], r12d
mov rax, qword [rbx + 0x78]
cmp dword [rax + 4], r12d
je 0x14015b045
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 0x14015b097
mov dword [rsp + 0x20], 0xf3
lea r9, [0x1402948d0]
mov r8d, 0x11b
mov edx, 0xec
mov ecx, setsockopt
call fcn.1400d9be0
or eax, 0xffffffff
jmp 0x14015b272
mov rdx, qword [rbx + 0xd8]
test rdx, rdx
je 0x14015b1f1
mov r8, qword [rdx]
test r8, r8
je 0x14015b1f1
movsxd rdi, dword [r8 + 8]
test edi, edi
js 0x14015b213
cmp edi, 0x14
jg 0x14015b1ba
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 0x14015b1a6
mov eax, dword [rdx + 0x54]
mov dword [rdx + 0x58], eax
mov r9, qword [rbx + 0x78]
cmp dword [r9 + 4], r12d
jne 0x14015b156
mov eax, dword [r9 + 0x54]
cmp eax, edi
jb 0x14015b156
mov rcx, qword [rbx + 0xd0]
test rcx, rcx
je 0x14015b0e1
mov r10, qword [rcx]
cmp dword [r10 + 4], 8
jne 0x14015b0d3
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.14015ac60
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 0x14015b13f
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 0x14015b120
test r8b, r8b
jne 0x14015b18c
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 0x14015b18c
inc dword [r9 + 0xfc]
jmp 0x14015ae61
mov edx, 0xec
lea r9, [0x140294888]
mov ecx, setsockopt
lea r8d, [rdx - 7]
mov dword [rsp + 0x20], 0x8e
call fcn.1400d9be0
or eax, 0xffffffff
jmp 0x14015b272
mov dword [rsp + 0x20], 0x113
lea r9, [0x140294970]
mov r8d, WSACleanup
jmp 0x14015b02e
mov dword [rsp + 0x20], 0x101
lea r9, [0x1402948f8]
jmp 0x14015b028
lea r9, str.mac_size___MAX_MAC_SIZE
lea rdx, [0x140294920]
lea rcx, str._s__d_:_OpenSSL_internal_error__assertion_failed:__s_n
mov r8d, 0xfc
call fcn.1400f6440
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.1400d9be0
or eax, 0xffffffff
jmp 0x14015b272
mov dword [rsp + 0x20], 0x12f
lea r9, [0x140294948]
mov r8d, 0x7e
jmp 0x14015b02e
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 0x14015b270
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 0x14015b270
mov dword [rbx + 0x4c], 0xf0
mov eax, esi
mov rdi, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1401bddc0
add rsp, 0x58
pop r15
pop r14
pop r12
pop rsi
pop rbp
pop rbx
ret