Function at 0x140036524
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov rax, qword [0x140152340]
xor rax, rsp
mov qword [rbp - 8], rax
mov rbx, rdx
mov rdi, rcx
mov qword [rbp - 0x38], rcx
xor r12d, r12d
lea rcx, [rdx + 0xad0]
call fcn.14002d818
mov rsi, rax
lea rcx, [rax + 0x10]
call fcn.14002d6c4
movsxd r14, eax
mov r15, r14
test eax, eax
jne 0x1400365f1
movsd xmm0, qword [0x1400cff30]
movsd qword [rbp - 0x38], xmm0
mov al, byte [0x1400cff38]
mov byte [rbp - 0x30], al
mov r8d, r12d
lea r9, [rbp - 0x38]
mov eax, 0x51eb851f
mul r8d
shr edx, 4
movsx eax, dl
imul ecx, eax, 0x32
mov al, r8b
sub al, cl
add al, 0x32
xor byte [r9], al
inc r8d
inc r9
cmp r8d, 9
jl 0x140036597
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], r12
mov qword [rdi + 0x18], r12
lea rax, [rbp - 0x38]
or rsi, 0xffffffffffffffff
inc rsi
cmp byte [rax + rsi], r12b
jne 0x1400365d4
lea rdx, [rbp - 0x38]
mov r8, rsi
mov rcx, rdi
call fcn.14002c638
jmp 0x1400367a5
lea rcx, [rbx - 6]
and ecx, 8
call fcn.14002d6a0
test al, al
je 0x14003666b
movzx eax, word [0x1400cff3c]
mov word [rbp - 0x40], ax
mov al, byte [0x1400cff3e]
mov byte [rbp - 0x3e], al
mov r8d, r12d
lea r9, [rbp - 0x40]
mov eax, 0x51eb851f
mul r8d
shr edx, 4
movsx eax, dl
imul ecx, eax, 0x32
mov al, r8b
sub al, cl
add al, 0x32
xor byte [r9], al
inc r8d
inc r9
cmp r8d, 3
jl 0x14003661c
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], r12
mov qword [rdi + 0x18], r12
lea rax, [rbp - 0x40]
or rsi, 0xffffffffffffffff
inc rsi
cmp byte [rax + rsi], r12b
jne 0x140036659
lea rdx, [rbp - 0x40]
jmp 0x1400365e1
lea rcx, [rsi + 8]
call fcn.14002d818
mov rbx, rax
mov eax, 2
mul r15
mov rsi, 0xffffffffffffffff
cmovb rax, rsi
mov rcx, rax
call fcn.1400a9d98
mov r15, rax
lea r8d, [r14 + r14]
mov rdx, rax
mov rcx, rbx
call fcn.140037560
mov r8d, r12d
mov rcx, r15
lea edx, [r14 - 1]
and edx, 3
dec r14d
lea ebx, [rsi + 8]
cmp r8d, r14d
jge 0x1400366d1
add edx, 3
inc r8d
movzx eax, dx
and ax, bx
add word [rcx], ax
add rcx, 2
jmp 0x1400366b7
xorps xmm0, xmm0
movups xmmword [rbp - 0x28], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x18], xmm1
inc rsi
cmp word [r15 + rsi*2], r12w
jne 0x1400366e0
mov r8, rsi
mov rdx, r15
lea rcx, [rbp - 0x28]
call fcn.14002c718
nop
mov rcx, r15
call fcn.1400a98bc
lea rcx, [rbp - 0x28]
mov r8, qword [rbp - 0x28]
mov rdx, qword [rbp - 0x10]
cmp rdx, rbx
cmova rcx, r8
mov rax, qword [rbp - 0x18]
lea r10, [rcx + rax*2]
lea rax, [rbp - 0x28]
cmova rax, r8
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], r12
mov qword [rdi + 0x18], r12
cmp rax, r10
jne 0x140036749
mov qword [rdi + 0x10], r12
mov qword [rdi + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rdi], r12b
jmp 0x140036768
mov r9, r10
sub r9, rax
sar r9, 1
mov r8, r10
mov rdx, rax
mov rcx, rdi
call fcn.14002caa8
mov rdx, qword [rbp - 0x10]
mov r8, qword [rbp - 0x28]
cmp rdx, rbx
jbe 0x1400367a5
lea rdx, [rdx*2 + 2]
mov rax, r8
cmp rdx, 0x1000
jb 0x14003679d
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14003679d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r8
call fcn.1400a98bc
mov rax, rdi
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1400a9cb0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret