Function at 0x180004970
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x1d130]
mov eax, 0x1d230
call fcn.1800ad200
sub rsp, rax
movaps xmmword [rsp + 0x1d220], xmm6
movaps xmmword [rsp + 0x1d210], xmm7
movaps xmmword [rsp + 0x1d200], xmm8
mov rax, qword [0x1801165d8]
xor rax, rsp
mov qword [rbp + 0x1d0f0], rax
mov r8d, 0x1d171
lea rdx, str._ctxjN_npZQ
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll_memcpy
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], rax
cmp byte [rbp + 0x1d0e0], al
je 0x180004b8f
xor ecx, ecx
cmp dword [reloc.WS2_32.dll_accept], 2
jl 0x180004b4a
movdqa xmm5, xmmword [0x180104490]
movdqa xmm4, xmmword [0x1801048f0]
mov eax, 4
movd xmm6, eax
movdqa xmm7, xmmword [0x1801044e0]
mov eax, Ordinal_33
movd xmm8, eax
movdqa xmm0, xmmword [0x180104600]
movdqa xmmword [rsp + 0x40], xmm0
lea rdx, [rsp + 0x74]
mov r8d, dword [rsp + 0x40]
nop
movd xmm2, ecx
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
pand xmm2, xmmword [0x1801045a0]
packuswb xmm2, xmm2
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx - 4]
pxor xmm2, xmm0
movd dword [rdx - 4], xmm2
lea eax, [rcx + 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
pand xmm2, xmmword [0x1801045a0]
packuswb xmm2, xmm2
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx]
pxor xmm2, xmm0
movd dword [rdx], xmm2
add ecx, 8
lea rdx, [rdx + 8]
cmp ecx, 0x1d170
jl 0x180004a40
cmp ecx, 0x1d171
jge 0x180004b8f
movsxd rax, ecx
lea r8, [rsp + 0x70]
add r8, rax
nop word [rax + rax]
mov eax, 0x4bda12f7
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x36
movzx eax, cl
sub al, dl
add al, 0x34
xor byte [r8], al
inc ecx
lea r8, [r8 + 1]
cmp ecx, 0x1d171
jl 0x180004b60
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x30], xmm1
lea rax, [rsp + 0x70]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x180004bb0
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x20]
call fcn.180003350
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x50]
call fcn.1800044b0
nop
mov rdx, qword [rsp + 0x38]
cmp rdx, 0x10
jb 0x180004c1a
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180004c15
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180004c15
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800ac234
movdqa xmm0, xmmword [0x180104450]
movdqu xmmword [rsp + 0x30], xmm0
mov byte [rsp + 0x20], 0
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], 0
mov rdx, qword [rsp + 0x58]
sub rdx, qword [rsp + 0x50]
je 0x180004ca1
movabs rax, 0x7fffffffffffffff
cmp rdx, rax
ja 0x180004d81
lea rcx, [rsp + 0x20]
call fcn.180003720
lea rax, [rsp + 0x20]
mov qword [rsp + 0x40], rax
mov rdi, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x50]
sub rbx, rdx
mov r8, rbx
mov rcx, rdi
call sub.VCRUNTIME140.dll_memmove
lea rax, [rdi + rbx]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x40], 0
lea rax, [rsp + 0x20]
mov qword [rsp + 0x40], rax
lea rdx, [rsp + 0x20]
call fcn.180003540
nop
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x180004cf5
mov rdx, qword [rsp + 0x30]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x180004cf0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180004cf0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800ac234
mov cl, 1
call fcn.180003ab0
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x180004d4e
mov rdx, qword [rsp + 0x60]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x180004d37
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180004d37
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800ac234
mov qword [rsp + 0x50], 0
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x58], xmm0
mov rcx, qword [rbp + 0x1d0f0]
xor rcx, rsp
call fcn.1800ac1d0
lea r11, [rsp + 0x1d230]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
mov rsp, r11
pop rbp
ret
call fcn.180003700
nop
int3