Function at 0x140050bb0
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x328]
sub rsp, 0x3e8
movaps xmmword [rax - 0x58], xmm6
movaps xmmword [rax - 0x68], xmm7
movaps xmmword [rax - 0x78], xmm8
mov r10, rcx
xor r13d, r13d
mov dword [rbp + 0x330], r13d
movups xmm0, xmmword [0x14011b3a8]
movups xmmword [rbp - 0x80], xmm0
mov eax, dword [0x14011b3b8]
mov dword [rbp - 0x70], eax
movzx eax, word [0x14011b3bc]
mov word [rbp - 0x6c], ax
movzx eax, byte [0x14011b3be]
mov byte [rbp - 0x6a], al
mov r8d, r13d
cmp dword [reloc.WS2_32.dll_accept], 2
jl 0x140050d63
movdqa xmm5, xmmword [0x14011f510]
movdqa xmm4, xmmword [0x14011f5b0]
mov eax, 1
movd xmm6, eax
movdqa xmm7, xmmword [0x14011f540]
mov eax, Ordinal_32
movd xmm8, eax
movdqa xmm0, xmmword [0x14011f5c0]
movdqa xmmword [rbp - 0x60], xmm0
lea rcx, [rbp - 0x7c]
mov edx, dword [rbp - 0x60]
nop
movd xmm2, r8d
pshufd xmm2, xmm2, 0
paddd xmm2, xmm5
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x14011f5a0]
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 4]
xorps xmm2, xmm0
movd dword [rcx - 4], xmm2
lea eax, [r8 + 4]
movd xmm3, eax
pshufd xmm3, xmm3, 0
paddd xmm3, xmm5
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x14011f5a0]
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx]
xorps xmm2, xmm0
movd dword [rcx], xmm2
add r8d, 8
lea rcx, [rcx + 8]
cmp r8d, 0x10
jl 0x140050c60
cmp r8d, 0x17
jge 0x140050d9f
movsxd rax, r8d
lea r9, [rbp - 0x80]
add r9, rax
nop dword [rax]
mov eax, 0x94f2095
imul r8d
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x37
movzx eax, r8b
sub al, cl
add al, 0x32
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0x17
jl 0x140050d70
mov rdx, qword [r10 + 0x10]
lea rax, [rbp - 0x80]
mov r14, 0xffffffffffffffff
mov rcx, r14
inc rcx
cmp byte [rax + rcx], r13b
jne 0x140050db1
movabs rax, 0x7fffffffffffffff
sub rax, rdx
cmp rax, rcx
jb 0x140051457
cmp qword [r10 + 0x18], 0x10
jb 0x140050dda
mov r10, qword [r10]
mov qword [rsp + 0x30], rcx
lea rax, [rbp - 0x80]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdx
mov r9, r10
lea rcx, [rbp - 0x10]
call fcn.14006bea0
nop
mov rdi, qword [rbp]
lea rbx, [rbp - 0x10]
cmp qword [rbp + 8], 0x10
cmovae rbx, qword [rbp - 0x10]
call fcn.1400e259c
mov qword [rbp - 0x60], rbx
mov qword [rbp - 0x58], rdi
lea r8, [rbp - 0x60]
mov edx, eax
lea rcx, [rbp + 0x10]
call fcn.14004cdc0
mov esi, Ordinal_32
mov dword [rbp + 0x330], esi
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x40], xmm0
lea rdx, [rbp + 0x10]
lea rcx, [rsp + 0x40]
call fcn.140069db0
test eax, eax
jne 0x14005145d
mov rdx, qword [rbp + 0x28]
cmp rdx, 8
jb 0x140050e95
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140050e90
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140050e90
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400e2dc0
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140050eae
lock inc dword [rcx + 8]
mov rcx, qword [rsp + 0x48]
mov esi, dword [rbp + 0x330]
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x70], xmm0
test rcx, rcx
je 0x140050ecd
lock inc dword [rcx + 8]
mov rcx, qword [rsp + 0x48]
mov esi, dword [rbp + 0x330]
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x30], xmm1
test rcx, rcx
je 0x140050f12
mov eax, r14d
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140050f0c
mov rbx, qword [rsp + 0x48]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, r14d
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x140050f0c
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov esi, dword [rbp + 0x330]
mov rdi, qword [rsp + 0x70]
test rdi, rdi
je 0x140051371
lea r12, [rdi + 0x20]
cmp qword [rdi + 0x38], 8
jb 0x140050f2f
mov r12, qword [rdi + 0x20]
mov r15, qword [rdi + 0x30]
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x68], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x50], 0
or esi, 2
mov dword [rbp + 0x330], esi
test r15, r15
je 0x140050fe0
cmp r15, 0x7fffffff
ja 0x140051481
mov dword [rsp + 0x20], r13d
xor r9d, r9d
mov r8d, r15d
mov rdx, r12
mov ecx, 0xfde9
call fcn.1400e260c
mov rbx, rax
mov qword [rbp + 0x348], rax
shr rax, 0x20
test eax, eax
jne 0x140051475
movsxd rdx, ebx
lea rcx, [rsp + 0x50]
call fcn.140068e30
lea r9, [rsp + 0x50]
cmp qword [rsp + 0x68], 0x10
cmovae r9, qword [rsp + 0x50]
mov dword [rsp + 0x20], ebx
mov r8d, r15d
mov rdx, r12
mov ecx, 0xfde9
call fcn.1400e260c
mov qword [rbp + 0x348], rax
shr rax, 0x20
test eax, eax
jne 0x140051469
and esi, 0xfffffffd
or esi, 1
mov dword [rbp + 0x330], esi
mov eax, dword [0x14011b534]
mov dword [rbp + 0x338], eax
movzx eax, byte [0x14011b538]
mov byte [rbp + 0x338], reloc.WLDAP32.dll_Ordinal_46
xor byte [rbp + 0x339], 0x33
xor byte [rbp + 0x33a], 0x34
xor byte [rbp + 0x33b], 0x35
xor al, 0x36
mov byte [rbp + 0x33c], al
xorps xmm0, xmm0
movups xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x20], r13
mov qword [rbp - 0x18], r13
lea rax, [rbp + 0x338]
mov r8, r14
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140051040
lea rdx, [rbp + 0x338]
lea rcx, [rbp - 0x30]
call fcn.14006ae00
nop
mov r13, qword [rbp - 0x18]
mov r12, qword [rbp - 0x30]
mov rax, qword [rsp + 0x60]
mov rbx, qword [rbp - 0x20]
cmp rax, rbx
jb 0x1400510de
mov rcx, rax
sub rcx, rbx
cmp rax, rcx
jb 0x140051487
lea rdx, [rbp - 0x30]
cmp r13, 0x10
cmovae rdx, r12
sub rax, rcx
mov r15, rbx
cmp rax, rbx
cmovb r15, rax
lea rax, [rsp + 0x50]
cmp qword [rsp + 0x68], 0x10
cmovae rax, qword [rsp + 0x50]
add rcx, rax
mov r8, r15
cmp rbx, r15
cmovb r8, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x1400510d9
cmp r15, rbx
jae 0x1400510cf
mov eax, r14d
test eax, eax
sete bl
jmp 0x1400510e0
xor eax, eax
cmp r15, rbx
seta al
test eax, eax
sete bl
jmp 0x1400510e0
xor bl, bl
cmp r13, 0x10
jb 0x140051118
lea rdx, [r13 + 1]
mov rax, r12
cmp rdx, 0x1000
jb 0x140051110
add rdx, 0x27
mov r12, qword [r12 - 8]
sub rax, r12
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140051363
mov rcx, r12
call fcn.1400e2dc0
test bl, bl
je 0x140051126
lea rcx, [rsp + 0x50]
call fcn.14004ff40
mov eax, dword [0x14011c580]
mov dword [rbp + 0x340], eax
movzx eax, byte [0x14011c584]
mov byte [rbp + 0x340], reloc.WLDAP32.dll_Ordinal_46
xor byte [rbp + 0x341], 0x33
xor byte [rbp + 0x342], 0x34
xor byte [rbp + 0x343], 0x35
xor al, 0x36
mov byte [rbp + 0x344], al
xorps xmm0, xmm0
movups xmmword [rbp - 0x50], xmm0
xor eax, eax
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], rax
lea rax, [rbp + 0x340]
mov r8, r14
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140051180
lea rdx, [rbp + 0x340]
lea rcx, [rbp - 0x50]
call fcn.14006ae00
nop
mov r15, qword [rsp + 0x68]
mov r13, qword [rbp - 0x50]
mov rax, qword [rsp + 0x60]
mov rbx, qword [rbp - 0x40]
cmp rax, rbx
jb 0x14005121e
mov rcx, rax
sub rcx, rbx
cmp rax, rcx
jb 0x14005148d
lea rdx, [rbp - 0x50]
cmp qword [rbp - 0x38], 0x10
cmovae rdx, r13
sub rax, rcx
mov r12, rbx
cmp rax, rbx
cmovb r12, rax
lea rax, [rsp + 0x50]
cmp r15, 0x10
cmovae rax, qword [rsp + 0x50]
add rcx, rax
mov r8, r12
cmp rbx, r12
cmovb r8, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x140051219
cmp r12, rbx
jae 0x14005120f
mov eax, r14d
test eax, eax
sete bl
jmp 0x140051220
xor eax, eax
cmp r12, rbx
seta al
test eax, eax
sete bl
jmp 0x140051220
xor bl, bl
mov rax, qword [rbp - 0x38]
cmp rax, 0x10
jb 0x140051260
lea rdx, [rax + 1]
mov rax, r13
cmp rdx, 0x1000
jb 0x140051253
add rdx, 0x27
mov r13, qword [r13 - 8]
sub rax, r13
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140051363
mov rcx, r13
call fcn.1400e2dc0
mov r15, qword [rsp + 0x68]
test bl, bl
je 0x140051273
lea rcx, [rsp + 0x50]
call fcn.14004ff40
mov r15, qword [rsp + 0x68]
cmp r15, 0x10
jb 0x1400512b0
lea rdx, [r15 + 1]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400512a7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005136a
call fcn.1400e2dc0
nop dword [rax]
lea rdx, [rbp + 0x60]
mov rcx, qword [rdi + 0x40]
call fcn.1400e27fc
cmp eax, 0x12
je 0x140051304
test eax, eax
jne 0x14005144f
cmp word [rbp + 0x8c], 0x2e
jne 0x1400512f0
movzx eax, word [rbp + 0x8e]
test ax, ax
je 0x1400512b0
cmp ax, 0x2e
jne 0x1400512f0
cmp word [rbp + 0x90], 0
je 0x1400512b0
lea rdx, [rbp + 0x60]
mov rcx, rdi
call fcn.14004de60
xor r13d, r13d
jmp 0x140050f17
xor r13d, r13d
mov edi, r13d
mov qword [rsp + 0x70], r13
mov rbx, qword [rsp + 0x78]
mov qword [rsp + 0x78], r13
test rbx, rbx
je 0x140050f17
mov eax, r14d
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140051344
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, r14d
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
je 0x14005134f
mov esi, dword [rbp + 0x330]
jmp 0x140050f12
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
mov esi, dword [rbp + 0x330]
jmp 0x140050f12
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x1400513ae
mov eax, r14d
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1400513ae
mov rbx, qword [rsp + 0x78]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, r14d
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x1400513ae
mov rcx, qword [rsp + 0x78]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1400513ea
mov eax, r14d
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1400513ea
mov rbx, qword [rsp + 0x48]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], r14d
cmp r14d, 1
jne 0x1400513ea
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rdx, qword [rbp + 8]
cmp rdx, 0x10
jb 0x140051428
inc rdx
mov rcx, qword [rbp - 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140051423
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140051423
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400e2dc0
lea r11, [rsp + 0x3e8]
movaps xmm6, xmmword [r11 - 0x18]
movaps xmm7, xmmword [r11 - 0x28]
movaps xmm8, xmmword [r11 - 0x38]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov edx, eax
call fcn.14004db70
nop
call fcn.140041670
nop
lea r8, [rbp + 0x10]
mov edx, eax
call fcn.14004dc60
nop
mov ecx, dword [rbp + 0x34c]
call fcn.140041d70
int3
mov ecx, dword [rbp + 0x34c]
call fcn.140041d70
int3
call fcn.140041ac0
nop
call fcn.140069120
nop
call fcn.140069120
int3