Function at 0x140035400
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x790]
sub rsp, 0x890
mov esi, edx
mov rdi, rcx
xor ebx, ebx
mov dword [rsp + 0x50], ebx
test edx, edx
jne 0x1400354eb
mov dword [rbp + 0x7c0], 0x5d43426a
mov word [rbp + 0x7c4], 0x41
mov byte [rbp + 0x7c6], 1
nop dword [rax]
nop dword [rax + rax]
lea eax, [rbx + 0x2f]
xor byte [rbp + rbx + 0x7c0], al
inc rbx
cmp rbx, 5
jb 0x140035450
mov byte [rbp + 0x7c6], 0
lea r9, [rbp + 0x7b8]
lea r8, [rbp + 0x7c5]
lea rdx, [rbp + 0x7c0]
lea rcx, [rsp + 0x30]
call fcn.1400305e0
nop
lea rdx, [rsp + 0x30]
cmp qword [rsp + 0x48], 0x10
cmovae rdx, qword [rsp + 0x30]
mov rcx, rdi
call fcn.14003ba40
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x1400357d4
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400357cf
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400357cf
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov eax, esi
sar eax, 0x10
lea ecx, [rax*8 + 0x10]
mov r8, qword [reloc.WS2_32.dll_accept]
add r8, 0xa050a00
add r8, rcx
mov qword [rsp + 0x20], 8
lea r9, [rbp + 0x7c0]
mov edx, dword [0x1400edf40]
call fcn.140030a90
mov rcx, qword [rbp + 0x7c0]
test rcx, rcx
je 0x140035725
movzx eax, si
lea rsi, [rcx + rax*4]
mov qword [rsp + 0x20], 0x808
lea r9, [rbp - 0x80]
mov r8, rsi
mov edx, dword [0x1400edf40]
call fcn.140030a90
cmp byte [rbp - 0x7a], bl
je 0x1400356f5
test rsi, rsi
je 0x1400356f5
mov qword [rsp + 0x20], 8
lea r9, [rbp + 0x7c0]
mov r8, qword [0x1400edb20]
mov edx, dword [0x1400edf40]
call fcn.140030a90
mov rax, qword [rbp + 0x7c0]
mov qword [rbp + 0x7c0], rax
movzx edx, bx
movzx ecx, word [rbp - 0x7c]
movzx eax, cx
mov r8d, 0xfffe
and ax, r8w
cmp bx, ax
jae 0x140035618
lea r10, [0x1400b3526]
nop word [rax + rax]
movzx r8d, dx
lea r9, [rbp - 0x7a]
mov rax, 0xffffffffffffffff
nop
inc rax
cmp byte [r9 + rax], bl
jne 0x1400355d0
cmp r8, rax
ja 0x140035618
lea r9, [rbp - 0x7a]
add r9, r8
movzx eax, byte [r9]
cmp al, r10b
je 0x14003560a
test al, al
je 0x14003560a
and r8d, 3
shr cx, 1
xor cl, byte [rbp + r8 + 0x7c0]
xor cl, al
mov byte [r9], cl
movzx ecx, word [rbp - 0x7c]
inc dx
movzx eax, cx
shr ax, 1
cmp dx, ax
jb 0x1400355c0
lea rdx, [rbp - 0x7a]
lea rcx, [rsp + 0x30]
call fcn.14003ba40
nop
cmp qword [rsp + 0x40], 0
je 0x14003565c
xor eax, eax
mov word [rbp + 0x7c0], ax
lea r9, [rbp + 0x7b8]
lea r8, [rbp + 0x7c0]
lea rdx, [rbp + 0x7c0]
lea rcx, [rsp + 0x58]
call fcn.1400305e0
mov ebx, 0xc2
test bl, 2
je 0x1400356a1
mov rdx, qword [rsp + 0x70]
cmp rdx, 0x10
jb 0x1400356a1
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003569c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14003569c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400a00cc
lea rdx, [rbp - 0x7a]
mov rcx, rdi
call fcn.14003ba40
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x1400357d4
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400357cf
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400357cf
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], 3
mov qword [rdi + 0x18], reloc.WS2_32.dll_ntohs
mov r8d, 3
lea rdx, [0x1400b377c]
mov rcx, rdi
call sub.VCRUNTIME140.dll_memmove
jmp 0x1400357d4
mov dword [rbp + 0x7c0], 0x5d43426a
mov word [rbp + 0x7c4], 0x41
mov byte [rbp + 0x7c6], 1
nop
lea eax, [rbx + 0x2f]
xor byte [rbp + rbx + 0x7c0], al
inc rbx
cmp rbx, 5
jb 0x140035740
mov byte [rbp + 0x7c6], 0
lea r9, [rbp + 0x7b8]
lea r8, [rbp + 0x7c5]
lea rdx, [rbp + 0x7c0]
lea rcx, [rsp + 0x30]
call fcn.1400305e0
nop
lea rdx, [rsp + 0x30]
cmp qword [rsp + 0x48], 0x10
cmovae rdx, qword [rsp + 0x30]
mov rcx, rdi
call fcn.14003ba40
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x1400357d4
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400357cf
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400357cf
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400a00cc
mov rax, rdi
mov rbx, qword [rsp + 0x8b0]
add rsp, 0x890
pop rdi
pop rsi
pop rbp
ret