Function at 0x14009db60
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0xe0
movaps xmmword [rax - 0x38], xmm6
movaps xmmword [rax - 0x48], xmm7
movaps xmmword [rax - 0x58], xmm8
mov rax, qword [0x1401b66f8]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov edi, edx
mov rbx, rcx
mov qword [rsp + 0x68], rcx
xor esi, esi
mov dword [rsp + 0x20], esi
movups xmm0, xmmword [0x140198280]
movups xmmword [rsp + 0x28], xmm0
movups xmm1, xmmword [0x140198290]
movups xmmword [rsp + 0x38], xmm1
movups xmm0, xmmword [0x1401982a0]
movups xmmword [rsp + 0x48], xmm0
movsd xmm0, qword [0x1401982b0]
movsd qword [rsp + 0x58], xmm0
mov eax, dword [0x1401982b8]
mov dword [rsp + 0x60], eax
movzx eax, word [0x1401982bc]
mov word [rsp + 0x64], ax
movzx eax, byte [reloc.WLDAP32.dll_Ordinal_60]
mov byte [rsp + 0x66], al
mov r8d, esi
cmp dword [reloc.WS2_32.dll_accept], 2
jl 0x14009dd53
movdqa xmm5, xmmword [0x140198b10]
movdqa xmm4, xmmword [0x140198d60]
mov eax, 4
movd xmm6, eax
movdqa xmm7, xmmword [0x140198b80]
mov eax, Ordinal_33
movd xmm8, eax
movdqa xmm0, xmmword [0x140198d20]
movdqa xmmword [rsp + 0x70], xmm0
lea rcx, [rsp + 0x2c]
mov edx, dword [rsp + 0x70]
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 [0x140198ce0]
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 [0x140198ce0]
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, 0x38
jl 0x14009dc50
cmp r8d, 0x3f
jge 0x14009dd90
movsxd rax, r8d
lea r9, [rsp + 0x28]
add r9, rax
nop
mov eax, 0x4d4873ed
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x35
movzx eax, r8b
sub al, cl
add al, 0x33
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0x3f
jl 0x14009dd60
xorps xmm0, xmm0
movups xmmword [rsp + 0x80], xmm0
mov qword [rsp + 0x90], rsi
mov qword [rsp + 0x98], rsi
lea rax, [rsp + 0x28]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], sil
jne 0x14009ddb7
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x80]
call fcn.14001fd20
nop
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbx], 0
mov dword [rsp + 0x20], 1
movsxd rdx, edi
cmp edi, 0xf
jbe 0x14009de04
mov rcx, rbx
call fcn.14001f8d0
mov qword [rbx + 0x10], rsi
test edi, edi
jle 0x14009dedc
mov ebp, dword [rsp + 0x90]
add ebp, 0xfffffffe
mov r14, rdi
mov r15, qword [rsp + 0x98]
mov r12, qword [rsp + 0x80]
nop dword [rax]
test ebp, ebp
jne 0x14009de38
mov ecx, ebp
jmp 0x14009de86
cmp ebp, 0x80000000
jb 0x14009de4f
cmp ebp, 0xffffffff
jne 0x14009de4f
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov ecx, eax
jmp 0x14009de86
lea esi, [rbp + 1]
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov edi, esi
mov ecx, eax
imul rcx, rdi
cmp ecx, esi
jae 0x14009de82
mov eax, esi
neg eax
xor edx, edx
div esi
mov esi, edx
cmp ecx, edx
jae 0x14009de82
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov ecx, eax
imul rcx, rdi
cmp ecx, esi
jb 0x14009de72
shr rcx, 0x20
lea rdx, [rsp + 0x80]
cmp r15, 0x10
cmovae rdx, r12
movsxd rax, ecx
movzx r9d, byte [rax + rdx]
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x14009deca
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0x10
jb 0x14009debf
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x14009ded2
mov rcx, rbx
call fcn.14001fa20
sub r14, 1
jne 0x14009de30
lea rcx, [rsp + 0x80]
call fcn.14000c460
mov rax, rbx
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.14012e5c0
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret